/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() 146 int fpga_add(fpga_type devtype, void *desc) in fpga_add() argument 157 } else if ((devtype > fpga_min_type) && (devtype < fpga_undefined)) { in fpga_add() 160 desc_table[next_desc].devtype = devtype; in fpga_add() 167 printf("%s: Unsupported FPGA type %d\n", __func__, 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() [all …]
|
/openbmc/linux/drivers/bus/ |
H A D | imx-weim.c | 138 const struct imx_weim_devtype *devtype) in weim_timing_setup() argument 148 if (WARN_ON(devtype->cs_regs_count > MAX_CS_REGS_COUNT)) in weim_timing_setup() 150 if (WARN_ON(devtype->cs_count > MAX_CS_COUNT)) in weim_timing_setup() 158 value, devtype->cs_regs_count); in weim_timing_setup() 178 if (cs_idx >= devtype->cs_count) in weim_timing_setup() 184 devtype->cs_regs_count * sizeof(u32))) { in weim_timing_setup() 190 for (i = 0; i < devtype->cs_regs_count; i++) in weim_timing_setup() 192 base + cs_idx * devtype->cs_stride + i * 4); in weim_timing_setup() 196 devtype->cs_regs_count * sizeof(u32)); in weim_timing_setup() 207 const struct imx_weim_devtype *devtype = of_id->data; in weim_parse_dt() 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/linux/drivers/tty/serial/ |
H A D | max310x.c | 289 const struct max310x_devtype *devtype; member 346 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3107_detect() 367 dev_err(dev, "%s not present\n", s->devtype->name); in max3108_detect() 388 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3109_detect() 418 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max14830_detect() 859 if (s->devtype->nr > 1) { in max310x_ist() 865 val = ((1 << s->devtype->nr) - 1) & ~val; in max310x_ist() 1078 s->devtype->power(port, 1); in max310x_startup() 1128 s->devtype->power(port, 0); in max310x_shutdown() 1135 return (port->type == PORT_MAX310X) ? s->devtype->name : NULL; in max310x_type() [all …]
|
H A D | sc16is7xx.c | 337 const struct sc16is7xx_devtype *devtype; member 813 for (i = 0; i < s->devtype->nr_uart; ++i) in sc16is7xx_irq() 1244 return (port->type == PORT_SC16IS7XX) ? s->devtype->name : NULL; in sc16is7xx_type() 1377 if (!s->devtype->nr_gpio) in sc16is7xx_setup_gpio_chip() 1406 s->gpio.ngpio = s->devtype->nr_gpio; in sc16is7xx_setup_gpio_chip() 1431 if (irda_port[i] < s->devtype->nr_uart) in sc16is7xx_setup_irda_ports() 1484 const struct sc16is7xx_devtype *devtype, in sc16is7xx_probe() argument 1493 for (i = 0; i < devtype->nr_uart; i++) in sc16is7xx_probe() 1511 s = devm_kzalloc(dev, struct_size(s, p, devtype->nr_uart), GFP_KERNEL); in sc16is7xx_probe() 1540 s->devtype = devtype; in sc16is7xx_probe() [all …]
|
/openbmc/qemu/tests/functional/ |
H A D | test_virtio_version.py | 51 def devtype_implements(vm, devtype, implements): argument 52 return devtype in [d['name'] for d in 55 def get_pci_interfaces(vm, devtype): argument 57 return [i for i in interfaces if devtype_implements(vm, devtype, i)] 69 def run_device(self, devtype, opts=None, machine='pc'): argument 76 devtype += ',' + opts 77 vm.add_args('-device', '%s,id=devfortest' % (devtype)) 85 return devfortest[0], get_pci_interfaces(vm, devtype)
|
/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 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 …]
|
/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() 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->product != CODA_DX6 && in coda_alloc_framebuffers() [all …]
|
H A D | coda-common.c | 317 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->product == CODA_960) { in coda_s_fmt_vid_cap() [all …]
|
/openbmc/linux/drivers/net/can/ |
H A D | xilinx_can.c | 221 struct xcan_devtype_data devtype; member 376 if (priv->devtype.flags & XCAN_FLAG_RX_FIFO_MULTI) in xcan_rx_int_mask() 447 btr1 |= (bt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 450 btr1 |= (bt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming() 455 if (priv->devtype.cantype == XAXI_CANFD || in xcan_set_bittiming() 456 priv->devtype.cantype == XAXI_CANFD_2_0) { in xcan_set_bittiming() 460 if (priv->devtype.cantype == XAXI_CANFD) in xcan_set_bittiming() 472 btr1 |= (dbt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 475 btr1 |= (dbt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming() 526 if (priv->devtype.flags & XCAN_FLAG_RXMNF) in xcan_chip_start() [all …]
|
/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/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/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/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/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/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 | 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 …]
|
/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/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 | 254 const struct ov7670_devtype *devtype; /* Device specifics */ member 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() 1017 wsize < info->devtype->win_sizes + win_sizes_limit; wsize++) in ov7670_try_fmt_internal() 1020 if (wsize >= info->devtype->win_sizes + win_sizes_limit) 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() 1224 struct ov7670_win_size *win = &info->devtype->win_sizes[i]; in ov7670_enum_frame_interval() [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)
|
/openbmc/linux/drivers/nvmem/ |
H A D | imx-ocotp-scu.c | 35 int devtype; member 55 .devtype = IMX8QXP, 66 .devtype = IMX8QM,
|