Home
last modified time | relevance | path

Searched refs:model (Results 1 – 25 of 259) sorted by relevance

1234567891011

/drivers/scsi/
Dscsi_devinfo.c23 char model[16]; member
52 char *model; member
337 static int scsi_dev_info_list_add(int compatible, char *vendor, char *model, in scsi_dev_info_list_add() argument
340 return scsi_dev_info_list_add_keyed(compatible, vendor, model, in scsi_dev_info_list_add()
363 int scsi_dev_info_list_add_keyed(int compatible, char *vendor, char *model, in scsi_dev_info_list_add_keyed() argument
381 scsi_strcpy_devinfo("model", devinfo->model, sizeof(devinfo->model), in scsi_dev_info_list_add_keyed()
382 model, compatible); in scsi_dev_info_list_add_keyed()
415 const char *model, int key) in scsi_dev_info_list_find() argument
446 mmax = sizeof(devinfo->model); in scsi_dev_info_list_find()
447 mskip = model; in scsi_dev_info_list_find()
[all …]
Dsr_vendor.c72 const char *model = cd->device->model; in sr_vendor_init()
85 if (!strncmp(model, "CD-ROM DRIVE:25", 15) || in sr_vendor_init()
86 !strncmp(model, "CD-ROM DRIVE:36", 15) || in sr_vendor_init()
87 !strncmp(model, "CD-ROM DRIVE:83", 15) || in sr_vendor_init()
88 !strncmp(model, "CD-ROM DRIVE:84 ", 16) in sr_vendor_init()
92 || !strncmp(model, "CD-ROM DRIVE:500", 16) in sr_vendor_init()
/drivers/hwmon/
Dk8temp.c145 static int is_rev_g_desktop(u8 model) in is_rev_g_desktop() argument
149 if (model < 0x69) in is_rev_g_desktop()
152 if (model == 0xc1 || model == 0x6c || model == 0x7c) in is_rev_g_desktop()
164 if ((model == 0x6f || model == 0x7f) && in is_rev_g_desktop()
169 if (model == 0x6b && in is_rev_g_desktop()
182 u8 model, stepping; in k8temp_probe() local
189 model = boot_cpu_data.x86_model; in k8temp_probe()
193 if ((model == 4 && stepping == 0) || in k8temp_probe()
194 (model == 5 && stepping <= 1)) in k8temp_probe()
201 if (model >= 0x40) { in k8temp_probe()
[all …]
Dlm95241.c93 u8 status, config, model, trutherm; member
180 *val = (data->model & R1MS_MASK) ? 1 : 2; in lm95241_read_temp()
182 *val = (data->model & R2MS_MASK) ? 1 : 2; in lm95241_read_temp()
297 data->model |= R1MS_MASK; in lm95241_write_temp()
300 data->model &= ~R1MS_MASK; in lm95241_write_temp()
306 data->model |= R2MS_MASK; in lm95241_write_temp()
309 data->model &= ~R2MS_MASK; in lm95241_write_temp()
315 data->model); in lm95241_write_temp()
418 data->model); in lm95241_init_client()
/drivers/macintosh/
Dvia-pmu-led.c85 const char *model; in via_pmu_led_init() local
94 model = of_get_property(dt, "model", NULL); in via_pmu_led_init()
95 if (model == NULL) { in via_pmu_led_init()
99 if (strncmp(model, "PowerBook", strlen("PowerBook")) != 0 && in via_pmu_led_init()
100 strncmp(model, "iBook", strlen("iBook")) != 0 && in via_pmu_led_init()
101 strcmp(model, "PowerMac7,2") != 0 && in via_pmu_led_init()
102 strcmp(model, "PowerMac7,3") != 0) { in via_pmu_led_init()
/drivers/parisc/
Dled.c90 unsigned long model:16; /* DISPLAY_MODEL_XXXX */ member
115 .model = DISPLAY_MODEL_LCD,
534 if (lcd_info.model == DISPLAY_MODEL_LCD) in led_halt()
551 int __init register_led_driver(int model, unsigned long cmd_reg, unsigned long data_reg) in register_led_driver() argument
558 lcd_info.model = model; /* store the values */ in register_led_driver()
561 switch (lcd_info.model) { in register_led_driver()
587 __func__, lcd_info.model); in register_led_driver()
617 switch (lcd_info.model) { in register_led_regions()
643 if (!led_func_ptr || lcd_info.model != DISPLAY_MODEL_LCD) in lcd_print()
708 lcd_info.model = DISPLAY_MODEL_NONE; in led_init()
[all …]
/drivers/media/i2c/smiapp/
Dsmiapp.h94 #define SMIAPP_IDENT_FQ(manufacturer, model, rev, fl, _name, _quirk) \ argument
96 .model_id = model, \
102 #define SMIAPP_IDENT_LQ(manufacturer, model, rev, _name, _quirk) \ argument
104 .model_id = model, \
110 #define SMIAPP_IDENT_L(manufacturer, model, rev, _name) \ argument
112 .model_id = model, \
117 #define SMIAPP_IDENT_Q(manufacturer, model, rev, _name, _quirk) \ argument
119 .model_id = model, \
125 #define SMIAPP_IDENT(manufacturer, model, rev, _name) \ argument
127 .model_id = model, \
/drivers/media/usb/tm6000/
Dtm6000-cards.c56 #define is_generic(model) ((model == TM6000_BOARD_UNKNOWN) || \ argument
57 (model == TM5600_BOARD_GENERIC) || \
58 (model == TM6000_BOARD_GENERIC) || \
59 (model == TM6010_BOARD_GENERIC))
654 switch (dev->model) { in tm6000_flash_led()
672 switch (dev->model) { in tm6000_flash_led()
739 switch (dev->model) { in tm6000_tuner_callback()
811 switch (dev->model) { in tm6000_cards_setup()
942 switch (dev->model) { in tm6000_config_tuner()
988 dev->dev_type = tm6000_boards[dev->model].type; in fill_board_specific_data()
[all …]
/drivers/staging/comedi/drivers/
Dvmk80xx.c116 enum vmk80xx_model model; member
130 .model = VMK8055_MODEL,
140 .model = VMK8061_MODEL,
158 enum vmk80xx_model model; member
194 if (devpriv->model == VMK8061_MODEL) { in vmk80xx_read_packet()
215 if (devpriv->model == VMK8061_MODEL) { in vmk80xx_write_packet()
255 switch (devpriv->model) { in vmk80xx_ai_insn_read()
275 if (devpriv->model == VMK8055_MODEL) { in vmk80xx_ai_insn_read()
304 switch (devpriv->model) { in vmk80xx_ao_insn_write()
374 if (devpriv->model == VMK8061_MODEL) { in vmk80xx_di_insn_bits()
[all …]
/drivers/bus/
Darm-cci.c84 #define CCI_PMU_CNTR_SIZE(model) ((model)->cntr_size) argument
85 #define CCI_PMU_CNTR_BASE(model, idx) ((idx) * CCI_PMU_CNTR_SIZE(model)) argument
89 #define CCI_PMU_MAX_HW_CNTRS(model) \ argument
90 ((model)->num_hw_cntrs + (model)->fixed_hw_cntrs)
141 const struct cci_pmu_model *model; member
399 if (ev_code >= cci_pmu->model->event_ranges[if_type].min && in cci400_validate_hw_event()
400 ev_code <= cci_pmu->model->event_ranges[if_type].max) in cci400_validate_hw_event()
610 if (ev_code >= cci_pmu->model->event_ranges[if_type].min && in cci500_validate_hw_event()
611 ev_code <= cci_pmu->model->event_ranges[if_type].max) in cci500_validate_hw_event()
662 if (ev_code >= cci_pmu->model->event_ranges[if_type].min && in cci550_validate_hw_event()
[all …]
/drivers/input/joystick/
Dtmdc.c280 const struct tmdc_model *model; in tmdc_setup_port() local
295 for (model = tmdc_models; model->id && model->id != port->mode; model++) in tmdc_setup_port()
298 port->abs = model->axes; in tmdc_setup_port()
299 port->btn = model->buttons; in tmdc_setup_port()
301 if (!model->id) { in tmdc_setup_port()
306 port->absc = model->abs; in tmdc_setup_port()
308 port->btnc[i] = model->btnc[i]; in tmdc_setup_port()
312 port->btno[i] = model->btno[i]; in tmdc_setup_port()
314 snprintf(port->name, sizeof(port->name), model->name, in tmdc_setup_port()
324 input_dev->id.product = model->id; in tmdc_setup_port()
[all …]
/drivers/cpufreq/
Dspeedstep-centrino.c236 struct cpu_model *model; in centrino_cpu_init_table() local
238 for(model = models; model->cpu_id != NULL; model++) in centrino_cpu_init_table()
239 if (centrino_verify_cpu_id(cpu, model->cpu_id) && in centrino_cpu_init_table()
240 (model->model_name == NULL || in centrino_cpu_init_table()
241 strcmp(cpu->x86_model_id, model->model_name) == 0)) in centrino_cpu_init_table()
244 if (model->cpu_id == NULL) { in centrino_cpu_init_table()
252 if (model->op_points == NULL) { in centrino_cpu_init_table()
260 per_cpu(centrino_model, policy->cpu) = model; in centrino_cpu_init_table()
263 model->model_name, model->max_freq); in centrino_cpu_init_table()
/drivers/input/mouse/
Dlogips2pp.c33 u8 model; member
202 static const struct ps2pp_info *get_model_info(unsigned char model) in get_model_info() argument
255 if (model == ps2pp_list[i].model) in get_model_info()
332 unsigned char model, buttons; in ps2pp_detect() local
345 model = ((param[0] >> 4) & 0x07) | ((param[0] << 3) & 0x78); in ps2pp_detect()
348 if (!model || !buttons) in ps2pp_detect()
351 model_info = get_model_info(model); in ps2pp_detect()
390 psmouse_warn(psmouse, "Detected unknown Logitech mouse model %d\n", model); in ps2pp_detect()
395 psmouse->model = model; in ps2pp_detect()
/drivers/mfd/
Dda9063-core.c165 int model, variant_id, variant_code; in da9063_device_init() local
190 ret = regmap_read(da9063->regmap, DA9063_REG_CHIP_ID, &model); in da9063_device_init()
195 if (model != PMIC_DA9063) { in da9063_device_init()
196 dev_err(da9063->dev, "Invalid chip model id: 0x%02x\n", model); in da9063_device_init()
210 model, variant_id); in da9063_device_init()
218 da9063->model = model; in da9063_device_init()
/drivers/staging/olpc_dcon/
DKconfig22 Enable support for the DCON in XO-1 model laptops. The kernel
23 communicates with the DCON using model-specific code. If you
24 have an XO-1 (or if you're unsure what model you have), you should
32 Enable support for the DCON in XO-1.5 model laptops. The kernel
33 communicates with the DCON using model-specific code. If you
34 have an XO-1.5 (or if you're unsure what model you have), you
/drivers/s390/char/
Draw3270.c39 short model, rows, cols; member
430 int rc, model; in raw3270_size_device_vm() local
438 model = diag_data.vrdccrmd; in raw3270_size_device_vm()
440 if (rc || model < 2 || model > 5) in raw3270_size_device_vm()
441 model = 2; in raw3270_size_device_vm()
442 switch (model) { in raw3270_size_device_vm()
444 rp->model = model; in raw3270_size_device_vm()
449 rp->model = model; in raw3270_size_device_vm()
454 rp->model = model; in raw3270_size_device_vm()
459 rp->model = model; in raw3270_size_device_vm()
[all …]
/drivers/scsi/bfa/
Dbfad_attr.c734 char model[BFA_ADAPTER_MODEL_NAME_LEN]; in bfad_im_model_show() local
736 bfa_get_adapter_model(&bfad->bfa, model); in bfad_im_model_show()
737 return snprintf(buf, PAGE_SIZE, "%s\n", model); in bfad_im_model_show()
748 char model[BFA_ADAPTER_MODEL_NAME_LEN]; in bfad_im_model_desc_show() local
752 bfa_get_adapter_model(&bfad->bfa, model); in bfad_im_model_desc_show()
754 if (!strcmp(model, "QLogic-425")) in bfad_im_model_desc_show()
757 else if (!strcmp(model, "QLogic-825")) in bfad_im_model_desc_show()
760 else if (!strcmp(model, "QLogic-42B")) in bfad_im_model_desc_show()
763 else if (!strcmp(model, "QLogic-82B")) in bfad_im_model_desc_show()
766 else if (!strcmp(model, "QLogic-1010")) in bfad_im_model_desc_show()
[all …]
/drivers/net/wireless/marvell/libertas/
Dif_sdio.c117 int model; member
184 switch (card->model) { in if_sdio_read_rx_len()
286 if (card->model == MODEL_8385) { in if_sdio_handle_event()
762 } else if ((card->model == MODEL_8686) && (scratch & 0x7fff)) { in if_sdio_prog_firmware()
768 ret = lbs_get_firmware_async(card->priv, &card->func->dev, card->model, in if_sdio_prog_firmware()
794 if ((card->model != MODEL_8385) in if_sdio_finish_power_on()
795 && (card->model != MODEL_8686)) in if_sdio_finish_power_on()
832 if (card->model == MODEL_8688) { in if_sdio_finish_power_on()
879 if ((card->model == MODEL_8686) && in if_sdio_power_on()
1187 unsigned int model; in if_sdio_probe() local
[all …]
/drivers/media/
Dmedia-device.c73 strlcpy(info->model, dev->model, sizeof(info->model)); in media_device_get_info()
536 return sprintf(buf, "%.*s\n", (int)sizeof(mdev->model), mdev->model); in show_model()
539 static DEVICE_ATTR(model, S_IRUGO, show_model, NULL);
855 strlcpy(mdev->model, name, sizeof(mdev->model)); in media_device_pci_init()
857 strlcpy(mdev->model, pci_name(pci_dev), sizeof(mdev->model)); in media_device_pci_init()
884 strlcpy(mdev->model, board_name, sizeof(mdev->model)); in __media_device_usb_init()
886 strlcpy(mdev->model, udev->product, sizeof(mdev->model)); in __media_device_usb_init()
888 strlcpy(mdev->model, "unknown model", sizeof(mdev->model)); in __media_device_usb_init()
/drivers/media/usb/cx231xx/
Dcx231xx-input.c68 if (!cx231xx_boards[dev->model].rc_map_name) in cx231xx_ir_init()
79 dev->init_data.name = cx231xx_boards[dev->model].name; in cx231xx_ir_init()
91 dev->init_data.ir_codes = cx231xx_boards[dev->model].rc_map_name; in cx231xx_ir_init()
99 ir_i2c_bus = cx231xx_boards[dev->model].ir_i2c_master; in cx231xx_ir_init()
/drivers/input/touchscreen/
Dads7846.c107 u16 model; member
471 if (ts->model == 7846) in vbatt_adjust()
486 if (ts->model == 7843 && index < 2) /* in0, in1 */ in SHOW()
488 if (ts->model == 7845 && index != 2) /* in0 */ in SHOW()
511 switch (ts->model) { in ads784x_hwmon_register()
524 ts->model); in ads784x_hwmon_register()
673 if (ts->model == 7845) { in ads7846_get_value()
760 if (ts->model == 7845) { in ads7846_report_state()
776 if (ts->model == 7843) { in ads7846_report_state()
778 } else if (ts->model == 7845) { in ads7846_report_state()
[all …]
/drivers/media/platform/vsp1/
Dvsp1_drv.c224 strlcpy(mdev->model, vsp1->info->model, sizeof(mdev->model)); in vsp1_create_entities()
575 .model = "VSP1-S",
586 .model = "VSP1-R",
596 .model = "VSP1-D",
606 .model = "VSP1-S",
617 .model = "VSP1V-S",
628 .model = "VSP1V-D",
639 .model = "VSP2-I",
649 .model = "VSP2-BD",
658 .model = "VSP2-BC",
[all …]
/drivers/firewire/
Dsbp2.c344 u32 model; member
349 .model = 0x001010,
356 .model = 0x000000,
361 .model = SBP2_ROM_VALUE_WILDCARD,
366 .model = SBP2_ROM_VALUE_WILDCARD,
371 .model = SBP2_ROM_VALUE_WILDCARD,
376 .model = SBP2_ROM_VALUE_WILDCARD,
385 .model = 0x000000,
391 .model = 0x000021,
396 .model = 0x000022,
[all …]
/drivers/gpu/drm/etnaviv/
Detnaviv_gpu.c46 *value = gpu->identity.model; in etnaviv_gpu_get_param()
135 ((gpu)->identity.model == chipModel_##mod && \
187 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
196 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
204 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
206 else if (gpu->identity.model == chipModel_GC500 || in etnaviv_hw_specs()
207 gpu->identity.model == chipModel_GC530) in etnaviv_hw_specs()
216 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
229 } else if (gpu->identity.model == chipModel_GC400) { in etnaviv_hw_specs()
243 gpu->identity.model == chipModel_GC880) in etnaviv_hw_specs()
[all …]
/drivers/iio/adc/
Dti-adc081c.c154 struct adcxx1c_model *model; in adc081c_probe() local
167 model = &adcxx1c_models[ad_id->driver_data]; in adc081c_probe()
169 model = &adcxx1c_models[id->driver_data]; in adc081c_probe()
178 adc->bits = model->bits; in adc081c_probe()
194 iio->channels = model->channels; in adc081c_probe()

1234567891011