/drivers/bus/ |
D | imx-weim.c | 131 const struct imx_weim_devtype *devtype, in weim_timing_setup() argument 139 if (WARN_ON(devtype->cs_regs_count > MAX_CS_REGS_COUNT)) in weim_timing_setup() 141 if (WARN_ON(devtype->cs_count > MAX_CS_COUNT)) in weim_timing_setup() 145 value, devtype->cs_regs_count); in weim_timing_setup() 165 if (cs_idx >= devtype->cs_count) in weim_timing_setup() 171 devtype->cs_regs_count * sizeof(u32))) { in weim_timing_setup() 177 for (i = 0; i < devtype->cs_regs_count; i++) in weim_timing_setup() 179 base + cs_idx * devtype->cs_stride + i * 4); in weim_timing_setup() 183 devtype->cs_regs_count * sizeof(u32)); in weim_timing_setup() 194 const struct imx_weim_devtype *devtype = of_id->data; in weim_parse_dt() local [all …]
|
/drivers/gpu/drm/imx/dcss/ |
D | dcss-dev.c | 66 const struct dcss_type_data *devtype = dcss->devtype; in dcss_submodules_init() local 70 ret = dcss_blkctl_init(dcss, base_addr + devtype->blkctl_ofs); in dcss_submodules_init() 74 ret = dcss_ctxld_init(dcss, base_addr + devtype->ctxld_ofs); in dcss_submodules_init() 78 ret = dcss_dtg_init(dcss, base_addr + devtype->dtg_ofs); in dcss_submodules_init() 82 ret = dcss_ss_init(dcss, base_addr + devtype->ss_ofs); in dcss_submodules_init() 86 ret = dcss_dpr_init(dcss, base_addr + devtype->dpr_ofs); in dcss_submodules_init() 90 ret = dcss_scaler_init(dcss, base_addr + devtype->scaler_ofs); in dcss_submodules_init() 171 const struct dcss_type_data *devtype; in dcss_dev_create() local 173 devtype = of_device_get_match_data(dev); in dcss_dev_create() 174 if (!devtype) { in dcss_dev_create() [all …]
|
/drivers/leds/ |
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()
|
/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 …]
|
/drivers/media/platform/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() 440 if ((dev->devtype->product == CODA_960) && in coda_bit_stream_end_flag() 453 if (dev->devtype->product == CODA_DX6) in coda_parabuf_write() 503 if (dev->devtype->product != CODA_DX6 && in coda_alloc_framebuffers() [all …]
|
D | coda-common.c | 316 const struct coda_codec *codecs = dev->devtype->codecs; in coda_find_codec() 317 int num_codecs = dev->devtype->num_codecs; in coda_find_codec() 341 const struct coda_codec *codecs = dev->devtype->codecs; in coda_get_max_dimensions() 342 int num_codecs = dev->devtype->num_codecs; in coda_get_max_dimensions() 368 if (i >= dev->devtype->num_vdevs) in to_coda_video_device() 371 return dev->devtype->vdevs[i]; in to_coda_video_device() 427 strscpy(cap->card, coda_product_name(ctx->dev->devtype->product), in coda_querycap() 808 ctx->dev->devtype->product == CODA_960) { in coda_s_fmt() 1993 if (ctx->dev->devtype->product != CODA_960 && in coda_start_streaming() 2314 int max_gop_size = (ctx->dev->devtype->product == CODA_DX6) ? 60 : 99; in coda_encode_ctrls() [all …]
|
/drivers/tty/serial/ |
D | max310x.c | 274 const struct max310x_devtype *devtype; member 330 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3107_detect() 351 dev_err(dev, "%s not present\n", s->devtype->name); in max3108_detect() 373 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3109_detect() 404 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max14830_detect() 843 if (s->devtype->nr > 1) { in max310x_ist() 849 val = ((1 << s->devtype->nr) - 1) & ~val; in max310x_ist() 1065 s->devtype->power(port, 1); in max310x_startup() 1115 s->devtype->power(port, 0); in max310x_shutdown() 1122 return (port->type == PORT_MAX310X) ? s->devtype->name : NULL; in max310x_type() [all …]
|
D | sc16is7xx.c | 323 const struct sc16is7xx_devtype *devtype; member 736 for (i = 0; i < s->devtype->nr_uart; ++i) in sc16is7xx_irq() 1087 return (port->type == PORT_SC16IS7XX) ? s->devtype->name : NULL; in sc16is7xx_type() 1204 const struct sc16is7xx_devtype *devtype, in sc16is7xx_probe() argument 1227 s = devm_kzalloc(dev, struct_size(s, p, devtype->nr_uart), GFP_KERNEL); in sc16is7xx_probe() 1257 s->devtype = devtype; in sc16is7xx_probe() 1274 for (i = 0; i < devtype->nr_uart; ++i) { in sc16is7xx_probe() 1337 if (u < devtype->nr_uart) in sc16is7xx_probe() 1342 if (devtype->nr_gpio) { in sc16is7xx_probe() 1352 s->gpio.ngpio = devtype->nr_gpio; in sc16is7xx_probe() [all …]
|
D | fsl_lpuart.c | 254 enum lpuart_type devtype; member 282 enum lpuart_type devtype; member 289 .devtype = VF610_LPUART, 295 .devtype = LS1021A_LPUART, 301 .devtype = LS1028A_LPUART, 307 .devtype = IMX7ULP_LPUART, 314 .devtype = IMX8QXP_LPUART, 320 .devtype = IMXRT1050_LPUART, 342 return (sport->devtype == LS1021A_LPUART || in is_layerscape_lpuart() 343 sport->devtype == LS1028A_LPUART); in is_layerscape_lpuart() [all …]
|
/drivers/net/can/ |
D | xilinx_can.c | 212 struct xcan_devtype_data devtype; member 345 if (priv->devtype.flags & XCAN_FLAG_RX_FIFO_MULTI) in xcan_rx_int_mask() 416 btr1 |= (bt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 419 btr1 |= (bt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming() 424 if (priv->devtype.cantype == XAXI_CANFD || in xcan_set_bittiming() 425 priv->devtype.cantype == XAXI_CANFD_2_0) { in xcan_set_bittiming() 433 btr1 |= (dbt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 436 btr1 |= (dbt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming() 487 if (priv->devtype.flags & XCAN_FLAG_RXMNF) in xcan_chip_start() 501 if (priv->devtype.flags & XCAN_FLAG_EXT_FILTERS) in xcan_chip_start() [all …]
|
/drivers/fpga/ |
D | altera-ps-spi.c | 32 enum altera_ps_devtype devtype; member 60 .devtype = CYCLONE5, 68 .devtype = ARRIA10, 242 kernel_ulong_t devtype = id->driver_data; in id_to_data() local 246 if (devtype >= ARRAY_SIZE(altera_ps_data_map)) in id_to_data() 249 data = altera_ps_data_map[devtype]; in id_to_data() 250 if (!data || data->devtype != devtype) in id_to_data()
|
/drivers/gpio/ |
D | gpio-mpc8xxx.c | 310 const struct mpc8xxx_gpio_devtype *devtype = NULL; in mpc8xxx_probe() local 352 devtype = device_get_match_data(&pdev->dev); in mpc8xxx_probe() 353 if (!devtype) in mpc8xxx_probe() 354 devtype = &mpc8xxx_gpio_devtype_default; in mpc8xxx_probe() 360 if (devtype->irq_set_type) in mpc8xxx_probe() 361 mpc8xxx_irq_chip.irq_set_type = devtype->irq_set_type; in mpc8xxx_probe() 363 if (devtype->gpio_dir_out) in mpc8xxx_probe() 364 gc->direction_output = devtype->gpio_dir_out; in mpc8xxx_probe() 365 if (devtype->gpio_get) in mpc8xxx_probe() 366 gc->get = devtype->gpio_get; in mpc8xxx_probe()
|
/drivers/hid/ |
D | hid-wiimote-core.c | 203 if (wdata->state.devtype == WIIMOTE_DEV_BALANCE_BOARD) { in select_drm() 621 unsigned int devtype) in wiimote_modules_load() argument 628 mods = wiimote_devtype_mods[devtype]; in wiimote_modules_load() 668 wdata->state.devtype = devtype; in wiimote_modules_load() 691 mods = wiimote_devtype_mods[wdata->state.devtype]; in wiimote_modules_unload() 694 wdata->state.devtype = WIIMOTE_DEV_UNKNOWN; in wiimote_modules_unload() 812 __u8 devtype = WIIMOTE_DEV_GENERIC; in wiimote_init_set_type() local 821 devtype = WIIMOTE_DEV_BALANCE_BOARD; in wiimote_init_set_type() 824 devtype = WIIMOTE_DEV_PRO_CONTROLLER; in wiimote_init_set_type() 829 devtype = WIIMOTE_DEV_GEN10; in wiimote_init_set_type() [all …]
|
/drivers/media/i2c/ |
D | ov7670.c | 255 const struct ov7670_devtype *devtype; /* Device specifics */ member 981 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_try_fmt_internal() 1005 wsize = info->devtype->win_sizes + i; in ov7670_try_fmt_internal() 1017 for (wsize = info->devtype->win_sizes; in ov7670_try_fmt_internal() 1018 wsize < info->devtype->win_sizes + win_sizes_limit; wsize++) in ov7670_try_fmt_internal() 1021 if (wsize >= info->devtype->win_sizes + win_sizes_limit) in ov7670_try_fmt_internal() 1181 info->devtype->get_framerate(sd, &ival->interval); in ov7670_g_frame_interval() 1193 return info->devtype->set_framerate(sd, tpf); in ov7670_s_frame_interval() 1210 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_enum_frame_interval() 1225 struct ov7670_win_size *win = &info->devtype->win_sizes[i]; in ov7670_enum_frame_interval() [all …]
|
/drivers/nvmem/ |
D | imx-ocotp-scu.c | 35 int devtype; member 55 .devtype = IMX8QXP, 66 .devtype = IMX8QM,
|
/drivers/spi/ |
D | spi-imx.c | 85 enum spi_imx_devtype devtype; member 128 return d->devtype_data->devtype == IMX27_CSPI; in is_imx27_cspi() 133 return d->devtype_data->devtype == IMX35_CSPI; in is_imx35_cspi() 138 return d->devtype_data->devtype == IMX51_ECSPI; in is_imx51_ecspi() 143 return d->devtype_data->devtype == IMX53_ECSPI; in is_imx53_ecspi() 964 .devtype = IMX1_CSPI, 978 .devtype = IMX21_CSPI, 993 .devtype = IMX27_CSPI, 1007 .devtype = IMX31_CSPI, 1022 .devtype = IMX35_CSPI, [all …]
|
/drivers/i2c/busses/ |
D | i2c-rcar.c | 134 enum rcar_i2c_type devtype; member 219 if (priv->devtype == I2C_RCAR_GEN3) in rcar_i2c_init() 255 switch (priv->devtype) { in rcar_i2c_clock_calculate() 379 if (priv->devtype == I2C_RCAR_GEN3 && in rcar_i2c_dma_unmap() 824 if (priv->devtype == I2C_RCAR_GEN3) { in rcar_i2c_master_xfer() 904 if (priv->devtype < I2C_RCAR_GEN3) in rcar_i2c_master_xfer_atomic() 1049 priv->devtype = (enum rcar_i2c_type)of_device_get_match_data(dev); in rcar_i2c_probe() 1080 if (priv->devtype < I2C_RCAR_GEN3) { in rcar_i2c_probe() 1085 if (priv->devtype == I2C_RCAR_GEN3) { in rcar_i2c_probe()
|
/drivers/mtd/devices/ |
D | lart.c | 303 __u32 manufacturer,devtype; in flash_probe() local 311 devtype = FLASH_TO_DATA (read32 (ADDR_TO_FLASH_U2 (0x00000001))); in flash_probe() 316 …return (manufacturer == FLASH_MANUFACTURER && (devtype == FLASH_DEVICE_16mbit_TOP || devtype == FL… in flash_probe()
|
/drivers/scsi/aacraid/ |
D | linit.c | 270 struct aac_driver_ident* aac_get_driver_ident(int devtype) in aac_get_driver_ident() argument 272 return &aac_drivers[devtype]; in aac_get_driver_ident() 398 u8 devtype = 0; in aac_slave_configure() local 403 devtype = aac->hba_map[chn][tid].devtype; in aac_slave_configure() 405 if (devtype == AAC_DEVTYPE_NATIVE_RAW) { in aac_slave_configure() 410 if (devtype == AAC_DEVTYPE_ARC_RAW) { in aac_slave_configure() 526 aac->hba_map[chn][tid].devtype == AAC_DEVTYPE_NATIVE_RAW) in aac_change_queue_depth() 693 if (aac->hba_map[bus][cid].devtype == AAC_DEVTYPE_NATIVE_RAW) { in aac_eh_abort() 921 if (!(info->devtype == AAC_DEVTYPE_NATIVE_RAW && in aac_eh_dev_reset() 984 if (!(info->devtype == AAC_DEVTYPE_NATIVE_RAW && in aac_eh_target_reset() [all …]
|
/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/visorbus/ |
D | visorbus_main.c | 420 if (!isprint(devinfo->devtype[0])) in vbuschannel_print_devinfo() 431 seq_printf(seq, "%-*.*s ", (int)sizeof(devinfo->devtype), in vbuschannel_print_devinfo() 432 (int)sizeof(devinfo->devtype), devinfo->devtype); in vbuschannel_print_devinfo() 824 snprintf(bus_device_info_ptr->devtype, in bus_device_info_init() 825 sizeof(bus_device_info_ptr->devtype), in bus_device_info_init()
|
D | vbuschannel.h | 48 u8 devtype[16]; member
|
/drivers/rtc/ |
D | rtc-mxc.c | 70 enum imx_rtc_type devtype; member 82 return data->devtype == IMX1_RTC; in is_imx1_rtc() 314 pdata->devtype = (enum imx_rtc_type)of_device_get_match_data(&pdev->dev); in mxc_rtc_probe()
|
/drivers/scsi/ |
D | atp870u.h | 49 unsigned char devtype; member
|