Home
last modified time | relevance | path

Searched refs:mid (Results 1 – 25 of 55) 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()
80 struct mid8250 *mid = p->private_data; in tng_handle_irq() local
87 chip = pci_get_drvdata(mid->dma_dev); in tng_handle_irq()
90 err = hsu_dma_get_status(chip, mid->dma_index * 2 + 1, &status); in tng_handle_irq()
95 ret |= hsu_dma_do_irq(chip, mid->dma_index * 2 + 1, status); in tng_handle_irq()
98 err = hsu_dma_get_status(chip, mid->dma_index * 2, &status); in tng_handle_irq()
[all …]
/drivers/ide/
Dide-cd_verbose.c281 int lo = 0, mid, hi = ARRAY_SIZE(sense_data_texts); in ide_cd_log_error() local
290 mid = (lo + hi) / 2; in ide_cd_log_error()
291 if (sense_data_texts[mid].asc_ascq == key || in ide_cd_log_error()
292 sense_data_texts[mid].asc_ascq == (0xff0000|key)) { in ide_cd_log_error()
293 s = sense_data_texts[mid].text; in ide_cd_log_error()
295 } else if (sense_data_texts[mid].asc_ascq > key) in ide_cd_log_error()
296 hi = mid; in ide_cd_log_error()
298 lo = mid + 1; in ide_cd_log_error()
313 int lo = 0, mid, hi = ARRAY_SIZE(packet_command_texts); in ide_cd_log_error() local
317 mid = (lo + hi) / 2; in ide_cd_log_error()
[all …]
/drivers/hwmon/pmbus/
Ducd9200.c92 const struct i2c_device_id *mid; in ucd9200_probe() local
110 for (mid = ucd9200_id; mid->name[0]; mid++) { in ucd9200_probe()
111 if (!strncasecmp(mid->name, block_buffer, strlen(mid->name))) in ucd9200_probe()
114 if (!mid->name[0]) { in ucd9200_probe()
124 if (chip != ucd9200 && chip != mid->driver_data) in ucd9200_probe()
127 id->name, mid->name); in ucd9200_probe()
205 if (mid->driver_data == ucd9240) in ucd9200_probe()
208 return pmbus_do_probe(client, mid, info); in ucd9200_probe()
Ducd9000.c158 const struct i2c_device_id *mid; in ucd9000_probe() local
176 for (mid = ucd9000_id; mid->name[0]; mid++) { in ucd9000_probe()
177 if (!strncasecmp(mid->name, block_buffer, strlen(mid->name))) in ucd9000_probe()
180 if (!mid->name[0]) { in ucd9000_probe()
190 if (chip != ucd9000 && chip != mid->driver_data) in ucd9000_probe()
193 id->name, mid->name); in ucd9000_probe()
249 if (mid->driver_data == ucd90124) { in ucd9000_probe()
266 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/thermal/
Drockchip_thermal.c442 int high, low, mid; in rk_tsadcv2_temp_to_code() local
449 mid = (high + low) / 2; in rk_tsadcv2_temp_to_code()
456 if (temp == table->id[mid].temp) in rk_tsadcv2_temp_to_code()
457 return table->id[mid].code; in rk_tsadcv2_temp_to_code()
458 else if (temp < table->id[mid].temp) in rk_tsadcv2_temp_to_code()
459 high = mid - 1; in rk_tsadcv2_temp_to_code()
461 low = mid + 1; in rk_tsadcv2_temp_to_code()
462 mid = (low + high) / 2; in rk_tsadcv2_temp_to_code()
471 num = abs(table->id[mid + 1].code - table->id[mid].code); in rk_tsadcv2_temp_to_code()
472 num *= temp - table->id[mid].temp; in rk_tsadcv2_temp_to_code()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c1210 u16 fid, u16 mid, bool adding) in mlxsw_sp_port_mdb_op() argument
1222 MLXSW_REG_SFD_REC_ACTION_NOP, mid); in mlxsw_sp_port_mdb_op()
1236 static int mlxsw_sp_port_smid_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 mid, in mlxsw_sp_port_smid_set() argument
1247 mlxsw_reg_smid_pack(smid_pl, mid, mlxsw_sp_port->local_port, add); in mlxsw_sp_port_smid_set()
1262 struct mlxsw_sp_mid *mid; in __mlxsw_sp_mc_get() local
1264 list_for_each_entry(mid, &mlxsw_sp->bridge->mids_list, list) { in __mlxsw_sp_mc_get()
1265 if (ether_addr_equal(mid->addr, addr) && mid->fid == fid) in __mlxsw_sp_mc_get()
1266 return mid; in __mlxsw_sp_mc_get()
1275 struct mlxsw_sp_mid *mid; in __mlxsw_sp_mc_alloc() local
1283 mid = kzalloc(sizeof(*mid), GFP_KERNEL); in __mlxsw_sp_mc_alloc()
[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.c129 int mid = (max + min) / 2; in rx51_battery_read_temperature() local
130 if (rx51_temp_table2[mid] <= raw) in rx51_battery_read_temperature()
131 min = mid; in rx51_battery_read_temperature()
132 else if (rx51_temp_table2[mid] > raw) in rx51_battery_read_temperature()
133 max = mid; in rx51_battery_read_temperature()
134 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,
/drivers/md/
Dlinear.c33 int lo, mid, hi; in which_dev() local
46 mid = (hi + lo) / 2; in which_dev()
47 if (sector < conf->disks[mid].end_sector) in which_dev()
48 hi = mid; in which_dev()
50 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.c149 unsigned long low, mid, high; in vr41xx_rtc_read_alarm() local
155 mid = rtc1_read(ECMPMREG); in vr41xx_rtc_read_alarm()
161 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.c501 u32 val, lo, mid, hi, enabled = cmac->instance->enabled; in pm3393_macaddress_set() local
525 mid = ((u32) ma[3] << 8) | (u32) ma[2]; in pm3393_macaddress_set()
534 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_SA_31_16, mid); in pm3393_macaddress_set()
539 pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_SA_31_16, mid); in pm3393_macaddress_set()
551 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_EXACT_MATCH_ADDR_1_MID, mid); in pm3393_macaddress_set()
/drivers/staging/media/atomisp/platform/
DMakefile6 obj-$(CONFIG_INTEL_ATOMISP) += intel-mid/
/drivers/platform/x86/
Dhp-wmi.c223 int mid; in hp_wmi_perform_query() local
238 mid = encode_outsize_for_pvsz(outsize); in hp_wmi_perform_query()
239 if (WARN_ON(mid < 0)) in hp_wmi_perform_query()
240 return mid; in hp_wmi_perform_query()
246 wmi_evaluate_method(HPWMI_BIOS_GUID, 0, mid, &input, &output); in hp_wmi_perform_query()
/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/bluetooth/
Dhci_nokia.c109 u8 mid; member
252 pkt->mid = NOKIA_ALIVE_REQ; in nokia_send_alive_packet()
600 if (pkt->mid != NOKIA_ALIVE_RESP) { in nokia_recv_alive_packet()
602 pkt->mid); in nokia_recv_alive_packet()
/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/media/rc/
Drc-main.c477 int mid; in ir_lookup_by_scancode() local
480 mid = (start + end) / 2; in ir_lookup_by_scancode()
481 if (rc_map->scan[mid].scancode < scancode) in ir_lookup_by_scancode()
482 start = mid + 1; in ir_lookup_by_scancode()
483 else if (rc_map->scan[mid].scancode > scancode) in ir_lookup_by_scancode()
484 end = mid - 1; in ir_lookup_by_scancode()
486 return mid; in ir_lookup_by_scancode()
/drivers/pci/
DMakefile43 obj-$(CONFIG_X86_INTEL_MID) += pci-mid.o

123