Home
last modified time | relevance | path

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

123

/linux/drivers/bus/
H A Dimx-weim.c141 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 in weim_parse_dt() local
303 const struct imx_weim_devtype *devtype; of_weim_notify() local
[all...]
/linux/drivers/gpu/drm/imx/dcss/
H A Ddcss-dev.c67 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 in dcss_dev_create()
[all...]
/linux/drivers/leds/
H A Dleds-mc13783.c38 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 in mc13xxx_led_probe()
[all...]
/linux/drivers/tty/serial/
H A Dmax310x.c293 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 in max310x_power()
1256 max310x_probe(struct device * dev,const struct max310x_devtype * devtype,const struct max310x_if_cfg * if_cfg,struct regmap * regmaps[],int irq) max310x_probe() argument
1519 const struct max310x_devtype *devtype; max310x_spi_probe() local
1622 const struct max310x_devtype *devtype; max310x_i2c_probe() local
[all...]
H A Dsc16is7xx_i2c.c15 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 Dsc16is7xx_spi.c19 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 Dsc16is7xx.c343 const struct sc16is7xx_devtype *devtype; member
860 for (i = 0; i < s->devtype->nr_uart; ++i) in sc16is7xx_irq()
1265 return (port->type == PORT_SC16IS7XX) ? s->devtype->name : NULL; in sc16is7xx_type()
1401 if (!s->devtype->nr_gpio) in sc16is7xx_setup_gpio_chip()
1430 s->gpio.ngpio = s->devtype->nr_gpio; in sc16is7xx_setup_gpio_chip()
1455 if (irda_port[i] < s->devtype->nr_uart) in sc16is7xx_setup_irda_ports()
1530 int sc16is7xx_probe(struct device *dev, const struct sc16is7xx_devtype *devtype, in sc16is7xx_probe() argument
1540 for (i = 0; i < devtype->nr_uart; i++) in sc16is7xx_probe()
1558 s = devm_kzalloc(dev, struct_size(s, p, devtype->nr_uart), GFP_KERNEL); in sc16is7xx_probe()
1592 s->devtype in sc16is7xx_probe()
[all...]
H A Dsc16is7xx.h36 int sc16is7xx_probe(struct device *dev, const struct sc16is7xx_devtype *devtype,
/linux/drivers/media/platform/chips-media/coda/
H 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()
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 in coda_alloc_framebuffers()
[all...]
H A Dcoda-common.c317 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 in coda_s_fmt_vid_cap()
[all...]
/linux/drivers/net/can/
H A Dxilinx_can.c227 * @devtype: Device type specific constants
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 in xcan_set_bittiming()
1884 const struct xcan_devtype_data *devtype; xcan_probe() local
[all...]
/linux/drivers/gpio/
H A Dgpio-mpc8xxx.c311 const struct mpc8xxx_gpio_devtype *devtype = NULL; in mpc8xxx_probe() local
352 devtype = device_get_match_data(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 in mpc8xxx_probe()
[all...]
/linux/arch/powerpc/boot/
H A Dserial.c86 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 Dhid-wiimote-core.c203 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 in wiimote_init_set_type()
[all...]
/linux/sound/soc/codecs/
H A Dtas5720.c46 enum tas572x_type devtype; member
172 switch (tas5720->devtype) { in tas5720_set_dai_tdm_slot()
190 switch (tas5720->devtype) { in tas5720_set_dai_tdm_slot()
216 switch (tas5720->devtype) { in tas5720_mute_soc_component()
328 switch (tas5720->devtype) { in tas5720_codec_probe()
354 switch (tas5720->devtype) { in tas5720_codec_probe()
738 data->devtype = (uintptr_t)i2c_get_match_data(client); in tas5720_probe()
740 switch (data->devtype) { in tas5720_probe()
773 switch (data->devtype) { in tas5720_probe()
H A Dmax98090.c1440 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()
[all...]
H A Dcs530x-i2c.c53 cs530x->devtype = (uintptr_t)i2c_get_match_data(client); in cs530x_i2c_probe()
/linux/Documentation/driver-api/cxl/linux/
H A Dcxl-driver.rst91 devtype dport4 port1 port4 uport
93 # cat /sys/bus/cxl/devices/root0/devtype
96 # cat port1/devtype
99 # cat decoder0.0/devtype
118 devtype dport2 modalias uevent
120 # cat devtype
123 # cat decoder1.0/devtype
126 # cat endpoint5/devtype
158 decoder5.0 devtype parent_dport uport
161 # cat /sys/bus/cxl/devices/endpoint5/devtype
[all...]
/linux/drivers/i2c/busses/
H A Di2c-rcar.c158 enum rcar_i2c_type devtype; member
245 if (priv->devtype < I2C_RCAR_GEN3) { in rcar_i2c_init()
322 cdf_width = (priv->devtype == I2C_RCAR_GEN1) ? 2 : 3; in rcar_i2c_clock_calculate()
326 if (t.bus_freq_hz > I2C_MAX_FAST_MODE_FREQ && priv->devtype >= I2C_RCAR_GEN4) in rcar_i2c_clock_calculate()
332 ick = rate / (priv->devtype < I2C_RCAR_GEN3 ? (cdf + 1) : 1); in rcar_i2c_clock_calculate()
345 if (priv->devtype < I2C_RCAR_GEN3) { in rcar_i2c_clock_calculate()
460 if (priv->devtype >= I2C_RCAR_GEN3 && in rcar_i2c_cleanup_dma()
926 if (priv->devtype >= I2C_RCAR_GEN3) { in rcar_i2c_master_xfer()
997 if (priv->devtype < I2C_RCAR_GEN3) in rcar_i2c_master_xfer_atomic()
1144 priv->devtype in rcar_i2c_probe()
[all...]
/linux/drivers/fpga/
H A Daltera-ps-spi.c31 enum altera_ps_devtype devtype; member
59 .devtype = CYCLONE5,
67 .devtype = ARRIA10,
/linux/drivers/nvmem/
H A Dimx-ocotp-scu.c35 int devtype; member
55 .devtype = IMX8QXP,
66 .devtype = IMX8QM,
/linux/drivers/watchdog/
H A Drzg2l_wdt.c59 enum rz_wdt_type devtype; member
187 if (priv->devtype == WDT_RZG2L) { in rzg2l_wdt_restart()
291 priv->devtype = (uintptr_t)of_device_get_match_data(dev); in rzg2l_wdt_probe()
/linux/drivers/scsi/aacraid/
H A Dlinit.c263 * @devtype: index into lookup table
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()
398 u8 devtype = 0; in aac_sdev_configure() local
403 devtype = aac->hba_map[chn][tid].devtype; in aac_sdev_configure()
405 if (devtype == AAC_DEVTYPE_NATIVE_RAW) { in aac_sdev_configure()
410 if (devtype == AAC_DEVTYPE_ARC_RAW) { in aac_sdev_configure()
526 aac->hba_map[chn][tid].devtype == AAC_DEVTYPE_NATIVE_RAW) in aac_change_queue_depth()
696 if (aac->hba_map[bus][cid].devtype in aac_eh_abort()
[all...]
/linux/drivers/spi/
H A Dspi-imx.c94 enum spi_imx_devtype devtype; member
138 return d->devtype_data->devtype == IMX27_CSPI; in is_imx27_cspi()
143 return d->devtype_data->devtype == IMX35_CSPI; in is_imx35_cspi()
148 return d->devtype_data->devtype == IMX51_ECSPI; in is_imx51_ecspi()
153 return d->devtype_data->devtype == IMX53_ECSPI; in is_imx53_ecspi()
1058 .devtype = IMX1_CSPI,
1072 .devtype = IMX21_CSPI,
1087 .devtype = IMX27_CSPI,
1101 .devtype = IMX31_CSPI,
1116 .devtype
[all...]
/linux/drivers/scsi/
H A Datp870u.h49 unsigned char devtype; member

123