| /drivers/scsi/ |
| A D | scsi_devinfo.c | 24 char model[16]; member 51 char *model; member 366 scsi_strcpy_devinfo("model", devinfo->model, sizeof(devinfo->model), in scsi_dev_info_list_add_keyed() 367 model, compatible); in scsi_dev_info_list_add_keyed() 444 mskip = model; in scsi_dev_info_list_find() 467 mlen = strnlen(devinfo->model, sizeof(devinfo->model)); in scsi_dev_info_list_find() 474 !memcmp(devinfo->model, model, in scsi_dev_info_list_find() 519 model = strsep(&next, ":"); in scsi_dev_info_list_add_str() 520 if (model) in scsi_dev_info_list_add_str() 522 if (!model || !strflags) { in scsi_dev_info_list_add_str() [all …]
|
| A D | sr_vendor.c | 71 const char *model = cd->device->model; in sr_vendor_init() local 84 if (!strncmp(model, "CD-ROM DRIVE:25", 15) || in sr_vendor_init() 85 !strncmp(model, "CD-ROM DRIVE:36", 15) || in sr_vendor_init() 86 !strncmp(model, "CD-ROM DRIVE:83", 15) || in sr_vendor_init() 87 !strncmp(model, "CD-ROM DRIVE:84 ", 16) in sr_vendor_init() 91 || !strncmp(model, "CD-ROM DRIVE:500", 16) in sr_vendor_init() 101 !strncmp(model, "Gluco Memory", 12)) { in sr_vendor_init()
|
| /drivers/hwmon/ |
| A D | k8temp.c | 39 static int is_rev_g_desktop(u8 model) in is_rev_g_desktop() argument 43 if (model < 0x69) in is_rev_g_desktop() 46 if (model == 0xc1 || model == 0x6c || model == 0x7c) in is_rev_g_desktop() 58 if ((model == 0x6f || model == 0x7f) && in is_rev_g_desktop() 63 if (model == 0x6b && in is_rev_g_desktop() 137 u8 model, stepping; in k8temp_probe() local 145 model = boot_cpu_data.x86_model; in k8temp_probe() 149 if ((model == 4 && stepping == 0) || in k8temp_probe() 150 (model == 5 && stepping <= 1)) in k8temp_probe() 157 if (model >= 0x40) { in k8temp_probe() [all …]
|
| A D | lm95241.c | 84 u8 status, config, model, trutherm; member 171 *val = (data->model & R1MS_MASK) ? 1 : 2; in lm95241_read_temp() 173 *val = (data->model & R2MS_MASK) ? 1 : 2; in lm95241_read_temp() 288 data->model |= R1MS_MASK; in lm95241_write_temp() 291 data->model &= ~R1MS_MASK; in lm95241_write_temp() 297 data->model |= R2MS_MASK; in lm95241_write_temp() 300 data->model &= ~R2MS_MASK; in lm95241_write_temp() 306 data->model); in lm95241_write_temp() 409 data->model); in lm95241_init_client()
|
| /drivers/perf/ |
| A D | arm-cci.c | 35 #define CCI_PMU_CNTR_SIZE(model) ((model)->cntr_size) argument 36 #define CCI_PMU_CNTR_BASE(model, idx) ((idx) * CCI_PMU_CNTR_SIZE(model)) argument 40 #define CCI_PMU_MAX_HW_CNTRS(model) \ argument 41 ((model)->num_hw_cntrs + (model)->fixed_hw_cntrs) 104 const struct cci_pmu_model *model; member 1388 const struct cci_pmu_model *model = cci_pmu->model; in cci_pmu_init() local 1389 char *name = model->name; in cci_pmu_init() 1403 .name = cci_pmu->model->name, in cci_pmu_init() 1599 if (!model) { in cci_pmu_alloc() 1604 if (!model) { in cci_pmu_alloc() [all …]
|
| /drivers/macintosh/ |
| A D | via-pmu-led.c | 85 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) in via_pmu_led_init() 98 if (strncmp(model, "PowerBook", strlen("PowerBook")) != 0 && in via_pmu_led_init() 99 strncmp(model, "iBook", strlen("iBook")) != 0 && in via_pmu_led_init() 100 strcmp(model, "PowerMac7,2") != 0 && in via_pmu_led_init() 101 strcmp(model, "PowerMac7,3") != 0) in via_pmu_led_init()
|
| /drivers/gpu/drm/etnaviv/ |
| A D | etnaviv_hwdb.c | 10 .model = 0x400, 42 .model = 0x520, 73 .model = 0x7000, 105 .model = 0x7000, 137 .model = 0x7000, 168 .model = 0x7000, 200 .model = 0x8000, 232 .model = 0x8000, 274 if (etnaviv_chip_identities[i].model == ident->model && in etnaviv_fill_identity_from_hwdb()
|
| A D | etnaviv_gpu.c | 46 *value = gpu->identity.model; in etnaviv_gpu_get_param() 201 return gpu->identity.model == model && in etnaviv_is_model_rev() 255 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs() 275 gpu->identity.model == chipModel_GC530) in etnaviv_hw_specs() 284 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs() 366 gpu->identity.model = chipModel_GC500; in etnaviv_hw_identify() 393 gpu->identity.model = gpu->identity.model & 0x0400; in etnaviv_hw_identify() 417 gpu->identity.model = chipModel_GC3000; in etnaviv_hw_identify() 442 if (gpu->identity.model == chipModel_GC700) in etnaviv_hw_identify() 448 gpu->identity.model == chipModel_GC300) in etnaviv_hw_identify() [all …]
|
| /drivers/parisc/ |
| A D | led.c | 54 unsigned long model:16; /* DISPLAY_MODEL_XXXX */ member 79 .model = DISPLAY_MODEL_NONE, 102 if (lcd_info.model != DISPLAY_MODEL_LCD) in lcd_print_now() 404 lcd_info.model = model; /* store the values */ in register_led_driver() 407 switch (lcd_info.model) { in register_led_driver() 435 pr_err("led: Unknown LCD/LED model type %d\n", lcd_info.model); in register_led_driver() 470 lcd_info.model = DISPLAY_MODEL_LCD; in early_led_init() 482 lcd_info.model = DISPLAY_MODEL_NONE; in early_led_init() 490 switch (lcd_info.model) { in early_led_init() 511 lcd_info.model); in early_led_init() [all …]
|
| /drivers/comedi/drivers/ |
| A D | vmk80xx.c | 109 enum vmk80xx_model model; member 123 .model = VMK8055_MODEL, 133 .model = VMK8061_MODEL, 151 enum vmk80xx_model model; member 186 if (devpriv->model == VMK8061_MODEL) { in vmk80xx_read_packet() 247 switch (devpriv->model) { in vmk80xx_ai_insn_read() 296 switch (devpriv->model) { in vmk80xx_ao_insn_write() 448 switch (devpriv->model) { in vmk80xx_cnt_insn_read() 647 if (devpriv->model == VMK8061_MODEL) in vmk80xx_find_usb_endpoints() 694 if (devpriv->model == VMK8055_MODEL) in vmk80xx_init_subdevices() [all …]
|
| /drivers/media/i2c/ccs/ |
| A D | ccs.h | 128 #define CCS_IDENT_FQ(manufacturer, model, rev, fl, _name, _quirk) \ argument 130 .model_id = model, \ 136 #define CCS_IDENT_LQ(manufacturer, model, rev, _name, _quirk) \ argument 138 .model_id = model, \ 144 #define CCS_IDENT_L(manufacturer, model, rev, _name) \ argument 146 .model_id = model, \ 151 #define CCS_IDENT_Q(manufacturer, model, rev, _name, _quirk) \ argument 153 .model_id = model, \ 159 #define CCS_IDENT(manufacturer, model, rev, _name) \ argument 161 .model_id = model, \
|
| /drivers/input/joystick/ |
| A D | tmdc.c | 261 const struct tmdc_model *model; in tmdc_setup_port() local 276 for (model = tmdc_models; model->id && model->id != port->mode; model++) in tmdc_setup_port() 279 port->abs = model->axes; in tmdc_setup_port() 280 port->btn = model->buttons; in tmdc_setup_port() 282 if (!model->id) { in tmdc_setup_port() 287 port->absc = model->abs; in tmdc_setup_port() 289 port->btnc[i] = model->btnc[i]; in tmdc_setup_port() 293 port->btno[i] = model->btno[i]; in tmdc_setup_port() 295 snprintf(port->name, sizeof(port->name), model->name, in tmdc_setup_port() 305 input_dev->id.product = model->id; in tmdc_setup_port() [all …]
|
| /drivers/cpufreq/ |
| A D | speedstep-centrino.c | 237 struct cpu_model *model; in centrino_cpu_init_table() local 239 for(model = models; model->cpu_id != NULL; model++) in centrino_cpu_init_table() 240 if (centrino_verify_cpu_id(cpu, model->cpu_id) && in centrino_cpu_init_table() 241 (model->model_name == NULL || in centrino_cpu_init_table() 242 strcmp(cpu->x86_model_id, model->model_name) == 0)) in centrino_cpu_init_table() 245 if (model->cpu_id == NULL) { in centrino_cpu_init_table() 253 if (model->op_points == NULL) { in centrino_cpu_init_table() 261 per_cpu(centrino_model, policy->cpu) = model; in centrino_cpu_init_table() 264 model->model_name, model->max_freq); in centrino_cpu_init_table()
|
| /drivers/input/mouse/ |
| A D | logips2pp.c | 32 u8 model; member 207 static const struct ps2pp_info *get_model_info(unsigned char model) in get_model_info() argument 260 if (model == ps2pp_list[i].model) in get_model_info() 362 u8 model, buttons; in ps2pp_detect() local 374 model = ((param[0] >> 4) & 0x07) | ((param[0] << 3) & 0x78); in ps2pp_detect() 377 if (!model || !buttons) in ps2pp_detect() 380 model_info = get_model_info(model); in ps2pp_detect() 422 model); in ps2pp_detect() 427 psmouse->model = model; in ps2pp_detect()
|
| /drivers/hid/ |
| A D | hid-thrustmaster.c | 103 uint16_t model; member 113 uint16_t model; member 224 uint16_t model = 0; in thrustmaster_model_handler() local 234 model = le16_to_cpu(tm_wheel->response->data.a.model); in thrustmaster_model_handler() 236 model = le16_to_cpu(tm_wheel->response->data.b.model); in thrustmaster_model_handler() 243 if (tm_wheels_infos[i].wheel_type == model) in thrustmaster_model_handler() 247 hid_info(hdev, "Wheel with model id 0x%x is a %s\n", model, twi->wheel_name); in thrustmaster_model_handler() 249 …hid_err(hdev, "Unknown wheel's model id 0x%x, unable to proceed further with wheel init\n", model); in thrustmaster_model_handler()
|
| A D | hid-glorious.c | 48 const char *model = "Device"; in glorious_update_name() local 52 model = "Model O"; break; in glorious_update_name() 54 model = "Model D"; break; in glorious_update_name() 56 model = "Model I"; break; in glorious_update_name() 59 snprintf(hdev->name, sizeof(hdev->name), "%s %s", "Glorious", model); in glorious_update_name()
|
| /drivers/pinctrl/ |
| A D | pinctrl-sx150x.c | 77 u8 model; member 151 .model = SX150X_123, 171 .model = SX150X_123, 194 .model = SX150X_123, 217 .model = SX150X_456, 236 .model = SX150X_456, 258 .model = SX150X_456, 281 .model = SX150X_789, 302 .model = SX150X_789, 323 .model = SX150X_789, [all …]
|
| /drivers/media/platform/renesas/vsp1/ |
| A D | vsp1_drv.c | 257 strscpy(mdev->model, vsp1->info->model, sizeof(mdev->model)); in vsp1_create_entities() 707 .model = "VSP1-S", 719 .model = "VSP1-R", 730 .model = "VSP1-D", 742 .model = "VSP1-S", 777 .model = "VSP2-I", 815 .model = "VSP2-D", 825 .model = "VSP2-D", 836 .model = "VSP2-D", 877 .model = "VSP2-D", [all …]
|
| /drivers/s390/char/ |
| A D | raw3270.c | 452 int rc, model; in raw3270_size_device_vm() local 460 rp->model = 2; in raw3270_size_device_vm() 473 if (rc || model < 2 || model > 5) in raw3270_size_device_vm() 474 model = 2; in raw3270_size_device_vm() 477 rp->model = model; in raw3270_size_device_vm() 482 rp->model = model; in raw3270_size_device_vm() 487 rp->model = model; in raw3270_size_device_vm() 492 rp->model = model; in raw3270_size_device_vm() 508 rp->model = 2; in raw3270_size_device() 526 rp->model = 0; in raw3270_size_device() [all …]
|
| /drivers/input/keyboard/ |
| A D | cap11xx.c | 88 const struct cap11xx_hw_model *model; member 209 if (!priv->model->has_gain) { in cap11xx_init_keys() 228 if (priv->model->has_irq_config) { in cap11xx_init_keys() 278 priv->model->num_channels)) { in cap11xx_init_keys() 279 if (priv->model->has_sensitivity_control) { in cap11xx_init_keys() 294 if (priv->model->num_channels > 4) { in cap11xx_init_keys() 305 for (i = 0; i < priv->model->num_channels; i++) { in cap11xx_init_keys() 316 if (priv->model->has_signal_guard) { in cap11xx_init_keys() 329 for (i = 0; i < priv->model->num_channels; i++) in cap11xx_init_keys() 333 priv->keycodes, priv->model->num_channels); in cap11xx_init_keys() [all …]
|
| /drivers/net/wireless/marvell/libertas/ |
| A D | if_sdio.c | 113 int model; member 181 switch (card->model) { in if_sdio_read_rx_len() 271 if (card->model == MODEL_8385) { in if_sdio_handle_event() 761 if ((card->model != MODEL_8385) in if_sdio_finish_power_on() 799 if (card->model == MODEL_8688) { in if_sdio_finish_power_on() 1140 unsigned int model; in if_sdio_probe() local 1148 "ID: %x", &model) == 1) in if_sdio_probe() 1151 model = MODEL_8385; in if_sdio_probe() 1166 card->model = model; in if_sdio_probe() 1168 switch (card->model) { in if_sdio_probe() [all …]
|
| /drivers/scsi/bfa/ |
| A D | bfad_attr.c | 725 char model[BFA_ADAPTER_MODEL_NAME_LEN]; in bfad_im_model_show() local 728 return sysfs_emit(buf, "%s\n", model); in bfad_im_model_show() 745 if (!strcmp(model, "QLogic-425")) in bfad_im_model_desc_show() 748 else if (!strcmp(model, "QLogic-825")) in bfad_im_model_desc_show() 751 else if (!strcmp(model, "QLogic-42B")) in bfad_im_model_desc_show() 754 else if (!strcmp(model, "QLogic-82B")) in bfad_im_model_desc_show() 766 else if (!strcmp(model, "QLogic-415")) in bfad_im_model_desc_show() 769 else if (!strcmp(model, "QLogic-815")) in bfad_im_model_desc_show() 772 else if (!strcmp(model, "QLogic-41B")) in bfad_im_model_desc_show() 775 else if (!strcmp(model, "QLogic-81B")) in bfad_im_model_desc_show() [all …]
|
| /drivers/mtd/nand/raw/ |
| A D | nand_jedec.c | 90 sanitize_string(p->model, sizeof(p->model)); in nand_jedec_detect() 91 chip->parameters.model = kstrdup(p->model, GFP_KERNEL); in nand_jedec_detect() 92 if (!chip->parameters.model) { in nand_jedec_detect()
|
| /drivers/media/mc/ |
| A D | mc-device.c | 70 strscpy(info->model, dev->model, sizeof(info->model)); in media_device_get_info() 561 return sprintf(buf, "%.*s\n", (int)sizeof(mdev->model), mdev->model); in model_show() 564 static DEVICE_ATTR_RO(model); 842 strscpy(mdev->model, name, sizeof(mdev->model)); in media_device_pci_init() 844 strscpy(mdev->model, pci_name(pci_dev), sizeof(mdev->model)); in media_device_pci_init() 869 strscpy(mdev->model, board_name, sizeof(mdev->model)); in __media_device_usb_init() 871 strscpy(mdev->model, udev->product, sizeof(mdev->model)); in __media_device_usb_init() 873 strscpy(mdev->model, "unknown model", sizeof(mdev->model)); in __media_device_usb_init()
|
| /drivers/hwmon/pmbus/ |
| A D | bel-pfe.c | 95 int model; in pfe_pmbus_probe() local 97 model = (int)i2c_match_id(pfe_device_id, client)->driver_data; in pfe_pmbus_probe() 105 if (model == pfe3000) in pfe_pmbus_probe() 108 return pmbus_do_probe(client, &pfe_driver_info[model]); in pfe_pmbus_probe()
|