mid                91 arch/alpha/kernel/core_mcpcia.c 	unsigned long mid = MCPCIA_HOSE2MID(hose->index);
mid                99 arch/alpha/kernel/core_mcpcia.c 		 addr, type1, mid));
mid               102 arch/alpha/kernel/core_mcpcia.c 	stat0 = *(vuip)MCPCIA_CAP_ERR(mid);
mid               103 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_CAP_ERR(mid) = stat0;
mid               105 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_CAP_ERR(mid);
mid               106 arch/alpha/kernel/core_mcpcia.c 	DBG_CFG(("conf_read: MCPCIA_CAP_ERR(%d) was 0x%x\n", mid, stat0));
mid               112 arch/alpha/kernel/core_mcpcia.c 	mcheck_extra(cpu) = mid;
mid               139 arch/alpha/kernel/core_mcpcia.c 	unsigned long mid = MCPCIA_HOSE2MID(hose->index);
mid               147 arch/alpha/kernel/core_mcpcia.c 	stat0 = *(vuip)MCPCIA_CAP_ERR(mid);
mid               148 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_CAP_ERR(mid) = stat0; mb();
mid               149 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_CAP_ERR(mid);
mid               150 arch/alpha/kernel/core_mcpcia.c 	DBG_CFG(("conf_write: MCPCIA CAP_ERR(%d) was 0x%x\n", mid, stat0));
mid               154 arch/alpha/kernel/core_mcpcia.c 	mcheck_extra(cpu) = mid;
mid               161 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_CAP_ERR(mid); /* read to force the write */
mid               257 arch/alpha/kernel/core_mcpcia.c 	int mid = MCPCIA_HOSE2MID(h);
mid               269 arch/alpha/kernel/core_mcpcia.c 	mcheck_extra(cpu) = mid;
mid               273 arch/alpha/kernel/core_mcpcia.c 	pci_rev = *(vuip)MCPCIA_REV(mid);
mid               293 arch/alpha/kernel/core_mcpcia.c 	int mid = MCPCIA_HOSE2MID(h);
mid               304 arch/alpha/kernel/core_mcpcia.c 	hose->sparse_mem_base = MCPCIA_SPARSE(mid) - IDENT_ADDR;
mid               305 arch/alpha/kernel/core_mcpcia.c 	hose->dense_mem_base = MCPCIA_DENSE(mid) - IDENT_ADDR;
mid               306 arch/alpha/kernel/core_mcpcia.c 	hose->sparse_io_base = MCPCIA_IO(mid) - IDENT_ADDR;
mid               308 arch/alpha/kernel/core_mcpcia.c 	hose->config_space_base = MCPCIA_CONF(mid);
mid               311 arch/alpha/kernel/core_mcpcia.c 	io->start = MCPCIA_IO(mid) - MCPCIA_IO_BIAS;
mid               316 arch/alpha/kernel/core_mcpcia.c 	mem->start = MCPCIA_DENSE(mid) - MCPCIA_MEM_BIAS;
mid               335 arch/alpha/kernel/core_mcpcia.c mcpcia_pci_clr_err(int mid)
mid               337 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_CAP_ERR(mid);
mid               338 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_CAP_ERR(mid) = 0xffffffff;   /* Clear them all.  */
mid               340 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_CAP_ERR(mid);  /* Re-read for force write.  */
mid               346 arch/alpha/kernel/core_mcpcia.c 	int mid = MCPCIA_HOSE2MID(hose->index);
mid               349 arch/alpha/kernel/core_mcpcia.c 	mcpcia_pci_clr_err(mid);
mid               354 arch/alpha/kernel/core_mcpcia.c 	tmp = *(vuip)MCPCIA_CAP_ERR(mid);
mid               356 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_CAP_ERR(mid) = tmp;
mid               358 arch/alpha/kernel/core_mcpcia.c 	tmp = *(vuip)MCPCIA_CAP_ERR(mid);
mid               376 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_W0_BASE(mid) = hose->sg_isa->dma_base | 3;
mid               377 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_W0_MASK(mid) = (hose->sg_isa->size - 1) & 0xfff00000;
mid               378 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_T0_BASE(mid) = virt_to_phys(hose->sg_isa->ptes) >> 8;
mid               380 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_W1_BASE(mid) = hose->sg_pci->dma_base | 3;
mid               381 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_W1_MASK(mid) = (hose->sg_pci->size - 1) & 0xfff00000;
mid               382 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_T1_BASE(mid) = virt_to_phys(hose->sg_pci->ptes) >> 8;
mid               384 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_W2_BASE(mid) = __direct_map_base | 1;
mid               385 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_W2_MASK(mid) = (__direct_map_size - 1) & 0xfff00000;
mid               386 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_T2_BASE(mid) = 0;
mid               388 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_W3_BASE(mid) = 0x0;
mid               392 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_HBASE(mid) = 0x0;
mid               395 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_HAE_MEM(mid) = 0U;
mid               397 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_HAE_MEM(mid); /* read it back. */
mid               398 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_HAE_IO(mid) = 0;
mid               400 arch/alpha/kernel/core_mcpcia.c 	*(vuip)MCPCIA_HAE_IO(mid);  /* read it back. */
mid               369 arch/arm/kernel/ptrace.c 	long mid = ARM_MAX_BRP << 1;
mid               371 arch/arm/kernel/ptrace.c 	return num > mid ? mid - num : num;
mid               127 arch/arm/kernel/unwind.c 		const struct unwind_idx *mid = start + ((stop - start) >> 1);
mid               133 arch/arm/kernel/unwind.c 		if (addr_prel31 - ((unsigned long)mid - (unsigned long)start) <
mid               134 arch/arm/kernel/unwind.c 				mid->addr_offset)
mid               135 arch/arm/kernel/unwind.c 			stop = mid;
mid               138 arch/arm/kernel/unwind.c 			addr_prel31 -= ((unsigned long)mid -
mid               140 arch/arm/kernel/unwind.c 			start = mid;
mid               157 arch/arm/kernel/unwind.c 		const struct unwind_idx *mid = start + ((stop - start) >> 1);
mid               159 arch/arm/kernel/unwind.c 		if (mid->addr_offset >= 0x40000000)
mid               161 arch/arm/kernel/unwind.c 			start = mid + 1;
mid               164 arch/arm/kernel/unwind.c 			stop = mid;
mid                88 arch/hexagon/lib/checksum.c 	int i, start, mid, end, mask;
mid               100 arch/hexagon/lib/checksum.c 	mid = len - start;
mid               101 arch/hexagon/lib/checksum.c 	end = mid & 0xF;
mid               102 arch/hexagon/lib/checksum.c 	mid = mid>>4;
mid               103 arch/hexagon/lib/checksum.c 	sum0 = mid << 18;
mid               128 arch/hexagon/lib/checksum.c 	if (mid) {
mid               131 arch/hexagon/lib/checksum.c 		if (mid > 1)
mid               132 arch/hexagon/lib/checksum.c 			for (i = 0; i < mid-1; i++) {
mid               148 arch/hexagon/lib/checksum.c 	ptr4 = (unsigned int *) &ptr[start + (mid * 16) + (end & 8)];
mid               155 arch/hexagon/lib/checksum.c 	ptr2 = (unsigned short *) &ptr[start + (mid * 16) + (end & 12)];
mid               160 arch/hexagon/lib/checksum.c 		sum1 += (u64) ptr[start + (mid * 16) + (end & 14)];
mid               162 arch/hexagon/lib/checksum.c 	ptr8 = (u64 *) &ptr[start + (mid * 16)];
mid              1504 arch/ia64/kernel/unwind.c 	unsigned long lo, hi, mid;
mid              1508 arch/ia64/kernel/unwind.c 		mid = (lo + hi) / 2;
mid              1509 arch/ia64/kernel/unwind.c 		e = &table->array[mid];
mid              1511 arch/ia64/kernel/unwind.c 			hi = mid;
mid              1513 arch/ia64/kernel/unwind.c 			lo = mid + 1;
mid                50 arch/parisc/kernel/unwind.c 	unsigned long lo, hi, mid;
mid                56 arch/parisc/kernel/unwind.c 		mid = (hi - lo) / 2 + lo;
mid                57 arch/parisc/kernel/unwind.c 		e = &table->table[mid];
mid                59 arch/parisc/kernel/unwind.c 			hi = mid - 1;
mid                61 arch/parisc/kernel/unwind.c 			lo = mid + 1;
mid               178 arch/powerpc/xmon/xmon.c static void xmon_print_symbol(unsigned long address, const char *mid,
mid              3531 arch/powerpc/xmon/xmon.c static void xmon_print_symbol(unsigned long address, const char *mid,
mid              3552 arch/powerpc/xmon/xmon.c 		printf("%s%s+%#lx/%#lx", mid, name, offset, size);
mid                63 arch/sh/mm/extable_64.c 	const struct exception_table_entry *mid;
mid                65 arch/sh/mm/extable_64.c 	mid = check_exception_ranges(value);
mid                66 arch/sh/mm/extable_64.c 	if (mid)
mid                67 arch/sh/mm/extable_64.c 		return mid;
mid                24 arch/sparc/include/asm/cpudata_32.h 	int mid;
mid              3377 arch/sparc/include/asm/hypervisor.h 	unsigned long	mid;      /* MAU ID, 1 per core on Niagara */
mid              3384 arch/sparc/include/asm/hypervisor.h 	unsigned long	mid;      /* MAU ID, 1 per core on Niagara */
mid                42 arch/sparc/include/asm/iommu_32.h 	volatile unsigned long mid;        /* IOMMU module-id */
mid               178 arch/sparc/include/asm/oplib_32.h int cpu_find_by_instance(int instance, phandle *prom_node, int *mid);
mid               179 arch/sparc/include/asm/oplib_32.h int cpu_find_by_mid(int mid, phandle *prom_node);
mid                36 arch/sparc/kernel/devices.c 		phandle *prom_node, int *mid)
mid                41 arch/sparc/kernel/devices.c 		if (mid) {
mid                42 arch/sparc/kernel/devices.c 			*mid = prom_getintdefault(nd, cpu_mid_prop(), 0);
mid                44 arch/sparc/kernel/devices.c 				*mid &= 3;
mid                55 arch/sparc/kernel/devices.c 		void *compare_arg, phandle *prom_node, int *mid)
mid                64 arch/sparc/kernel/devices.c 					 prom_node, mid);
mid                83 arch/sparc/kernel/devices.c int cpu_find_by_instance(int instance, phandle *prom_node, int *mid)
mid                86 arch/sparc/kernel/devices.c 			     prom_node, mid);
mid               101 arch/sparc/kernel/devices.c int cpu_find_by_mid(int mid, phandle *prom_node)
mid               103 arch/sparc/kernel/devices.c 	return __cpu_find_by(cpu_mid_compare, (void *)mid,
mid                61 arch/sparc/kernel/smp_32.c 	int mid;
mid                69 arch/sparc/kernel/smp_32.c 	mid = cpu_get_hwmid(cpu_node);
mid                71 arch/sparc/kernel/smp_32.c 	if (mid < 0) {
mid                73 arch/sparc/kernel/smp_32.c 		mid = 0;
mid                75 arch/sparc/kernel/smp_32.c 	cpu_data(id).mid = mid;
mid               232 arch/sparc/kernel/smp_32.c 	int instance, mid;
mid               235 arch/sparc/kernel/smp_32.c 	while (!cpu_find_by_instance(instance, NULL, &mid)) {
mid               236 arch/sparc/kernel/smp_32.c 		if (mid < NR_CPUS) {
mid               237 arch/sparc/kernel/smp_32.c 			set_cpu_possible(mid, true);
mid               238 arch/sparc/kernel/smp_32.c 			set_cpu_present(mid, true);
mid               281 arch/sparc/kernel/sun4d_irq.c 	int cpu = 0, mid;
mid               283 arch/sparc/kernel/sun4d_irq.c 	while (!cpu_find_by_instance(cpu, NULL, &mid)) {
mid               284 arch/sparc/kernel/sun4d_irq.c 		sun4d_load_profile_irq(mid >> 3, 0);
mid               439 arch/sparc/kernel/sun4m_irq.c 	int len, i, mid, num_cpu_iregs;
mid               465 arch/sparc/kernel/sun4m_irq.c 	for (i = 0; !cpu_find_by_instance(i, NULL, &mid); i++)
mid               466 arch/sparc/kernel/sun4m_irq.c 		sbus_writel(~0x17fff, &sun4m_irq_percpu[mid]->clear);
mid                35 arch/x86/kernel/unwind_orc.c 	int *mid = first, *found = first;
mid                47 arch/x86/kernel/unwind_orc.c 		mid = first + ((last - first) / 2);
mid                49 arch/x86/kernel/unwind_orc.c 		if (orc_ip(mid) <= ip) {
mid                50 arch/x86/kernel/unwind_orc.c 			found = mid;
mid                51 arch/x86/kernel/unwind_orc.c 			first = mid + 1;
mid                53 arch/x86/kernel/unwind_orc.c 			last = mid - 1;
mid               158 arch/x86/xen/p2m.c static void p2m_mid_mfn_init(unsigned long *mid, unsigned long *leaf)
mid               163 arch/x86/xen/p2m.c 		mid[i] = virt_to_mfn(leaf);
mid                87 block/badblocks.c 		int mid = (lo + hi) / 2;
mid                88 block/badblocks.c 		sector_t a = BB_OFFSET(p[mid]);
mid                94 block/badblocks.c 			lo = mid;
mid                97 block/badblocks.c 			hi = mid;
mid               192 block/badblocks.c 		int mid = (lo + hi) / 2;
mid               193 block/badblocks.c 		sector_t a = BB_OFFSET(p[mid]);
mid               196 block/badblocks.c 			lo = mid;
mid               198 block/badblocks.c 			hi = mid;
mid               358 block/badblocks.c 		int mid = (lo + hi) / 2;
mid               359 block/badblocks.c 		sector_t a = BB_OFFSET(p[mid]);
mid               362 block/badblocks.c 			lo = mid;
mid               364 block/badblocks.c 			hi = mid;
mid               145 drivers/acpi/acpica/acstruct.h 	} mid;
mid               100 drivers/bluetooth/hci_nokia.c 	u8	mid;
mid               243 drivers/bluetooth/hci_nokia.c 	pkt->mid = NOKIA_ALIVE_REQ;
mid               588 drivers/bluetooth/hci_nokia.c 	if (pkt->mid != NOKIA_ALIVE_RESP) {
mid               590 drivers/bluetooth/hci_nokia.c 			pkt->mid);
mid               109 drivers/cdrom/gdrom.c 	char mid;
mid               177 drivers/clk/clk-max9485.c 			unsigned int mid;
mid               190 drivers/clk/clk-max9485.c 			mid = prev->out + ((curr->out - prev->out) / 2);
mid               192 drivers/clk/clk-max9485.c 			return (mid > rate) ? prev->out : curr->out;
mid                85 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c 	const int32_t mid = 1;
mid               127 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c 	yclk[mid] = vbios->mid_yclk;
mid              1545 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c 		else if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation, 100),yclk[mid]),bw_div(bw_int_to_fixed(vbios->dram_channel_width_in_bits),bw_int_to_fixed(8))),bw_int_to_fixed(vbios->number_of_dram_channels)))
mid              1546 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c 				&& bw_ltn(bw_mul(data->required_dram_bandwidth_gbyte_per_second, bw_int_to_fixed(1000)), bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[mid]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels))) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[mid][s_high], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[mid][s_high], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[mid][s_high], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[mid][s_high], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[mid][s_high], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[mid][s_high], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[mid][s_high], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[mid][s_high], vbios->high_voltage_max_dispclk) && data->num_displays_with_margin[mid][s_high] == number_of_displays_enabled_with_margin))) {
mid              1548 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c 			data->y_clk_level = mid;
mid              1549 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c 			data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[mid]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels));
mid              1588 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c 		else if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation, 100),sclk[mid]),vbios->data_return_bus_width))
mid               108 drivers/gpu/drm/i915/gt/intel_workarounds.c 		unsigned int mid = start + (end - start) / 2;
mid               110 drivers/gpu/drm/i915/gt/intel_workarounds.c 		if (i915_mmio_reg_offset(wal->list[mid].reg) < addr) {
mid               111 drivers/gpu/drm/i915/gt/intel_workarounds.c 			start = mid + 1;
mid               112 drivers/gpu/drm/i915/gt/intel_workarounds.c 		} else if (i915_mmio_reg_offset(wal->list[mid].reg) > addr) {
mid               113 drivers/gpu/drm/i915/gt/intel_workarounds.c 			end = mid;
mid               115 drivers/gpu/drm/i915/gt/intel_workarounds.c 			wa_ = &wal->list[mid];
mid               496 drivers/gpu/drm/i915/gvt/handlers.c 		int mid = (left + right)/2;
mid               498 drivers/gpu/drm/i915/gvt/handlers.c 		if (reg > array[mid].reg)
mid               499 drivers/gpu/drm/i915/gvt/handlers.c 			left = mid + 1;
mid               500 drivers/gpu/drm/i915/gvt/handlers.c 		else if (reg < array[mid].reg)
mid               501 drivers/gpu/drm/i915/gvt/handlers.c 			right = mid;
mid              1102 drivers/gpu/drm/i915/i915_cmd_parser.c 		int mid = start + (end - start) / 2;
mid              1103 drivers/gpu/drm/i915/i915_cmd_parser.c 		int ret = addr - i915_mmio_reg_offset(table[mid].addr);
mid              1105 drivers/gpu/drm/i915/i915_cmd_parser.c 			end = mid;
mid              1107 drivers/gpu/drm/i915/i915_cmd_parser.c 			start = mid + 1;
mid              1109 drivers/gpu/drm/i915/i915_cmd_parser.c 			return &table[mid];
mid              1151 drivers/gpu/drm/radeon/radeon_display.c 			uint32_t mid = (min_ref_div + max_ref_div) / 2;
mid              1152 drivers/gpu/drm/radeon/radeon_display.c 			uint32_t pll_in = pll->reference_freq / mid;
mid              1154 drivers/gpu/drm/radeon/radeon_display.c 				max_ref_div = mid;
mid              1156 drivers/gpu/drm/radeon/radeon_display.c 				min_ref_div = mid;
mid                62 drivers/gpu/drm/radeon/radeon_vce.c 	uint8_t start, mid, end;
mid               107 drivers/gpu/drm/radeon/radeon_vce.c 	if (sscanf(c, "%2hhd.%2hhd.%2hhd]", &start, &mid, &end) != 3)
mid               126 drivers/gpu/drm/radeon/radeon_vce.c 		 start, mid, end, rdev->vce.fb_version);
mid               128 drivers/gpu/drm/radeon/radeon_vce.c 	rdev->vce.fw_version = (start << 24) | (mid << 16) | (end << 8);
mid               478 drivers/hwmon/ntc_thermistor.c 	int start, end, mid;
mid               502 drivers/hwmon/ntc_thermistor.c 		mid = start + (end - start) / 2;
mid               512 drivers/hwmon/ntc_thermistor.c 		if (ohm >= data->comp[mid].ohm) {
mid               513 drivers/hwmon/ntc_thermistor.c 			end = mid;
mid               515 drivers/hwmon/ntc_thermistor.c 			start = mid + 1;
mid               462 drivers/hwmon/pmbus/adm1275.c 	const struct i2c_device_id *mid;
mid               488 drivers/hwmon/pmbus/adm1275.c 	for (mid = adm1275_id; mid->name[0]; mid++) {
mid               489 drivers/hwmon/pmbus/adm1275.c 		if (!strncasecmp(mid->name, block_buffer, strlen(mid->name)))
mid               492 drivers/hwmon/pmbus/adm1275.c 	if (!mid->name[0]) {
mid               497 drivers/hwmon/pmbus/adm1275.c 	if (id->driver_data != mid->driver_data)
mid               500 drivers/hwmon/pmbus/adm1275.c 			   id->name, mid->name);
mid               522 drivers/hwmon/pmbus/adm1275.c 	data->id = mid->driver_data;
mid               311 drivers/hwmon/pmbus/ucd9000.c 			       const struct i2c_device_id *mid,
mid               316 drivers/hwmon/pmbus/ucd9000.c 	switch (mid->driver_data) {
mid               353 drivers/hwmon/pmbus/ucd9000.c 			       const struct i2c_device_id *mid,
mid               420 drivers/hwmon/pmbus/ucd9000.c 				const struct i2c_device_id *mid,
mid               441 drivers/hwmon/pmbus/ucd9000.c 	if (mid->driver_data == ucd9090 || mid->driver_data == ucd90160 ||
mid               442 drivers/hwmon/pmbus/ucd9000.c 	    mid->driver_data == ucd90910) {
mid               468 drivers/hwmon/pmbus/ucd9000.c 				const struct i2c_device_id *mid,
mid               481 drivers/hwmon/pmbus/ucd9000.c 	const struct i2c_device_id *mid;
mid               499 drivers/hwmon/pmbus/ucd9000.c 	for (mid = ucd9000_id; mid->name[0]; mid++) {
mid               500 drivers/hwmon/pmbus/ucd9000.c 		if (!strncasecmp(mid->name, block_buffer, strlen(mid->name)))
mid               503 drivers/hwmon/pmbus/ucd9000.c 	if (!mid->name[0]) {
mid               513 drivers/hwmon/pmbus/ucd9000.c 	if (chip != ucd9000 && chip != mid->driver_data)
mid               516 drivers/hwmon/pmbus/ucd9000.c 			   id->name, mid->name);
mid               572 drivers/hwmon/pmbus/ucd9000.c 	if (mid->driver_data == ucd90124) {
mid               589 drivers/hwmon/pmbus/ucd9000.c 	ucd9000_probe_gpio(client, mid, data);
mid               591 drivers/hwmon/pmbus/ucd9000.c 	ret = pmbus_do_probe(client, mid, info);
mid               595 drivers/hwmon/pmbus/ucd9000.c 	ret = ucd9000_init_debugfs(client, mid, data);
mid                79 drivers/hwmon/pmbus/ucd9200.c 	const struct i2c_device_id *mid;
mid                97 drivers/hwmon/pmbus/ucd9200.c 	for (mid = ucd9200_id; mid->name[0]; mid++) {
mid                98 drivers/hwmon/pmbus/ucd9200.c 		if (!strncasecmp(mid->name, block_buffer, strlen(mid->name)))
mid               101 drivers/hwmon/pmbus/ucd9200.c 	if (!mid->name[0]) {
mid               111 drivers/hwmon/pmbus/ucd9200.c 	if (chip != ucd9200 && chip != mid->driver_data)
mid               114 drivers/hwmon/pmbus/ucd9200.c 			   id->name, mid->name);
mid               192 drivers/hwmon/pmbus/ucd9200.c 	if (mid->driver_data == ucd9240)
mid               195 drivers/hwmon/pmbus/ucd9200.c 	return pmbus_do_probe(client, mid, info);
mid               310 drivers/hwmon/pmbus/zl6100.c 	const struct i2c_device_id *mid;
mid               326 drivers/hwmon/pmbus/zl6100.c 	mid = NULL;
mid               327 drivers/hwmon/pmbus/zl6100.c 	for (mid = zl6100_id; mid->name[0]; mid++) {
mid               328 drivers/hwmon/pmbus/zl6100.c 		if (!strncasecmp(mid->name, device_id, strlen(mid->name)))
mid               331 drivers/hwmon/pmbus/zl6100.c 	if (!mid->name[0]) {
mid               335 drivers/hwmon/pmbus/zl6100.c 	if (id->driver_data != mid->driver_data)
mid               338 drivers/hwmon/pmbus/zl6100.c 			   id->name, mid->name);
mid               345 drivers/hwmon/pmbus/zl6100.c 	data->id = mid->driver_data;
mid               391 drivers/hwmon/pmbus/zl6100.c 	return pmbus_do_probe(client, mid, info);
mid               281 drivers/ide/ide-cd_verbose.c 		int lo = 0, mid, hi = ARRAY_SIZE(sense_data_texts);
mid               290 drivers/ide/ide-cd_verbose.c 			mid = (lo + hi) / 2;
mid               291 drivers/ide/ide-cd_verbose.c 			if (sense_data_texts[mid].asc_ascq == key ||
mid               292 drivers/ide/ide-cd_verbose.c 			    sense_data_texts[mid].asc_ascq == (0xff0000|key)) {
mid               293 drivers/ide/ide-cd_verbose.c 				s = sense_data_texts[mid].text;
mid               295 drivers/ide/ide-cd_verbose.c 			} else if (sense_data_texts[mid].asc_ascq > key)
mid               296 drivers/ide/ide-cd_verbose.c 				hi = mid;
mid               298 drivers/ide/ide-cd_verbose.c 				lo = mid + 1;
mid               313 drivers/ide/ide-cd_verbose.c 		int lo = 0, mid, hi = ARRAY_SIZE(packet_command_texts);
mid               317 drivers/ide/ide-cd_verbose.c 			mid = (lo + hi) / 2;
mid               318 drivers/ide/ide-cd_verbose.c 			if (packet_command_texts[mid].packet_command ==
mid               320 drivers/ide/ide-cd_verbose.c 				s = packet_command_texts[mid].text;
mid               323 drivers/ide/ide-cd_verbose.c 			if (packet_command_texts[mid].packet_command >
mid               325 drivers/ide/ide-cd_verbose.c 				hi = mid;
mid               327 drivers/ide/ide-cd_verbose.c 				lo = mid + 1;
mid               278 drivers/iio/light/lv0104cs.c 	int floor, ceil, mid;
mid               287 drivers/iio/light/lv0104cs.c 		mid = (floor + ceil) / 2;
mid               290 drivers/iio/light/lv0104cs.c 		if (calibscale >= floor && calibscale < mid) {
mid               296 drivers/iio/light/lv0104cs.c 		if (calibscale >= mid && calibscale <= ceil) {
mid               183 drivers/iio/temperature/tmp006.c 	int mid, did;
mid               185 drivers/iio/temperature/tmp006.c 	mid = i2c_smbus_read_word_swapped(client, TMP006_MANUFACTURER_ID);
mid               186 drivers/iio/temperature/tmp006.c 	if (mid < 0)
mid               193 drivers/iio/temperature/tmp006.c 	return mid == TMP006_MANUFACTURER_MAGIC && did == TMP006_DEVICE_MAGIC;
mid               217 drivers/iommu/msm_iommu.c 	int mid, ctx, i;
mid               220 drivers/iommu/msm_iommu.c 		mid = master->mids[i];
mid               223 drivers/iommu/msm_iommu.c 		SET_M2VCBR_N(iommu->base, mid, 0);
mid               227 drivers/iommu/msm_iommu.c 		SET_VMID(iommu->base, mid, 0);
mid               230 drivers/iommu/msm_iommu.c 		SET_CBNDX(iommu->base, mid, ctx);
mid               239 drivers/iommu/msm_iommu.c 		SET_NSCFG(iommu->base, mid, 3);
mid               565 drivers/md/dm-stats.c 				unsigned mid = (lo + hi) / 2;
mid               566 drivers/md/dm-stats.c 				if (s->histogram_boundaries[mid - 1] > duration) {
mid               567 drivers/md/dm-stats.c 					hi = mid;
mid               569 drivers/md/dm-stats.c 					lo = mid;
mid                26 drivers/md/md-linear.c 	int lo, mid, hi;
mid                39 drivers/md/md-linear.c 		mid = (hi + lo) / 2;
mid                40 drivers/md/md-linear.c 		if (sector < conf->disks[mid].end_sector)
mid                41 drivers/md/md-linear.c 			hi = mid;
mid                43 drivers/md/md-linear.c 			lo = mid + 1;
mid                46 drivers/md/persistent-data/dm-btree.c 		int mid = lo + ((hi - lo) / 2);
mid                47 drivers/md/persistent-data/dm-btree.c 		uint64_t mid_key = le64_to_cpu(n->keys[mid]);
mid                50 drivers/md/persistent-data/dm-btree.c 			return mid;
mid                53 drivers/md/persistent-data/dm-btree.c 			lo = mid;
mid                55 drivers/md/persistent-data/dm-btree.c 			hi = mid;
mid              1977 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	unsigned char mid;
mid              1984 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	mid = cd->module_id;
mid              1985 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	fname = (mid < ARRAY_SIZE(module_names)) ? module_names[mid] : NULL;
mid              1989 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 			   mid,
mid              1995 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		   mid, fname,
mid              2000 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	if (!i2ccnt && ((p = (mid < ARRAY_SIZE(module_i2c_addresses)) ?
mid              2001 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 			 module_i2c_addresses[mid] : NULL) != NULL)) {
mid              2008 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 				   mid);
mid              2015 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 			   mid, fname, hdw->hdw_desc->description);
mid              2022 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 			   mid, i2caddr[0]);
mid              2028 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 			   mid);
mid              2036 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 			   mid, fname, hdw->hdw_desc->description);
mid              2043 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	sd->grp_id = mid;
mid              2049 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	switch (mid) {
mid              2052 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		hdw->decoder_client_id = mid;
mid               501 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	u32 val, lo, mid, hi, enabled = cmac->instance->enabled;
mid               525 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	mid = ((u32) ma[3] << 8) | (u32) ma[2];
mid               534 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_SA_31_16, mid);
mid               539 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_SA_31_16, mid);
mid               551 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_MID, mid);
mid                94 drivers/net/ethernet/mellanox/mlxsw/reg.h MLXSW_ITEM32(reg, smid, mid, 0x00, 0, 16);
mid               108 drivers/net/ethernet/mellanox/mlxsw/reg.h static inline void mlxsw_reg_smid_pack(char *payload, u16 mid,
mid               113 drivers/net/ethernet/mellanox/mlxsw/reg.h 	mlxsw_reg_smid_mid_set(payload, mid);
mid               520 drivers/net/ethernet/mellanox/mlxsw/reg.h 		      enum mlxsw_reg_sfd_rec_action action, u16 mid)
mid               526 drivers/net/ethernet/mellanox/mlxsw/reg.h 	mlxsw_reg_sfd_mc_mid_set(payload, rec_index, mid);
mid              1071 drivers/net/ethernet/mellanox/mlxsw/reg.h MLXSW_ITEM32(reg, sfgc, mid, 0x08, 0, 16);
mid               100 drivers/net/ethernet/mellanox/mlxsw/spectrum.h 	u16 mid;
mid               795 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	struct mlxsw_sp_mid *mid;
mid               797 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	list_for_each_entry(mid, &bridge_device->mids_list, list)
mid               798 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		mlxsw_sp_smid_router_port_set(mlxsw_sp, mid->mid, add);
mid              1457 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	struct mlxsw_sp_mid *mid;
mid              1459 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	list_for_each_entry(mid, &bridge_device->mids_list, list) {
mid              1460 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		if (ether_addr_equal(mid->addr, addr) && mid->fid == fid)
mid              1461 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 			return mid;
mid              1509 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 			    struct mlxsw_sp_mid *mid,
mid              1529 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	bitmap_copy(flood_bitmap,  mid->ports_in_mid, num_of_ports);
mid              1532 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	mid->mid = mid_idx;
mid              1539 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_sp_port_mdb_op(mlxsw_sp, mid->addr, mid->fid, mid_idx,
mid              1545 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	mid->in_hw = true;
mid              1550 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 					struct mlxsw_sp_mid *mid)
mid              1552 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	if (!mid->in_hw)
mid              1555 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	clear_bit(mid->mid, mlxsw_sp->bridge->mids_bitmap);
mid              1556 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	mid->in_hw = false;
mid              1557 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	return mlxsw_sp_port_mdb_op(mlxsw_sp, mid->addr, mid->fid, mid->mid,
mid              1567 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	struct mlxsw_sp_mid *mid;
mid              1570 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	mid = kzalloc(sizeof(*mid), GFP_KERNEL);
mid              1571 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	if (!mid)
mid              1577 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	mid->ports_in_mid = kzalloc(alloc_size, GFP_KERNEL);
mid              1578 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	if (!mid->ports_in_mid)
mid              1581 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	ether_addr_copy(mid->addr, addr);
mid              1582 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	mid->fid = fid;
mid              1583 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	mid->in_hw = false;
mid              1588 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	if (!mlxsw_sp_mc_write_mdb_entry(mlxsw_sp, mid, bridge_device))
mid              1592 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	list_add_tail(&mid->list, &bridge_device->mids_list);
mid              1593 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	return mid;
mid              1596 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	kfree(mid->ports_in_mid);
mid              1598 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	kfree(mid);
mid              1603 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 					 struct mlxsw_sp_mid *mid)
mid              1608 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	clear_bit(mlxsw_sp_port->local_port, mid->ports_in_mid);
mid              1609 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	if (bitmap_empty(mid->ports_in_mid,
mid              1611 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		err = mlxsw_sp_mc_remove_mdb_entry(mlxsw_sp, mid);
mid              1612 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		list_del(&mid->list);
mid              1613 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		kfree(mid->ports_in_mid);
mid              1614 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		kfree(mid);
mid              1629 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	struct mlxsw_sp_mid *mid;
mid              1649 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	mid = __mlxsw_sp_mc_get(bridge_device, mdb->addr, fid_index);
mid              1650 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	if (!mid) {
mid              1651 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		mid = __mlxsw_sp_mc_alloc(mlxsw_sp, bridge_device, mdb->addr,
mid              1653 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		if (!mid) {
mid              1658 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	set_bit(mlxsw_sp_port->local_port, mid->ports_in_mid);
mid              1666 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_sp_port_smid_set(mlxsw_sp_port, mid->mid, true);
mid              1675 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	mlxsw_sp_port_remove_from_mid(mlxsw_sp_port, mid);
mid              1685 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	struct mlxsw_sp_mid *mid;
mid              1690 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	list_for_each_entry(mid, &bridge_device->mids_list, list) {
mid              1692 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 			mlxsw_sp_mc_write_mdb_entry(mlxsw_sp, mid,
mid              1695 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 			mlxsw_sp_mc_remove_mdb_entry(mlxsw_sp, mid);
mid              1705 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	struct mlxsw_sp_mid *mid;
mid              1709 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	list_for_each_entry(mid, &bridge_device->mids_list, list) {
mid              1710 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		if (!test_bit(mlxsw_sp_port->local_port, mid->ports_in_mid))
mid              1711 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 			mlxsw_sp_port_smid_set(mlxsw_sp_port, mid->mid, add);
mid              1826 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 			struct mlxsw_sp_mid *mid)
mid              1833 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		err = mlxsw_sp_port_smid_set(mlxsw_sp_port, mid->mid, false);
mid              1838 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	err = mlxsw_sp_port_remove_from_mid(mlxsw_sp_port, mid);
mid              1854 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	struct mlxsw_sp_mid *mid;
mid              1870 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	mid = __mlxsw_sp_mc_get(bridge_device, mdb->addr, fid_index);
mid              1871 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	if (!mid) {
mid              1876 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	return __mlxsw_sp_port_mdb_del(mlxsw_sp_port, bridge_port, mid);
mid              1884 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	struct mlxsw_sp_mid *mid, *tmp;
mid              1888 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 	list_for_each_entry_safe(mid, tmp, &bridge_device->mids_list, list) {
mid              1889 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 		if (test_bit(mlxsw_sp_port->local_port, mid->ports_in_mid)) {
mid              1891 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 						mid);
mid              1894 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c 			mlxsw_sp_port_smid_set(mlxsw_sp_port, mid->mid, false);
mid               459 drivers/net/wireless/ath/wil6210/cfg80211.c 	rc = wmi_call(wil, WMI_NOTIFY_REQ_CMDID, vif->mid, &cmd, sizeof(cmd),
mid               471 drivers/net/wireless/ath/wil6210/cfg80211.c 		    cid, vif->mid, le16_to_cpu(reply.evt.bf_mcs),
mid               532 drivers/net/wireless/ath/wil6210/cfg80211.c 	int cid = wil_find_cid(wil, vif->mid, mac);
mid               535 drivers/net/wireless/ath/wil6210/cfg80211.c 		     vif->mid);
mid               547 drivers/net/wireless/ath/wil6210/cfg80211.c int wil_find_cid_by_idx(struct wil6210_priv *wil, u8 mid, int idx)
mid               554 drivers/net/wireless/ath/wil6210/cfg80211.c 		if (wil->sta[i].mid != mid)
mid               571 drivers/net/wireless/ath/wil6210/cfg80211.c 	int cid = wil_find_cid_by_idx(wil, vif->mid, idx);
mid               578 drivers/net/wireless/ath/wil6210/cfg80211.c 		     vif->mid);
mid               718 drivers/net/wireless/ath/wil6210/cfg80211.c 		ndev->dev_addr[0] = (ndev->dev_addr[0] ^ (1 << vif->mid)) |
mid               729 drivers/net/wireless/ath/wil6210/cfg80211.c 		 vif->mid, type, wdev->address);
mid               782 drivers/net/wireless/ath/wil6210/cfg80211.c 	if (vif->mid == 0) {
mid               792 drivers/net/wireless/ath/wil6210/cfg80211.c 		 vif->mid, wdev->iftype, wdev->address);
mid               794 drivers/net/wireless/ath/wil6210/cfg80211.c 	wil_vif_remove(wil, vif->mid);
mid               861 drivers/net/wireless/ath/wil6210/cfg80211.c 	if (vif->mid != 0 && wil_has_active_ifaces(wil, true, false)) {
mid               864 drivers/net/wireless/ath/wil6210/cfg80211.c 		rc = wmi_port_delete(wil, vif->mid);
mid               867 drivers/net/wireless/ath/wil6210/cfg80211.c 		rc = wmi_port_allocate(wil, vif->mid, ndev->dev_addr, type);
mid               928 drivers/net/wireless/ath/wil6210/cfg80211.c 			if (vif->mid == 0)
mid               932 drivers/net/wireless/ath/wil6210/cfg80211.c 				if (vif->mid == 0)
mid              1002 drivers/net/wireless/ath/wil6210/cfg80211.c 	if (vif->mid == 0)
mid              1004 drivers/net/wireless/ath/wil6210/cfg80211.c 	rc = wmi_send(wil, WMI_START_SCAN_CMDID, vif->mid,
mid              1011 drivers/net/wireless/ath/wil6210/cfg80211.c 		if (vif->mid == 0)
mid              1162 drivers/net/wireless/ath/wil6210/cfg80211.c 	rc = wmi_send(wil, WMI_FT_AUTH_CMDID, vif->mid,
mid              1216 drivers/net/wireless/ath/wil6210/cfg80211.c 	wil_dbg_misc(wil, "connect, mid=%d\n", vif->mid);
mid              1355 drivers/net/wireless/ath/wil6210/cfg80211.c 	rc = wmi_send(wil, WMI_CONNECT_CMDID, vif->mid, &conn, sizeof(conn));
mid              1383 drivers/net/wireless/ath/wil6210/cfg80211.c 		     reason_code, vif->mid);
mid              1392 drivers/net/wireless/ath/wil6210/cfg80211.c 	rc = wmi_call(wil, WMI_DISCONNECT_CMDID, vif->mid, NULL, 0,
mid              1526 drivers/net/wireless/ath/wil6210/cfg80211.c wil_find_sta_by_key_usage(struct wil6210_priv *wil, u8 mid,
mid              1536 drivers/net/wireless/ath/wil6210/cfg80211.c 		cid = wil_find_cid(wil, mid, mac_addr);
mid              1538 drivers/net/wireless/ath/wil6210/cfg80211.c 		cid = wil_find_cid_by_idx(wil, mid, 0);
mid              1620 drivers/net/wireless/ath/wil6210/cfg80211.c 	struct wil_sta_info *cs = wil_find_sta_by_key_usage(wil, vif->mid,
mid              1695 drivers/net/wireless/ath/wil6210/cfg80211.c 	struct wil_sta_info *cs = wil_find_sta_by_key_usage(wil, vif->mid,
mid              1939 drivers/net/wireless/ath/wil6210/cfg80211.c 	wil_dbg_misc(wil, "start_ap: mid=%d, is_go=%d\n", vif->mid, is_go);
mid              2081 drivers/net/wireless/ath/wil6210/cfg80211.c 	wil_dbg_misc(wil, "change_beacon, mid=%d\n", vif->mid);
mid              2183 drivers/net/wireless/ath/wil6210/cfg80211.c 	wil_dbg_misc(wil, "stop_ap, mid=%d\n", vif->mid);
mid              2223 drivers/net/wireless/ath/wil6210/cfg80211.c 		     mac, params->aid, vif->mid,
mid              2247 drivers/net/wireless/ath/wil6210/cfg80211.c 		     params->mac, params->reason_code, vif->mid);
mid              2269 drivers/net/wireless/ath/wil6210/cfg80211.c 		     vif->mid);
mid              2279 drivers/net/wireless/ath/wil6210/cfg80211.c 	cid = wil_find_cid(wil, vif->mid, mac);
mid              2376 drivers/net/wireless/ath/wil6210/cfg80211.c 	int cid = wil_find_cid(wil, vif->mid, peer);
mid              2379 drivers/net/wireless/ath/wil6210/cfg80211.c 		     peer, cid, vif->mid);
mid              2409 drivers/net/wireless/ath/wil6210/cfg80211.c 			     vif->mid, vif->ap_isolate, params->ap_isolate);
mid              2482 drivers/net/wireless/ath/wil6210/cfg80211.c 	if (vif->mid != 0)
mid              2533 drivers/net/wireless/ath/wil6210/cfg80211.c 	if (vif->mid != 0)
mid              2555 drivers/net/wireless/ath/wil6210/cfg80211.c 	wil_dbg_misc(wil, "update ft ies, mid=%d\n", vif->mid);
mid              2585 drivers/net/wireless/ath/wil6210/cfg80211.c 	rc = wmi_send(wil, WMI_FT_REASSOC_CMDID, vif->mid,
mid              2884 drivers/net/wireless/ath/wil6210/cfg80211.c 	rc = wmi_call(wil, WMI_GET_RF_SECTOR_PARAMS_CMDID, vif->mid,
mid              3045 drivers/net/wireless/ath/wil6210/cfg80211.c 	rc = wmi_call(wil, WMI_SET_RF_SECTOR_PARAMS_CMDID, vif->mid,
mid              3095 drivers/net/wireless/ath/wil6210/cfg80211.c 		cid = wil_find_cid(wil, vif->mid, mac_addr);
mid              3110 drivers/net/wireless/ath/wil6210/cfg80211.c 	rc = wmi_call(wil, WMI_GET_SELECTED_RF_SECTOR_INDEX_CMDID, vif->mid,
mid              3143 drivers/net/wireless/ath/wil6210/cfg80211.c 					  u8 mid, u16 sector_index,
mid              3159 drivers/net/wireless/ath/wil6210/cfg80211.c 	rc = wmi_call(wil, WMI_SET_SELECTED_RF_SECTOR_INDEX_CMDID, mid,
mid              3214 drivers/net/wireless/ath/wil6210/cfg80211.c 			cid = wil_find_cid(wil, vif->mid, mac_addr);
mid              3236 drivers/net/wireless/ath/wil6210/cfg80211.c 		rc = wil_rf_sector_wmi_set_selected(wil, vif->mid, sector_index,
mid              3241 drivers/net/wireless/ath/wil6210/cfg80211.c 			wil, vif->mid, WMI_INVALID_RF_SECTOR_INDEX,
mid              3245 drivers/net/wireless/ath/wil6210/cfg80211.c 				if (wil->sta[i].mid != vif->mid)
mid              3248 drivers/net/wireless/ath/wil6210/cfg80211.c 					wil, vif->mid,
mid               831 drivers/net/wireless/ath/wil6210/debugfs.c 			wmi_addba(wil, txdata->mid, p1, p2, p3);
mid               835 drivers/net/wireless/ath/wil6210/debugfs.c 			wmi_delba_tx(wil, txdata->mid, p1, p2);
mid               852 drivers/net/wireless/ath/wil6210/debugfs.c 		wmi_delba_rx(wil, sta->mid, p1, p2, p3);
mid              1042 drivers/net/wireless/ath/wil6210/debugfs.c 	rc1 = wmi_send(wil, cmdid, vif->mid, cmd, cmdlen);
mid              1310 drivers/net/wireless/ath/wil6210/debugfs.c 		rc = wmi_call(wil, WMI_NOTIFY_REQ_CMDID, vif->mid,
mid              1431 drivers/net/wireless/ath/wil6210/debugfs.c 		u8 mid;
mid              1444 drivers/net/wireless/ath/wil6210/debugfs.c 		mid = (p->status != wil_sta_unused) ? p->mid : U8_MAX;
mid              1446 drivers/net/wireless/ath/wil6210/debugfs.c 			   i, mid, p->addr, status);
mid              1451 drivers/net/wireless/ath/wil6210/debugfs.c 		vif = (mid < GET_MAX_VIFS(wil)) ? wil->vifs[mid] : NULL;
mid              1633 drivers/net/wireless/ath/wil6210/debugfs.c 		u8 mid;
mid              1648 drivers/net/wireless/ath/wil6210/debugfs.c 		mid = (p->status != wil_sta_unused) ? p->mid : U8_MAX;
mid              1649 drivers/net/wireless/ath/wil6210/debugfs.c 		if (mid < GET_MAX_VIFS(wil)) {
mid              1650 drivers/net/wireless/ath/wil6210/debugfs.c 			struct wil6210_vif *vif = wil->vifs[mid];
mid              1659 drivers/net/wireless/ath/wil6210/debugfs.c 				   i, p->addr, p->stats.ft_roams, mid, aid);
mid              1662 drivers/net/wireless/ath/wil6210/debugfs.c 				   p->addr, status, mid, aid);
mid              1742 drivers/net/wireless/ath/wil6210/debugfs.c 		u8 mid;
mid              1759 drivers/net/wireless/ath/wil6210/debugfs.c 		mid = (p->status != wil_sta_unused) ? p->mid : U8_MAX;
mid              1761 drivers/net/wireless/ath/wil6210/debugfs.c 			   mid, aid);
mid              1915 drivers/net/wireless/ath/wil6210/debugfs.c 		if (wil->sta[i].mid != vif->mid)
mid               223 drivers/net/wireless/ath/wil6210/main.c 	txdata->mid = U8_MAX;
mid               240 drivers/net/wireless/ath/wil6210/main.c static bool wil_vif_is_connected(struct wil6210_priv *wil, u8 mid)
mid               245 drivers/net/wireless/ath/wil6210/main.c 		if (wil->sta[i].mid == mid &&
mid               267 drivers/net/wireless/ath/wil6210/main.c 		     cid, sta->mid, sta->status);
mid               270 drivers/net/wireless/ath/wil6210/main.c 		if (vif->mid != sta->mid) {
mid               272 drivers/net/wireless/ath/wil6210/main.c 				vif->mid);
mid               285 drivers/net/wireless/ath/wil6210/main.c 		sta->mid = U8_MAX;
mid               339 drivers/net/wireless/ath/wil6210/main.c 		cid = wil_find_cid(wil, vif->mid, bssid);
mid               381 drivers/net/wireless/ath/wil6210/main.c 		if (!wil_vif_is_connected(wil, vif->mid)) {
mid               405 drivers/net/wireless/ath/wil6210/main.c 		     cid, sta->mid, sta->status);
mid               410 drivers/net/wireless/ath/wil6210/main.c 	if (vif->mid != sta->mid) {
mid               411 drivers/net/wireless/ath/wil6210/main.c 		wil_err(wil, "STA MID mismatch with VIF MID(%d)\n", vif->mid);
mid               453 drivers/net/wireless/ath/wil6210/main.c 		cid = wil_find_cid(wil, vif->mid, bssid);
mid               493 drivers/net/wireless/ath/wil6210/main.c 	rc = wmi_call(wil, WMI_DISCONNECT_CMDID, vif->mid, NULL, 0,
mid               640 drivers/net/wireless/ath/wil6210/main.c 		    cid, vif->mid, ringid);
mid               646 drivers/net/wireless/ath/wil6210/main.c 			cid, vif->mid, ringid);
mid               705 drivers/net/wireless/ath/wil6210/main.c 		wil->sta[i].mid = U8_MAX;
mid              1569 drivers/net/wireless/ath/wil6210/main.c 		if (vif->mid) {
mid              1572 drivers/net/wireless/ath/wil6210/main.c 			rc = wmi_port_allocate(wil, vif->mid, ndev->dev_addr,
mid              1940 drivers/net/wireless/ath/wil6210/main.c int wil_find_cid(struct wil6210_priv *wil, u8 mid, const u8 *mac)
mid              1946 drivers/net/wireless/ath/wil6210/main.c 		if (wil->sta[i].mid == mid &&
mid               158 drivers/net/wireless/ath/wil6210/netdev.c 		    txdata->mid >= GET_MAX_VIFS(wil))
mid               161 drivers/net/wireless/ath/wil6210/netdev.c 		vif = wil->vifs[txdata->mid];
mid               163 drivers/net/wireless/ath/wil6210/netdev.c 			wil_dbg_txrx(wil, "Invalid MID %d\n", txdata->mid);
mid               315 drivers/net/wireless/ath/wil6210/netdev.c 	u8 mid;
mid               317 drivers/net/wireless/ath/wil6210/netdev.c 	mid = wil_vif_find_free_mid(wil);
mid               318 drivers/net/wireless/ath/wil6210/netdev.c 	if (mid == U8_MAX) {
mid               329 drivers/net/wireless/ath/wil6210/netdev.c 	if (mid == 0) {
mid               339 drivers/net/wireless/ath/wil6210/netdev.c 	vif->mid = mid;
mid               427 drivers/net/wireless/ath/wil6210/netdev.c 	if (wil->vifs[vif->mid]) {
mid               429 drivers/net/wireless/ath/wil6210/netdev.c 			vif->mid);
mid               432 drivers/net/wireless/ath/wil6210/netdev.c 	if (any_active && vif->mid != 0) {
mid               433 drivers/net/wireless/ath/wil6210/netdev.c 		rc = wmi_port_allocate(wil, vif->mid, ndev->dev_addr,
mid               441 drivers/net/wireless/ath/wil6210/netdev.c 		if (any_active && vif->mid != 0)
mid               442 drivers/net/wireless/ath/wil6210/netdev.c 			wmi_port_delete(wil, vif->mid);
mid               446 drivers/net/wireless/ath/wil6210/netdev.c 	wil->vifs[vif->mid] = vif;
mid               499 drivers/net/wireless/ath/wil6210/netdev.c void wil_vif_remove(struct wil6210_priv *wil, u8 mid)
mid               506 drivers/net/wireless/ath/wil6210/netdev.c 	if (mid >= GET_MAX_VIFS(wil)) {
mid               507 drivers/net/wireless/ath/wil6210/netdev.c 		wil_err(wil, "invalid MID: %d\n", mid);
mid               511 drivers/net/wireless/ath/wil6210/netdev.c 	vif = wil->vifs[mid];
mid               513 drivers/net/wireless/ath/wil6210/netdev.c 		wil_err(wil, "MID %d not registered\n", mid);
mid               527 drivers/net/wireless/ath/wil6210/netdev.c 	if (any_active && vif->mid != 0)
mid               528 drivers/net/wireless/ath/wil6210/netdev.c 		wmi_port_delete(wil, vif->mid);
mid               532 drivers/net/wireless/ath/wil6210/netdev.c 	wil->vifs[mid] = NULL;
mid               177 drivers/net/wireless/ath/wil6210/p2p.c 	if (vif->mid == 0)
mid               236 drivers/net/wireless/ath/wil6210/p2p.c 	if (vif->mid == 0)
mid               265 drivers/net/wireless/ath/wil6210/p2p.c 	if (vif->mid == 0)
mid               294 drivers/net/wireless/ath/wil6210/p2p.c 			if (vif->mid == 0)
mid               333 drivers/net/wireless/ath/wil6210/p2p.c 		if (vif->mid == 0)
mid               339 drivers/net/wireless/ath/wil6210/p2p.c 		if (vif->mid == 0)
mid               185 drivers/net/wireless/ath/wil6210/pcie_bus.c 			wil_vif_remove(wil, vif->mid);
mid               192 drivers/net/wireless/ath/wil6210/pmc.c 					vif->mid,
mid               262 drivers/net/wireless/ath/wil6210/pmc.c 				wmi_send(wil, WMI_PMC_CMDID, vif->mid,
mid                98 drivers/net/wireless/ath/wil6210/rx_reorder.c 	int tid, cid, mid, mcast, retry;
mid               105 drivers/net/wireless/ath/wil6210/rx_reorder.c 	wil->txrx_ops.get_reorder_params(wil, skb, &tid, &cid, &mid, &seq,
mid               110 drivers/net/wireless/ath/wil6210/rx_reorder.c 		     mid, cid, tid, seq, mcast);
mid               112 drivers/net/wireless/ath/wil6210/rx_reorder.c 	vif = wil->vifs[mid];
mid               114 drivers/net/wireless/ath/wil6210/rx_reorder.c 		wil_dbg_txrx(wil, "invalid VIF, mid %d\n", mid);
mid               245 drivers/net/wireless/ath/wil6210/rx_reorder.c 		     cid, vif->mid, tid, seq, r->head_seq_num);
mid               309 drivers/net/wireless/ath/wil6210/rx_reorder.c int wil_addba_rx_request(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid,
mid               364 drivers/net/wireless/ath/wil6210/rx_reorder.c 	rc = wil->txrx_ops.wmi_addba_rx_resp(wil, mid, cid, tid, dialog_token,
mid               405 drivers/net/wireless/ath/wil6210/rx_reorder.c 	rc = wmi_addba(wil, txdata->mid, ringid, agg_wsize, agg_timeout);
mid                46 drivers/net/wireless/ath/wil6210/trace.h 		__field(u8, mid)
mid                54 drivers/net/wireless/ath/wil6210/trace.h 		__entry->mid = wmi->mid;
mid                63 drivers/net/wireless/ath/wil6210/trace.h 		__entry->mid, __entry->command_id, __entry->buf_len,
mid               166 drivers/net/wireless/ath/wil6210/trace.h 		__field(u8, mid)
mid               177 drivers/net/wireless/ath/wil6210/trace.h 		__entry->mid = wil_rxdesc_mid(d);
mid               187 drivers/net/wireless/ath/wil6210/trace.h 		  __entry->mid, __entry->cid, __entry->tid, __entry->mcs,
mid               198 drivers/net/wireless/ath/wil6210/trace.h 			     __field(u8, mid)
mid               209 drivers/net/wireless/ath/wil6210/trace.h 			   __entry->mid = wil_rx_status_get_mid(msg);
mid               221 drivers/net/wireless/ath/wil6210/trace.h 		      __entry->mid, __entry->cid, __entry->tid, __entry->mcs,
mid               378 drivers/net/wireless/ath/wil6210/txrx.c 	int mid = wil_rxdesc_mid(d);
mid               379 drivers/net/wireless/ath/wil6210/txrx.c 	struct wil6210_vif *vif = wil->vifs[mid];
mid               466 drivers/net/wireless/ath/wil6210/txrx.c 	int cid, mid;
mid               502 drivers/net/wireless/ath/wil6210/txrx.c 	mid = wil_rxdesc_mid(d);
mid               503 drivers/net/wireless/ath/wil6210/txrx.c 	vif = wil->vifs[mid];
mid               507 drivers/net/wireless/ath/wil6210/txrx.c 			     mid);
mid               556 drivers/net/wireless/ath/wil6210/txrx.c 			     fc1, mid, cid, tid, seq);
mid               561 drivers/net/wireless/ath/wil6210/txrx.c 				     mid, cid, tid, seq);
mid               569 drivers/net/wireless/ath/wil6210/txrx.c 				     fc1, mid, cid, tid, seq);
mid               830 drivers/net/wireless/ath/wil6210/txrx.c 	cid =  wil_find_cid_by_idx(wil, vif->mid, 0);
mid               945 drivers/net/wireless/ath/wil6210/txrx.c 			int xmit_cid = wil_find_cid(wil, vif->mid, da);
mid              1162 drivers/net/wireless/ath/wil6210/txrx.c 	txdata->mid = U8_MAX;
mid              1231 drivers/net/wireless/ath/wil6210/txrx.c 	rc = wmi_call(wil, WMI_VRING_CFG_CMDID, vif->mid, &cmd, sizeof(cmd),
mid              1246 drivers/net/wireless/ath/wil6210/txrx.c 	txdata->mid = vif->mid;
mid              1320 drivers/net/wireless/ath/wil6210/txrx.c 	rc = wmi_call(wil, WMI_VRING_CFG_CMDID, vif->mid, &cmd, sizeof(cmd),
mid              1400 drivers/net/wireless/ath/wil6210/txrx.c 	rc = wmi_call(wil, WMI_BCAST_VRING_CFG_CMDID, vif->mid,
mid              1416 drivers/net/wireless/ath/wil6210/txrx.c 	txdata->mid = vif->mid;
mid              1440 drivers/net/wireless/ath/wil6210/txrx.c 	cid = wil_find_cid(wil, vif->mid, da);
mid              1490 drivers/net/wireless/ath/wil6210/txrx.c 		if (!ring->va || !txdata->enabled || txdata->mid != vif->mid)
mid              1568 drivers/net/wireless/ath/wil6210/txrx.c 		if (!v->va || !txdata->enabled || txdata->mid != vif->mid)
mid              1597 drivers/net/wireless/ath/wil6210/txrx.c 		if (!v2->va || txdata2->mid != vif->mid)
mid              2247 drivers/net/wireless/ath/wil6210/txrx.c 			     (int)(ring - wil->ring_tx), vif->mid, check_stop,
mid              2251 drivers/net/wireless/ath/wil6210/txrx.c 			     check_stop, vif->mid, vif->net_queue_stopped);
mid              2281 drivers/net/wireless/ath/wil6210/txrx.c 		if (txdata->mid != vif->mid || !cur_ring->va ||
mid              2563 drivers/net/wireless/ath/wil6210/txrx.c 				   int *mid, u16 *seq, int *mcast, int *retry)
mid              2569 drivers/net/wireless/ath/wil6210/txrx.c 	*mid = wil_rxdesc_mid(d);
mid               519 drivers/net/wireless/ath/wil6210/txrx_edma.c 					int *cid, int *mid, u16 *seq,
mid               526 drivers/net/wireless/ath/wil6210/txrx_edma.c 	*mid = wil_rx_status_get_mid(s);
mid               773 drivers/net/wireless/ath/wil6210/txrx_edma.c 	int mid;
mid               783 drivers/net/wireless/ath/wil6210/txrx_edma.c 	mid = wil_rx_status_get_mid(msg);
mid               786 drivers/net/wireless/ath/wil6210/txrx_edma.c 	vif = wil->vifs[mid];
mid               789 drivers/net/wireless/ath/wil6210/txrx_edma.c 		wil_dbg_txrx(wil, "RX descriptor with invalid mid %d", mid);
mid               795 drivers/net/wireless/ath/wil6210/txrx_edma.c 		     fc1, mid, cid, tid, seq);
mid               801 drivers/net/wireless/ath/wil6210/txrx_edma.c 			     mid, cid, tid, seq);
mid               813 drivers/net/wireless/ath/wil6210/txrx_edma.c 			     fc1, mid, cid, tid, seq);
mid              1096 drivers/net/wireless/ath/wil6210/txrx_edma.c 				int mid = wil_rx_status_get_mid(msg);
mid              1097 drivers/net/wireless/ath/wil6210/txrx_edma.c 				struct wil6210_vif *vif = wil->vifs[mid];
mid              1102 drivers/net/wireless/ath/wil6210/txrx_edma.c 						     mid);
mid              1209 drivers/net/wireless/ath/wil6210/txrx_edma.c 		vif = wil->vifs[txdata->mid];
mid              1212 drivers/net/wireless/ath/wil6210/txrx_edma.c 				     txdata->mid, ring_id);
mid               624 drivers/net/wireless/ath/wil6210/wil6210.h 	int (*wmi_addba_rx_resp)(struct wil6210_priv *wil, u8 mid, u8 cid,
mid               629 drivers/net/wireless/ath/wil6210/wil6210.h 				   int *mid, u16 *seq, int *mcast, int *retry);
mid               650 drivers/net/wireless/ath/wil6210/wil6210.h 	u8 mid;
mid               750 drivers/net/wireless/ath/wil6210/wil6210.h 	u8 mid;
mid               856 drivers/net/wireless/ath/wil6210/wil6210.h 	u8 mid;
mid              1100 drivers/net/wireless/ath/wil6210/wil6210.h 	if (vif->mid)
mid              1223 drivers/net/wireless/ath/wil6210/wil6210.h void wil_vif_remove(struct wil6210_priv *wil, u8 mid);
mid              1239 drivers/net/wireless/ath/wil6210/wil6210.h int wil_find_cid(struct wil6210_priv *wil, u8 mid, const u8 *mac);
mid              1240 drivers/net/wireless/ath/wil6210/wil6210.h int wil_find_cid_by_idx(struct wil6210_priv *wil, u8 mid, int idx);
mid              1249 drivers/net/wireless/ath/wil6210/wil6210.h int wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len);
mid              1251 drivers/net/wireless/ath/wil6210/wil6210.h int wmi_call(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len,
mid              1275 drivers/net/wireless/ath/wil6210/wil6210.h int wmi_addba(struct wil6210_priv *wil, u8 mid,
mid              1277 drivers/net/wireless/ath/wil6210/wil6210.h int wmi_delba_tx(struct wil6210_priv *wil, u8 mid, u8 ringid, u16 reason);
mid              1278 drivers/net/wireless/ath/wil6210/wil6210.h int wmi_delba_rx(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid, u16 reason);
mid              1280 drivers/net/wireless/ath/wil6210/wil6210.h 		      u8 mid, u8 cid, u8 tid, u8 token,
mid              1287 drivers/net/wireless/ath/wil6210/wil6210.h int wmi_port_allocate(struct wil6210_priv *wil, u8 mid,
mid              1289 drivers/net/wireless/ath/wil6210/wil6210.h int wmi_port_delete(struct wil6210_priv *wil, u8 mid);
mid              1291 drivers/net/wireless/ath/wil6210/wil6210.h int wil_addba_rx_request(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid,
mid              1447 drivers/net/wireless/ath/wil6210/wil6210.h int wmi_addba_rx_resp_edma(struct wil6210_priv *wil, u8 mid, u8 cid,
mid               643 drivers/net/wireless/ath/wil6210/wmi.c static int __wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid,
mid               656 drivers/net/wireless/ath/wil6210/wmi.c 			.mid = mid,
mid               741 drivers/net/wireless/ath/wil6210/wmi.c 		    cmdid2name(cmdid), cmdid, len, mid);
mid               765 drivers/net/wireless/ath/wil6210/wmi.c int wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len)
mid               770 drivers/net/wireless/ath/wil6210/wmi.c 	rc = __wmi_send(wil, cmdid, mid, buf, len);
mid               870 drivers/net/wireless/ath/wil6210/wmi.c 		    data->info.qid, data->info.mid, data->info.cid);
mid               949 drivers/net/wireless/ath/wil6210/wmi.c 		if (vif->mid == 0)
mid              1049 drivers/net/wireless/ath/wil6210/wmi.c 	wil->sta[evt->cid].mid = vif->mid;
mid              1125 drivers/net/wireless/ath/wil6210/wmi.c 		wil->sta[evt->cid].mid = U8_MAX;
mid              1189 drivers/net/wireless/ath/wil6210/wmi.c 		    evt->src_mac, vif->mid);
mid              1191 drivers/net/wireless/ath/wil6210/wmi.c 	cid = wil_find_cid(wil, vif->mid, evt->src_mac);
mid              1236 drivers/net/wireless/ath/wil6210/wmi.c 	wil_dbg_wmi(wil, "Enable vring %d MID %d\n", vri, vif->mid);
mid              1319 drivers/net/wireless/ath/wil6210/wmi.c 	wil_addba_rx_request(wil, vif->mid, cid, tid, evt->dialog_token,
mid              1349 drivers/net/wireless/ath/wil6210/wmi.c 		    vif->mid, cid, tid,
mid              1438 drivers/net/wireless/ath/wil6210/wmi.c 		    d_len, data->info.qid, data->info.mid, data->info.cid);
mid              1614 drivers/net/wireless/ath/wil6210/wmi.c 		if (!ring->va || !txdata->enabled || txdata->mid != vif->mid)
mid              1819 drivers/net/wireless/ath/wil6210/wmi.c 			cid, vif->mid, ringid, rc);
mid              1964 drivers/net/wireless/ath/wil6210/wmi.c 			u8 mid = wmi->mid;
mid              1977 drivers/net/wireless/ath/wil6210/wmi.c 			    wil->reply_mid == mid) {
mid              1992 drivers/net/wireless/ath/wil6210/wmi.c 				    eventid2name(id), id, wmi->mid, tstamp);
mid              2025 drivers/net/wireless/ath/wil6210/wmi.c int wmi_call(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len,
mid              2036 drivers/net/wireless/ath/wil6210/wmi.c 	wil->reply_mid = mid;
mid              2042 drivers/net/wireless/ath/wil6210/wmi.c 	rc = __wmi_send(wil, cmdid, mid, buf, len);
mid              2079 drivers/net/wireless/ath/wil6210/wmi.c 	return wmi_call(wil, WMI_ECHO_CMDID, vif->mid, &cmd, sizeof(cmd),
mid              2093 drivers/net/wireless/ath/wil6210/wmi.c 	return wmi_send(wil, WMI_SET_MAC_ADDRESS_CMDID, vif->mid,
mid              2138 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_LED_CFG_CMDID, vif->mid, &cmd, sizeof(cmd),
mid              2170 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_RBUFCAP_CFG_CMDID, vif->mid, &cmd, sizeof(cmd),
mid              2233 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_PCP_START_CMDID, vif->mid, &cmd, sizeof(cmd),
mid              2257 drivers/net/wireless/ath/wil6210/wmi.c 	return wmi_call(wil, WMI_PCP_STOP_CMDID, vif->mid, NULL, 0,
mid              2274 drivers/net/wireless/ath/wil6210/wmi.c 	return wmi_send(wil, WMI_SET_SSID_CMDID, vif->mid, &cmd, sizeof(cmd));
mid              2289 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_GET_SSID_CMDID, vif->mid, NULL, 0,
mid              2312 drivers/net/wireless/ath/wil6210/wmi.c 	return wmi_send(wil, WMI_SET_PCP_CHANNEL_CMDID, vif->mid,
mid              2327 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_GET_PCP_CHANNEL_CMDID, vif->mid, NULL, 0,
mid              2359 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_P2P_CFG_CMDID, vif->mid, &cmd, sizeof(cmd),
mid              2382 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_START_LISTEN_CMDID, vif->mid, NULL, 0,
mid              2406 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_START_SEARCH_CMDID, vif->mid, NULL, 0,
mid              2424 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_DISCOVERY_STOP_CMDID, vif->mid, NULL, 0,
mid              2445 drivers/net/wireless/ath/wil6210/wmi.c 	return wmi_send(wil, WMI_DELETE_CIPHER_KEY_CMDID, vif->mid,
mid              2474 drivers/net/wireless/ath/wil6210/wmi.c 	return wmi_send(wil, WMI_ADD_CIPHER_KEY_CMDID, vif->mid,
mid              2510 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_send(wil, WMI_SET_APPIE_CMDID, vif->mid, cmd, len);
mid              2547 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_send(wil, WMI_UPDATE_FT_IES_CMDID, vif->mid, cmd, len);
mid              2579 drivers/net/wireless/ath/wil6210/wmi.c 		rc = wmi_call(wil, WMI_START_LISTEN_CMDID, vif->mid, NULL, 0,
mid              2586 drivers/net/wireless/ath/wil6210/wmi.c 		rc = wmi_call(wil, WMI_DISCOVERY_STOP_CMDID, vif->mid, NULL, 0,
mid              2607 drivers/net/wireless/ath/wil6210/wmi.c 		.mid = 0, /* TODO - what is it? */
mid              2644 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_CFG_RX_CHAIN_CMDID, vif->mid, &cmd, sizeof(cmd),
mid              2676 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_TEMP_SENSE_CMDID, vif->mid, &cmd, sizeof(cmd),
mid              2713 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_TEMP_SENSE_ALL_CMDID, vif->mid, &cmd,
mid              2750 drivers/net/wireless/ath/wil6210/wmi.c 		rc = wmi_call(wil, WMI_DEL_STA_CMDID, vif->mid, &del_sta_cmd,
mid              2755 drivers/net/wireless/ath/wil6210/wmi.c 		rc = wmi_call(wil, WMI_DISCONNECT_STA_CMDID, vif->mid,
mid              2770 drivers/net/wireless/ath/wil6210/wmi.c int wmi_addba(struct wil6210_priv *wil, u8 mid,
mid              2786 drivers/net/wireless/ath/wil6210/wmi.c 	return wmi_send(wil, WMI_RING_BA_EN_CMDID, mid, &cmd, sizeof(cmd));
mid              2789 drivers/net/wireless/ath/wil6210/wmi.c int wmi_delba_tx(struct wil6210_priv *wil, u8 mid, u8 ringid, u16 reason)
mid              2798 drivers/net/wireless/ath/wil6210/wmi.c 	return wmi_send(wil, WMI_RING_BA_DIS_CMDID, mid, &cmd, sizeof(cmd));
mid              2801 drivers/net/wireless/ath/wil6210/wmi.c int wmi_delba_rx(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid, u16 reason)
mid              2818 drivers/net/wireless/ath/wil6210/wmi.c 	return wmi_send(wil, WMI_RCP_DELBA_CMDID, mid, &cmd, sizeof(cmd));
mid              2822 drivers/net/wireless/ath/wil6210/wmi.c 		      u8 mid, u8 cid, u8 tid, u8 token,
mid              2855 drivers/net/wireless/ath/wil6210/wmi.c 		    mid, cid, tid, agg_wsize,
mid              2858 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_RCP_ADDBA_RESP_CMDID, mid, &cmd, sizeof(cmd),
mid              2873 drivers/net/wireless/ath/wil6210/wmi.c int wmi_addba_rx_resp_edma(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid,
mid              2906 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_RCP_ADDBA_RESP_EDMA_CMDID, mid, &cmd,
mid              2939 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_PS_DEV_PROFILE_CFG_CMDID, vif->mid,
mid              2976 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_SET_MGMT_RETRY_LIMIT_CMDID, vif->mid,
mid              3007 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_GET_MGMT_RETRY_LIMIT_CMDID, vif->mid, NULL, 0,
mid              3026 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_send(wil, WMI_ABORT_SCAN_CMDID, vif->mid, NULL, 0);
mid              3045 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_send(wil, WMI_NEW_STA_CMDID, vif->mid, &cmd, sizeof(cmd));
mid              3102 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_TRAFFIC_SUSPEND_CMDID, vif->mid,
mid              3186 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_TRAFFIC_RESUME_CMDID, vif->mid, NULL, 0,
mid              3200 drivers/net/wireless/ath/wil6210/wmi.c int wmi_port_allocate(struct wil6210_priv *wil, u8 mid,
mid              3205 drivers/net/wireless/ath/wil6210/wmi.c 		.mid = mid,
mid              3215 drivers/net/wireless/ath/wil6210/wmi.c 		     mid, iftype, mac);
mid              3237 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_PORT_ALLOCATE_CMDID, mid,
mid              3254 drivers/net/wireless/ath/wil6210/wmi.c int wmi_port_delete(struct wil6210_priv *wil, u8 mid)
mid              3258 drivers/net/wireless/ath/wil6210/wmi.c 		.mid = mid,
mid              3267 drivers/net/wireless/ath/wil6210/wmi.c 	wil_dbg_misc(wil, "port delete, mid %d\n", mid);
mid              3269 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_PORT_DELETE_CMDID, mid,
mid              3312 drivers/net/wireless/ath/wil6210/wmi.c 		u8 mid = wmi->mid;
mid              3318 drivers/net/wireless/ath/wil6210/wmi.c 		if (mid == MID_BROADCAST)
mid              3319 drivers/net/wireless/ath/wil6210/wmi.c 			mid = 0;
mid              3320 drivers/net/wireless/ath/wil6210/wmi.c 		if (mid >= GET_MAX_VIFS(wil)) {
mid              3322 drivers/net/wireless/ath/wil6210/wmi.c 				    mid);
mid              3325 drivers/net/wireless/ath/wil6210/wmi.c 		vif = wil->vifs[mid];
mid              3328 drivers/net/wireless/ath/wil6210/wmi.c 				    mid);
mid              3334 drivers/net/wireless/ath/wil6210/wmi.c 		    wil->reply_mid == mid) {
mid              3554 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_START_SCHED_SCAN_CMDID, vif->mid,
mid              3584 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_STOP_SCHED_SCAN_CMDID, vif->mid, NULL, 0,
mid              3613 drivers/net/wireless/ath/wil6210/wmi.c 	wil_dbg_misc(wil, "mgmt_tx mid %d\n", vif->mid);
mid              3634 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_SW_TX_REQ_CMDID, vif->mid, cmd, total,
mid              3663 drivers/net/wireless/ath/wil6210/wmi.c 		    vif->mid, channel, duration_ms);
mid              3688 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_SW_TX_REQ_EXT_CMDID, vif->mid, cmd, total,
mid              3722 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_TX_STATUS_RING_ADD_CMDID, vif->mid, &cmd,
mid              3760 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_CFG_DEF_RX_OFFLOAD_CMDID, vif->mid, &cmd,
mid              3801 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_RX_STATUS_RING_ADD_CMDID, vif->mid, &cmd,
mid              3843 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_RX_DESC_RING_ADD_CMDID, vif->mid, &cmd,
mid              3893 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_TX_DESC_RING_ADD_CMDID, vif->mid, &cmd,
mid              3909 drivers/net/wireless/ath/wil6210/wmi.c 	txdata->mid = vif->mid;
mid              3939 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_BCAST_DESC_RING_ADD_CMDID, vif->mid, &cmd,
mid              3955 drivers/net/wireless/ath/wil6210/wmi.c 	txdata->mid = vif->mid;
mid              3979 drivers/net/wireless/ath/wil6210/wmi.c 	rc = wmi_call(wil, WMI_LINK_STATS_CMDID, vif->mid, &cmd, sizeof(cmd),
mid               118 drivers/net/wireless/ath/wil6210/wmi.h 	u8 mid;
mid               778 drivers/net/wireless/ath/wil6210/wmi.h 	u8 mid;
mid               783 drivers/net/wireless/ath/wil6210/wmi.h 	u8 mid;
mid              1230 drivers/net/wireless/ath/wil6210/wmi.h 	u8 mid;
mid              2444 drivers/net/wireless/ath/wil6210/wmi.h 	u8 mid;
mid              3986 drivers/net/wireless/ath/wil6210/wmi.h 	u8 mid;
mid               210 drivers/platform/x86/hp-wmi.c 	int mid;
mid               225 drivers/platform/x86/hp-wmi.c 	mid = encode_outsize_for_pvsz(outsize);
mid               226 drivers/platform/x86/hp-wmi.c 	if (WARN_ON(mid < 0))
mid               227 drivers/platform/x86/hp-wmi.c 		return mid;
mid               233 drivers/platform/x86/hp-wmi.c 	wmi_evaluate_method(HPWMI_BIOS_GUID, 0, mid, &input, &output);
mid               116 drivers/power/supply/rx51_battery.c 		int mid = (max + min) / 2;
mid               117 drivers/power/supply/rx51_battery.c 		if (rx51_temp_table2[mid] <= raw)
mid               118 drivers/power/supply/rx51_battery.c 			min = mid;
mid               119 drivers/power/supply/rx51_battery.c 		else if (rx51_temp_table2[mid] > raw)
mid               120 drivers/power/supply/rx51_battery.c 			max = mid;
mid               121 drivers/power/supply/rx51_battery.c 		if (rx51_temp_table2[mid] == raw)
mid               135 drivers/rtc/rtc-vr41xx.c 	unsigned long low, mid, high;
mid               141 drivers/rtc/rtc-vr41xx.c 	mid = rtc1_read(ECMPMREG);
mid               147 drivers/rtc/rtc-vr41xx.c 	rtc_time64_to_tm((high << 17) | (mid << 1) | (low >> 15), time);
mid              1266 drivers/s390/char/tape_3590.c 			sense->fmt.f70.refcode, sense->fmt.f70.mid,
mid                99 drivers/s390/char/tape_3590.h 			unsigned int mid:16;
mid                34 drivers/scsi/bfa/bfa_plog.h 	u8	 mid;	/* module id */
mid               137 drivers/scsi/bfa/bfa_plog.h void bfa_plog_str(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
mid               139 drivers/scsi/bfa/bfa_plog.h void bfa_plog_intarr(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
mid               142 drivers/scsi/bfa/bfa_plog.h void bfa_plog_fchdr(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
mid               144 drivers/scsi/bfa/bfa_plog.h void bfa_plog_fchdr_and_pl(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
mid               321 drivers/scsi/bfa/bfa_svc.c bfa_plog_str(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
mid               329 drivers/scsi/bfa/bfa_svc.c 		lp.mid = mid;
mid               341 drivers/scsi/bfa/bfa_svc.c bfa_plog_intarr(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
mid               353 drivers/scsi/bfa/bfa_svc.c 		lp.mid = mid;
mid               368 drivers/scsi/bfa/bfa_svc.c bfa_plog_fchdr(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
mid               383 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_intarr(plog, mid, event, misc, ints, 3);
mid               388 drivers/scsi/bfa/bfa_svc.c bfa_plog_fchdr_and_pl(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
mid               404 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_intarr(plog, mid, event, misc, ints, 4);
mid               955 drivers/scsi/qla2xxx/qla_sup.c 	uint16_t mid = 0, fid = 0;
mid               977 drivers/scsi/qla2xxx/qla_sup.c 	mid = le16_to_cpu(fdt->man_id);
mid              1003 drivers/scsi/qla2xxx/qla_sup.c 	mid = man_id;
mid              1035 drivers/scsi/qla2xxx/qla_sup.c 	    loc, mid, fid,
mid              3839 drivers/scsi/qla4xxx/ql4_nx.c 	uint16_t mid = 0;
mid              3870 drivers/scsi/qla4xxx/ql4_nx.c 	mid = le16_to_cpu(fdt->man_id);
mid              3890 drivers/scsi/qla4xxx/ql4_nx.c 		"pro=%x upro=%x wrtd=0x%x blk=0x%x.\n", loc, mid, fid,
mid               303 drivers/staging/pi433/rf69.c 	u8 mid;
mid               323 drivers/staging/pi433/rf69.c 	mid = (f_reg & 0xff00)   >>  8;
mid               330 drivers/staging/pi433/rf69.c 	retval = rf69_write_reg(spi, REG_FRF_MID, mid);
mid              1651 drivers/staging/rts5208/sd.c 				path[idx].mid = path[idx].start +
mid              1664 drivers/staging/rts5208/sd.c 		path[idx].mid = path[idx].start + path[idx].len / 2;
mid              1671 drivers/staging/rts5208/sd.c 		path[0].mid = path[0].start + path[0].len / 2;
mid              1672 drivers/staging/rts5208/sd.c 		if (path[0].mid < 0)
mid              1673 drivers/staging/rts5208/sd.c 			path[0].mid += MAX_PHASE + 1;
mid              1684 drivers/staging/rts5208/sd.c 			final_phase = (u8)path[i].mid;
mid              1692 drivers/staging/rts5208/sd.c 		dev_dbg(rtsx_dev(chip), "path[%d].mid = %d\n", i, path[i].mid);
mid               261 drivers/staging/rts5208/sd.h 	int mid;
mid               477 drivers/thermal/rockchip_thermal.c 	int high, low, mid;
mid               484 drivers/thermal/rockchip_thermal.c 	mid = (high + low) / 2;
mid               491 drivers/thermal/rockchip_thermal.c 		if (temp == table->id[mid].temp)
mid               492 drivers/thermal/rockchip_thermal.c 			return table->id[mid].code;
mid               493 drivers/thermal/rockchip_thermal.c 		else if (temp < table->id[mid].temp)
mid               494 drivers/thermal/rockchip_thermal.c 			high = mid - 1;
mid               496 drivers/thermal/rockchip_thermal.c 			low = mid + 1;
mid               497 drivers/thermal/rockchip_thermal.c 		mid = (low + high) / 2;
mid               506 drivers/thermal/rockchip_thermal.c 	num = abs(table->id[mid + 1].code - table->id[mid].code);
mid               507 drivers/thermal/rockchip_thermal.c 	num *= temp - table->id[mid].temp;
mid               508 drivers/thermal/rockchip_thermal.c 	denom = table->id[mid + 1].temp - table->id[mid].temp;
mid               512 drivers/thermal/rockchip_thermal.c 		return table->id[mid].code - (num / denom);
mid               514 drivers/thermal/rockchip_thermal.c 		return table->id[mid].code + (num / denom);
mid               531 drivers/thermal/rockchip_thermal.c 	unsigned int mid = (low + high) / 2;
mid               544 drivers/thermal/rockchip_thermal.c 			if (code >= table->id[mid].code &&
mid               545 drivers/thermal/rockchip_thermal.c 			    code < table->id[mid - 1].code)
mid               547 drivers/thermal/rockchip_thermal.c 			else if (code < table->id[mid].code)
mid               548 drivers/thermal/rockchip_thermal.c 				low = mid + 1;
mid               550 drivers/thermal/rockchip_thermal.c 				high = mid - 1;
mid               552 drivers/thermal/rockchip_thermal.c 			mid = (low + high) / 2;
mid               561 drivers/thermal/rockchip_thermal.c 			if (code <= table->id[mid].code &&
mid               562 drivers/thermal/rockchip_thermal.c 			    code > table->id[mid - 1].code)
mid               564 drivers/thermal/rockchip_thermal.c 			else if (code > table->id[mid].code)
mid               565 drivers/thermal/rockchip_thermal.c 				low = mid + 1;
mid               567 drivers/thermal/rockchip_thermal.c 				high = mid - 1;
mid               569 drivers/thermal/rockchip_thermal.c 			mid = (low + high) / 2;
mid               583 drivers/thermal/rockchip_thermal.c 	num = table->id[mid].temp - table->id[mid - 1].temp;
mid               584 drivers/thermal/rockchip_thermal.c 	num *= abs(table->id[mid - 1].code - code);
mid               585 drivers/thermal/rockchip_thermal.c 	denom = abs(table->id[mid - 1].code - table->id[mid].code);
mid               586 drivers/thermal/rockchip_thermal.c 	*temp = table->id[mid - 1].temp + (num / denom);
mid                53 drivers/tty/serial/8250/8250_mid.c static int pnw_setup(struct mid8250 *mid, struct uart_port *p)
mid                59 drivers/tty/serial/8250/8250_mid.c 		mid->dma_index = 0;
mid                62 drivers/tty/serial/8250/8250_mid.c 		mid->dma_index = 1;
mid                65 drivers/tty/serial/8250/8250_mid.c 		mid->dma_index = 2;
mid                71 drivers/tty/serial/8250/8250_mid.c 	mid->dma_dev = pci_get_slot(pdev->bus,
mid                78 drivers/tty/serial/8250/8250_mid.c 	struct mid8250 *mid = p->private_data;
mid                85 drivers/tty/serial/8250/8250_mid.c 	chip = pci_get_drvdata(mid->dma_dev);
mid                88 drivers/tty/serial/8250/8250_mid.c 	err = hsu_dma_get_status(chip, mid->dma_index * 2 + 1, &status);
mid                93 drivers/tty/serial/8250/8250_mid.c 		ret |= hsu_dma_do_irq(chip, mid->dma_index * 2 + 1, status);
mid                96 drivers/tty/serial/8250/8250_mid.c 	err = hsu_dma_get_status(chip, mid->dma_index * 2, &status);
mid               100 drivers/tty/serial/8250/8250_mid.c 		ret |= hsu_dma_do_irq(chip, mid->dma_index * 2, status);
mid               107 drivers/tty/serial/8250/8250_mid.c static int tng_setup(struct mid8250 *mid, struct uart_port *p)
mid               120 drivers/tty/serial/8250/8250_mid.c 	mid->dma_index = index;
mid               121 drivers/tty/serial/8250/8250_mid.c 	mid->dma_dev = pci_get_slot(pdev->bus, PCI_DEVFN(5, 0));
mid               129 drivers/tty/serial/8250/8250_mid.c 	struct mid8250 *mid = p->private_data;
mid               137 drivers/tty/serial/8250/8250_mid.c 		err = hsu_dma_get_status(&mid->dma_chip, 1, &status);
mid               142 drivers/tty/serial/8250/8250_mid.c 			ret |= hsu_dma_do_irq(&mid->dma_chip, 1, status);
mid               145 drivers/tty/serial/8250/8250_mid.c 		err = hsu_dma_get_status(&mid->dma_chip, 0, &status);
mid               149 drivers/tty/serial/8250/8250_mid.c 			ret |= hsu_dma_do_irq(&mid->dma_chip, 0, status);
mid               158 drivers/tty/serial/8250/8250_mid.c static int dnv_setup(struct mid8250 *mid, struct uart_port *p)
mid               160 drivers/tty/serial/8250/8250_mid.c 	struct hsu_dma_chip *chip = &mid->dma_chip;
mid               162 drivers/tty/serial/8250/8250_mid.c 	unsigned int bar = FL_GET_BASE(mid->board->flags);
mid               184 drivers/tty/serial/8250/8250_mid.c 	mid->dma_dev = pdev;
mid               190 drivers/tty/serial/8250/8250_mid.c static void dnv_exit(struct mid8250 *mid)
mid               192 drivers/tty/serial/8250/8250_mid.c 	if (!mid->dma_dev)
mid               194 drivers/tty/serial/8250/8250_mid.c 	hsu_dma_remove(&mid->dma_chip);
mid               204 drivers/tty/serial/8250/8250_mid.c 	struct mid8250 *mid = p->private_data;
mid               213 drivers/tty/serial/8250/8250_mid.c 	if (mid->board->freq < fuart) {
mid               215 drivers/tty/serial/8250/8250_mid.c 		if (mid->board->freq > baud)
mid               216 drivers/tty/serial/8250/8250_mid.c 			ps = mid->board->freq / baud;	/* baud rate too high */
mid               222 drivers/tty/serial/8250/8250_mid.c 		fuart *= rounddown_pow_of_two(mid->board->freq / fuart);
mid               225 drivers/tty/serial/8250/8250_mid.c 	rational_best_approximation(fuart, mid->board->freq, w, w, &mul, &div);
mid               246 drivers/tty/serial/8250/8250_mid.c static int mid8250_dma_setup(struct mid8250 *mid, struct uart_8250_port *port)
mid               248 drivers/tty/serial/8250/8250_mid.c 	struct uart_8250_dma *dma = &mid->dma;
mid               253 drivers/tty/serial/8250/8250_mid.c 	if (!mid->dma_dev)
mid               264 drivers/tty/serial/8250/8250_mid.c 	rx_param->chan_id = mid->dma_index * 2 + 1;
mid               265 drivers/tty/serial/8250/8250_mid.c 	tx_param->chan_id = mid->dma_index * 2;
mid               270 drivers/tty/serial/8250/8250_mid.c 	rx_param->dma_dev = &mid->dma_dev->dev;
mid               271 drivers/tty/serial/8250/8250_mid.c 	tx_param->dma_dev = &mid->dma_dev->dev;
mid               284 drivers/tty/serial/8250/8250_mid.c 	struct mid8250 *mid;
mid               292 drivers/tty/serial/8250/8250_mid.c 	mid = devm_kzalloc(&pdev->dev, sizeof(*mid), GFP_KERNEL);
mid               293 drivers/tty/serial/8250/8250_mid.c 	if (!mid)
mid               296 drivers/tty/serial/8250/8250_mid.c 	mid->board = (struct mid8250_board *)id->driver_data;
mid               297 drivers/tty/serial/8250/8250_mid.c 	bar = FL_GET_BASE(mid->board->flags);
mid               303 drivers/tty/serial/8250/8250_mid.c 	uart.port.private_data = mid;
mid               306 drivers/tty/serial/8250/8250_mid.c 	uart.port.uartclk = mid->board->base_baud * 16;
mid               315 drivers/tty/serial/8250/8250_mid.c 	if (mid->board->setup) {
mid               316 drivers/tty/serial/8250/8250_mid.c 		ret = mid->board->setup(mid, &uart.port);
mid               321 drivers/tty/serial/8250/8250_mid.c 	ret = mid8250_dma_setup(mid, &uart);
mid               329 drivers/tty/serial/8250/8250_mid.c 	mid->line = ret;
mid               331 drivers/tty/serial/8250/8250_mid.c 	pci_set_drvdata(pdev, mid);
mid               334 drivers/tty/serial/8250/8250_mid.c 	if (mid->board->exit)
mid               335 drivers/tty/serial/8250/8250_mid.c 		mid->board->exit(mid);
mid               341 drivers/tty/serial/8250/8250_mid.c 	struct mid8250 *mid = pci_get_drvdata(pdev);
mid               343 drivers/tty/serial/8250/8250_mid.c 	serial8250_unregister_port(mid->line);
mid               345 drivers/tty/serial/8250/8250_mid.c 	if (mid->board->exit)
mid               346 drivers/tty/serial/8250/8250_mid.c 		mid->board->exit(mid);
mid              1471 drivers/tty/serial/pmac_zilog.c 			const char* mid =
mid              1473 drivers/tty/serial/pmac_zilog.c 			if (mid) switch(*mid) {
mid              1483 drivers/tty/serial/pmac_zilog.c 				mid ? (*mid) : 0);
mid               386 drivers/usb/typec/ucsi/ucsi.c 			desc.vdo = alt[j].mid;
mid               279 drivers/usb/typec/ucsi/ucsi.h 	u32 mid;
mid               333 fs/befs/btree.c 	int first, last, mid;
mid               358 fs/befs/btree.c 	mid = 0;
mid               360 fs/befs/btree.c 		mid = (last + first) / 2;
mid               362 fs/befs/btree.c 			   mid);
mid               363 fs/befs/btree.c 		thiskey = befs_bt_get_key(sb, node, mid, &keylen);
mid               369 fs/befs/btree.c 				   __func__, thiskey, mid);
mid               371 fs/befs/btree.c 			*value = fs64_to_cpu(sb, valarray[mid]);
mid               375 fs/befs/btree.c 			last = mid - 1;
mid               377 fs/befs/btree.c 			first = mid + 1;
mid               382 fs/befs/btree.c 		*value = fs64_to_cpu(sb, valarray[mid + 1]);
mid               384 fs/befs/btree.c 		*value = fs64_to_cpu(sb, valarray[mid]);
mid              1713 fs/btrfs/ctree.c 	int mid;
mid              1732 fs/btrfs/ctree.c 		mid = (low + high) / 2;
mid              1733 fs/btrfs/ctree.c 		offset = p + mid * item_size;
mid              1761 fs/btrfs/ctree.c 			low = mid + 1;
mid              1763 fs/btrfs/ctree.c 			high = mid;
mid              1765 fs/btrfs/ctree.c 			*slot = mid;
mid              1848 fs/btrfs/ctree.c 	struct extent_buffer *mid;
mid              1859 fs/btrfs/ctree.c 	mid = path->nodes[level];
mid              1863 fs/btrfs/ctree.c 	WARN_ON(btrfs_header_generation(mid) != trans->transid);
mid              1865 fs/btrfs/ctree.c 	orig_ptr = btrfs_node_blockptr(mid, orig_slot);
mid              1879 fs/btrfs/ctree.c 		if (btrfs_header_nritems(mid) != 1)
mid              1883 fs/btrfs/ctree.c 		child = btrfs_read_node_slot(mid, 0);
mid              1892 fs/btrfs/ctree.c 		ret = btrfs_cow_block(trans, root, child, mid, 0, &child);
mid              1908 fs/btrfs/ctree.c 		btrfs_clean_tree_block(mid);
mid              1909 fs/btrfs/ctree.c 		btrfs_tree_unlock(mid);
mid              1911 fs/btrfs/ctree.c 		free_extent_buffer(mid);
mid              1913 fs/btrfs/ctree.c 		root_sub_used(root, mid->len);
mid              1914 fs/btrfs/ctree.c 		btrfs_free_tree_block(trans, root, mid, 0, 1);
mid              1916 fs/btrfs/ctree.c 		free_extent_buffer_stale(mid);
mid              1919 fs/btrfs/ctree.c 	if (btrfs_header_nritems(mid) >
mid              1956 fs/btrfs/ctree.c 		wret = push_node_left(trans, left, mid, 1);
mid              1965 fs/btrfs/ctree.c 		wret = push_node_left(trans, mid, right, 1);
mid              1986 fs/btrfs/ctree.c 	if (btrfs_header_nritems(mid) == 1) {
mid              2001 fs/btrfs/ctree.c 		wret = balance_node_right(trans, mid, left);
mid              2007 fs/btrfs/ctree.c 			wret = push_node_left(trans, left, mid, 1);
mid              2013 fs/btrfs/ctree.c 	if (btrfs_header_nritems(mid) == 0) {
mid              2014 fs/btrfs/ctree.c 		btrfs_clean_tree_block(mid);
mid              2015 fs/btrfs/ctree.c 		btrfs_tree_unlock(mid);
mid              2017 fs/btrfs/ctree.c 		root_sub_used(root, mid->len);
mid              2018 fs/btrfs/ctree.c 		btrfs_free_tree_block(trans, root, mid, 0, 1);
mid              2019 fs/btrfs/ctree.c 		free_extent_buffer_stale(mid);
mid              2020 fs/btrfs/ctree.c 		mid = NULL;
mid              2024 fs/btrfs/ctree.c 		btrfs_node_key(mid, &mid_key, 0);
mid              2040 fs/btrfs/ctree.c 			if (mid) {
mid              2041 fs/btrfs/ctree.c 				btrfs_tree_unlock(mid);
mid              2042 fs/btrfs/ctree.c 				free_extent_buffer(mid);
mid              2076 fs/btrfs/ctree.c 	struct extent_buffer *mid;
mid              2087 fs/btrfs/ctree.c 	mid = path->nodes[level];
mid              2088 fs/btrfs/ctree.c 	WARN_ON(btrfs_header_generation(mid) != trans->transid);
mid              2118 fs/btrfs/ctree.c 				wret = push_node_left(trans, left, mid, 0);
mid              2126 fs/btrfs/ctree.c 			btrfs_node_key(mid, &disk_key, 0);
mid              2136 fs/btrfs/ctree.c 				btrfs_tree_unlock(mid);
mid              2137 fs/btrfs/ctree.c 				free_extent_buffer(mid);
mid              2173 fs/btrfs/ctree.c 				wret = balance_node_right(trans, right, mid);
mid              2188 fs/btrfs/ctree.c 			if (btrfs_header_nritems(mid) <= orig_slot) {
mid              2192 fs/btrfs/ctree.c 					btrfs_header_nritems(mid);
mid              2193 fs/btrfs/ctree.c 				btrfs_tree_unlock(mid);
mid              2194 fs/btrfs/ctree.c 				free_extent_buffer(mid);
mid              3502 fs/btrfs/ctree.c 	int mid;
mid              3533 fs/btrfs/ctree.c 	mid = (c_nritems + 1) / 2;
mid              3534 fs/btrfs/ctree.c 	btrfs_node_key(c, &disk_key, mid);
mid              3544 fs/btrfs/ctree.c 	ret = tree_mod_log_eb_copy(split, c, 0, mid, c_nritems - mid);
mid              3551 fs/btrfs/ctree.c 			   btrfs_node_key_ptr_offset(mid),
mid              3552 fs/btrfs/ctree.c 			   (c_nritems - mid) * sizeof(struct btrfs_key_ptr));
mid              3553 fs/btrfs/ctree.c 	btrfs_set_header_nritems(split, c_nritems - mid);
mid              3554 fs/btrfs/ctree.c 	btrfs_set_header_nritems(c, mid);
mid              3563 fs/btrfs/ctree.c 	if (path->slots[level] >= mid) {
mid              3564 fs/btrfs/ctree.c 		path->slots[level] -= mid;
mid              4085 fs/btrfs/ctree.c 				    int slot, int mid, int nritems)
mid              4094 fs/btrfs/ctree.c 	nritems = nritems - mid;
mid              4096 fs/btrfs/ctree.c 	data_copy_size = btrfs_item_end_nr(l, mid) - leaf_data_end(l);
mid              4099 fs/btrfs/ctree.c 			   btrfs_item_nr_offset(mid),
mid              4107 fs/btrfs/ctree.c 	rt_data_off = BTRFS_LEAF_DATA_SIZE(fs_info) - btrfs_item_end_nr(l, mid);
mid              4119 fs/btrfs/ctree.c 	btrfs_set_header_nritems(l, mid);
mid              4127 fs/btrfs/ctree.c 	if (mid <= slot) {
mid              4131 fs/btrfs/ctree.c 		path->slots[0] -= mid;
mid              4220 fs/btrfs/ctree.c 	int mid;
mid              4273 fs/btrfs/ctree.c 	mid = (nritems + 1) / 2;
mid              4275 fs/btrfs/ctree.c 	if (mid <= slot) {
mid              4277 fs/btrfs/ctree.c 		    leaf_space_used(l, mid, nritems - mid) + data_size >
mid              4282 fs/btrfs/ctree.c 				mid = slot;
mid              4283 fs/btrfs/ctree.c 				if (mid != nritems &&
mid              4284 fs/btrfs/ctree.c 				    leaf_space_used(l, mid, nritems - mid) +
mid              4293 fs/btrfs/ctree.c 		if (leaf_space_used(l, 0, mid) + data_size >
mid              4298 fs/btrfs/ctree.c 				mid = 1;
mid              4300 fs/btrfs/ctree.c 				mid = slot;
mid              4301 fs/btrfs/ctree.c 				if (mid != nritems &&
mid              4302 fs/btrfs/ctree.c 				    leaf_space_used(l, mid, nritems - mid) +
mid              4315 fs/btrfs/ctree.c 		btrfs_item_key(l, &disk_key, mid);
mid              4325 fs/btrfs/ctree.c 		if (mid <= slot) {
mid              4353 fs/btrfs/ctree.c 	copy_for_split(trans, path, l, right, slot, mid, nritems);
mid                66 fs/cifs/cifs_debug.c 			 mid_entry->mid);
mid               181 fs/cifs/cifs_debug.c 					seq_printf(m, " 0x%llx\n", cfile->fid.mid);
mid               409 fs/cifs/cifs_debug.c 					      mid_entry->mid);
mid               837 fs/cifs/cifsglob.h 	__u16 mid = server->ops->get_next_mid(server);
mid               842 fs/cifs/cifsglob.h 	return cpu_to_le16(mid);
mid               868 fs/cifs/cifsglob.h compare_mid(__u16 mid, const struct smb_hdr *smb)
mid               870 fs/cifs/cifsglob.h 	return mid == le16_to_cpu(smb->Mid);
mid              1236 fs/cifs/cifsglob.h 	__u64 mid;
mid              1504 fs/cifs/cifsglob.h 			    struct mid_q_entry *mid);
mid              1514 fs/cifs/cifsglob.h typedef void (mid_callback_t)(struct mid_q_entry *mid);
mid              1521 fs/cifs/cifsglob.h 			    struct mid_q_entry *mid);
mid              1528 fs/cifs/cifsglob.h 	__u64 mid;		/* multiplex id */
mid              1585 fs/cifs/cifsglob.h static inline void cifs_save_when_sent(struct mid_q_entry *mid)
mid              1587 fs/cifs/cifsglob.h 	mid->when_sent = jiffies;
mid              1605 fs/cifs/cifsglob.h static inline void cifs_save_when_sent(struct mid_q_entry *mid)
mid                87 fs/cifs/cifsproto.h extern void cifs_delete_mid(struct mid_q_entry *mid);
mid                89 fs/cifs/cifsproto.h extern void cifs_wake_up_task(struct mid_q_entry *mid);
mid                91 fs/cifs/cifsproto.h 				struct mid_q_entry *mid);
mid               115 fs/cifs/cifsproto.h extern int cifs_check_receive(struct mid_q_entry *mid,
mid               217 fs/cifs/cifsproto.h extern void dequeue_mid(struct mid_q_entry *mid, bool malformed);
mid               554 fs/cifs/cifsproto.h int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid);
mid               822 fs/cifs/cifssmb.c cifs_echo_callback(struct mid_q_entry *mid)
mid               824 fs/cifs/cifssmb.c 	struct TCP_Server_Info *server = mid->callback_data;
mid               827 fs/cifs/cifssmb.c 	DeleteMidQEntry(mid);
mid              1540 fs/cifs/cifssmb.c __cifs_readv_discard(struct TCP_Server_Info *server, struct mid_q_entry *mid,
mid              1546 fs/cifs/cifssmb.c 	dequeue_mid(mid, malformed);
mid              1547 fs/cifs/cifssmb.c 	mid->resp_buf = server->smallbuf;
mid              1553 fs/cifs/cifssmb.c cifs_readv_discard(struct TCP_Server_Info *server, struct mid_q_entry *mid)
mid              1555 fs/cifs/cifssmb.c 	struct cifs_readdata *rdata = mid->callback_data;
mid              1557 fs/cifs/cifssmb.c 	return  __cifs_readv_discard(server, mid, rdata->result);
mid              1561 fs/cifs/cifssmb.c cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid)
mid              1565 fs/cifs/cifssmb.c 	struct cifs_readdata *rdata = mid->callback_data;
mid              1572 fs/cifs/cifssmb.c 		 __func__, mid->mid, rdata->offset, rdata->bytes);
mid              1618 fs/cifs/cifssmb.c 		return __cifs_readv_discard(server, mid, false);
mid              1627 fs/cifs/cifssmb.c 		return cifs_readv_discard(server, mid);
mid              1646 fs/cifs/cifssmb.c 		return cifs_readv_discard(server, mid);
mid              1670 fs/cifs/cifssmb.c 		return cifs_readv_discard(server, mid);
mid              1684 fs/cifs/cifssmb.c 		return cifs_readv_discard(server, mid);
mid              1686 fs/cifs/cifssmb.c 	dequeue_mid(mid, false);
mid              1687 fs/cifs/cifssmb.c 	mid->resp_buf = server->smallbuf;
mid              1693 fs/cifs/cifssmb.c cifs_readv_callback(struct mid_q_entry *mid)
mid              1695 fs/cifs/cifssmb.c 	struct cifs_readdata *rdata = mid->callback_data;
mid              1708 fs/cifs/cifssmb.c 		 __func__, mid->mid, mid->mid_state, rdata->result,
mid              1711 fs/cifs/cifssmb.c 	switch (mid->mid_state) {
mid              1718 fs/cifs/cifssmb.c 						  mid->sequence_number);
mid              1742 fs/cifs/cifssmb.c 	DeleteMidQEntry(mid);
mid              2225 fs/cifs/cifssmb.c cifs_writev_callback(struct mid_q_entry *mid)
mid              2227 fs/cifs/cifssmb.c 	struct cifs_writedata *wdata = mid->callback_data;
mid              2230 fs/cifs/cifssmb.c 	WRITE_RSP *smb = (WRITE_RSP *)mid->resp_buf;
mid              2233 fs/cifs/cifssmb.c 	switch (mid->mid_state) {
mid              2235 fs/cifs/cifssmb.c 		wdata->result = cifs_check_receive(mid, tcon->ses->server, 0);
mid              2266 fs/cifs/cifssmb.c 	DeleteMidQEntry(mid);
mid               910 fs/cifs/connect.c dequeue_mid(struct mid_q_entry *mid, bool malformed)
mid               913 fs/cifs/connect.c 	mid->when_received = jiffies;
mid               917 fs/cifs/connect.c 		mid->mid_state = MID_RESPONSE_RECEIVED;
mid               919 fs/cifs/connect.c 		mid->mid_state = MID_RESPONSE_MALFORMED;
mid               924 fs/cifs/connect.c 	if (mid->mid_flags & MID_DELETED)
mid               928 fs/cifs/connect.c 		list_del_init(&mid->qhead);
mid               929 fs/cifs/connect.c 		mid->mid_flags |= MID_DELETED;
mid               949 fs/cifs/connect.c handle_mid(struct mid_q_entry *mid, struct TCP_Server_Info *server,
mid               953 fs/cifs/connect.c 	    server->ops->check_trans2(mid, server, buf, malformed))
mid               955 fs/cifs/connect.c 	mid->credits_received = smb2_get_credits_from_hdr(buf, server);
mid               956 fs/cifs/connect.c 	mid->resp_buf = buf;
mid               957 fs/cifs/connect.c 	mid->large_buf = server->large_buf;
mid               959 fs/cifs/connect.c 	if (!mid->multiRsp) {
mid               966 fs/cifs/connect.c 	dequeue_mid(mid, malformed);
mid              1014 fs/cifs/connect.c 			cifs_dbg(FYI, "Clearing mid 0x%llx\n", mid_entry->mid);
mid              1025 fs/cifs/connect.c 			cifs_dbg(FYI, "Callback mid 0x%llx\n", mid_entry->mid);
mid              1060 fs/cifs/connect.c standard_receive3(struct TCP_Server_Info *server, struct mid_q_entry *mid)
mid              1093 fs/cifs/connect.c 	return cifs_handle_standard(server, mid);
mid              1097 fs/cifs/connect.c cifs_handle_standard(struct TCP_Server_Info *server, struct mid_q_entry *mid)
mid              1127 fs/cifs/connect.c 	if (!mid)
mid              1130 fs/cifs/connect.c 	handle_mid(mid, server, buf, length);
mid               366 fs/cifs/misc.c 		__u16 mid = get_mid(smb);
mid               374 fs/cifs/misc.c 			 clc_len, 4 + rfclen, mid);
mid               378 fs/cifs/misc.c 				 rfclen, mid);
mid               391 fs/cifs/misc.c 				 rfclen, mid);
mid                28 fs/cifs/smb1ops.c 	       struct mid_q_entry *mid)
mid                40 fs/cifs/smb1ops.c 	rc = cifs_sign_smb(in_buf, server, &mid->sequence_number);
mid                91 fs/cifs/smb1ops.c 	struct mid_q_entry *mid;
mid                94 fs/cifs/smb1ops.c 	list_for_each_entry(mid, &server->pending_mid_q, qhead) {
mid                95 fs/cifs/smb1ops.c 		if (compare_mid(mid->mid, buf) &&
mid                96 fs/cifs/smb1ops.c 		    mid->mid_state == MID_REQUEST_SUBMITTED &&
mid                97 fs/cifs/smb1ops.c 		    le16_to_cpu(mid->command) == buf->Command) {
mid                98 fs/cifs/smb1ops.c 			kref_get(&mid->refcount);
mid               100 fs/cifs/smb1ops.c 			return mid;
mid               134 fs/cifs/smb1ops.c cifs_get_credits(struct mid_q_entry *mid)
mid               163 fs/cifs/smb1ops.c 	__u64 mid = 0;
mid               198 fs/cifs/smb1ops.c 			if (mid_entry->mid == cur_mid &&
mid               220 fs/cifs/smb1ops.c 			mid = (__u64)cur_mid;
mid               221 fs/cifs/smb1ops.c 			server->CurrentMid = mid;
mid               227 fs/cifs/smb1ops.c 	return mid;
mid               381 fs/cifs/smb1ops.c cifs_check_trans2(struct mid_q_entry *mid, struct TCP_Server_Info *server,
mid               388 fs/cifs/smb1ops.c 	mid->multiRsp = true;
mid               389 fs/cifs/smb1ops.c 	if (mid->resp_buf) {
mid               391 fs/cifs/smb1ops.c 		malformed = coalesce_t2(buf, mid->resp_buf);
mid               395 fs/cifs/smb1ops.c 		mid->multiEnd = true;
mid               396 fs/cifs/smb1ops.c 		dequeue_mid(mid, malformed);
mid               404 fs/cifs/smb1ops.c 		mid->resp_buf = buf;
mid               405 fs/cifs/smb1ops.c 		mid->large_buf = true;
mid                34 fs/cifs/smb2misc.c check_smb2_hdr(struct smb2_sync_hdr *shdr, __u64 mid)
mid                43 fs/cifs/smb2misc.c 	    (mid == wire_mid)) {
mid                57 fs/cifs/smb2misc.c 		if (mid != wire_mid)
mid                59 fs/cifs/smb2misc.c 				 mid, wire_mid);
mid               135 fs/cifs/smb2misc.c 	__u64 mid;
mid               167 fs/cifs/smb2misc.c 	mid = le64_to_cpu(shdr->MessageId);
mid               184 fs/cifs/smb2misc.c 			 mid);
mid               188 fs/cifs/smb2misc.c 	if (check_smb2_hdr(shdr, mid))
mid               228 fs/cifs/smb2misc.c 			 clc_len, len, mid);
mid               259 fs/cifs/smb2misc.c 			     len, clc_len, command, mid);
mid               264 fs/cifs/smb2misc.c 			len, clc_len, command, mid);
mid               152 fs/cifs/smb2ops.c smb2_get_credits(struct mid_q_entry *mid)
mid               154 fs/cifs/smb2ops.c 	return mid->credits_received;
mid               244 fs/cifs/smb2ops.c 	__u64 mid;
mid               247 fs/cifs/smb2ops.c 	mid = server->CurrentMid++;
mid               249 fs/cifs/smb2ops.c 	return mid;
mid               264 fs/cifs/smb2ops.c 	struct mid_q_entry *mid;
mid               274 fs/cifs/smb2ops.c 	list_for_each_entry(mid, &server->pending_mid_q, qhead) {
mid               275 fs/cifs/smb2ops.c 		if ((mid->mid == wire_mid) &&
mid               276 fs/cifs/smb2ops.c 		    (mid->mid_state == MID_REQUEST_SUBMITTED) &&
mid               277 fs/cifs/smb2ops.c 		    (mid->command == shdr->Command)) {
mid               278 fs/cifs/smb2ops.c 			kref_get(&mid->refcount);
mid               280 fs/cifs/smb2ops.c 			return mid;
mid               759 fs/cifs/smb2ops.c 	oparms.fid->mid = le64_to_cpu(o_rsp->sync_hdr.MessageId);
mid              1348 fs/cifs/smb2ops.c 	cfile->fid.mid = fid->mid;
mid              3949 fs/cifs/smb2ops.c handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid,
mid              3958 fs/cifs/smb2ops.c 	struct cifs_readdata *rdata = mid->callback_data;
mid              3998 fs/cifs/smb2ops.c 		dequeue_mid(mid, false);
mid              4022 fs/cifs/smb2ops.c 		dequeue_mid(mid, rdata->result);
mid              4038 fs/cifs/smb2ops.c 			dequeue_mid(mid, rdata->result);
mid              4045 fs/cifs/smb2ops.c 			dequeue_mid(mid, rdata->result);
mid              4052 fs/cifs/smb2ops.c 			dequeue_mid(mid, rdata->result);
mid              4067 fs/cifs/smb2ops.c 		dequeue_mid(mid, rdata->result);
mid              4078 fs/cifs/smb2ops.c 	dequeue_mid(mid, false);
mid              4097 fs/cifs/smb2ops.c 	struct mid_q_entry *mid;
mid              4107 fs/cifs/smb2ops.c 	mid = smb2_find_mid(dw->server, dw->buf);
mid              4108 fs/cifs/smb2ops.c 	if (mid == NULL)
mid              4111 fs/cifs/smb2ops.c 		mid->decrypted = true;
mid              4112 fs/cifs/smb2ops.c 		rc = handle_read_data(dw->server, mid, dw->buf,
mid              4115 fs/cifs/smb2ops.c 		mid->callback(mid);
mid              4116 fs/cifs/smb2ops.c 		cifs_mid_q_entry_release(mid);
mid              4130 fs/cifs/smb2ops.c receive_encrypted_read(struct TCP_Server_Info *server, struct mid_q_entry **mid,
mid              4210 fs/cifs/smb2ops.c 	*mid = smb2_find_mid(server, buf);
mid              4211 fs/cifs/smb2ops.c 	if (*mid == NULL)
mid              4215 fs/cifs/smb2ops.c 		(*mid)->decrypted = true;
mid              4216 fs/cifs/smb2ops.c 		rc = handle_read_data(server, *mid, buf,
mid              4358 fs/cifs/smb2ops.c smb3_handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid)
mid              4362 fs/cifs/smb2ops.c 	return handle_read_data(server, mid, buf, server->pdu_size,
mid              2655 fs/cifs/smb2pdu.c 	oparms->fid->mid = le64_to_cpu(rsp->sync_hdr.MessageId);
mid              3330 fs/cifs/smb2pdu.c smb2_echo_callback(struct mid_q_entry *mid)
mid              3332 fs/cifs/smb2pdu.c 	struct TCP_Server_Info *server = mid->callback_data;
mid              3333 fs/cifs/smb2pdu.c 	struct smb2_echo_rsp *rsp = (struct smb2_echo_rsp *)mid->resp_buf;
mid              3336 fs/cifs/smb2pdu.c 	if (mid->mid_state == MID_RESPONSE_RECEIVED
mid              3337 fs/cifs/smb2pdu.c 	    || mid->mid_state == MID_RESPONSE_MALFORMED) {
mid              3342 fs/cifs/smb2pdu.c 	DeleteMidQEntry(mid);
mid              3627 fs/cifs/smb2pdu.c smb2_readv_callback(struct mid_q_entry *mid)
mid              3629 fs/cifs/smb2pdu.c 	struct cifs_readdata *rdata = mid->callback_data;
mid              3644 fs/cifs/smb2pdu.c 		 __func__, mid->mid, mid->mid_state, rdata->result,
mid              3647 fs/cifs/smb2pdu.c 	switch (mid->mid_state) {
mid              3652 fs/cifs/smb2pdu.c 		if (server->sign && !mid->decrypted) {
mid              3705 fs/cifs/smb2pdu.c 	DeleteMidQEntry(mid);
mid              3860 fs/cifs/smb2pdu.c smb2_writev_callback(struct mid_q_entry *mid)
mid              3862 fs/cifs/smb2pdu.c 	struct cifs_writedata *wdata = mid->callback_data;
mid              3866 fs/cifs/smb2pdu.c 	struct smb2_write_rsp *rsp = (struct smb2_write_rsp *)mid->resp_buf;
mid              3869 fs/cifs/smb2pdu.c 	switch (mid->mid_state) {
mid              3873 fs/cifs/smb2pdu.c 		wdata->result = smb2_check_receive(mid, server, 0);
mid              3933 fs/cifs/smb2pdu.c 	DeleteMidQEntry(mid);
mid                46 fs/cifs/smb2proto.h extern int smb2_check_receive(struct mid_q_entry *mid,
mid                67 fs/cifs/smb2proto.h 				 struct mid_q_entry *mid);
mid               591 fs/cifs/smb2transport.c 	temp->mid = le64_to_cpu(shdr->MessageId);
mid               610 fs/cifs/smb2transport.c 		le16_to_cpu(shdr->Command), temp->mid);
mid               616 fs/cifs/smb2transport.c 		   struct mid_q_entry **mid)
mid               643 fs/cifs/smb2transport.c 	*mid = smb2_mid_entry_alloc(shdr, ses->server);
mid               644 fs/cifs/smb2transport.c 	if (*mid == NULL)
mid               647 fs/cifs/smb2transport.c 	list_add_tail(&(*mid)->qhead, &ses->server->pending_mid_q);
mid               654 fs/cifs/smb2transport.c smb2_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server,
mid               657 fs/cifs/smb2transport.c 	unsigned int len = mid->resp_buf_size;
mid               662 fs/cifs/smb2transport.c 	iov[0].iov_base = (char *)mid->resp_buf;
mid               665 fs/cifs/smb2transport.c 	dump_smb(mid->resp_buf, min_t(u32, 80, len));
mid               667 fs/cifs/smb2transport.c 	if (len > 24 && server->sign && !mid->decrypted) {
mid               676 fs/cifs/smb2transport.c 	return map_smb2_to_linux_error(mid->resp_buf, log_error);
mid               685 fs/cifs/smb2transport.c 	struct mid_q_entry *mid;
mid               689 fs/cifs/smb2transport.c 	rc = smb2_get_mid_entry(ses, shdr, &mid);
mid               698 fs/cifs/smb2transport.c 		cifs_delete_mid(mid);
mid               702 fs/cifs/smb2transport.c 	return mid;
mid               711 fs/cifs/smb2transport.c 	struct mid_q_entry *mid;
mid               719 fs/cifs/smb2transport.c 	mid = smb2_mid_entry_alloc(shdr, server);
mid               720 fs/cifs/smb2transport.c 	if (mid == NULL) {
mid               728 fs/cifs/smb2transport.c 		DeleteMidQEntry(mid);
mid               732 fs/cifs/smb2transport.c 	return mid;
mid               413 fs/cifs/trace.h 		__u64	mid,
mid               416 fs/cifs/trace.h 	TP_ARGS(tid, sesid, cmd, mid, status, rc),
mid               421 fs/cifs/trace.h 		__field(__u64, mid)
mid               429 fs/cifs/trace.h 		__entry->mid = mid;
mid               434 fs/cifs/trace.h 		__entry->sesid, __entry->tid, __entry->cmd, __entry->mid,
mid               443 fs/cifs/trace.h 		__u64	mid,			\
mid               446 fs/cifs/trace.h 	TP_ARGS(tid, sesid, cmd, mid, status, rc))
mid               454 fs/cifs/trace.h 		__u64	mid),
mid               455 fs/cifs/trace.h 	TP_ARGS(tid, sesid, cmd, mid),
mid               460 fs/cifs/trace.h 		__field(__u64, mid)
mid               466 fs/cifs/trace.h 		__entry->mid = mid;
mid               470 fs/cifs/trace.h 		__entry->cmd, __entry->mid)
mid               478 fs/cifs/trace.h 		__u64	mid),			\
mid               479 fs/cifs/trace.h 	TP_ARGS(tid, sesid, cmd, mid))
mid               487 fs/cifs/trace.h 		__u64	mid,
mid               491 fs/cifs/trace.h 	TP_ARGS(cmd, mid, pid, when_sent, when_received),
mid               494 fs/cifs/trace.h 		__field(__u64, mid)
mid               501 fs/cifs/trace.h 		__entry->mid = mid;
mid               507 fs/cifs/trace.h 		__entry->cmd, __entry->mid, __entry->pid, __entry->when_sent,
mid               514 fs/cifs/trace.h 		__u64	mid,			\
mid               518 fs/cifs/trace.h 	TP_ARGS(cmd, mid, pid, when_sent, when_received))
mid                48 fs/cifs/transport.c cifs_wake_up_task(struct mid_q_entry *mid)
mid                50 fs/cifs/transport.c 	wake_up_process(mid->callback_data);
mid                66 fs/cifs/transport.c 	temp->mid = get_mid(smb_buffer);
mid               151 fs/cifs/transport.c 		trace_smb3_slow_rsp(smb_cmd, midEntry->mid, midEntry->pid,
mid               155 fs/cifs/transport.c 			       midEntry->command, midEntry->mid);
mid               181 fs/cifs/transport.c cifs_delete_mid(struct mid_q_entry *mid)
mid               184 fs/cifs/transport.c 	if (!(mid->mid_flags & MID_DELETED)) {
mid               185 fs/cifs/transport.c 		list_del_init(&mid->qhead);
mid               186 fs/cifs/transport.c 		mid->mid_flags |= MID_DELETED;
mid               190 fs/cifs/transport.c 	DeleteMidQEntry(mid);
mid               739 fs/cifs/transport.c 	struct mid_q_entry *mid;
mid               749 fs/cifs/transport.c 	mid = AllocMidQEntry(hdr, server);
mid               750 fs/cifs/transport.c 	if (mid == NULL)
mid               753 fs/cifs/transport.c 	rc = cifs_sign_rqst(rqst, server, &mid->sequence_number);
mid               755 fs/cifs/transport.c 		DeleteMidQEntry(mid);
mid               759 fs/cifs/transport.c 	return mid;
mid               773 fs/cifs/transport.c 	struct mid_q_entry *mid;
mid               802 fs/cifs/transport.c 	mid = server->ops->setup_async_request(server, rqst);
mid               803 fs/cifs/transport.c 	if (IS_ERR(mid)) {
mid               806 fs/cifs/transport.c 		return PTR_ERR(mid);
mid               809 fs/cifs/transport.c 	mid->receive = receive;
mid               810 fs/cifs/transport.c 	mid->callback = callback;
mid               811 fs/cifs/transport.c 	mid->callback_data = cbdata;
mid               812 fs/cifs/transport.c 	mid->handle = handle;
mid               813 fs/cifs/transport.c 	mid->mid_state = MID_REQUEST_SUBMITTED;
mid               817 fs/cifs/transport.c 	list_add_tail(&mid->qhead, &server->pending_mid_q);
mid               824 fs/cifs/transport.c 	cifs_save_when_sent(mid);
mid               830 fs/cifs/transport.c 		revert_current_mid(server, mid->credits);
mid               832 fs/cifs/transport.c 		cifs_delete_mid(mid);
mid               872 fs/cifs/transport.c cifs_sync_mid_result(struct mid_q_entry *mid, struct TCP_Server_Info *server)
mid               877 fs/cifs/transport.c 		 __func__, le16_to_cpu(mid->command), mid->mid, mid->mid_state);
mid               880 fs/cifs/transport.c 	switch (mid->mid_state) {
mid               894 fs/cifs/transport.c 		if (!(mid->mid_flags & MID_DELETED)) {
mid               895 fs/cifs/transport.c 			list_del_init(&mid->qhead);
mid               896 fs/cifs/transport.c 			mid->mid_flags |= MID_DELETED;
mid               899 fs/cifs/transport.c 			 __func__, mid->mid, mid->mid_state);
mid               904 fs/cifs/transport.c 	DeleteMidQEntry(mid);
mid               910 fs/cifs/transport.c 	    struct mid_q_entry *mid)
mid               913 fs/cifs/transport.c 				server->ops->send_cancel(server, rqst, mid) : 0;
mid               917 fs/cifs/transport.c cifs_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server,
mid               920 fs/cifs/transport.c 	unsigned int len = get_rfc1002_length(mid->resp_buf) + 4;
mid               922 fs/cifs/transport.c 	dump_smb(mid->resp_buf, min_t(u32, 92, len));
mid               931 fs/cifs/transport.c 		iov[0].iov_base = mid->resp_buf;
mid               933 fs/cifs/transport.c 		iov[1].iov_base = (char *)mid->resp_buf + 4;
mid               937 fs/cifs/transport.c 					   mid->sequence_number);
mid               944 fs/cifs/transport.c 	return map_smb_to_linux_error(mid->resp_buf, log_error);
mid               952 fs/cifs/transport.c 	struct mid_q_entry *mid;
mid               958 fs/cifs/transport.c 	rc = allocate_mid(ses, hdr, &mid);
mid               961 fs/cifs/transport.c 	rc = cifs_sign_rqst(rqst, ses->server, &mid->sequence_number);
mid               963 fs/cifs/transport.c 		cifs_delete_mid(mid);
mid               966 fs/cifs/transport.c 	return mid;
mid               970 fs/cifs/transport.c cifs_compound_callback(struct mid_q_entry *mid)
mid               972 fs/cifs/transport.c 	struct TCP_Server_Info *server = mid->server;
mid               975 fs/cifs/transport.c 	credits.value = server->ops->get_credits(mid);
mid               978 fs/cifs/transport.c 	add_credits(server, &credits, mid->optype);
mid               982 fs/cifs/transport.c cifs_compound_last_callback(struct mid_q_entry *mid)
mid               984 fs/cifs/transport.c 	cifs_compound_callback(mid);
mid               985 fs/cifs/transport.c 	cifs_wake_up_task(mid);
mid               989 fs/cifs/transport.c cifs_cancelled_callback(struct mid_q_entry *mid)
mid               991 fs/cifs/transport.c 	cifs_compound_callback(mid);
mid               992 fs/cifs/transport.c 	DeleteMidQEntry(mid);
mid              1137 fs/cifs/transport.c 				 midQ[i]->mid, le16_to_cpu(midQ[i]->command));
mid                61 fs/erofs/namei.c 		const int mid = head + (back - head) / 2;
mid                62 fs/erofs/namei.c 		const int nameoff = nameoff_from_disk(de[mid].nameoff,
mid                67 fs/erofs/namei.c 			.end = mid >= ndirents - 1 ?
mid                69 fs/erofs/namei.c 				data + nameoff_from_disk(de[mid + 1].nameoff,
mid                77 fs/erofs/namei.c 			return de + mid;
mid                79 fs/erofs/namei.c 			head = mid + 1;
mid                82 fs/erofs/namei.c 			back = mid - 1;
mid               104 fs/erofs/namei.c 		const int mid = head + (back - head) / 2;
mid               105 fs/erofs/namei.c 		struct page *page = read_mapping_page(mapping, mid, NULL);
mid               121 fs/erofs/namei.c 					  mid, EROFS_I(dir)->nid);
mid               145 fs/erofs/namei.c 				head = mid + 1;
mid               155 fs/erofs/namei.c 				back = mid - 1;
mid               129 fs/ubifs/tnc_misc.c 	int beg = 0, end = znode->child_cnt, uninitialized_var(mid);
mid               136 fs/ubifs/tnc_misc.c 		mid = (beg + end) >> 1;
mid               137 fs/ubifs/tnc_misc.c 		cmp = keys_cmp(c, key, &zbr[mid].key);
mid               139 fs/ubifs/tnc_misc.c 			beg = mid + 1;
mid               141 fs/ubifs/tnc_misc.c 			end = mid;
mid               143 fs/ubifs/tnc_misc.c 			*n = mid;
mid               342 fs/xfs/libxfs/xfs_dir2_block.c 	int			mid=0;		/* midpoint for binary srch */
mid               424 fs/xfs/libxfs/xfs_dir2_block.c 		mid = (low + high) >> 1;
mid               425 fs/xfs/libxfs/xfs_dir2_block.c 		if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval)
mid               428 fs/xfs/libxfs/xfs_dir2_block.c 			low = mid + 1;
mid               430 fs/xfs/libxfs/xfs_dir2_block.c 			high = mid - 1;
mid               432 fs/xfs/libxfs/xfs_dir2_block.c 	while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) {
mid               433 fs/xfs/libxfs/xfs_dir2_block.c 		mid--;
mid               470 fs/xfs/libxfs/xfs_dir2_block.c 		mid++;
mid               471 fs/xfs/libxfs/xfs_dir2_block.c 		if (mid)
mid               472 fs/xfs/libxfs/xfs_dir2_block.c 			memmove(blp, &blp[1], mid * sizeof(*blp));
mid               474 fs/xfs/libxfs/xfs_dir2_block.c 		lfloghigh = mid;
mid               480 fs/xfs/libxfs/xfs_dir2_block.c 		for (lowstale = mid;
mid               486 fs/xfs/libxfs/xfs_dir2_block.c 		for (highstale = mid + 1;
mid               490 fs/xfs/libxfs/xfs_dir2_block.c 			(lowstale < 0 || mid - lowstale > highstale - mid);
mid               498 fs/xfs/libxfs/xfs_dir2_block.c 		     mid - lowstale <= highstale - mid)) {
mid               499 fs/xfs/libxfs/xfs_dir2_block.c 			if (mid - lowstale)
mid               501 fs/xfs/libxfs/xfs_dir2_block.c 					(mid - lowstale) * sizeof(*blp));
mid               503 fs/xfs/libxfs/xfs_dir2_block.c 			lfloghigh = max(mid, lfloghigh);
mid               510 fs/xfs/libxfs/xfs_dir2_block.c 			mid++;
mid               511 fs/xfs/libxfs/xfs_dir2_block.c 			if (highstale - mid)
mid               512 fs/xfs/libxfs/xfs_dir2_block.c 				memmove(&blp[mid + 1], &blp[mid],
mid               513 fs/xfs/libxfs/xfs_dir2_block.c 					(highstale - mid) * sizeof(*blp));
mid               514 fs/xfs/libxfs/xfs_dir2_block.c 			lfloglow = min(mid, lfloglow);
mid               526 fs/xfs/libxfs/xfs_dir2_block.c 	blp[mid].hashval = cpu_to_be32(args->hashval);
mid               527 fs/xfs/libxfs/xfs_dir2_block.c 	blp[mid].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(
mid               662 fs/xfs/libxfs/xfs_dir2_block.c 	int			mid;		/* binary search current idx */
mid               685 fs/xfs/libxfs/xfs_dir2_block.c 		mid = (low + high) >> 1;
mid               686 fs/xfs/libxfs/xfs_dir2_block.c 		if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval)
mid               689 fs/xfs/libxfs/xfs_dir2_block.c 			low = mid + 1;
mid               691 fs/xfs/libxfs/xfs_dir2_block.c 			high = mid - 1;
mid               701 fs/xfs/libxfs/xfs_dir2_block.c 	while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) {
mid               702 fs/xfs/libxfs/xfs_dir2_block.c 		mid--;
mid               709 fs/xfs/libxfs/xfs_dir2_block.c 		if ((addr = be32_to_cpu(blp[mid].address)) == XFS_DIR2_NULL_DATAPTR)
mid               725 fs/xfs/libxfs/xfs_dir2_block.c 			*entno = mid;
mid               729 fs/xfs/libxfs/xfs_dir2_block.c 	} while (++mid < be32_to_cpu(btp->count) &&
mid               730 fs/xfs/libxfs/xfs_dir2_block.c 			be32_to_cpu(blp[mid].hashval) == hash);
mid              1506 fs/xfs/libxfs/xfs_dir2_leaf.c 	int			mid=0;		/* current leaf index */
mid              1521 fs/xfs/libxfs/xfs_dir2_leaf.c 		mid = (low + high) >> 1;
mid              1522 fs/xfs/libxfs/xfs_dir2_leaf.c 		if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant)
mid              1525 fs/xfs/libxfs/xfs_dir2_leaf.c 			low = mid + 1;
mid              1527 fs/xfs/libxfs/xfs_dir2_leaf.c 			high = mid - 1;
mid              1533 fs/xfs/libxfs/xfs_dir2_leaf.c 		while (mid > 0 && be32_to_cpu(lep[mid - 1].hashval) == hashwant) {
mid              1534 fs/xfs/libxfs/xfs_dir2_leaf.c 			mid--;
mid              1541 fs/xfs/libxfs/xfs_dir2_leaf.c 		mid++;
mid              1542 fs/xfs/libxfs/xfs_dir2_leaf.c 	return mid;
mid              1005 fs/xfs/libxfs/xfs_dir2_node.c 	int			mid;		/* midpoint leaf index */
mid              1036 fs/xfs/libxfs/xfs_dir2_node.c 	mid = oldsum >> 1;
mid              1045 fs/xfs/libxfs/xfs_dir2_node.c 		if (mid >= hdr1.count)
mid              1046 fs/xfs/libxfs/xfs_dir2_node.c 			midhash = be32_to_cpu(ents2[mid - hdr1.count].hashval);
mid              1048 fs/xfs/libxfs/xfs_dir2_node.c 			midhash = be32_to_cpu(ents1[mid].hashval);
mid              1062 fs/xfs/libxfs/xfs_dir2_node.c 	count = hdr1.count - mid + (isleft == 0);
mid               236 include/linux/sctp.h 	__be32 mid;
mid               609 include/linux/sctp.h 	__be32 mid;
mid               404 include/net/sctp/structs.h 	(sctp_stream_##type((stream), (sid))->mid)
mid               408 include/net/sctp/structs.h 	(sctp_stream_##type((stream), (sid))->mid++)
mid               411 include/net/sctp/structs.h #define sctp_mid_skip(stream, type, sid, mid) \
mid               412 include/net/sctp/structs.h 	(sctp_stream_##type((stream), (sid))->mid = mid + 1)
mid              1421 include/net/sctp/structs.h 		__u32 mid;
mid              1431 include/net/sctp/structs.h 		__u32 mid;
mid                43 include/net/sctp/ulpevent.h 		__u32 mid;
mid               434 kernel/cgroup/cgroup-v1.c 			int mid = (index + end) / 2;
mid               435 kernel/cgroup/cgroup-v1.c 			if (l->list[mid] == pid) {
mid               436 kernel/cgroup/cgroup-v1.c 				index = mid;
mid               438 kernel/cgroup/cgroup-v1.c 			} else if (l->list[mid] <= pid)
mid               439 kernel/cgroup/cgroup-v1.c 				index = mid + 1;
mid               441 kernel/cgroup/cgroup-v1.c 				end = mid;
mid               107 kernel/groups.c 		unsigned int mid = (left+right)/2;
mid               108 kernel/groups.c 		if (gid_gt(grp, group_info->gid[mid]))
mid               109 kernel/groups.c 			left = mid + 1;
mid               110 kernel/groups.c 		else if (gid_lt(grp, group_info->gid[mid]))
mid               111 kernel/groups.c 			right = mid;
mid               203 kernel/kallsyms.c 	unsigned long i, low, high, mid;
mid               216 kernel/kallsyms.c 		mid = low + (high - low) / 2;
mid               217 kernel/kallsyms.c 		if (kallsyms_sym_address(mid) <= addr)
mid               218 kernel/kallsyms.c 			low = mid;
mid               220 kernel/kallsyms.c 			high = mid;
mid               126 lib/xz/xz_dec_lzma2.c 	uint16_t mid[POS_STATES_MAX][LEN_MID_SYMBOLS];
mid               631 lib/xz/xz_dec_lzma2.c 			probs = l->mid[pos_state];
mid               588 lib/zstd/fse_compress.c 		U64 const mid = (1ULL << (vStepLog - 1)) - 1;
mid               589 lib/zstd/fse_compress.c 		U64 const rStep = div_u64((((U64)1 << vStepLog) * ToDistribute) + mid, (U32)total); /* scale on remaining */
mid               590 lib/zstd/fse_compress.c 		U64 tmpTotal = mid;
mid              1717 mm/memblock.c  		unsigned int mid = (right + left) / 2;
mid              1719 mm/memblock.c  		if (addr < type->regions[mid].base)
mid              1720 mm/memblock.c  			right = mid;
mid              1721 mm/memblock.c  		else if (addr >= (type->regions[mid].base +
mid              1722 mm/memblock.c  				  type->regions[mid].size))
mid              1723 mm/memblock.c  			left = mid + 1;
mid              1725 mm/memblock.c  			return mid;
mid              1754 mm/memblock.c  	int mid = memblock_search(type, PFN_PHYS(pfn));
mid              1756 mm/memblock.c  	if (mid == -1)
mid              1759 mm/memblock.c  	*start_pfn = PFN_DOWN(type->regions[mid].base);
mid              1760 mm/memblock.c  	*end_pfn = PFN_DOWN(type->regions[mid].base + type->regions[mid].size);
mid              1762 mm/memblock.c  	return type->regions[mid].nid;
mid               680 net/netfilter/x_tables.c 	int mid, left = 0, right = xt[af].cur - 1;
mid               683 net/netfilter/x_tables.c 		mid = (left + right) >> 1;
mid               684 net/netfilter/x_tables.c 		if (offset > tmp[mid].offset)
mid               685 net/netfilter/x_tables.c 			left = mid + 1;
mid               686 net/netfilter/x_tables.c 		else if (offset < tmp[mid].offset)
mid               687 net/netfilter/x_tables.c 			right = mid - 1;
mid               689 net/netfilter/x_tables.c 			return mid ? tmp[mid - 1].delta : 0;
mid               193 net/sctp/stream.c 		SCTP_SO(stream, i)->mid = 0;
mid               198 net/sctp/stream.c 		SCTP_SI(stream, i)->mid = 0;
mid               583 net/sctp/stream.c 			SCTP_SI(stream, ntohs(str_p[i]))->mid = 0;
mid               586 net/sctp/stream.c 			SCTP_SI(stream, i)->mid = 0;
mid               755 net/sctp/stream.c 		SCTP_SO(stream, i)->mid = 0;
mid               759 net/sctp/stream.c 		SCTP_SI(stream, i)->mid = 0;
mid               949 net/sctp/stream.c 					sout->mid = 0;
mid               955 net/sctp/stream.c 					sout->mid = 0;
mid              1021 net/sctp/stream.c 				SCTP_SO(stream, i)->mid = 0;
mid              1025 net/sctp/stream.c 				SCTP_SI(stream, i)->mid = 0;
mid                63 net/sctp/stream_interleave.c 		__u32 mid;
mid                75 net/sctp/stream_interleave.c 			mid = lchunk->chunk_hdr->flags & SCTP_DATA_LAST_FRAG ?
mid                79 net/sctp/stream_interleave.c 			mid = lchunk->chunk_hdr->flags & SCTP_DATA_LAST_FRAG ?
mid                83 net/sctp/stream_interleave.c 		hdr->mid = htonl(mid);
mid               108 net/sctp/stream_interleave.c 	__u32 mid;
mid               119 net/sctp/stream_interleave.c 	mid = ntohl(chunk->subh.idata_hdr->mid);
mid               121 net/sctp/stream_interleave.c 	return !MID_lt(mid, sctp_mid_peek(stream, in, sid));
mid               139 net/sctp/stream_interleave.c 	    event->mid == cevent->mid &&
mid               148 net/sctp/stream_interleave.c 	     MID_lt(cevent->mid, event->mid)) ||
mid               160 net/sctp/stream_interleave.c 		     MID_lt(event->mid, cevent->mid))) {
mid               165 net/sctp/stream_interleave.c 		    event->mid == cevent->mid &&
mid               201 net/sctp/stream_interleave.c 		    cevent->mid != sin->mid)
mid               271 net/sctp/stream_interleave.c 	__u32 mid = 0;
mid               283 net/sctp/stream_interleave.c 		if (MID_lt(cevent->mid, event->mid))
mid               285 net/sctp/stream_interleave.c 		if (MID_lt(event->mid, cevent->mid))
mid               290 net/sctp/stream_interleave.c 			if (cevent->mid == sin->mid) {
mid               298 net/sctp/stream_interleave.c 			mid = cevent->mid;
mid               302 net/sctp/stream_interleave.c 			if (first_frag && cevent->mid == mid &&
mid               315 net/sctp/stream_interleave.c 			if (first_frag && cevent->mid == mid &&
mid               364 net/sctp/stream_interleave.c 	if (sin->pd_mode && event->mid == sin->mid &&
mid               388 net/sctp/stream_interleave.c 	    MID_lt(cevent->mid, event->mid)) {
mid               407 net/sctp/stream_interleave.c 		    MID_lt(event->mid, cevent->mid)) {
mid               439 net/sctp/stream_interleave.c 		if (cevent->mid != sctp_mid_peek(stream, in, sid))
mid               459 net/sctp/stream_interleave.c 	if (event->mid != sctp_mid_peek(stream, in, sid)) {
mid               532 net/sctp/stream_interleave.c 	    event->mid == cevent->mid &&
mid               541 net/sctp/stream_interleave.c 	     MID_lt(cevent->mid, event->mid)) ||
mid               552 net/sctp/stream_interleave.c 		     MID_lt(event->mid, cevent->mid)))
mid               556 net/sctp/stream_interleave.c 		    event->mid == cevent->mid &&
mid               588 net/sctp/stream_interleave.c 		if (MID_lt(cevent->mid, sin->mid_uo))
mid               590 net/sctp/stream_interleave.c 		if (MID_lt(sin->mid_uo, cevent->mid))
mid               660 net/sctp/stream_interleave.c 	__u32 mid = 0;
mid               672 net/sctp/stream_interleave.c 		if (MID_lt(cevent->mid, event->mid))
mid               674 net/sctp/stream_interleave.c 		if (MID_lt(event->mid, cevent->mid))
mid               680 net/sctp/stream_interleave.c 				sin->mid_uo = cevent->mid;
mid               688 net/sctp/stream_interleave.c 			mid = cevent->mid;
mid               692 net/sctp/stream_interleave.c 			if (first_frag && cevent->mid == mid &&
mid               705 net/sctp/stream_interleave.c 			if (first_frag && cevent->mid == mid &&
mid               754 net/sctp/stream_interleave.c 	if (sin->pd_mode_uo && event->mid == sin->mid_uo &&
mid               790 net/sctp/stream_interleave.c 			sin->mid_uo = cevent->mid;
mid               796 net/sctp/stream_interleave.c 			    cevent->mid == sin->mid_uo &&
mid               839 net/sctp/stream_interleave.c 	event->mid = ntohl(chunk->subh.idata_hdr->mid);
mid               891 net/sctp/stream_interleave.c 			if (cevent->mid == csin->mid) {
mid               903 net/sctp/stream_interleave.c 			    cevent->mid == sin->mid &&
mid               990 net/sctp/stream_interleave.c 				      __u32 mid, __u16 flags, gfp_t gfp)
mid              1000 net/sctp/stream_interleave.c 				      sid, mid, flags, gfp);
mid              1027 net/sctp/stream_interleave.c 		cmid = cevent->mid;
mid              1048 net/sctp/stream_interleave.c 		cmid = cevent->mid;
mid              1071 net/sctp/stream_interleave.c 		__u32 mid;
mid              1076 net/sctp/stream_interleave.c 			mid = sin->mid_uo;
mid              1077 net/sctp/stream_interleave.c 			sctp_intl_stream_abort_pd(ulpq, sid, mid, 0x1, gfp);
mid              1083 net/sctp/stream_interleave.c 			mid = sin->mid;
mid              1084 net/sctp/stream_interleave.c 			sctp_intl_stream_abort_pd(ulpq, sid, mid, 0, gfp);
mid              1085 net/sctp/stream_interleave.c 			sctp_mid_skip(stream, in, sid, mid);
mid              1134 net/sctp/stream_interleave.c 			__be32 mid = chunk->subh.idata_hdr->mid;
mid              1146 net/sctp/stream_interleave.c 			ftsn_skip_arr[skip_pos].mid = mid;
mid              1261 net/sctp/stream_interleave.c static void sctp_intl_skip(struct sctp_ulpq *ulpq, __u16 sid, __u32 mid,
mid              1268 net/sctp/stream_interleave.c 		if (sin->pd_mode_uo && MID_lt(sin->mid_uo, mid)) {
mid              1270 net/sctp/stream_interleave.c 			sctp_intl_stream_abort_pd(ulpq, sid, mid, 0x1,
mid              1276 net/sctp/stream_interleave.c 	if (MID_lt(mid, sctp_mid_peek(stream, in, sid)))
mid              1281 net/sctp/stream_interleave.c 		sctp_intl_stream_abort_pd(ulpq, sid, mid, 0x0, GFP_ATOMIC);
mid              1284 net/sctp/stream_interleave.c 	sctp_mid_skip(stream, in, sid, mid);
mid              1296 net/sctp/stream_interleave.c 			       ntohl(skip->mid), skip->flags);
mid                96 sound/isa/msnd/msnd.c 		   unsigned char mid, unsigned char low)
mid               102 sound/isa/msnd/msnd.c 		outb(mid, io + HP_TXM);
mid               278 sound/isa/msnd/msnd.h 			   unsigned char mid,
mid               172 sound/pci/hda/patch_ca0132.c 	int mid; /*effect module ID*/
mid               186 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               194 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               202 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               210 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               218 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               226 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               237 sound/pci/hda/patch_ca0132.c 	  .mid = 0x95,
mid               245 sound/pci/hda/patch_ca0132.c 	  .mid = 0x95,
mid               253 sound/pci/hda/patch_ca0132.c 	  .mid = 0x95,
mid               261 sound/pci/hda/patch_ca0132.c 	  .mid = 0x95,
mid               269 sound/pci/hda/patch_ca0132.c 	  .mid = 0x95,
mid               304 sound/pci/hda/patch_ca0132.c 	int mid; /*effect module ID*/
mid               314 sound/pci/hda/patch_ca0132.c 	  .mid = 0x95,
mid               322 sound/pci/hda/patch_ca0132.c 	  .mid = 0x95,
mid               330 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               338 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               346 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               354 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               362 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               370 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               378 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               386 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               394 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               402 sound/pci/hda/patch_ca0132.c 	  .mid = 0x96,
mid               416 sound/pci/hda/patch_ca0132.c 	int mid;
mid               428 sound/pci/hda/patch_ca0132.c 	.mid = 0x95,
mid               512 sound/pci/hda/patch_ca0132.c 	int mid;
mid               524 sound/pci/hda/patch_ca0132.c 	.mid = 0x96,
mid               645 sound/pci/hda/patch_ca0132.c 	int mid; /* module ID*/
mid               651 sound/pci/hda/patch_ca0132.c 	  .mid = 0x32,
mid               655 sound/pci/hda/patch_ca0132.c 	  .mid = 0x37,
mid              3844 sound/pci/hda/patch_ca0132.c 	dspio_set_param(codec, ca0132_tuning_ctls[i].mid, 0x20,
mid              4841 sound/pci/hda/patch_ca0132.c 	dspio_set_uint_param(codec, ca0132_voicefx.mid,
mid              4925 sound/pci/hda/patch_ca0132.c 	err = dspio_set_uint_param(codec, ca0132_effects[idx].mid,
mid              5151 sound/pci/hda/patch_ca0132.c 		dspio_set_param(codec, ca0132_effects[i].mid, 0x20,
mid              5160 sound/pci/hda/patch_ca0132.c 		dspio_set_param(codec, ca0132_effects[i].mid, 0x20,
mid              5593 sound/pci/hda/patch_ca0132.c 	dspio_set_uint_param(codec, ca0132_effects[idx].mid,
mid              5643 sound/pci/hda/patch_ca0132.c 		err = dspio_set_uint_param(codec, ca0132_alt_eq_enum.mid,
mid              5700 sound/pci/hda/patch_ca0132.c 		err = dspio_set_uint_param(codec, ca0132_voicefx.mid,
mid              5855 sound/pci/hda/patch_ca0132.c 		ca0132_alt_vol_ctls[dsp_dir].mid,
mid              5862 sound/pci/hda/patch_ca0132.c 		ca0132_alt_vol_ctls[dsp_dir].mid,
mid              5867 sound/pci/hda/patch_ca0132.c 		ca0132_alt_vol_ctls[dsp_dir].mid,
mid              7243 sound/pci/hda/patch_ca0132.c 			dspio_set_uint_param(codec, ca0132_effects[idx].mid,
mid              7307 sound/pci/hda/patch_ca0132.c 					ca0132_effects[idx].mid,
mid              7363 sound/pci/hda/patch_ca0132.c 					ca0132_effects[idx].mid,
mid              7430 sound/pci/hda/patch_ca0132.c 					ca0132_effects[idx].mid,
mid               896 sound/synth/emux/soundfont.c 	int left = 1, right = 127, mid;
mid               898 sound/synth/emux/soundfont.c 		mid = (left + right) / 2;
mid               899 sound/synth/emux/soundfont.c 		if (msec < (int)table[mid])
mid               900 sound/synth/emux/soundfont.c 			left = mid + 1;
mid               902 sound/synth/emux/soundfont.c 			right = mid;
mid                58 tools/testing/selftests/bpf/trace_helpers.c 		size_t mid = start + (end - start) / 2;
mid                60 tools/testing/selftests/bpf/trace_helpers.c 		result = key - syms[mid].addr;
mid                62 tools/testing/selftests/bpf/trace_helpers.c 			end = mid;
mid                64 tools/testing/selftests/bpf/trace_helpers.c 			start = mid + 1;
mid                66 tools/testing/selftests/bpf/trace_helpers.c 			return &syms[mid];
mid                71 tools/testing/selftests/timers/adjtick.c 	struct timespec start, mid, end;
mid                83 tools/testing/selftests/timers/adjtick.c 		clock_gettime(CLOCK_MONOTONIC_RAW, &mid);
mid                89 tools/testing/selftests/timers/adjtick.c 			*raw = mid;
mid                71 tools/testing/selftests/timers/raw_skew.c 	struct timespec start, mid, end;
mid                79 tools/testing/selftests/timers/raw_skew.c 		clock_gettime(CLOCK_MONOTONIC_RAW, &mid);
mid                85 tools/testing/selftests/timers/raw_skew.c 			*raw = mid;