Home
last modified time | relevance | path

Searched refs:mid (Results 1 – 25 of 51) sorted by relevance

123

/drivers/tty/serial/8250/
D8250_mid.c55 static int pnw_setup(struct mid8250 *mid, struct uart_port *p) in pnw_setup() argument
61 mid->dma_index = 0; in pnw_setup()
64 mid->dma_index = 1; in pnw_setup()
67 mid->dma_index = 2; in pnw_setup()
73 mid->dma_dev = pci_get_slot(pdev->bus, in pnw_setup()
78 static int tng_setup(struct mid8250 *mid, struct uart_port *p) in tng_setup() argument
91 mid->dma_index = index; in tng_setup()
92 mid->dma_dev = pci_get_slot(pdev->bus, PCI_DEVFN(5, 0)); in tng_setup()
98 struct mid8250 *mid = p->private_data; in dnv_handle_irq() local
106 err = hsu_dma_get_status(&mid->dma_chip, 1, &status); in dnv_handle_irq()
[all …]
/drivers/ide/
Dide-cd_verbose.c280 int lo = 0, mid, hi = ARRAY_SIZE(sense_data_texts); in ide_cd_log_error() local
289 mid = (lo + hi) / 2; in ide_cd_log_error()
290 if (sense_data_texts[mid].asc_ascq == key || in ide_cd_log_error()
291 sense_data_texts[mid].asc_ascq == (0xff0000|key)) { in ide_cd_log_error()
292 s = sense_data_texts[mid].text; in ide_cd_log_error()
294 } else if (sense_data_texts[mid].asc_ascq > key) in ide_cd_log_error()
295 hi = mid; in ide_cd_log_error()
297 lo = mid + 1; in ide_cd_log_error()
312 int lo = 0, mid, hi = ARRAY_SIZE(packet_command_texts); in ide_cd_log_error() local
316 mid = (lo + hi) / 2; in ide_cd_log_error()
[all …]
/drivers/hwmon/pmbus/
Ducd9200.c54 const struct i2c_device_id *mid; in ucd9200_probe() local
71 for (mid = ucd9200_id; mid->name[0]; mid++) { in ucd9200_probe()
72 if (!strncasecmp(mid->name, block_buffer, strlen(mid->name))) in ucd9200_probe()
75 if (!mid->name[0]) { in ucd9200_probe()
79 if (id->driver_data != ucd9200 && id->driver_data != mid->driver_data) in ucd9200_probe()
82 id->name, mid->name); in ucd9200_probe()
160 if (mid->driver_data == ucd9240) in ucd9200_probe()
163 return pmbus_do_probe(client, mid, info); in ucd9200_probe()
Ducd9000.c128 const struct i2c_device_id *mid; in ucd9000_probe() local
145 for (mid = ucd9000_id; mid->name[0]; mid++) { in ucd9000_probe()
146 if (!strncasecmp(mid->name, block_buffer, strlen(mid->name))) in ucd9000_probe()
149 if (!mid->name[0]) { in ucd9000_probe()
154 if (id->driver_data != ucd9000 && id->driver_data != mid->driver_data) in ucd9000_probe()
157 id->name, mid->name); in ucd9000_probe()
213 if (mid->driver_data == ucd90124) { in ucd9000_probe()
230 return pmbus_do_probe(client, mid, info); in ucd9000_probe()
Dzl6100.c323 const struct i2c_device_id *mid; in zl6100_probe() local
339 mid = NULL; in zl6100_probe()
340 for (mid = zl6100_id; mid->name[0]; mid++) { in zl6100_probe()
341 if (!strncasecmp(mid->name, device_id, strlen(mid->name))) in zl6100_probe()
344 if (!mid->name[0]) { in zl6100_probe()
348 if (id->driver_data != mid->driver_data) in zl6100_probe()
351 id->name, mid->name); in zl6100_probe()
358 data->id = mid->driver_data; in zl6100_probe()
404 return pmbus_do_probe(client, mid, info); in zl6100_probe()
Dadm1275.c355 const struct i2c_device_id *mid; in adm1275_probe() local
380 for (mid = adm1275_id; mid->name[0]; mid++) { in adm1275_probe()
381 if (!strncasecmp(mid->name, block_buffer, strlen(mid->name))) in adm1275_probe()
384 if (!mid->name[0]) { in adm1275_probe()
389 if (id->driver_data != mid->driver_data) in adm1275_probe()
392 id->name, mid->name); in adm1275_probe()
407 data->id = mid->driver_data; in adm1275_probe()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c907 u16 fid, u16 mid, bool adding) in mlxsw_sp_port_mdb_op() argument
919 MLXSW_REG_SFD_REC_ACTION_NOP, mid); in mlxsw_sp_port_mdb_op()
933 static int mlxsw_sp_port_smid_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 mid, in mlxsw_sp_port_smid_set() argument
944 mlxsw_reg_smid_pack(smid_pl, mid, mlxsw_sp_port->local_port, add); in mlxsw_sp_port_smid_set()
959 struct mlxsw_sp_mid *mid; in __mlxsw_sp_mc_get() local
961 list_for_each_entry(mid, &mlxsw_sp->br_mids.list, list) { in __mlxsw_sp_mc_get()
962 if (ether_addr_equal(mid->addr, addr) && mid->fid == fid) in __mlxsw_sp_mc_get()
963 return mid; in __mlxsw_sp_mc_get()
972 struct mlxsw_sp_mid *mid; in __mlxsw_sp_mc_alloc() local
980 mid = kzalloc(sizeof(*mid), GFP_KERNEL); in __mlxsw_sp_mc_alloc()
[all …]
/drivers/thermal/
Drockchip_thermal.c403 int high, low, mid; in rk_tsadcv2_temp_to_code() local
408 mid = (high + low) / 2; in rk_tsadcv2_temp_to_code()
417 if (temp == table.id[mid].temp) in rk_tsadcv2_temp_to_code()
418 return table.id[mid].code; in rk_tsadcv2_temp_to_code()
419 else if (temp < table.id[mid].temp) in rk_tsadcv2_temp_to_code()
420 high = mid - 1; in rk_tsadcv2_temp_to_code()
422 low = mid + 1; in rk_tsadcv2_temp_to_code()
423 mid = (low + high) / 2; in rk_tsadcv2_temp_to_code()
436 unsigned int mid = (low + high) / 2; in rk_tsadcv2_code_to_temp() local
449 if (code >= table.id[mid].code && in rk_tsadcv2_code_to_temp()
[all …]
/drivers/isdn/hardware/eicon/
Dcapidtmf.c252 long d, e, q1, q2, lo, mid, hi; in capidtmf_goertzel_result() local
269 mid = k >> 16; in capidtmf_goertzel_result()
271 mid += k & 0xffff; in capidtmf_goertzel_result()
274 mid += k & 0xffff; in capidtmf_goertzel_result()
283 mid = -((long)(k >> 16)); in capidtmf_goertzel_result()
285 mid -= k & 0xffff; in capidtmf_goertzel_result()
288 mid -= k & 0xffff; in capidtmf_goertzel_result()
295 mid = -mid; in capidtmf_goertzel_result()
301 mid += k >> 16; in capidtmf_goertzel_result()
303 mid += (k & 0xffff) << 1; in capidtmf_goertzel_result()
[all …]
/drivers/scsi/bfa/
Dbfa_plog.h42 u8 mid; /* module id */ member
145 void bfa_plog_str(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
147 void bfa_plog_intarr(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
150 void bfa_plog_fchdr(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
152 void bfa_plog_fchdr_and_pl(struct bfa_plog_s *plog, enum bfa_plog_mid mid,
/drivers/power/supply/
Drx51_battery.c130 int mid = (max + min) / 2; in rx51_battery_read_temperature() local
131 if (rx51_temp_table2[mid] <= raw) in rx51_battery_read_temperature()
132 min = mid; in rx51_battery_read_temperature()
133 else if (rx51_temp_table2[mid] > raw) in rx51_battery_read_temperature()
134 max = mid; in rx51_battery_read_temperature()
135 if (rx51_temp_table2[mid] == raw) in rx51_battery_read_temperature()
/drivers/net/wireless/ath/wil6210/
Dtrace.h45 __field(u8, mid)
53 __entry->mid = wmi->mid;
62 __entry->mid, __entry->command_id, __entry->buf_len,
165 __field(u8, mid)
176 __entry->mid = wil_rxdesc_mid(d);
186 __entry->mid, __entry->cid, __entry->tid, __entry->mcs,
Dwmi.h61 u8 mid; member
483 u8 mid; member
488 u8 mid; member
754 u8 mid; member
1521 u8 mid; member
2004 u8 mid; member
2012 u8 mid; member
2029 u8 mid; member
2037 u8 mid; member
Drx_reorder.c100 int mid = wil_rxdesc_mid(d); in wil_rx_reorder() local
109 mid, cid, tid, seq, mcast); in wil_rx_reorder()
/drivers/md/
Dlinear.c32 int lo, mid, hi; in which_dev() local
45 mid = (hi + lo) / 2; in which_dev()
46 if (sector < conf->disks[mid].end_sector) in which_dev()
47 hi = mid; in which_dev()
49 lo = mid + 1; in which_dev()
/drivers/iio/temperature/
Dtmp006.c187 int mid, did; in tmp006_check_identification() local
189 mid = i2c_smbus_read_word_swapped(client, TMP006_MANUFACTURER_ID); in tmp006_check_identification()
190 if (mid < 0) in tmp006_check_identification()
197 return mid == TMP006_MANUFACTURER_MAGIC && did == TMP006_DEVICE_MAGIC; in tmp006_check_identification()
/drivers/rtc/
Drtc-vr41xx.c166 unsigned long low, mid, high; in vr41xx_rtc_read_alarm() local
172 mid = rtc1_read(ECMPMREG); in vr41xx_rtc_read_alarm()
178 rtc_time_to_tm((high << 17) | (mid << 1) | (low >> 15), time); in vr41xx_rtc_read_alarm()
/drivers/hwmon/
Dntc_thermistor.c412 int start, end, mid; in lookup_comp() local
436 mid = start + (end - start) / 2; in lookup_comp()
446 if (ohm >= data->comp[mid].ohm) { in lookup_comp()
447 end = mid; in lookup_comp()
449 start = mid + 1; in lookup_comp()
/drivers/iommu/
Dmsm_iommu.c219 int mid, ctx, i; in config_mids() local
222 mid = master->mids[i]; in config_mids()
225 SET_M2VCBR_N(iommu->base, mid, 0); in config_mids()
229 SET_VMID(iommu->base, mid, 0); in config_mids()
232 SET_CBNDX(iommu->base, mid, ctx); in config_mids()
241 SET_NSCFG(iommu->base, mid, 3); in config_mids()
/drivers/net/ethernet/chelsio/cxgb/
Dpm3393.c507 u32 val, lo, mid, hi, enabled = cmac->instance->enabled; in pm3393_macaddress_set() local
531 mid = ((u32) ma[3] << 8) | (u32) ma[2]; in pm3393_macaddress_set()
540 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_SA_31_16, mid); in pm3393_macaddress_set()
545 pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_SA_31_16, mid); in pm3393_macaddress_set()
557 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_MID, mid); in pm3393_macaddress_set()
/drivers/media/rc/
Drc-main.c429 int mid; in ir_lookup_by_scancode() local
432 mid = (start + end) / 2; in ir_lookup_by_scancode()
433 if (rc_map->scan[mid].scancode < scancode) in ir_lookup_by_scancode()
434 start = mid + 1; in ir_lookup_by_scancode()
435 else if (rc_map->scan[mid].scancode > scancode) in ir_lookup_by_scancode()
436 end = mid - 1; in ir_lookup_by_scancode()
438 return mid; in ir_lookup_by_scancode()
/drivers/gpu/drm/radeon/
Dradeon_vce.c62 uint8_t start, mid, end; in radeon_vce_init() local
107 if (sscanf(c, "%2hhd.%2hhd.%2hhd]", &start, &mid, &end) != 3) in radeon_vce_init()
126 start, mid, end, rdev->vce.fb_version); in radeon_vce_init()
128 rdev->vce.fw_version = (start << 24) | (mid << 16) | (end << 8); in radeon_vce_init()
/drivers/thermal/ti-soc-thermal/
Dti-bandgap.c326 int high, low, mid; in ti_bandgap_mcelsius_to_adc() local
330 mid = (high + low) / 2; in ti_bandgap_mcelsius_to_adc()
336 if (temp < conv_table[mid]) in ti_bandgap_mcelsius_to_adc()
337 high = mid - 1; in ti_bandgap_mcelsius_to_adc()
339 low = mid + 1; in ti_bandgap_mcelsius_to_adc()
340 mid = (low + high) / 2; in ti_bandgap_mcelsius_to_adc()
/drivers/gpu/drm/i915/
Di915_cmd_parser.c928 int mid = start + (end - start) / 2; in __find_reg() local
929 int ret = addr - i915_mmio_reg_offset(table[mid].addr); in __find_reg()
931 end = mid; in __find_reg()
933 start = mid + 1; in __find_reg()
935 return &table[mid]; in __find_reg()
/drivers/s390/char/
Dtape_3590.h98 unsigned int mid:16; member

123