/openbmc/u-boot/drivers/fpga/ |
H A D | fpga.c | 85 switch (desc->devtype) { in fpga_dev_info() 112 __func__, desc->devtype); in fpga_dev_info() 157 } else if ((devtype > fpga_min_type) && (devtype < fpga_undefined)) { in fpga_add() 160 desc_table[next_desc].devtype = devtype; in fpga_add() 201 switch (desc->devtype) { in fpga_fsload() 212 __func__, desc->devtype); in fpga_fsload() 230 switch (desc->devtype) { in fpga_loads() 241 __func__, desc->devtype); in fpga_loads() 259 switch (desc->devtype) { in fpga_load() 284 __func__, desc->devtype); in fpga_load() [all …]
|
/openbmc/linux/drivers/bus/ |
H A D | imx-weim.c | 158 value, devtype->cs_regs_count); in weim_timing_setup() 178 if (cs_idx >= devtype->cs_count) in weim_timing_setup() 196 devtype->cs_regs_count * sizeof(u32)); in weim_timing_setup() 214 if (devtype == &imx50_weim_devtype) { in weim_parse_dt() 224 if (devtype->wcr_bcm) { in weim_parse_dt() 225 reg = readl(base + devtype->wcr_offset); in weim_parse_dt() 226 reg |= devtype->wcr_bcm; in weim_parse_dt() 230 if (devtype->wcr_cont_bclk) { in weim_parse_dt() 231 reg |= devtype->wcr_cont_bclk; in weim_parse_dt() 306 const struct imx_weim_devtype *devtype; in of_weim_notify() local [all …]
|
/openbmc/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() 172 const struct dcss_type_data *devtype; in dcss_dev_create() local 174 devtype = of_device_get_match_data(dev); in dcss_dev_create() 175 if (!devtype) { in dcss_dev_create() [all …]
|
/openbmc/linux/drivers/leds/ |
H A 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()
|
/openbmc/qemu/tests/avocado/ |
H A D | virtio_version.py | 50 def devtype_implements(vm, devtype, implements): argument 51 return devtype in [d['name'] for d in 54 def get_pci_interfaces(vm, devtype): argument 56 return [i for i in interfaces if devtype_implements(vm, devtype, i)] 70 def run_device(self, devtype, opts=None, machine='pc'): argument 77 devtype += ',' + opts 78 vm.add_args('-device', '%s,id=devfortest' % (devtype)) 86 return devfortest[0], get_pci_interfaces(vm, devtype)
|
/openbmc/linux/drivers/tty/serial/ |
H A D | max310x.c | 859 if (s->devtype->nr > 1) { in max310x_ist() 1078 s->devtype->power(port, 1); in max310x_startup() 1128 s->devtype->power(port, 0); in max310x_shutdown() 1293 for (i = 0; i < devtype->nr; i++) in max310x_probe() 1343 s->devtype = devtype; in max310x_probe() 1348 ret = devtype->detect(dev); in max310x_probe() 1444 s->gpio.label = devtype->name; in max310x_probe() 1451 s->gpio.ngpio = devtype->nr * 4; in max310x_probe() 1551 if (!devtype) in max310x_spi_probe() 1645 if (!devtype) in max310x_i2c_probe() [all …]
|
H A D | sc16is7xx.c | 337 const struct sc16is7xx_devtype *devtype; member 1373 if (!s->devtype->nr_gpio) in sc16is7xx_setup_gpio_chip() 1402 s->gpio.ngpio = s->devtype->nr_gpio; in sc16is7xx_setup_gpio_chip() 1466 for (i = 0; i < devtype->nr_uart; i++) in sc16is7xx_probe() 1513 s->devtype = devtype; in sc16is7xx_probe() 1529 for (i = 0; i < devtype->nr_uart; ++i) { in sc16is7xx_probe() 1609 if (u < devtype->nr_uart) in sc16is7xx_probe() 1648 for (i = 0; i < devtype->nr_uart; i++) in sc16is7xx_probe() 1728 const struct sc16is7xx_devtype *devtype; in sc16is7xx_spi_probe() local 1747 if (!devtype) in sc16is7xx_spi_probe() [all …]
|
/openbmc/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-common.c | 889 const struct ipu_devtype *devtype = ipu->devtype; in ipu_submodules_init() local 912 ipu_base + devtype->ic_ofs, in ipu_submodules_init() 1316 if (!devtype) in ipu_probe() 1347 ipu->devtype = devtype; in ipu_probe() 1348 ipu->ipu_type = devtype->type; in ipu_probe() 1355 ipu_base + devtype->cm_ofs); in ipu_probe() 1361 ipu_base + devtype->csi0_ofs); in ipu_probe() 1365 ipu_base + devtype->ic_ofs); in ipu_probe() 1371 ipu_base + devtype->srm_ofs); in ipu_probe() 1373 ipu_base + devtype->tpm_ofs); in ipu_probe() [all …]
|
/openbmc/linux/drivers/media/platform/chips-media/ |
H A 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() 139 if (dev->devtype->product == CODA_960) in coda_hw_reset() 605 size = dev->devtype->workbuf_size; in coda_alloc_context_buffers() 809 switch (dev->devtype->product) { in coda_setup_iram() 1105 switch (dev->devtype->product) { in coda_start_encoding() 1136 switch (dev->devtype->product) { in coda_start_encoding() 1297 switch (dev->devtype->product) { in coda_start_encoding() [all …]
|
H A D | coda-common.c | 318 int num_codecs = dev->devtype->num_codecs; in coda_find_codec() 369 if (i >= dev->devtype->num_vdevs) in to_coda_video_device() 372 return dev->devtype->vdevs[i]; in to_coda_video_device() 2614 if (dev->devtype->product == CODA_DX6) in coda_open() 2649 switch (dev->devtype->product) { in coda_open() 2842 switch (dev->devtype->product) { in coda_hw_init() 2851 if (dev->devtype->product == CODA_960) in coda_hw_init() 2857 if (dev->devtype->product != CODA_DX6) in coda_hw_init() 2889 if (i >= dev->devtype->num_vdevs) in coda_register_device() 2891 name = dev->devtype->vdevs[i]->name; in coda_register_device() [all …]
|
/openbmc/linux/drivers/net/can/ |
H A D | xilinx_can.c | 221 struct xcan_devtype_data devtype; member 455 if (priv->devtype.cantype == XAXI_CANFD || in xcan_set_bittiming() 460 if (priv->devtype.cantype == XAXI_CANFD) in xcan_set_bittiming() 526 if (priv->devtype.flags & XCAN_FLAG_RXMNF) in xcan_chip_start() 644 if (priv->devtype.cantype == XAXI_CANFD || in xcan_write_frame() 1746 devtype = of_id->data; in xcan_probe() 1786 (devtype->flags & XCAN_FLAG_TXFEMP)) in xcan_probe() 1816 if (devtype->cantype == XAXI_CANFD) { in xcan_probe() 1822 if (devtype->cantype == XAXI_CANFD_2_0) { in xcan_probe() 1828 if (devtype->cantype == XAXI_CANFD || in xcan_probe() [all …]
|
/openbmc/u-boot/cmd/ |
H A D | usb_mass_storage.c | 52 static int ums_init(const char *devtype, const char *devnums_part_str) in ums_init() argument 73 partnum = blk_get_device_part_str(devtype, devnum_part_str, in ums_init() 139 const char *devtype; in do_usb_mass_storage() local 150 devtype = argv[2]; in do_usb_mass_storage() 153 devtype = "mmc"; in do_usb_mass_storage() 157 rc = ums_init(devtype, devnum); in do_usb_mass_storage()
|
H A D | rockusb.c | 17 char *devtype; in do_rockusb() local 28 devtype = argv[2]; in do_rockusb() 34 rockusb_dev_init(devtype, dev_index); in do_rockusb()
|
/openbmc/linux/drivers/fpga/ |
H A 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()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-mpc8xxx.c | 304 const struct mpc8xxx_gpio_devtype *devtype = NULL; in mpc8xxx_probe() local 346 devtype = device_get_match_data(&pdev->dev); in mpc8xxx_probe() 347 if (!devtype) in mpc8xxx_probe() 348 devtype = &mpc8xxx_gpio_devtype_default; in mpc8xxx_probe() 354 if (devtype->irq_set_type) in mpc8xxx_probe() 355 mpc8xxx_irq_chip.irq_set_type = devtype->irq_set_type; in mpc8xxx_probe() 357 if (devtype->gpio_dir_out) in mpc8xxx_probe() 358 gc->direction_output = devtype->gpio_dir_out; in mpc8xxx_probe() 359 if (devtype->gpio_get) in mpc8xxx_probe() 360 gc->get = devtype->gpio_get; in mpc8xxx_probe()
|
/openbmc/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()
|
/openbmc/u-boot/drivers/mtd/ |
H A D | mtd_uboot.c | 365 loff_t *maxsize, int devtype) in get_part() argument 381 if (dev->id->type != devtype) { in get_part() 382 printf("not same typ %d != %d\n", dev->id->type, devtype); in get_part() 399 loff_t *maxsize, int devtype, uint64_t chipsize) in mtd_arg_off() argument 402 return get_part(arg, idx, off, size, maxsize, devtype); in mtd_arg_off() 415 loff_t *size, loff_t *maxsize, int devtype, in mtd_arg_off_size() argument 427 ret = mtd_arg_off(argv[0], idx, off, size, maxsize, devtype, in mtd_arg_off_size()
|
/openbmc/u-boot/drivers/serial/ |
H A D | serial_lpuart.c | 74 enum lpuart_devtype devtype; member 411 if (plat->devtype == DEV_MX7ULP || plat->devtype == DEV_IMX8) { in _lpuart32_serial_init() 428 if (plat->devtype == DEV_MX7ULP || plat->devtype == DEV_IMX8) in lpuart_serial_setbrg() 506 plat->devtype = DEV_LS1021A; in lpuart_serial_ofdata_to_platdata() 508 plat->devtype = DEV_MX7ULP; in lpuart_serial_ofdata_to_platdata() 510 plat->devtype = DEV_VF610; in lpuart_serial_ofdata_to_platdata() 512 plat->devtype = DEV_IMX8; in lpuart_serial_ofdata_to_platdata()
|
/openbmc/linux/drivers/hid/ |
H A D | hid-wiimote-core.c | 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() 816 __u8 devtype = WIIMOTE_DEV_GENERIC; in wiimote_init_set_type() local 833 devtype = WIIMOTE_DEV_GEN10; in wiimote_init_set_type() 836 devtype = WIIMOTE_DEV_GEN20; in wiimote_init_set_type() 848 devtype = WIIMOTE_DEV_GEN10; in wiimote_init_set_type() 851 devtype = WIIMOTE_DEV_GEN20; in wiimote_init_set_type() 857 if (devtype == WIIMOTE_DEV_GENERIC) in wiimote_init_set_type() 862 wiimote_devtype_names[devtype]); in wiimote_init_set_type() [all …]
|
/openbmc/u-boot/disk/ |
H A D | part.c | 681 char *devtype; in part_set_generic_name() local 687 devtype = "hd"; in part_set_generic_name() 690 devtype = "sd"; in part_set_generic_name() 693 devtype = "usbd"; in part_set_generic_name() 696 devtype = "docd"; in part_set_generic_name() 700 devtype = "mmcsd"; in part_set_generic_name() 703 devtype = "xx"; in part_set_generic_name() 707 sprintf(name, "%s%c%d", devtype, 'a' + dev_desc->devnum, part_num); in part_set_generic_name()
|
/openbmc/linux/drivers/watchdog/ |
H A D | rzg2l_wdt.c | 60 enum rz_wdt_type devtype; member 67 if (priv->devtype == WDT_RZV2M) { in rzg2l_wdt_reset() 188 if (priv->devtype == WDT_RZG2L) { in rzg2l_wdt_restart() 292 priv->devtype = (uintptr_t)of_device_get_match_data(dev); in rzg2l_wdt_probe() 294 if (priv->devtype == WDT_RZV2M) { in rzg2l_wdt_probe()
|
/openbmc/u-boot/include/ |
H A D | fpga.h | 36 fpga_type devtype; /* switch value to select sub-functions */ member 62 int fpga_add(fpga_type devtype, void *desc);
|
/openbmc/linux/sound/soc/codecs/ |
H A 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()
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ov7670.c | 980 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_try_fmt_internal() 1004 wsize = info->devtype->win_sizes + i; in ov7670_try_fmt_internal() 1016 for (wsize = info->devtype->win_sizes; in ov7670_try_fmt_internal() 1180 info->devtype->get_framerate(sd, &ival->interval); in ov7670_g_frame_interval() 1192 return info->devtype->set_framerate(sd, tpf); in ov7670_s_frame_interval() 1209 unsigned int n_win_sizes = info->devtype->n_win_sizes; in ov7670_enum_frame_interval() 1716 format->width = info->devtype->win_sizes[0].width; in ov7670_get_default_format() 1717 format->height = info->devtype->win_sizes[0].height; in ov7670_get_default_format() 1926 info->devtype = &ov7670_devdata[id->driver_data]; in ov7670_probe() 1928 info->wsize = &info->devtype->win_sizes[0]; in ov7670_probe() [all …]
|
/openbmc/qemu/scripts/ |
H A D | device-crash-test | 290 def __init__(self, binary, devtype): argument 291 if devtype is None: 292 devtype = 'device' 297 dbg("devtype: %r", devtype) 303 self.alldevs = set(qomListTypeNames(vm, implements=devtype, abstract=False)) 344 BINARY_INFO[binary] = QemuBinaryInfo(binary, args.devtype)
|