| /OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/ |
| H A D | boot_rkimg.c | 55 static int bootdev_init(const char *devtype, const char *devnum) in bootdev_init() argument 58 if (!strcmp("mmc", devtype)) in bootdev_init() 62 if (!strcmp("nvme", devtype)) { in bootdev_init() 69 if (!strcmp("scsi", devtype)) { in bootdev_init() 75 if (!blk_get_devnum_by_typename(devtype, atoi(devnum))) in bootdev_init() 78 env_set("devtype", devtype); in bootdev_init() 89 char *devtype = NULL, *devnum = NULL; in boot_devtype_init() local 102 if (!param_parse_assign_bootdev(&devtype, &devnum)) { in boot_devtype_init() 103 if (!bootdev_init(devtype, devnum)) { in boot_devtype_init() 111 if (!param_parse_atags_bootdev(&devtype, &devnum)) { in boot_devtype_init() [all …]
|
| H A D | usbplug.c | 17 const char *devtype, *devnum; in bootdev_rockusb_cmd() local 29 devtype = bootdev_list[0]; in bootdev_rockusb_cmd() 31 while (devtype) { in bootdev_rockusb_cmd() 32 if (!strcmp("mmc", devtype)) in bootdev_rockusb_cmd() 35 if (blk_get_devnum_by_typename(devtype, atoi(devnum))) in bootdev_rockusb_cmd() 39 devtype = bootdev_list[i]; in bootdev_rockusb_cmd() 43 if (!devtype) { in bootdev_rockusb_cmd() 48 printf("Bootdev: %s %s\n", devtype, devnum); in bootdev_rockusb_cmd() 54 snprintf(cmd, 32, "rockusb 0 %s %s", devtype, devnum); in bootdev_rockusb_cmd()
|
| H A D | param.c | 167 int param_parse_assign_bootdev(char **devtype, char **devnum) in param_parse_assign_bootdev() argument 180 *devtype = type; in param_parse_assign_bootdev() 186 int param_parse_atags_bootdev(char **devtype, char **devnum) in param_parse_atags_bootdev() argument 193 switch (t->u.bootdev.devtype) { in param_parse_atags_bootdev() 196 *devtype = "mmc"; in param_parse_atags_bootdev() 201 *devtype = "mmc"; in param_parse_atags_bootdev() 222 *devtype = "rknand"; in param_parse_atags_bootdev() 228 *devtype = "spinand"; in param_parse_atags_bootdev() 234 *devtype = "spinor"; in param_parse_atags_bootdev() 240 *devtype = "ramdisk"; in param_parse_atags_bootdev() [all …]
|
| /OK3568_Linux_fs/u-boot/test/rockchip/ |
| H A D | test-storage.c | 26 static enum if_type blk_get_type_by_name_and_num(char *devtype, int devnum) in blk_get_type_by_name_and_num() argument 30 if (!strcmp(devtype, "mmc")) in blk_get_type_by_name_and_num() 33 else if (!strcmp(devtype, "rknand")) in blk_get_type_by_name_and_num() 37 else if (!strcmp(devtype, "rksfc") && devnum == 0) in blk_get_type_by_name_and_num() 41 else if (!strcmp(devtype, "rksfc") && devnum == 1) in blk_get_type_by_name_and_num() 45 else if (!strcmp(devtype, "ramdisk")) in blk_get_type_by_name_and_num() 49 else if (!strcmp(devtype, "mtd")) in blk_get_type_by_name_and_num() 53 else if (!strcmp(devtype, "scsi")) in blk_get_type_by_name_and_num() 56 else if (!strcmp(devtype, "usb")) in blk_get_type_by_name_and_num() 71 const char *devtype, in do_test_storage() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/bus/ |
| H A D | imx-weim.c | 131 const struct imx_weim_devtype *devtype, in weim_timing_setup() argument 139 if (WARN_ON(devtype->cs_regs_count > MAX_CS_REGS_COUNT)) in weim_timing_setup() 141 if (WARN_ON(devtype->cs_count > MAX_CS_COUNT)) in weim_timing_setup() 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() 179 base + cs_idx * devtype->cs_stride + i * 4); in weim_timing_setup() 183 devtype->cs_regs_count * sizeof(u32)); in weim_timing_setup() 194 const struct imx_weim_devtype *devtype = of_id->data; in weim_parse_dt() local [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/fpga/ |
| H A D | fpga.c | 86 switch (desc->devtype) { in fpga_dev_info() 113 __func__, desc->devtype); in fpga_dev_info() 147 int fpga_add(fpga_type devtype, void *desc) in fpga_add() argument 153 } else if ((devtype > fpga_min_type) && (devtype < fpga_undefined)) { in fpga_add() 157 desc_table[next_desc].devtype = devtype; in fpga_add() 167 printf("%s: Unsupported FPGA type %d\n", __func__, devtype); in fpga_add() 192 switch (desc->devtype) { in fpga_fsload() 203 __func__, desc->devtype); in fpga_fsload() 221 switch (desc->devtype) { in fpga_load() 246 __func__, desc->devtype); in fpga_load() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/imx/dcss/ |
| H A D | dcss-dev.c | 66 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 …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/coda/ |
| H A D | coda-bit.c | 67 if (dev->devtype->product == CODA_HX4 || in coda_command_async() 68 dev->devtype->product == CODA_7541 || in coda_command_async() 69 dev->devtype->product == CODA_960) { in coda_command_async() 80 if (dev->devtype->product == CODA_960) { in coda_command_async() 124 if (dev->devtype->product == CODA_960) { in coda_hw_reset() 138 if (dev->devtype->product == CODA_960) in coda_hw_reset() 289 if (ctx->dev->devtype->product == CODA_960) in coda_bitstream_try_queue() 440 if ((dev->devtype->product == CODA_960) && in coda_bit_stream_end_flag() 453 if (dev->devtype->product == CODA_DX6) in coda_parabuf_write() 503 if (dev->devtype->product != CODA_DX6 && in coda_alloc_framebuffers() [all …]
|
| H A D | coda-common.c | 316 const struct coda_codec *codecs = dev->devtype->codecs; in coda_find_codec() 317 int num_codecs = dev->devtype->num_codecs; in coda_find_codec() 341 const struct coda_codec *codecs = dev->devtype->codecs; in coda_get_max_dimensions() 342 int num_codecs = dev->devtype->num_codecs; in coda_get_max_dimensions() 368 if (i >= dev->devtype->num_vdevs) in to_coda_video_device() 371 return dev->devtype->vdevs[i]; in to_coda_video_device() 427 strscpy(cap->card, coda_product_name(ctx->dev->devtype->product), in coda_querycap() 808 ctx->dev->devtype->product == CODA_960) { in coda_s_fmt() 1993 if (ctx->dev->devtype->product != CODA_960 && in coda_start_streaming() 2311 int max_gop_size = (ctx->dev->devtype->product == CODA_DX6) ? 60 : 99; in coda_encode_ctrls() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A D | max310x.c | 270 struct max310x_devtype *devtype; member 326 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3107_detect() 347 dev_err(dev, "%s not present\n", s->devtype->name); in max3108_detect() 369 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max3109_detect() 400 "%s ID 0x%02x does not match\n", s->devtype->name, val); in max14830_detect() 831 if (s->devtype->nr > 1) { in max310x_ist() 837 val = ((1 << s->devtype->nr) - 1) & ~val; in max310x_ist() 1053 s->devtype->power(port, 1); in max310x_startup() 1103 s->devtype->power(port, 0); in max310x_shutdown() 1110 return (port->type == PORT_MAX310X) ? s->devtype->name : NULL; in max310x_type() [all …]
|
| H A D | sc16is7xx.c | 322 const struct sc16is7xx_devtype *devtype; member 723 for (i = 0; i < s->devtype->nr_uart; ++i) in sc16is7xx_irq() 1074 return (port->type == PORT_SC16IS7XX) ? s->devtype->name : NULL; in sc16is7xx_type() 1182 const struct sc16is7xx_devtype *devtype, in sc16is7xx_probe() argument 1205 s = devm_kzalloc(dev, struct_size(s, p, devtype->nr_uart), GFP_KERNEL); in sc16is7xx_probe() 1233 s->devtype = devtype; in sc16is7xx_probe() 1247 if (devtype->nr_gpio) { in sc16is7xx_probe() 1257 s->gpio.ngpio = devtype->nr_gpio; in sc16is7xx_probe() 1269 for (i = 0; i < devtype->nr_uart; ++i) { in sc16is7xx_probe() 1326 if (u < devtype->nr_uart) in sc16is7xx_probe() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/can/ |
| H A D | xilinx_can.c | 212 struct xcan_devtype_data devtype; member 345 if (priv->devtype.flags & XCAN_FLAG_RX_FIFO_MULTI) in xcan_rx_int_mask() 416 btr1 |= (bt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 419 btr1 |= (bt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming() 424 if (priv->devtype.cantype == XAXI_CANFD || in xcan_set_bittiming() 425 priv->devtype.cantype == XAXI_CANFD_2_0) { in xcan_set_bittiming() 433 btr1 |= (dbt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 436 btr1 |= (dbt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming() 487 if (priv->devtype.flags & XCAN_FLAG_RXMNF) in xcan_chip_start() 501 if (priv->devtype.flags & XCAN_FLAG_EXT_FILTERS) in xcan_chip_start() [all …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | usb_mass_storage.c | 53 static int ums_init(const char *devtype, const char *devnums_part_str) in ums_init() argument 74 partnum = blk_get_device_part_str(devtype, devnum_part_str, in ums_init() 140 const char *devtype; in do_usb_mass_storage() local 151 devtype = argv[2]; in do_usb_mass_storage() 154 devtype = "mmc"; in do_usb_mass_storage() 158 rc = ums_init(devtype, devnum); in do_usb_mass_storage()
|
| H A D | rockusb.c | 81 static int rkusb_init(const char *devtype, const char *devnums_part_str) in rkusb_init() argument 102 partnum = blk_get_device_part_str(devtype, devnum_part_str, in rkusb_init() 157 const char *devtype; in do_rkusb() local 168 devtype = argv[2]; in do_rkusb() 171 if (!strcmp(devtype, "mmc") && !strcmp(devnum, "1")) { in do_rkusb() 174 } else if (!strcmp(devtype, "nvme") && !strcmp(devnum, "0")) { in do_rkusb() 184 rc = rkusb_init(devtype, devnum); in do_rkusb()
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-mpc8xxx.c | 307 const struct mpc8xxx_gpio_devtype *devtype = in mpc8xxx_probe() local 349 if (!devtype) in mpc8xxx_probe() 350 devtype = &mpc8xxx_gpio_devtype_default; in mpc8xxx_probe() 356 if (devtype->irq_set_type) in mpc8xxx_probe() 357 mpc8xxx_irq_chip.irq_set_type = devtype->irq_set_type; in mpc8xxx_probe() 359 if (devtype->gpio_dir_out) in mpc8xxx_probe() 360 gc->direction_output = devtype->gpio_dir_out; in mpc8xxx_probe() 361 if (devtype->gpio_get) in mpc8xxx_probe() 362 gc->get = devtype->gpio_get; in mpc8xxx_probe()
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/plugins/allwinner/music/common/ |
| H A D | mount.cpp | 45 const char *devtype = evt->findParam("DEVTYPE"); in AutoMountCallback() local 53 if (!strcmp(devtype, "disk")) { in AutoMountCallback() 57 ALOGW("line=%d,devtype=%s", __LINE__, devtype); in AutoMountCallback() 137 if (!strcmp(devtype, "disk")) { in AutoMountCallback()
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/plugins/allwinner/video/common/ |
| H A D | mount.cpp | 45 const char *devtype = evt->findParam("DEVTYPE"); in AutoMountCallback() local 53 if (!strcmp(devtype, "disk")) { in AutoMountCallback() 57 ALOGW("line=%d,devtype=%s", __LINE__, devtype); in AutoMountCallback() 137 if (!strcmp(devtype, "disk")) { in AutoMountCallback()
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/plugins/allwinner/MediaUI/common/ |
| H A D | mount.cpp | 45 const char *devtype = evt->findParam("DEVTYPE"); in AutoMountCallback() local 53 if (!strcmp(devtype, "disk")) { in AutoMountCallback() 57 ALOGW("line=%d,devtype=%s", __LINE__, devtype); in AutoMountCallback() 137 if (!strcmp(devtype, "disk")) { in AutoMountCallback()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/ |
| H A D | mtd_uboot.c | 382 loff_t *maxsize, int devtype) in get_part() argument 398 if (dev->id->type != devtype) { in get_part() 399 printf("not same typ %d != %d\n", dev->id->type, devtype); in get_part() 416 loff_t *maxsize, int devtype, uint64_t chipsize) in mtd_arg_off() argument 419 return get_part(arg, idx, off, size, maxsize, devtype); in mtd_arg_off() 432 loff_t *size, loff_t *maxsize, int devtype, in mtd_arg_off_size() argument 444 ret = mtd_arg_off(argv[0], idx, off, size, maxsize, devtype, in mtd_arg_off_size()
|
| /OK3568_Linux_fs/u-boot/env/ |
| H A D | env_blk.c | 53 const char *devtype; in init_blk_hwpart_for_env() local 56 devtype = env_get("devtype"); in init_blk_hwpart_for_env() 59 if_type = if_typename_to_iftype(devtype); in init_blk_hwpart_for_env() 72 const char *devtype; in fini_blk_hwpart_for_env() local 75 devtype = env_get("devtype"); in fini_blk_hwpart_for_env() 77 if_type = if_typename_to_iftype(devtype); in fini_blk_hwpart_for_env()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/boot/ |
| H A D | serial.c | 88 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()
|
| /OK3568_Linux_fs/u-boot/drivers/serial/ |
| H A D | serial_lpuart.c | 63 enum lpuart_devtype devtype; member 268 if (plat->devtype & DEV_MX7ULP) { in _lpuart32_serial_getc() 283 if (plat->devtype & DEV_MX7ULP) { in _lpuart32_serial_putc() 333 if (plat->devtype & DEV_MX7ULP) { in _lpuart32_serial_init() 350 if (plat->devtype & DEV_MX7ULP) in lpuart_serial_setbrg() 430 plat->devtype = DEV_LS1021A; in lpuart_serial_ofdata_to_platdata() 432 plat->devtype = DEV_MX7ULP; in lpuart_serial_ofdata_to_platdata() 434 plat->devtype = DEV_VF610; in lpuart_serial_ofdata_to_platdata()
|