Home
last modified time | relevance | path

Searched refs:devtype (Results 1 – 25 of 56) sorted by relevance

123

/drivers/leds/
Dleds-mc13783.c40 struct mc13xxx_led_devtype *devtype; member
108 return mc13xxx_reg_rmw(leds->master, leds->devtype->ledctrl_base + reg, in mc13xxx_led_set()
133 leds->devtype->num_regs); in mc13xxx_led_probe_dt()
152 pdata->led[i].id = leds->devtype->led_min + tmp; in mc13xxx_led_probe_dt()
184 struct mc13xxx_led_devtype *devtype = in mc13xxx_led_probe() local
194 leds->devtype = devtype; in mc13xxx_led_probe()
208 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) { in mc13xxx_led_probe()
218 for (i = 0; i < devtype->num_regs; i++) { in mc13xxx_led_probe()
219 ret = mc13xxx_reg_write(mcdev, leds->devtype->ledctrl_base + i, in mc13xxx_led_probe()
234 if ((id > devtype->led_max) || (id < devtype->led_min)) { in mc13xxx_led_probe()
/drivers/bus/
Dimx-weim.c113 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/gpu/ipu-v3/
Dipu-common.c955 const struct ipu_devtype *devtype = ipu->devtype; in ipu_submodules_init() local
957 ret = ipu_cpmem_init(ipu, dev, ipu_base + devtype->cpmem_ofs); in ipu_submodules_init()
963 ret = ipu_csi_init(ipu, dev, 0, ipu_base + devtype->csi0_ofs, in ipu_submodules_init()
970 ret = ipu_csi_init(ipu, dev, 1, ipu_base + devtype->csi1_ofs, in ipu_submodules_init()
978 ipu_base + devtype->ic_ofs, in ipu_submodules_init()
979 ipu_base + devtype->tpm_ofs); in ipu_submodules_init()
985 ret = ipu_vdi_init(ipu, dev, ipu_base + devtype->vdi_ofs, in ipu_submodules_init()
999 ret = ipu_di_init(ipu, dev, 0, ipu_base + devtype->disp0_ofs, in ipu_submodules_init()
1006 ret = ipu_di_init(ipu, dev, 1, ipu_base + devtype->disp1_ofs, in ipu_submodules_init()
1013 ret = ipu_dc_init(ipu, dev, ipu_base + devtype->cm_ofs + in ipu_submodules_init()
[all …]
/drivers/media/platform/coda/
Dcoda-bit.c71 if (dev->devtype->product == CODA_960 || in coda_command_async()
72 dev->devtype->product == CODA_7541) { in coda_command_async()
83 if (dev->devtype->product == CODA_960) { in coda_command_async()
123 if (dev->devtype->product == CODA_960) { in coda_hw_reset()
137 if (dev->devtype->product == CODA_960) in coda_hw_reset()
352 if ((dev->devtype->product == CODA_960) && in coda_bit_stream_end_flag()
365 if (dev->devtype->product == CODA_DX6) in coda_parabuf_write()
417 dev->devtype->product != CODA_DX6) in coda_alloc_framebuffers()
453 dev->devtype->product != CODA_DX6) in coda_alloc_framebuffers()
458 if ((dev->devtype->product != CODA_DX6) && in coda_alloc_framebuffers()
[all …]
Dcoda-common.c270 const struct coda_codec *codecs = dev->devtype->codecs; in coda_find_codec()
271 int num_codecs = dev->devtype->num_codecs; in coda_find_codec()
295 const struct coda_codec *codecs = dev->devtype->codecs; in coda_get_max_dimensions()
296 int num_codecs = dev->devtype->num_codecs; in coda_get_max_dimensions()
322 if (i >= dev->devtype->num_vdevs) in to_coda_video_device()
325 return dev->devtype->vdevs[i]; in to_coda_video_device()
379 strlcpy(cap->card, coda_product_name(ctx->dev->devtype->product), in coda_querycap()
1751 int max_gop_size = (ctx->dev->devtype->product == CODA_DX6) ? 60 : 99; in coda_encode_ctrls()
1761 if (ctx->dev->devtype->product != CODA_960) { in coda_encode_ctrls()
1779 if (ctx->dev->devtype->product == CODA_7541) { in coda_encode_ctrls()
[all …]
/drivers/tty/serial/
Dmax310x.c266 struct max310x_devtype *devtype; member
323 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3107_detect()
344 dev_err(dev, "%s not present\n", s->devtype->name); in max3108_detect()
366 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3109_detect()
397 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max14830_detect()
735 if (s->devtype->nr > 1) { in max310x_ist()
741 val = ((1 << s->devtype->nr) - 1) & ~val; in max310x_ist()
940 s->devtype->power(port, 1); in max310x_startup()
974 s->devtype->power(port, 0); in max310x_shutdown()
981 return (port->type == PORT_MAX310X) ? s->devtype->name : NULL; in max310x_type()
[all …]
Dsc16is7xx.c326 const struct sc16is7xx_devtype *devtype; member
728 for (i = 0; i < s->devtype->nr_uart; ++i) in sc16is7xx_ist()
1075 return (port->type == PORT_SC16IS7XX) ? s->devtype->name : NULL; in sc16is7xx_type()
1183 const struct sc16is7xx_devtype *devtype, in sc16is7xx_probe() argument
1196 sizeof(struct sc16is7xx_one) * devtype->nr_uart, in sc16is7xx_probe()
1215 s->devtype = devtype; in sc16is7xx_probe()
1230 if (devtype->nr_gpio) { in sc16is7xx_probe()
1240 s->gpio.ngpio = devtype->nr_gpio; in sc16is7xx_probe()
1252 for (i = 0; i < devtype->nr_uart; ++i) { in sc16is7xx_probe()
1314 if (devtype->nr_gpio) in sc16is7xx_probe()
[all …]
/drivers/gpio/
Dgpio-mpc8xxx.c292 const struct mpc8xxx_gpio_devtype *devtype = in mpc8xxx_probe() local
334 if (!devtype) in mpc8xxx_probe()
335 devtype = &mpc8xxx_gpio_devtype_default; in mpc8xxx_probe()
341 if (devtype->irq_set_type) in mpc8xxx_probe()
342 mpc8xxx_irq_chip.irq_set_type = devtype->irq_set_type; in mpc8xxx_probe()
344 if (devtype->gpio_dir_out) in mpc8xxx_probe()
345 gc->direction_output = devtype->gpio_dir_out; in mpc8xxx_probe()
346 if (devtype->gpio_get) in mpc8xxx_probe()
347 gc->get = devtype->gpio_get; in mpc8xxx_probe()
/drivers/hid/
Dhid-wiimote-core.c206 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/staging/unisys/visorinput/
Dvisorinput.c360 enum visorinput_device_type devtype) in devdata_create() argument
365 if (devtype == visorinput_keyboard) in devdata_create()
388 switch (devtype) { in devdata_create()
448 enum visorinput_device_type devtype; in visorinput_probe() local
452 devtype = visorinput_mouse; in visorinput_probe()
454 devtype = visorinput_keyboard; in visorinput_probe()
458 if (!devdata_create(dev, devtype)) in visorinput_probe()
/drivers/media/i2c/
Dov7670.c243 const struct ov7670_devtype *devtype; /* Device specifics */ member
925 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_try_fmt_internal()
949 wsize = info->devtype->win_sizes + i; in ov7670_try_fmt_internal()
961 for (wsize = info->devtype->win_sizes; in ov7670_try_fmt_internal()
962 wsize < info->devtype->win_sizes + win_sizes_limit; wsize++) in ov7670_try_fmt_internal()
965 if (wsize >= info->devtype->win_sizes + win_sizes_limit) in ov7670_try_fmt_internal()
1054 info->devtype->get_framerate(sd, &cp->timeperframe); in ov7670_g_parm()
1069 return info->devtype->set_framerate(sd, tpf); in ov7670_s_parm()
1086 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_enum_frame_interval()
1101 struct ov7670_win_size *win = &info->devtype->win_sizes[i]; in ov7670_enum_frame_interval()
[all …]
/drivers/spi/
Dspi-imx.c83 enum spi_imx_devtype devtype; member
123 return d->devtype_data->devtype == IMX27_CSPI; in is_imx27_cspi()
128 return d->devtype_data->devtype == IMX35_CSPI; in is_imx35_cspi()
133 return d->devtype_data->devtype == IMX51_ECSPI; in is_imx51_ecspi()
138 return d->devtype_data->devtype == IMX53_ECSPI; in is_imx53_ecspi()
847 .devtype = IMX1_CSPI,
860 .devtype = IMX21_CSPI,
874 .devtype = IMX27_CSPI,
887 .devtype = IMX31_CSPI,
901 .devtype = IMX35_CSPI,
[all …]
/drivers/fpga/
Daltera-ps-spi.c35 enum altera_ps_devtype devtype; member
63 .devtype = CYCLONE5,
71 .devtype = ARRIA10,
/drivers/mtd/devices/
Dlart.c306 __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/
Drtc-mxc.c76 enum imx_rtc_type devtype; member
103 return data->devtype == IMX1_RTC; in is_imx1_rtc()
349 pdata->devtype = (enum imx_rtc_type)of_id->data; in mxc_rtc_probe()
351 pdata->devtype = pdev->id_entry->driver_data; in mxc_rtc_probe()
/drivers/block/paride/
Dparide.h42 int devtype; /* device type: PI_PD etc. */ member
69 int devtype, /* device type: PI_PD, PI_PCD, etc ... */
Dparide.c352 int devtype, int verbose, char *device) in pi_init() argument
391 pi->devtype = devtype; in pi_init()
/drivers/scsi/aacraid/
Dlinit.c283 struct aac_driver_ident* aac_get_driver_ident(int devtype) in aac_get_driver_ident() argument
285 return &aac_drivers[devtype]; in aac_get_driver_ident()
409 u8 devtype = 0; in aac_slave_configure() local
414 devtype = aac->hba_map[chn][tid].devtype; in aac_slave_configure()
416 if (devtype == AAC_DEVTYPE_NATIVE_RAW) { in aac_slave_configure()
421 if (devtype == AAC_DEVTYPE_ARC_RAW) { in aac_slave_configure()
534 aac->hba_map[chn][tid].devtype == AAC_DEVTYPE_NATIVE_RAW) in aac_change_queue_depth()
691 if (aac->hba_map[bus][cid].devtype == AAC_DEVTYPE_NATIVE_RAW) { in aac_eh_abort()
918 if (info->devtype != AAC_DEVTYPE_NATIVE_RAW && in aac_eh_dev_reset()
976 if (info->devtype != AAC_DEVTYPE_NATIVE_RAW && in aac_eh_target_reset()
[all …]
/drivers/staging/unisys/visorbus/
Dvisorbus_main.c397 if (!isprint(devinfo->devtype[0])) in vbuschannel_print_devinfo()
410 seq_printf(seq, "%-*.*s ", (int)sizeof(devinfo->devtype), in vbuschannel_print_devinfo()
411 (int)sizeof(devinfo->devtype), devinfo->devtype); in vbuschannel_print_devinfo()
816 snprintf(bus_device_info_ptr->devtype, in bus_device_info_init()
817 sizeof(bus_device_info_ptr->devtype), in bus_device_info_init()
Dvbuschannel.h58 u8 devtype[16]; member
/drivers/i2c/busses/
Di2c-rcar.c137 enum rcar_i2c_type devtype; member
202 switch (priv->devtype) { in rcar_i2c_clock_calculate()
330 if (priv->devtype == I2C_RCAR_GEN3 && in rcar_i2c_dma_unmap()
733 if (priv->devtype == I2C_RCAR_GEN3) { in rcar_i2c_master_xfer()
890 priv->devtype = (enum rcar_i2c_type)of_device_get_match_data(dev); in rcar_i2c_probe()
917 if (priv->devtype == I2C_RCAR_GEN3) { in rcar_i2c_probe()
Di2c-imx.c175 enum imx_i2c_type devtype; member
216 .devtype = IMX1_I2C,
226 .devtype = IMX21_I2C,
236 .devtype = VF610_I2C,
268 return i2c_imx->hwdata->devtype == IMX1_I2C; in is_imx1_i2c()
/drivers/mtd/spi-nor/
Dfsl-quadspi.c220 enum fsl_qspi_devtype devtype; member
228 .devtype = FSL_QUADSPI_VYBRID,
236 .devtype = FSL_QUADSPI_IMX6SX,
245 .devtype = FSL_QUADSPI_IMX7D,
254 .devtype = FSL_QUADSPI_IMX6UL,
263 .devtype = FSL_QUADSPI_LS1021A,
/drivers/scsi/
Datp870u.h49 unsigned char devtype; member
/drivers/media/pci/cx18/
Dcx18-driver.c901 u32 devtype; in cx18_probe() local
963 devtype = cx18_read_reg(cx, 0xC72028); in cx18_probe()
964 switch (devtype & 0xff000000) { in cx18_probe()
966 CX18_INFO("cx23418 revision %08x (A)\n", devtype); in cx18_probe()
969 CX18_INFO("cx23418 revision %08x (B)\n", devtype); in cx18_probe()
972 CX18_INFO("cx23418 revision %08x (Unknown)\n", devtype); in cx18_probe()

123