/linux/drivers/bus/ |
H A D | imx-weim.c | 161 value, devtype->cs_regs_count); in weim_timing_setup() 181 if (cs_idx >= devtype->cs_count) in weim_timing_setup() 199 devtype->cs_regs_count * sizeof(u32)); in weim_timing_setup() 215 if (devtype == &imx50_weim_devtype) { in weim_parse_dt() 225 if (devtype->wcr_bcm) { in weim_parse_dt() 226 reg = readl(base + devtype->wcr_offset); in weim_parse_dt() 227 reg |= devtype->wcr_bcm; in weim_parse_dt() 231 if (devtype->wcr_cont_bclk) { in weim_parse_dt() 232 reg |= devtype->wcr_cont_bclk; in weim_parse_dt() 307 const struct imx_weim_devtype *devtype; in of_weim_notify() local [all …]
|
/linux/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-dev.c | 67 const struct dcss_type_data *devtype = dcss->devtype; in dcss_submodules_init() local 71 ret = dcss_blkctl_init(dcss, base_addr + devtype->blkctl_ofs); in dcss_submodules_init() 75 ret = dcss_ctxld_init(dcss, base_addr + devtype->ctxld_ofs); in dcss_submodules_init() 79 ret = dcss_dtg_init(dcss, base_addr + devtype->dtg_ofs); in dcss_submodules_init() 83 ret = dcss_ss_init(dcss, base_addr + devtype->ss_ofs); in dcss_submodules_init() 87 ret = dcss_dpr_init(dcss, base_addr + devtype->dpr_ofs); in dcss_submodules_init() 91 ret = dcss_scaler_init(dcss, base_addr + devtype->scaler_ofs); in dcss_submodules_init() 169 const struct dcss_type_data *devtype; in dcss_dev_create() local 171 devtype = of_device_get_match_data(dev); in dcss_dev_create() 172 if (!devtype) { in dcss_dev_create() [all …]
|
/linux/drivers/leds/ |
H A D | leds-mc13783.c | 37 struct mc13xxx_led_devtype *devtype; member 105 return mc13xxx_reg_rmw(leds->master, leds->devtype->ledctrl_base + reg, in mc13xxx_led_set() 130 leds->devtype->num_regs); in mc13xxx_led_probe_dt() 149 pdata->led[i].id = leds->devtype->led_min + tmp; in mc13xxx_led_probe_dt() 181 struct mc13xxx_led_devtype *devtype = in mc13xxx_led_probe() local 191 leds->devtype = devtype; in mc13xxx_led_probe() 205 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) { in mc13xxx_led_probe() 215 for (i = 0; i < devtype->num_regs; i++) { in mc13xxx_led_probe() 216 ret = mc13xxx_reg_write(mcdev, leds->devtype->ledctrl_base + i, in mc13xxx_led_probe() 231 if ((id > devtype->led_max) || (id < devtype->led_min)) { in mc13xxx_led_probe()
|
/linux/drivers/tty/serial/ |
H A D | max310x.c | 345 if (s->devtype->rev_id_val) { in max310x_detect() 370 s->devtype->name, val); in max310x_detect() 383 s->devtype->name); in max310x_detect() 393 max310x_port_update(port, s->devtype->power_reg, s->devtype->power_bit, in max310x_power() 825 if (s->devtype->nr > 1) { in max310x_ist() 1262 for (i = 0; i < devtype->nr; i++) in max310x_probe() 1310 s->devtype = devtype; in max310x_probe() 1410 s->gpio.label = devtype->name; in max310x_probe() 1417 s->gpio.ngpio = devtype->nr * 4; in max310x_probe() 1530 if (!devtype) in max310x_spi_probe() [all …]
|
H A D | sc16is7xx_i2c.c | 15 const struct sc16is7xx_devtype *devtype; in sc16is7xx_i2c_probe() local 20 devtype = i2c_get_match_data(i2c); in sc16is7xx_i2c_probe() 21 if (!devtype) in sc16is7xx_i2c_probe() 26 for (i = 0; i < devtype->nr_uart; i++) { in sc16is7xx_i2c_probe() 33 return sc16is7xx_probe(&i2c->dev, devtype, regmaps, i2c->irq); in sc16is7xx_i2c_probe()
|
H A D | sc16is7xx_spi.c | 19 const struct sc16is7xx_devtype *devtype; in sc16is7xx_spi_probe() local 37 devtype = spi_get_device_match_data(spi); in sc16is7xx_spi_probe() 38 if (!devtype) in sc16is7xx_spi_probe() 43 for (i = 0; i < devtype->nr_uart; i++) { in sc16is7xx_spi_probe() 56 return sc16is7xx_probe(&spi->dev, devtype, regmaps, spi->irq); in sc16is7xx_spi_probe()
|
H A D | sc16is7xx.c | 335 const struct sc16is7xx_devtype *devtype; member 846 for (i = 0; i < s->devtype->nr_uart; ++i) in sc16is7xx_irq() 1364 if (!s->devtype->nr_gpio) in sc16is7xx_setup_gpio_chip() 1393 s->gpio.ngpio = s->devtype->nr_gpio; in sc16is7xx_setup_gpio_chip() 1418 if (irda_port[i] < s->devtype->nr_uart) in sc16is7xx_setup_irda_ports() 1480 for (i = 0; i < devtype->nr_uart; i++) in sc16is7xx_probe() 1527 s->devtype = devtype; in sc16is7xx_probe() 1544 for (i = 0; i < devtype->nr_uart; ++i) { in sc16is7xx_probe() 1549 for (i = 0; i < devtype->nr_uart; ++i) { in sc16is7xx_probe() 1659 for (i = 0; i < devtype->nr_uart; i++) { in sc16is7xx_probe() [all …]
|
H A D | sc16is7xx.h | 36 int sc16is7xx_probe(struct device *dev, const struct sc16is7xx_devtype *devtype,
|
/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-common.c | 889 const struct ipu_devtype *devtype = ipu->devtype; in ipu_submodules_init() local 912 ipu_base + devtype->ic_ofs, in ipu_submodules_init() 1316 if (!devtype) in ipu_probe() 1347 ipu->devtype = devtype; in ipu_probe() 1348 ipu->ipu_type = devtype->type; in ipu_probe() 1355 ipu_base + devtype->cm_ofs); in ipu_probe() 1361 ipu_base + devtype->csi0_ofs); in ipu_probe() 1365 ipu_base + devtype->ic_ofs); in ipu_probe() 1371 ipu_base + devtype->srm_ofs); in ipu_probe() 1373 ipu_base + devtype->tpm_ofs); in ipu_probe() [all …]
|
/linux/drivers/media/platform/chips-media/coda/ |
H A D | coda-bit.c | 68 if (dev->devtype->product == CODA_HX4 || in coda_command_async() 69 dev->devtype->product == CODA_7541 || in coda_command_async() 70 dev->devtype->product == CODA_960) { in coda_command_async() 81 if (dev->devtype->product == CODA_960) { in coda_command_async() 139 if (dev->devtype->product == CODA_960) in coda_hw_reset() 605 size = dev->devtype->workbuf_size; in coda_alloc_context_buffers() 809 switch (dev->devtype->product) { in coda_setup_iram() 1105 switch (dev->devtype->product) { in coda_start_encoding() 1136 switch (dev->devtype->product) { in coda_start_encoding() 1297 switch (dev->devtype->product) { in coda_start_encoding() [all …]
|
H A D | coda-common.c | 318 int num_codecs = dev->devtype->num_codecs; in coda_find_codec() 369 if (i >= dev->devtype->num_vdevs) in to_coda_video_device() 372 return dev->devtype->vdevs[i]; in to_coda_video_device() 2614 if (dev->devtype->product == CODA_DX6) in coda_open() 2649 switch (dev->devtype->product) { in coda_open() 2842 switch (dev->devtype->product) { in coda_hw_init() 2851 if (dev->devtype->product == CODA_960) in coda_hw_init() 2857 if (dev->devtype->product != CODA_DX6) in coda_hw_init() 2889 if (i >= dev->devtype->num_vdevs) in coda_register_device() 2891 name = dev->devtype->vdevs[i]->name; in coda_register_device() [all …]
|
/linux/drivers/net/can/ |
H A D | xilinx_can.c | 254 struct xcan_devtype_data devtype; member 514 if (priv->devtype.cantype == XAXI_CANFD || in xcan_set_bittiming() 519 if (priv->devtype.cantype == XAXI_CANFD) in xcan_set_bittiming() 588 if (priv->devtype.flags & XCAN_FLAG_RXMNF) in xcan_chip_start() 706 if (priv->devtype.cantype == XAXI_CANFD || in xcan_write_frame() 1884 const struct xcan_devtype_data *devtype; in xcan_probe() local 1938 (devtype->flags & XCAN_FLAG_TXFEMP)) in xcan_probe() 1969 if (devtype->cantype == XAXI_CANFD) { in xcan_probe() 1975 if (devtype->cantype == XAXI_CANFD_2_0) { in xcan_probe() 1981 if (devtype->cantype == XAXI_CANFD || in xcan_probe() [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-mpc8xxx.c | 304 const struct mpc8xxx_gpio_devtype *devtype = NULL; in mpc8xxx_probe() local 346 devtype = device_get_match_data(&pdev->dev); in mpc8xxx_probe() 347 if (!devtype) in mpc8xxx_probe() 348 devtype = &mpc8xxx_gpio_devtype_default; in mpc8xxx_probe() 354 if (devtype->irq_set_type) in mpc8xxx_probe() 355 mpc8xxx_irq_chip.irq_set_type = devtype->irq_set_type; in mpc8xxx_probe() 357 if (devtype->gpio_dir_out) in mpc8xxx_probe() 358 gc->direction_output = devtype->gpio_dir_out; in mpc8xxx_probe() 359 if (devtype->gpio_get) in mpc8xxx_probe() 360 gc->get = devtype->gpio_get; in mpc8xxx_probe()
|
/linux/arch/powerpc/boot/ |
H A D | serial.c | 86 char devtype[MAX_PROP_LEN]; in serial_get_stdout_devp() local 99 if ((getprop(devp, "device_type", devtype, sizeof(devtype)) > 0) in serial_get_stdout_devp() 100 && !strcmp(devtype, "serial")) in serial_get_stdout_devp()
|
/linux/drivers/hid/ |
H A D | hid-wiimote-core.c | 625 unsigned int devtype) in wiimote_modules_load() argument 632 mods = wiimote_devtype_mods[devtype]; in wiimote_modules_load() 672 wdata->state.devtype = devtype; in wiimote_modules_load() 816 __u8 devtype = WIIMOTE_DEV_GENERIC; in wiimote_init_set_type() local 833 devtype = WIIMOTE_DEV_GEN10; in wiimote_init_set_type() 836 devtype = WIIMOTE_DEV_GEN20; in wiimote_init_set_type() 848 devtype = WIIMOTE_DEV_GEN10; in wiimote_init_set_type() 851 devtype = WIIMOTE_DEV_GEN20; in wiimote_init_set_type() 857 if (devtype == WIIMOTE_DEV_GENERIC) in wiimote_init_set_type() 862 wiimote_devtype_names[devtype]); in wiimote_init_set_type() [all …]
|
/linux/drivers/watchdog/ |
H A D | rzg2l_wdt.c | 60 enum rz_wdt_type devtype; member 67 if (priv->devtype == WDT_RZV2M) { in rzg2l_wdt_reset() 176 if (priv->devtype == WDT_RZG2L) { in rzg2l_wdt_restart() 280 priv->devtype = (uintptr_t)of_device_get_match_data(dev); in rzg2l_wdt_probe() 282 if (priv->devtype == WDT_RZV2M) { in rzg2l_wdt_probe()
|
/linux/sound/soc/codecs/ |
H A D | tas5720.c | 47 enum tas572x_type devtype; member 173 switch (tas5720->devtype) { in tas5720_set_dai_tdm_slot() 191 switch (tas5720->devtype) { in tas5720_set_dai_tdm_slot() 217 switch (tas5720->devtype) { in tas5720_mute_soc_component() 329 switch (tas5720->devtype) { in tas5720_codec_probe() 355 switch (tas5720->devtype) { in tas5720_codec_probe() 742 data->devtype = id->driver_data; in tas5720_probe()
|
/linux/drivers/media/i2c/ |
H A D | ov7670.c | 974 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_try_fmt_internal() 998 wsize = info->devtype->win_sizes + i; in ov7670_try_fmt_internal() 1010 for (wsize = info->devtype->win_sizes; in ov7670_try_fmt_internal() 1170 info->devtype->get_framerate(sd, &ival->interval); in ov7670_get_frame_interval() 1189 return info->devtype->set_framerate(sd, tpf); in ov7670_set_frame_interval() 1206 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_enum_frame_interval() 1713 format->width = info->devtype->win_sizes[0].width; in ov7670_get_default_format() 1714 format->height = info->devtype->win_sizes[0].height; in ov7670_get_default_format() 1897 info->devtype = i2c_get_match_data(client); in ov7670_probe() 1899 info->wsize = &info->devtype->win_sizes[0]; in ov7670_probe() [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-rcar.c | 156 enum rcar_i2c_type devtype; member 243 if (priv->devtype < I2C_RCAR_GEN3) { in rcar_i2c_init() 312 cdf_width = (priv->devtype == I2C_RCAR_GEN1) ? 2 : 3; in rcar_i2c_clock_calculate() 322 ick = rate / (priv->devtype < I2C_RCAR_GEN3 ? (cdf + 1) : 1); in rcar_i2c_clock_calculate() 335 if (priv->devtype < I2C_RCAR_GEN3) { in rcar_i2c_clock_calculate() 450 if (priv->devtype >= I2C_RCAR_GEN3 && in rcar_i2c_cleanup_dma() 905 if (priv->devtype >= I2C_RCAR_GEN3) { in rcar_i2c_master_xfer() 976 if (priv->devtype < I2C_RCAR_GEN3) in rcar_i2c_master_xfer_atomic() 1126 priv->devtype = (enum rcar_i2c_type)of_device_get_match_data(dev); in rcar_i2c_probe() 1157 if (priv->devtype < I2C_RCAR_GEN3) { in rcar_i2c_probe() [all …]
|
/linux/drivers/nvmem/ |
H A D | imx-ocotp-scu.c | 35 int devtype; member 55 .devtype = IMX8QXP, 66 .devtype = IMX8QM,
|
/linux/drivers/fpga/ |
H A D | altera-ps-spi.c | 31 enum altera_ps_devtype devtype; member 59 .devtype = CYCLONE5, 67 .devtype = ARRIA10,
|
/linux/drivers/scsi/aacraid/ |
H A D | linit.c | 268 struct aac_driver_ident* aac_get_driver_ident(int devtype) in aac_get_driver_ident() argument 270 return &aac_drivers[devtype]; in aac_get_driver_ident() 396 u8 devtype = 0; in aac_slave_configure() local 401 devtype = aac->hba_map[chn][tid].devtype; in aac_slave_configure() 403 if (devtype == AAC_DEVTYPE_NATIVE_RAW) { in aac_slave_configure() 408 if (devtype == AAC_DEVTYPE_ARC_RAW) { in aac_slave_configure() 524 aac->hba_map[chn][tid].devtype == AAC_DEVTYPE_NATIVE_RAW) in aac_change_queue_depth() 922 if (!(info->devtype == AAC_DEVTYPE_NATIVE_RAW && in aac_eh_dev_reset() 985 if (!(info->devtype == AAC_DEVTYPE_NATIVE_RAW && in aac_eh_target_reset() 1058 info->devtype != AAC_DEVTYPE_NATIVE_RAW) { in aac_eh_bus_reset() [all …]
|
/linux/drivers/spi/ |
H A D | spi-imx.c | 89 enum spi_imx_devtype devtype; member 133 return d->devtype_data->devtype == IMX27_CSPI; in is_imx27_cspi() 138 return d->devtype_data->devtype == IMX35_CSPI; in is_imx35_cspi() 1008 .devtype = IMX1_CSPI, 1022 .devtype = IMX21_CSPI, 1037 .devtype = IMX27_CSPI, 1051 .devtype = IMX31_CSPI, 1066 .devtype = IMX35_CSPI, 1082 .devtype = IMX51_ECSPI, 1096 .devtype = IMX53_ECSPI, [all …]
|
/linux/drivers/rtc/ |
H A D | rtc-mxc.c | 69 enum imx_rtc_type devtype; member 81 return data->devtype == IMX1_RTC; in is_imx1_rtc() 305 pdata->devtype = (uintptr_t)of_device_get_match_data(&pdev->dev); in mxc_rtc_probe()
|
/linux/drivers/scsi/ |
H A D | atp870u.h | 49 unsigned char devtype; member
|