Home
last modified time | relevance | path

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

123

/linux/drivers/bus/
A Dimx-weim.c131 const struct imx_weim_devtype *devtype, in weim_timing_setup() argument
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()
183 devtype->cs_regs_count * sizeof(u32)); in weim_timing_setup()
200 if (devtype == &imx50_weim_devtype) { in weim_parse_dt()
207 if (devtype->wcr_bcm) { in weim_parse_dt()
208 reg = readl(base + devtype->wcr_offset); in weim_parse_dt()
209 writel(reg | devtype->wcr_bcm, in weim_parse_dt()
[all …]
/linux/drivers/gpu/drm/imx/dcss/
A Ddcss-dev.c66 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 …]
/linux/drivers/leds/
A Dleds-mc13783.c37 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/gpu/ipu-v3/
A Dipu-common.c889 const struct ipu_devtype *devtype = ipu->devtype; in ipu_submodules_init() local
912 ipu_base + devtype->ic_ofs, in ipu_submodules_init()
1315 if (!devtype) in ipu_probe()
1346 ipu->devtype = devtype; in ipu_probe()
1347 ipu->ipu_type = devtype->type; in ipu_probe()
1354 ipu_base + devtype->cm_ofs); in ipu_probe()
1360 ipu_base + devtype->csi0_ofs); in ipu_probe()
1364 ipu_base + devtype->ic_ofs); in ipu_probe()
1370 ipu_base + devtype->srm_ofs); in ipu_probe()
1372 ipu_base + devtype->tpm_ofs); in ipu_probe()
[all …]
/linux/drivers/tty/serial/
A Dmax310x.c831 if (s->devtype->nr > 1) { in max310x_ist()
1053 s->devtype->power(port, 1); in max310x_startup()
1103 s->devtype->power(port, 0); in max310x_shutdown()
1310 s->devtype = devtype; in max310x_probe()
1314 ret = devtype->detect(dev); in max310x_probe()
1318 for (i = 0; i < devtype->nr; i++) { in max310x_probe()
1334 devtype->mode1); in max310x_probe()
1386 devtype->power(&s->p[i].port, 0); in max310x_probe()
1393 s->gpio.label = devtype->name; in max310x_probe()
1400 s->gpio.ngpio = devtype->nr * 4; in max310x_probe()
[all …]
A Dsc16is7xx.c322 const struct sc16is7xx_devtype *devtype; member
1232 s->devtype = devtype; in sc16is7xx_probe()
1246 if (devtype->nr_gpio) { in sc16is7xx_probe()
1256 s->gpio.ngpio = devtype->nr_gpio; in sc16is7xx_probe()
1325 if (u < devtype->nr_uart) in sc16is7xx_probe()
1355 if (devtype->nr_gpio) in sc16is7xx_probe()
1374 if (s->devtype->nr_gpio) in sc16is7xx_remove()
1428 if (!devtype) in sc16is7xx_spi_probe()
1437 (devtype->nr_uart - 1); in sc16is7xx_spi_probe()
1485 if (!devtype) in sc16is7xx_i2c_probe()
[all …]
/linux/drivers/media/platform/coda/
A Dcoda-bit.c68 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()
603 size = dev->devtype->workbuf_size; in coda_alloc_context_buffers()
807 switch (dev->devtype->product) { in coda_setup_iram()
1097 switch (dev->devtype->product) { in coda_start_encoding()
1128 switch (dev->devtype->product) { in coda_start_encoding()
1289 switch (dev->devtype->product) { in coda_start_encoding()
[all …]
A Dcoda-common.c317 int num_codecs = dev->devtype->num_codecs; in coda_find_codec()
368 if (i >= dev->devtype->num_vdevs) in to_coda_video_device()
371 return dev->devtype->vdevs[i]; in to_coda_video_device()
2601 if (dev->devtype->product == CODA_DX6) in coda_open()
2636 switch (dev->devtype->product) { in coda_open()
2829 switch (dev->devtype->product) { in coda_hw_init()
2838 if (dev->devtype->product == CODA_960) in coda_hw_init()
2844 if (dev->devtype->product != CODA_DX6) in coda_hw_init()
2876 if (i >= dev->devtype->num_vdevs) in coda_register_device()
2878 name = dev->devtype->vdevs[i]->name; in coda_register_device()
[all …]
/linux/drivers/net/can/
A Dxilinx_can.c212 struct xcan_devtype_data devtype; member
424 if (priv->devtype.cantype == XAXI_CANFD || in xcan_set_bittiming()
487 if (priv->devtype.flags & XCAN_FLAG_RXMNF) in xcan_chip_start()
605 if (priv->devtype.cantype == XAXI_CANFD || in xcan_write_frame()
1686 devtype = of_id->data; in xcan_probe()
1726 (devtype->flags & XCAN_FLAG_TXFEMP)) in xcan_probe()
1746 if (devtype->cantype == XAXI_CANFD) in xcan_probe()
1750 if (devtype->cantype == XAXI_CANFD_2_0) in xcan_probe()
1754 if (devtype->cantype == XAXI_CANFD || in xcan_probe()
1755 devtype->cantype == XAXI_CANFD_2_0) in xcan_probe()
[all …]
/linux/drivers/fpga/
A Daltera-ps-spi.c32 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()
/linux/drivers/gpio/
A Dgpio-mpc8xxx.c309 const struct mpc8xxx_gpio_devtype *devtype = NULL; in mpc8xxx_probe() local
351 devtype = device_get_match_data(&pdev->dev); in mpc8xxx_probe()
352 if (!devtype) in mpc8xxx_probe()
353 devtype = &mpc8xxx_gpio_devtype_default; in mpc8xxx_probe()
359 if (devtype->irq_set_type) in mpc8xxx_probe()
360 mpc8xxx_irq_chip.irq_set_type = devtype->irq_set_type; in mpc8xxx_probe()
362 if (devtype->gpio_dir_out) in mpc8xxx_probe()
363 gc->direction_output = devtype->gpio_dir_out; in mpc8xxx_probe()
364 if (devtype->gpio_get) in mpc8xxx_probe()
365 gc->get = devtype->gpio_get; in mpc8xxx_probe()
/linux/arch/powerpc/boot/
A Dserial.c88 char devtype[MAX_PROP_LEN]; in serial_get_stdout_devp() local
101 if ((getprop(devp, "device_type", devtype, sizeof(devtype)) > 0) in serial_get_stdout_devp()
102 && !strcmp(devtype, "serial")) in serial_get_stdout_devp()
/linux/Documentation/ABI/testing/
A Dsysfs-bus-cxl28 What: /sys/bus/cxl/devices/*/devtype
33 CXL device objects export the devtype attribute which mirrors
80 window. For decoders of devtype "cxl_decoder_root" the address
81 range is fixed. For decoders of devtype "cxl_decoder_switch" the
92 until the next device reset. For decoders of devtype
94 For decoders of devtype "cxl_decoder_switch" a secondary bus
113 When a CXL decoder is of devtype "cxl_decoder_root", it
125 When a CXL decoder is of devtype "cxl_decoder_switch", it can
/linux/drivers/hid/
A Dhid-wiimote-core.c621 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()
812 __u8 devtype = WIIMOTE_DEV_GENERIC; in wiimote_init_set_type() local
829 devtype = WIIMOTE_DEV_GEN10; in wiimote_init_set_type()
832 devtype = WIIMOTE_DEV_GEN20; in wiimote_init_set_type()
844 devtype = WIIMOTE_DEV_GEN10; in wiimote_init_set_type()
847 devtype = WIIMOTE_DEV_GEN20; in wiimote_init_set_type()
853 if (devtype == WIIMOTE_DEV_GENERIC) in wiimote_init_set_type()
858 wiimote_devtype_names[devtype]); in wiimote_init_set_type()
[all …]
/linux/drivers/media/i2c/
A Dov7670.c981 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()
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()
1717 format->width = info->devtype->win_sizes[0].width; in ov7670_get_default_format()
1718 format->height = info->devtype->win_sizes[0].height; in ov7670_get_default_format()
1932 info->devtype = &ov7670_devdata[id->driver_data]; in ov7670_probe()
1934 info->wsize = &info->devtype->win_sizes[0]; in ov7670_probe()
[all …]
/linux/drivers/nvmem/
A Dimx-ocotp-scu.c35 int devtype; member
55 .devtype = IMX8QXP,
66 .devtype = IMX8QM,
/linux/drivers/i2c/busses/
A Di2c-rcar.c134 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()
1078 if (priv->devtype < I2C_RCAR_GEN3) { in rcar_i2c_probe()
1083 if (priv->devtype == I2C_RCAR_GEN3) { in rcar_i2c_probe()
/linux/drivers/spi/
A Dspi-imx.c85 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()
953 .devtype = IMX1_CSPI,
967 .devtype = IMX21_CSPI,
982 .devtype = IMX27_CSPI,
996 .devtype = IMX31_CSPI,
1011 .devtype = IMX35_CSPI,
1028 .devtype = IMX51_ECSPI,
1043 .devtype = IMX53_ECSPI,
[all …]
/linux/drivers/mtd/devices/
A Dlart.c303 __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()
/linux/drivers/scsi/aacraid/
A Dlinit.c270 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()
923 if (!(info->devtype == AAC_DEVTYPE_NATIVE_RAW && in aac_eh_dev_reset()
986 if (!(info->devtype == AAC_DEVTYPE_NATIVE_RAW && in aac_eh_target_reset()
1059 info->devtype != AAC_DEVTYPE_NATIVE_RAW) { in aac_eh_bus_reset()
[all …]
/linux/drivers/block/paride/
A Dparide.h42 int devtype; /* device type: PI_PD etc. */ member
69 int devtype, /* device type: PI_PD, PI_PCD, etc ... */
/linux/sound/soc/codecs/
A Dmax98090.c1434 if (max98090->devtype == MAX98091) { in max98090_add_widgets()
1445 if (max98090->devtype == MAX98091) { in max98090_add_widgets()
2379 enum max98090_type devtype; in max98090_probe() local
2417 devtype = MAX98090; in max98090_probe()
2420 devtype = MAX98091; in max98090_probe()
2423 devtype = MAX98090; in max98090_probe()
2427 if (max98090->devtype != devtype) { in max98090_probe()
2429 max98090->devtype = devtype; in max98090_probe()
2559 max98090->devtype = driver_data; in max98090_i2c_probe()
A Dtas5720.c47 enum tas572x_type devtype; member
182 switch (tas5720->devtype) { in tas5720_set_dai_tdm_slot()
304 switch (tas5720->devtype) { in tas5720_codec_probe()
650 data->devtype = id->driver_data; in tas5720_probe()
/linux/drivers/visorbus/
A Dvisorbus_main.c420 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()
/linux/drivers/rtc/
A Drtc-mxc.c70 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()

Completed in 88 milliseconds

123