/linux-6.12.1/drivers/bus/ |
D | imx-weim.c | 141 const struct imx_weim_devtype *devtype) in weim_timing_setup() argument 151 if (WARN_ON(devtype->cs_regs_count > MAX_CS_REGS_COUNT)) in weim_timing_setup() 153 if (WARN_ON(devtype->cs_count > MAX_CS_COUNT)) in weim_timing_setup() 161 value, devtype->cs_regs_count); in weim_timing_setup() 181 if (cs_idx >= devtype->cs_count) in weim_timing_setup() 187 devtype->cs_regs_count * sizeof(u32))) { in weim_timing_setup() 193 for (i = 0; i < devtype->cs_regs_count; i++) in weim_timing_setup() 195 base + cs_idx * devtype->cs_stride + i * 4); in weim_timing_setup() 199 devtype->cs_regs_count * sizeof(u32)); in weim_timing_setup() 208 const struct imx_weim_devtype *devtype = device_get_match_data(&pdev->dev); in weim_parse_dt() local [all …]
|
/linux-6.12.1/drivers/gpu/drm/imx/dcss/ |
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-6.12.1/drivers/leds/ |
D | leds-mc13783.c | 38 struct mc13xxx_led_devtype *devtype; member 106 return mc13xxx_reg_rmw(leds->master, leds->devtype->ledctrl_base + reg, in mc13xxx_led_set() 132 leds->devtype->num_regs); in mc13xxx_led_probe_dt() 149 pdata->led[i].id = leds->devtype->led_min + tmp; in mc13xxx_led_probe_dt() 179 struct mc13xxx_led_devtype *devtype = in mc13xxx_led_probe() local 189 leds->devtype = devtype; in mc13xxx_led_probe() 203 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) { in mc13xxx_led_probe() 213 for (i = 0; i < devtype->num_regs; i++) { in mc13xxx_led_probe() 214 ret = mc13xxx_reg_write(mcdev, leds->devtype->ledctrl_base + i, in mc13xxx_led_probe() 229 if ((id > devtype->led_max) || (id < devtype->led_min)) { in mc13xxx_led_probe()
|
/linux-6.12.1/drivers/tty/serial/ |
D | max310x.c | 293 const struct max310x_devtype *devtype; member 345 if (s->devtype->rev_id_val) { in max310x_detect() 346 u8 rev_id_reg = s->devtype->rev_id_reg; in max310x_detect() 349 if (s->devtype->rev_id_reg >= MAX310X_EXTREG_START) { in max310x_detect() 361 if (s->devtype->rev_id_reg >= MAX310X_EXTREG_START) { in max310x_detect() 367 if (((val & MAX310x_REV_MASK) != 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() 394 on ? 0 : s->devtype->power_bit); in max310x_power() [all …]
|
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()
|
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()
|
D | sc16is7xx.c | 342 const struct sc16is7xx_devtype *devtype; member 857 for (i = 0; i < s->devtype->nr_uart; ++i) in sc16is7xx_irq() 1242 return (port->type == PORT_SC16IS7XX) ? s->devtype->name : NULL; in sc16is7xx_type() 1375 if (!s->devtype->nr_gpio) in sc16is7xx_setup_gpio_chip() 1404 s->gpio.ngpio = s->devtype->nr_gpio; in sc16is7xx_setup_gpio_chip() 1429 if (irda_port[i] < s->devtype->nr_uart) in sc16is7xx_setup_irda_ports() 1504 int sc16is7xx_probe(struct device *dev, const struct sc16is7xx_devtype *devtype, in sc16is7xx_probe() argument 1514 for (i = 0; i < devtype->nr_uart; i++) in sc16is7xx_probe() 1532 s = devm_kzalloc(dev, struct_size(s, p, devtype->nr_uart), GFP_KERNEL); in sc16is7xx_probe() 1561 s->devtype = devtype; in sc16is7xx_probe() [all …]
|
D | sc16is7xx.h | 36 int sc16is7xx_probe(struct device *dev, const struct sc16is7xx_devtype *devtype,
|
/linux-6.12.1/drivers/gpu/ipu-v3/ |
D | ipu-common.c | 889 const struct ipu_devtype *devtype = ipu->devtype; in ipu_submodules_init() local 891 ret = ipu_cpmem_init(ipu, dev, ipu_base + devtype->cpmem_ofs); in ipu_submodules_init() 897 ret = ipu_csi_init(ipu, dev, 0, ipu_base + devtype->csi0_ofs, in ipu_submodules_init() 904 ret = ipu_csi_init(ipu, dev, 1, ipu_base + devtype->csi1_ofs, in ipu_submodules_init() 912 ipu_base + devtype->ic_ofs, in ipu_submodules_init() 913 ipu_base + devtype->tpm_ofs); in ipu_submodules_init() 919 ret = ipu_vdi_init(ipu, dev, ipu_base + devtype->vdi_ofs, in ipu_submodules_init() 933 ret = ipu_di_init(ipu, dev, 0, ipu_base + devtype->disp0_ofs, in ipu_submodules_init() 940 ret = ipu_di_init(ipu, dev, 1, ipu_base + devtype->disp1_ofs, in ipu_submodules_init() 947 ret = ipu_dc_init(ipu, dev, ipu_base + devtype->cm_ofs + in ipu_submodules_init() [all …]
|
/linux-6.12.1/drivers/media/platform/chips-media/coda/ |
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() 125 if (dev->devtype->product == CODA_960) { in coda_hw_reset() 139 if (dev->devtype->product == CODA_960) in coda_hw_reset() 290 if (ctx->dev->devtype->product == CODA_960) in coda_bitstream_try_queue() 442 if ((dev->devtype->product == CODA_960) && in coda_bit_stream_end_flag() 455 if (dev->devtype->product == CODA_DX6) in coda_parabuf_write() 505 if (dev->devtype->product != CODA_DX6 && in coda_alloc_framebuffers() [all …]
|
D | coda-common.c | 317 const struct coda_codec *codecs = dev->devtype->codecs; in coda_find_codec() 318 int num_codecs = dev->devtype->num_codecs; in coda_find_codec() 342 const struct coda_codec *codecs = dev->devtype->codecs; in coda_get_max_dimensions() 343 int num_codecs = dev->devtype->num_codecs; in coda_get_max_dimensions() 369 if (i >= dev->devtype->num_vdevs) in to_coda_video_device() 372 return dev->devtype->vdevs[i]; in to_coda_video_device() 428 strscpy(cap->card, coda_product_name(ctx->dev->devtype->product), in coda_querycap() 679 ctx->dev->devtype->product == CODA_960) { in coda_try_fmt_vid_cap() 821 ctx->dev->devtype->product == CODA_960) { in coda_s_fmt() 867 ctx->dev->devtype->product == CODA_960) { in coda_s_fmt_vid_cap() [all …]
|
/linux-6.12.1/drivers/net/can/ |
D | xilinx_can.c | 254 struct xcan_devtype_data devtype; member 435 if (priv->devtype.flags & XCAN_FLAG_RX_FIFO_MULTI) in xcan_rx_int_mask() 506 btr1 |= (bt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 509 btr1 |= (bt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming() 514 if (priv->devtype.cantype == XAXI_CANFD || in xcan_set_bittiming() 515 priv->devtype.cantype == XAXI_CANFD_2_0) { in xcan_set_bittiming() 519 if (priv->devtype.cantype == XAXI_CANFD) in xcan_set_bittiming() 531 btr1 |= (dbt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 534 btr1 |= (dbt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming() 588 if (priv->devtype.flags & XCAN_FLAG_RXMNF) in xcan_chip_start() [all …]
|
/linux-6.12.1/drivers/gpio/ |
D | gpio-mpc8xxx.c | 306 const struct mpc8xxx_gpio_devtype *devtype = NULL; in mpc8xxx_probe() local 348 devtype = device_get_match_data(&pdev->dev); in mpc8xxx_probe() 349 if (!devtype) in mpc8xxx_probe() 350 devtype = &mpc8xxx_gpio_devtype_default; in mpc8xxx_probe() 356 if (devtype->irq_set_type) in mpc8xxx_probe() 357 mpc8xxx_irq_chip.irq_set_type = devtype->irq_set_type; in mpc8xxx_probe() 359 if (devtype->gpio_dir_out) in mpc8xxx_probe() 360 gc->direction_output = devtype->gpio_dir_out; in mpc8xxx_probe() 361 if (devtype->gpio_get) in mpc8xxx_probe() 362 gc->get = devtype->gpio_get; in mpc8xxx_probe()
|
/linux-6.12.1/arch/powerpc/boot/ |
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-6.12.1/drivers/hid/ |
D | hid-wiimote-core.c | 203 if (wdata->state.devtype == WIIMOTE_DEV_BALANCE_BOARD) { in select_drm() 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() 695 mods = wiimote_devtype_mods[wdata->state.devtype]; in wiimote_modules_unload() 698 wdata->state.devtype = WIIMOTE_DEV_UNKNOWN; in wiimote_modules_unload() 816 __u8 devtype = WIIMOTE_DEV_GENERIC; in wiimote_init_set_type() local 825 devtype = WIIMOTE_DEV_BALANCE_BOARD; in wiimote_init_set_type() 828 devtype = WIIMOTE_DEV_PRO_CONTROLLER; in wiimote_init_set_type() 833 devtype = WIIMOTE_DEV_GEN10; in wiimote_init_set_type() [all …]
|
/linux-6.12.1/sound/soc/codecs/ |
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()
|
D | max98090.c | 1440 if (max98090->devtype == MAX98091) { in max98090_add_widgets() 1451 if (max98090->devtype == MAX98091) { in max98090_add_widgets() 2381 enum max98090_type devtype; in max98090_probe() local 2422 devtype = MAX98090; in max98090_probe() 2425 devtype = MAX98091; in max98090_probe() 2428 devtype = MAX98090; in max98090_probe() 2432 if (max98090->devtype != devtype) { in max98090_probe() 2434 max98090->devtype = devtype; in max98090_probe() 2571 max98090->devtype = driver_data; in max98090_i2c_probe()
|
/linux-6.12.1/drivers/media/i2c/ |
D | ov7670.c | 248 const struct ov7670_devtype *devtype; /* Device specifics */ member 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() 1011 wsize < info->devtype->win_sizes + win_sizes_limit; wsize++) in ov7670_try_fmt_internal() 1014 if (wsize >= info->devtype->win_sizes + win_sizes_limit) 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() 1221 struct ov7670_win_size *win = &info->devtype->win_sizes[i]; in ov7670_enum_frame_interval() [all …]
|
/linux-6.12.1/drivers/i2c/busses/ |
D | i2c-rcar.c | 156 enum rcar_i2c_type devtype; member 242 if (priv->devtype < I2C_RCAR_GEN3) { in rcar_i2c_init() 319 cdf_width = (priv->devtype == I2C_RCAR_GEN1) ? 2 : 3; in rcar_i2c_clock_calculate() 323 if (t.bus_freq_hz > I2C_MAX_FAST_MODE_FREQ && priv->devtype >= I2C_RCAR_GEN4) in rcar_i2c_clock_calculate() 329 ick = rate / (priv->devtype < I2C_RCAR_GEN3 ? (cdf + 1) : 1); in rcar_i2c_clock_calculate() 342 if (priv->devtype < I2C_RCAR_GEN3) { in rcar_i2c_clock_calculate() 457 if (priv->devtype >= I2C_RCAR_GEN3 && in rcar_i2c_cleanup_dma() 916 if (priv->devtype >= I2C_RCAR_GEN3) { in rcar_i2c_master_xfer() 987 if (priv->devtype < I2C_RCAR_GEN3) in rcar_i2c_master_xfer_atomic() 1134 priv->devtype = (enum rcar_i2c_type)of_device_get_match_data(dev); in rcar_i2c_probe() [all …]
|
/linux-6.12.1/drivers/fpga/ |
D | altera-ps-spi.c | 31 enum altera_ps_devtype devtype; member 59 .devtype = CYCLONE5, 67 .devtype = ARRIA10,
|
/linux-6.12.1/drivers/nvmem/ |
D | imx-ocotp-scu.c | 35 int devtype; member 55 .devtype = IMX8QXP, 66 .devtype = IMX8QM,
|
/linux-6.12.1/drivers/watchdog/ |
D | rzg2l_wdt.c | 58 enum rz_wdt_type devtype; member 172 if (priv->devtype == WDT_RZG2L) { in rzg2l_wdt_restart() 276 priv->devtype = (uintptr_t)of_device_get_match_data(dev); in rzg2l_wdt_probe()
|
/linux-6.12.1/drivers/spi/ |
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() 143 return d->devtype_data->devtype == IMX51_ECSPI; in is_imx51_ecspi() 148 return d->devtype_data->devtype == IMX53_ECSPI; in is_imx53_ecspi() 998 .devtype = IMX1_CSPI, 1012 .devtype = IMX21_CSPI, 1027 .devtype = IMX27_CSPI, 1041 .devtype = IMX31_CSPI, 1056 .devtype = IMX35_CSPI, [all …]
|
/linux-6.12.1/drivers/scsi/aacraid/ |
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() 694 if (aac->hba_map[bus][cid].devtype == AAC_DEVTYPE_NATIVE_RAW) { in aac_eh_abort() 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() [all …]
|
/linux-6.12.1/drivers/rtc/ |
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()
|