| /linux/drivers/bus/ |
| H A 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/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 | 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/drivers/gpu/ipu-v3/ |
| H A D | ipu-common.c | 851 const struct ipu_devtype *devtype = ipu->devtype; in ipu_submodules_init() local 853 ret = ipu_cpmem_init(ipu, dev, ipu_base + devtype->cpmem_ofs); in ipu_submodules_init() 859 ret = ipu_csi_init(ipu, dev, 0, ipu_base + devtype->csi0_ofs, in ipu_submodules_init() 866 ret = ipu_csi_init(ipu, dev, 1, ipu_base + devtype->csi1_ofs, in ipu_submodules_init() 874 ipu_base + devtype->ic_ofs, in ipu_submodules_init() 875 ipu_base + devtype->tpm_ofs); in ipu_submodules_init() 881 ret = ipu_vdi_init(ipu, dev, ipu_base + devtype->vdi_ofs, in ipu_submodules_init() 895 ret = ipu_di_init(ipu, dev, 0, ipu_base + devtype->disp0_ofs, in ipu_submodules_init() 902 ret = ipu_di_init(ipu, dev, 1, ipu_base + devtype->disp1_ofs, in ipu_submodules_init() 909 ret = ipu_dc_init(ipu, dev, ipu_base + devtype->cm_ofs + in ipu_submodules_init() [all …]
|
| /linux/drivers/tty/serial/ |
| 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 | 303 const struct sc16is7xx_devtype *devtype; member 802 for (i = 0; i < s->devtype->nr_uart; ++i) in sc16is7xx_irq() 1194 return (port->type == PORT_SC16IS7XX) ? s->devtype->name : NULL; in sc16is7xx_type() 1330 if (!s->devtype->nr_gpio) in sc16is7xx_setup_gpio_chip() 1359 s->gpio.ngpio = s->devtype->nr_gpio; in sc16is7xx_setup_gpio_chip() 1384 if (irda_port[i] < s->devtype->nr_uart) in sc16is7xx_setup_irda_ports() 1528 int sc16is7xx_probe(struct device *dev, const struct sc16is7xx_devtype *devtype, in sc16is7xx_probe() argument 1538 for (i = 0; i < devtype->nr_uart; i++) in sc16is7xx_probe() 1556 s = devm_kzalloc(dev, struct_size(s, p, devtype->nr_uart), GFP_KERNEL); in sc16is7xx_probe() 1588 s->devtype = devtype; in sc16is7xx_probe() [all …]
|
| H A D | sc16is7xx.h | 35 int sc16is7xx_probe(struct device *dev, const struct sc16is7xx_devtype *devtype,
|
| H A D | fsl_lpuart.c | 265 enum lpuart_type devtype; member 297 enum lpuart_type devtype; member 304 .devtype = VF610_LPUART, 310 .devtype = LS1021A_LPUART, 316 .devtype = LS1028A_LPUART, 322 .devtype = IMX7ULP_LPUART, 329 .devtype = IMX8ULP_LPUART, 336 .devtype = IMX8QXP_LPUART, 342 .devtype = IMXRT1050_LPUART, 365 return (sport->devtype == LS1021A_LPUART || in is_layerscape_lpuart() [all …]
|
| /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 | 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/drivers/media/i2c/ |
| H A 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/Documentation/driver-api/cxl/linux/ |
| H A D | cxl-driver.rst | 91 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/nvmem/ |
| H A D | imx-ocotp-scu.c | 35 int devtype; member 55 .devtype = IMX8QXP, 66 .devtype = IMX8QM,
|
| /linux/drivers/spi/ |
| H A D | spi-imx.c | 95 enum spi_imx_devtype devtype; member 139 return d->devtype_data->devtype == IMX27_CSPI; in is_imx27_cspi() 144 return d->devtype_data->devtype == IMX35_CSPI; in is_imx35_cspi() 149 return d->devtype_data->devtype == IMX51_ECSPI; in is_imx51_ecspi() 154 return d->devtype_data->devtype == IMX53_ECSPI; in is_imx53_ecspi() 1084 .devtype = IMX1_CSPI, 1098 .devtype = IMX21_CSPI, 1113 .devtype = IMX27_CSPI, 1127 .devtype = IMX31_CSPI, 1142 .devtype = IMX35_CSPI, [all …]
|
| /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() 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 == AAC_DEVTYPE_NATIVE_RAW) { in aac_eh_abort() 924 if (!(info->devtype == AAC_DEVTYPE_NATIVE_RAW && in aac_eh_dev_reset() 987 if (!(info->devtype == AAC_DEVTYPE_NATIVE_RAW && in aac_eh_target_reset() [all …]
|
| /linux/drivers/watchdog/ |
| H A D | rzg2l_wdt.c | 59 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/sound/soc/codecs/ |
| H A D | max98090.c | 1477 if (max98090->devtype == MAX98091) { in max98090_add_widgets() 1488 if (max98090->devtype == MAX98091) { in max98090_add_widgets() 2419 enum max98090_type devtype; in max98090_probe() local 2460 devtype = MAX98090; in max98090_probe() 2463 devtype = MAX98091; in max98090_probe() 2466 devtype = MAX98090; in max98090_probe() 2470 if (max98090->devtype != devtype) { in max98090_probe() 2472 max98090->devtype = devtype; in max98090_probe() 2593 max98090->devtype = (uintptr_t)i2c_get_match_data(i2c); in max98090_i2c_probe()
|
| H A D | aw88081.c | 28 enum aw8808x_type devtype; member 216 if (aw88081->devtype != AW88083) in aw88083_i2c_wen() 398 switch (aw88081->devtype) { in aw88081_reg_value_check() 616 switch (aw88081->devtype) { in aw88081_device_start() 697 switch (aw88081->devtype) { in aw88081_stop() 1265 aw88081->devtype = id->driver_data; in aw88081_i2c_probe() 1271 switch (aw88081->devtype) { in aw88081_i2c_probe()
|
| H A D | cs530x-i2c.c | 69 cs530x->devtype = (uintptr_t)i2c_get_match_data(client);
|
| /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
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-cxl | 172 What: /sys/bus/cxl/devices/*/devtype 177 (RO) CXL device objects export the devtype attribute which 268 decoder's decode window. For decoders of devtype 270 devtype "cxl_decoder_switch" the address is bounded by the 283 devtype "cxl_decoder_root" there is no standard facility to 284 unlock them. For decoders of devtype "cxl_decoder_switch" a 305 (RO) When a CXL decoder is of devtype "cxl_decoder_root", it 318 (RO) When a CXL decoder is of devtype "cxl_decoder_switch", it 341 (RW) When a CXL decoder is of devtype "cxl_decoder_endpoint" it 360 (RO) When a CXL decoder is of devtype "cxl_decoder_endpoint", [all …]
|
| /linux/drivers/scsi/smartpqi/ |
| H A D | smartpqi_sas_transport.c | 345 if (found_device->devtype == TYPE_ENCLOSURE) { in pqi_sas_get_enclosure_identifier() 360 if (device->devtype == TYPE_ENCLOSURE && in pqi_sas_get_enclosure_identifier() 380 if (device->devtype == TYPE_ENCLOSURE && in pqi_sas_get_enclosure_identifier()
|
| /linux/drivers/media/pci/cx18/ |
| H A D | cx18-driver.c | 891 u32 devtype; in cx18_probe() local 951 devtype = cx18_read_reg(cx, 0xC72028); in cx18_probe() 952 switch (devtype & 0xff000000) { in cx18_probe() 954 CX18_INFO("cx23418 revision %08x (A)\n", devtype); in cx18_probe() 957 CX18_INFO("cx23418 revision %08x (B)\n", devtype); in cx18_probe() 960 CX18_INFO("cx23418 revision %08x (Unknown)\n", devtype); in cx18_probe()
|