/drivers/bus/ |
D | imx-weim.c | 113 const struct imx_weim_devtype *devtype) in weim_timing_setup() argument 115 u32 cs_idx, value[devtype->cs_regs_count]; in weim_timing_setup() 123 if (cs_idx >= devtype->cs_count) in weim_timing_setup() 127 value, devtype->cs_regs_count); in weim_timing_setup() 132 for (i = 0; i < devtype->cs_regs_count; i++) in weim_timing_setup() 133 writel(value[i], base + cs_idx * devtype->cs_stride + i * 4); in weim_timing_setup() 143 const struct imx_weim_devtype *devtype = of_id->data; in weim_parse_dt() local 147 if (devtype == &imx50_weim_devtype) { in weim_parse_dt() 157 ret = weim_timing_setup(child, base, devtype); in weim_parse_dt()
|
/drivers/leds/ |
D | leds-mc13783.c | 43 struct mc13xxx_led_devtype *devtype; member 108 mc13xxx_reg_rmw(leds->master, leds->devtype->ledctrl_base + reg, in mc13xxx_led_work() 143 leds->devtype->num_regs); in mc13xxx_led_probe_dt() 162 pdata->led[i].id = leds->devtype->led_min + tmp; in mc13xxx_led_probe_dt() 194 struct mc13xxx_led_devtype *devtype = in mc13xxx_led_probe() local 204 leds->devtype = devtype; in mc13xxx_led_probe() 218 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) { in mc13xxx_led_probe() 228 for (i = 0; i < devtype->num_regs; i++) { in mc13xxx_led_probe() 229 ret = mc13xxx_reg_write(mcdev, leds->devtype->ledctrl_base + i, in mc13xxx_led_probe() 244 if ((id > devtype->led_max) || (id < devtype->led_min)) { in mc13xxx_led_probe()
|
/drivers/gpu/ipu-v3/ |
D | ipu-common.c | 806 const struct ipu_devtype *devtype = ipu->devtype; in ipu_submodules_init() local 808 ret = ipu_cpmem_init(ipu, dev, ipu_base + devtype->cpmem_ofs); in ipu_submodules_init() 814 ret = ipu_csi_init(ipu, dev, 0, ipu_base + devtype->csi0_ofs, in ipu_submodules_init() 821 ret = ipu_csi_init(ipu, dev, 1, ipu_base + devtype->csi1_ofs, in ipu_submodules_init() 829 ipu_base + devtype->ic_ofs, in ipu_submodules_init() 830 ipu_base + devtype->tpm_ofs); in ipu_submodules_init() 836 ret = ipu_di_init(ipu, dev, 0, ipu_base + devtype->disp0_ofs, in ipu_submodules_init() 843 ret = ipu_di_init(ipu, dev, 1, ipu_base + devtype->disp1_ofs, in ipu_submodules_init() 850 ret = ipu_dc_init(ipu, dev, ipu_base + devtype->cm_ofs + in ipu_submodules_init() 851 IPU_CM_DC_REG_OFS, ipu_base + devtype->dc_tmpl_ofs); in ipu_submodules_init() [all …]
|
/drivers/media/platform/coda/ |
D | coda-bit.c | 70 if (dev->devtype->product == CODA_960 || in coda_command_async() 71 dev->devtype->product == CODA_7541) { in coda_command_async() 82 if (dev->devtype->product == CODA_960) { in coda_command_async() 122 if (dev->devtype->product == CODA_960) { in coda_hw_reset() 136 if (dev->devtype->product == CODA_960) in coda_hw_reset() 311 if ((dev->devtype->product == CODA_960) && in coda_bit_stream_end_flag() 324 if (dev->devtype->product == CODA_DX6) in coda_parabuf_write() 375 dev->devtype->product != CODA_DX6) in coda_alloc_framebuffers() 409 dev->devtype->product != CODA_DX6) in coda_alloc_framebuffers() 416 if ((dev->devtype->product != CODA_DX6) && in coda_alloc_framebuffers() [all …]
|
D | coda-common.c | 250 const struct coda_codec *codecs = dev->devtype->codecs; in coda_find_codec() 251 int num_codecs = dev->devtype->num_codecs; in coda_find_codec() 275 const struct coda_codec *codecs = dev->devtype->codecs; in coda_get_max_dimensions() 276 int num_codecs = dev->devtype->num_codecs; in coda_get_max_dimensions() 301 if (i >= dev->devtype->num_vdevs) in to_coda_video_device() 304 return dev->devtype->vdevs[i]; in to_coda_video_device() 333 strlcpy(cap->card, coda_product_name(ctx->dev->devtype->product), in coda_querycap() 1511 if (ctx->dev->devtype->product != CODA_960) { in coda_encode_ctrls() 1652 (dev->devtype->product == CODA_DX6 && idx > CODADX6_MAX_INSTANCES)) in coda_next_free_instance() 1704 switch (dev->devtype->product) { in coda_open() [all …]
|
/drivers/tty/serial/ |
D | max310x.c | 269 struct max310x_devtype *devtype; member 315 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3107_detect() 336 dev_err(dev, "%s not present\n", s->devtype->name); in max3108_detect() 358 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3109_detect() 389 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max14830_detect() 926 s->devtype->power(port, 1); in max310x_startup() 960 s->devtype->power(port, 0); in max310x_shutdown() 967 return (port->type == PORT_MAX310X) ? s->devtype->name : NULL; in max310x_type() 1022 s->devtype->power(&s->p[i].port, 0); in max310x_suspend() 1034 s->devtype->power(&s->p[i].port, 1); in max310x_resume() [all …]
|
D | sc16is7xx.c | 325 const struct sc16is7xx_devtype *devtype; member 720 for (i = 0; i < s->devtype->nr_uart; ++i) in sc16is7xx_ist() 1060 return (port->type == PORT_SC16IS7XX) ? s->devtype->name : NULL; in sc16is7xx_type() 1168 const struct sc16is7xx_devtype *devtype, in sc16is7xx_probe() argument 1181 sizeof(struct sc16is7xx_one) * devtype->nr_uart, in sc16is7xx_probe() 1200 s->devtype = devtype; in sc16is7xx_probe() 1215 if (devtype->nr_gpio) { in sc16is7xx_probe() 1225 s->gpio.ngpio = devtype->nr_gpio; in sc16is7xx_probe() 1233 for (i = 0; i < devtype->nr_uart; ++i) { in sc16is7xx_probe() 1279 if (devtype->nr_gpio) in sc16is7xx_probe() [all …]
|
/drivers/hid/ |
D | hid-wiimote-core.c | 206 if (wdata->state.devtype == WIIMOTE_DEV_BALANCE_BOARD) { in select_drm() 616 unsigned int devtype) in wiimote_modules_load() argument 623 mods = wiimote_devtype_mods[devtype]; in wiimote_modules_load() 663 wdata->state.devtype = devtype; in wiimote_modules_load() 686 mods = wiimote_devtype_mods[wdata->state.devtype]; in wiimote_modules_unload() 689 wdata->state.devtype = WIIMOTE_DEV_UNKNOWN; in wiimote_modules_unload() 807 __u8 devtype = WIIMOTE_DEV_GENERIC; in wiimote_init_set_type() local 816 devtype = WIIMOTE_DEV_BALANCE_BOARD; in wiimote_init_set_type() 819 devtype = WIIMOTE_DEV_PRO_CONTROLLER; in wiimote_init_set_type() 824 devtype = WIIMOTE_DEV_GEN10; in wiimote_init_set_type() [all …]
|
/drivers/gpio/ |
D | gpio-mpc8xxx.c | 386 const struct mpc8xxx_gpio_devtype *devtype = in mpc8xxx_probe() local 405 if (!devtype) in mpc8xxx_probe() 406 devtype = &mpc8xxx_gpio_devtype_default; in mpc8xxx_probe() 412 if (devtype->irq_set_type) in mpc8xxx_probe() 413 mpc8xxx_irq_chip.irq_set_type = devtype->irq_set_type; in mpc8xxx_probe() 415 gc->direction_output = devtype->gpio_dir_out ?: mpc8xxx_gpio_dir_out; in mpc8xxx_probe() 416 gc->get = devtype->gpio_get ?: mpc8xxx_gpio_get; in mpc8xxx_probe()
|
/drivers/staging/unisys/visorinput/ |
D | visorinput.c | 350 devdata_create(struct visor_device *dev, enum visorinput_device_type devtype) in devdata_create() argument 355 if (devtype == visorinput_keyboard) in devdata_create() 368 switch (devtype) { in devdata_create() 401 enum visorinput_device_type devtype; in visorinput_probe() local 405 devtype = visorinput_mouse; in visorinput_probe() 407 devtype = visorinput_keyboard; in visorinput_probe() 410 devdata = devdata_create(dev, devtype); in visorinput_probe()
|
/drivers/staging/unisys/include/ |
D | vbushelper.h | 32 snprintf(bus_device_info_ptr->devtype, in bus_device_info_init() 33 sizeof(bus_device_info_ptr->devtype), in bus_device_info_init()
|
/drivers/media/i2c/ |
D | ov7670.c | 237 const struct ov7670_devtype *devtype; /* Device specifics */ member 921 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_try_fmt_internal() 945 wsize = info->devtype->win_sizes + i; in ov7670_try_fmt_internal() 957 for (wsize = info->devtype->win_sizes; in ov7670_try_fmt_internal() 958 wsize < info->devtype->win_sizes + win_sizes_limit; wsize++) in ov7670_try_fmt_internal() 961 if (wsize >= info->devtype->win_sizes + win_sizes_limit) in ov7670_try_fmt_internal() 1051 info->devtype->get_framerate(sd, &cp->timeperframe); in ov7670_g_parm() 1067 return info->devtype->set_framerate(sd, tpf); in ov7670_s_parm() 1084 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_enum_frame_interval() 1099 struct ov7670_win_size *win = &info->devtype->win_sizes[i]; in ov7670_enum_frame_interval() [all …]
|
/drivers/staging/unisys/visorbus/ |
D | vbusdeviceinfo.h | 28 u8 devtype[16]; /* short string identifying the device type */ member 159 psrc = &devinfo->devtype[0]; in vbuschannel_devinfo_to_string() 160 nsrc = sizeof(devinfo->devtype); in vbuschannel_devinfo_to_string()
|
/drivers/spi/ |
D | spi-imx.c | 84 enum spi_imx_devtype devtype; member 119 return d->devtype_data->devtype == IMX27_CSPI; in is_imx27_cspi() 124 return d->devtype_data->devtype == IMX35_CSPI; in is_imx35_cspi() 129 return (d->devtype_data->devtype == IMX51_ECSPI) ? 64 : 8; in spi_imx_get_fifosize() 635 .devtype = IMX1_CSPI, 644 .devtype = IMX21_CSPI, 654 .devtype = IMX27_CSPI, 663 .devtype = IMX31_CSPI, 673 .devtype = IMX35_CSPI, 682 .devtype = IMX51_ECSPI,
|
/drivers/mtd/devices/ |
D | lart.c | 306 __u32 manufacturer,devtype; in flash_probe() local 314 devtype = FLASH_TO_DATA (read32 (ADDR_TO_FLASH_U2 (0x00000001))); in flash_probe() 319 …return (manufacturer == FLASH_MANUFACTURER && (devtype == FLASH_DEVICE_16mbit_TOP || devtype == FL… in flash_probe()
|
/drivers/rtc/ |
D | rtc-mxc.c | 87 enum imx_rtc_type devtype; member 114 return data->devtype == IMX1_RTC; in is_imx1_rtc() 384 pdata->devtype = (enum imx_rtc_type)of_id->data; in mxc_rtc_probe() 386 pdata->devtype = pdev->id_entry->driver_data; in mxc_rtc_probe()
|
/drivers/block/ |
D | cciss_scsi.c | 436 sd->devtype = device->devtype; in cciss_scsi_add_entry() 445 scsi_device_type(sd->devtype), hostno, in cciss_scsi_add_entry() 468 scsi_device_type(sd.devtype), hostno, in cciss_scsi_remove_entry() 506 return dev1->devtype == dev2->devtype && in device_is_the_same() 588 csd->devtype = sd[j].devtype; in adjust_cciss_scsi_table() 1221 this_device->devtype = (inq_buff[0] & 0x1f); in cciss_update_non_disk_devices() 1237 switch (this_device->devtype) in cciss_update_non_disk_devices() 1262 scsi_device_type(this_device->devtype)); in cciss_update_non_disk_devices() 1343 sd->devtype, in cciss_scsi_show_info()
|
D | cciss_scsi.h | 62 int devtype; member
|
/drivers/block/paride/ |
D | paride.h | 42 int devtype; /* device type: PI_PD etc. */ member 69 int devtype, /* device type: PI_PD, PI_PCD, etc ... */
|
D | paride.c | 352 int devtype, int verbose, char *device) in pi_init() argument 391 pi->devtype = devtype; in pi_init()
|
/drivers/scsi/ |
D | atp870u.h | 52 unsigned char devtype; member
|
/drivers/media/pci/cx18/ |
D | cx18-driver.c | 907 u32 devtype; in cx18_probe() local 972 devtype = cx18_read_reg(cx, 0xC72028); in cx18_probe() 973 switch (devtype & 0xff000000) { in cx18_probe() 975 CX18_INFO("cx23418 revision %08x (A)\n", devtype); in cx18_probe() 978 CX18_INFO("cx23418 revision %08x (B)\n", devtype); in cx18_probe() 981 CX18_INFO("cx23418 revision %08x (Unknown)\n", devtype); in cx18_probe()
|
/drivers/mtd/spi-nor/ |
D | fsl-quadspi.c | 219 enum fsl_qspi_devtype devtype; member 227 .devtype = FSL_QUADSPI_VYBRID, 235 .devtype = FSL_QUADSPI_IMX6SX, 244 .devtype = FSL_QUADSPI_IMX7D, 253 .devtype = FSL_QUADSPI_IMX6UL,
|
/drivers/i2c/busses/ |
D | i2c-rcar.c | 119 enum rcar_i2c_type devtype; member 176 switch (priv->devtype) { in rcar_i2c_clock_calculate() 623 priv->devtype = (enum rcar_i2c_type)of_match_device(rcar_i2c_dt_ids, dev)->data; in rcar_i2c_probe()
|
D | i2c-imx.c | 181 enum imx_i2c_type devtype; member 222 .devtype = IMX1_I2C, 232 .devtype = IMX21_I2C, 242 .devtype = VF610_I2C, 274 return i2c_imx->hwdata->devtype == IMX1_I2C; in is_imx1_i2c()
|