/u-boot/drivers/dma/ti/ |
A D | k3-udma.c | 639 uc->id, uc->tchan->id); in udma_get_tchan() 658 uc->id, uc->rchan->id); in udma_get_rchan() 676 if ((uc->tchan && uc->rchan) && uc->tchan->id == uc->rchan->id) { in udma_get_chan_pair() 678 uc->id, uc->tchan->id); in udma_get_chan_pair() 684 uc->id, uc->tchan->id); in udma_get_chan_pair() 688 uc->id, uc->rchan->id); in udma_get_chan_pair() 719 uc->id, uc->rflow->id); in udma_get_rflow() 858 ret = udma_get_rflow(uc, uc->rchan->id); in udma_alloc_rx_resources() 968 if (uc->rflow->id != uc->rchan->id && uc->config.dir != DMA_MEM_TO_MEM) { in udma_alloc_rchan_sci_req() 1028 uc->rchan->id, uc->rflow->id, ret); in udma_alloc_rchan_sci_req() [all …]
|
/u-boot/drivers/dma/ |
A D | sandbox-dma-test.c | 84 if (uc->in_use) in sandbox_dma_request() 87 uc->in_use = true; in sandbox_dma_request() 102 if (!uc->in_use) in sandbox_dma_rfree() 122 if (!uc->in_use) in sandbox_dma_enable() 124 if (uc->enabled) in sandbox_dma_enable() 142 if (!uc->in_use) in sandbox_dma_disable() 144 if (!uc->enabled) in sandbox_dma_disable() 169 if (!uc->in_use) in sandbox_dma_send() 199 if (!uc->in_use) in sandbox_dma_receive() 262 uc->ud = ud; in sandbox_dma_probe() [all …]
|
/u-boot/drivers/core/ |
A D | uclass.c | 28 struct uclass *uc; in uclass_find() local 39 return uc; in uclass_find() 57 struct uclass *uc; in uclass_add() local 72 uc = calloc(1, sizeof(*uc)); in uclass_add() 73 if (!uc) in uclass_add() 96 *ucp = uc; in uclass_add() 106 free(uc); in uclass_add() 140 free(uc); in uclass_destroy() 151 if (!uc) in uclass_get() 153 *ucp = uc; in uclass_get() [all …]
|
A D | dump.c | 79 struct uclass *uc; in dm_dump_uclass() local 87 ret = uclass_get(id, &uc); in dm_dump_uclass() 91 printf("uclass %d: %s\n", id, uc->uc_drv->name); in dm_dump_uclass() 92 if (list_empty(&uc->dev_head)) in dm_dump_uclass() 94 uclass_foreach_dev(dev, uc) { in dm_dump_uclass() 132 struct uclass *uc; in dm_dump_drivers() local 139 uclass_get(entry->id, &uc); in dm_dump_drivers() 142 uc ? uc->uc_drv->name : "<no uclass>"); in dm_dump_drivers() 144 if (!uc) { in dm_dump_drivers() 150 uclass_foreach_dev(udev, uc) { in dm_dump_drivers()
|
A D | device.c | 43 struct uclass *uc; in device_bind_common() local 53 ret = uclass_get(drv->id, &uc); in device_bind_common() 75 dev->uclass = uc; in device_bind_common() 79 (uc->uc_drv->flags & DM_UC_FLAG_SEQ_ALIAS)) { in device_bind_common() 86 if (uc->uc_drv->name && ofnode_valid(node)) { in device_bind_common() 93 dev->seq_ = uclass_find_next_free_seq(uc); in device_bind_common() 127 size = uc->uc_drv->per_device_plat_auto; in device_bind_common() 170 if (uc->uc_drv->post_bind) { in device_bind_common() 171 ret = uc->uc_drv->post_bind(dev); in device_bind_common() 675 struct uclass *uc; in device_find_by_ofnode() local [all …]
|
/u-boot/lib/bzip2/ |
A D | bzlib_decompress.c | 151 UChar uc; in BZ2_decompress() local 311 GET_BIT(BZ_X_MAPPING_1, uc); in BZ2_decompress() 312 if (uc == 1) in BZ2_decompress() 338 if (uc == 0) break; in BZ2_decompress() 366 if (uc == 0) break; in BZ2_decompress() 439 s->unzftab[uc] += es; in BZ2_decompress() 471 uc = s->mtfa[pp+nn]; in BZ2_decompress() 483 s->mtfa[pp] = uc; in BZ2_decompress() 489 uc = s->mtfa[pp]; in BZ2_decompress() 556 s->cftabCopy[uc]++; in BZ2_decompress() [all …]
|
/u-boot/drivers/net/ |
A D | pcnet.c | 85 struct pcnet_uncached_priv *uc; member 214 struct pcnet_uncached_priv *uc; in pcnet_init_common() local 248 uc = lp->uc; in pcnet_init_common() 251 uc->init_block.filter[0] = 0x00000000; in pcnet_init_common() 265 uc->rx_ring[i].base, uc->rx_ring[i].buf_length, in pcnet_init_common() 266 uc->rx_ring[i].status); in pcnet_init_common() 275 uc->tx_ring[i].base = 0; in pcnet_init_common() 276 uc->tx_ring[i].status = 0; in pcnet_init_common() 297 uc->init_block.tlen_rlen, in pcnet_init_common() 298 uc->init_block.rx_ring, uc->init_block.tx_ring); in pcnet_init_common() [all …]
|
/u-boot/include/dm/ |
A D | uclass.h | 123 void *uclass_get_priv(const struct uclass *uc); 403 #define uclass_id_foreach_dev(id, pos, uc) \ argument 404 if (!uclass_get(id, &uc)) \ 405 list_for_each_entry(pos, &uc->dev_head, uclass_node) 417 #define uclass_foreach_dev(pos, uc) \ argument 418 list_for_each_entry(pos, &uc->dev_head, uclass_node) 432 #define uclass_foreach_dev_safe(pos, next, uc) \ argument 433 list_for_each_entry_safe(pos, next, &uc->dev_head, uclass_node)
|
A D | uclass-internal.h | 26 void uclass_set_priv(struct uclass *uc, void *priv); 42 int uclass_find_next_free_seq(struct uclass *uc); 261 int uclass_destroy(struct uclass *uc);
|
/u-boot/drivers/led/ |
A D | led-uclass.c | 18 struct uclass *uc; in led_get_by_label() local 21 ret = uclass_get(UCLASS_LED, &uc); in led_get_by_label() 24 uclass_foreach_dev(dev, uc) { in led_get_by_label() 70 struct uclass *uc; in led_default_state() local 74 ret = uclass_get(UCLASS_LED, &uc); in led_default_state()
|
/u-boot/test/dm/ |
A D | test-uclass.c | 73 struct uclass *uc = dev->uclass; in test_post_probe() local 82 if (&prev->uclass_node != &uc->dev_head) { in test_post_probe() 102 static int test_init(struct uclass *uc) in test_init() argument 105 ut_assert(uclass_get_priv(uc)); in test_init() 110 static int test_destroy(struct uclass *uc) in test_destroy() argument
|
A D | bus.c | 28 struct uclass *uc; in dm_test_bus_children() local 30 ut_assertok(uclass_get(UCLASS_TEST_FDT, &uc)); in dm_test_bus_children() 37 ut_assertok(uclass_get(UCLASS_TEST_FDT, &uc)); in dm_test_bus_children() 146 struct uclass *uc; in test_bus_parent_data() local 172 ut_assertok(uclass_get(UCLASS_TEST_FDT, &uc)); in test_bus_parent_data() 174 uclass_foreach_dev(dev, uc) { in test_bus_parent_data() 189 uclass_foreach_dev(dev, uc) { in test_bus_parent_data() 243 struct uclass *uc; in dm_test_bus_parent_ops() local 247 ut_assertok(uclass_get(UCLASS_TEST_FDT, &uc)); in dm_test_bus_parent_ops() 249 uclass_foreach_dev(dev, uc) { in dm_test_bus_parent_ops() [all …]
|
A D | mdio.c | 27 struct uclass *uc; in dm_test_mdio() local 32 ut_assertok(uclass_get(UCLASS_MDIO, &uc)); in dm_test_mdio()
|
A D | core.c | 98 struct uclass *uc; in dm_leak_check_end() local 100 uc = uclass_find(id); in dm_leak_check_end() 101 if (!uc) in dm_leak_check_end() 103 ut_assertok(uclass_destroy(uc)); in dm_leak_check_end() 157 struct uclass *uc; in dm_test_autobind_uclass_pdata_alloc() local 160 ut_assert(uc); in dm_test_autobind_uclass_pdata_alloc() 213 struct uclass *uc; in dm_test_autoprobe() local 217 ut_assert(uc); in dm_test_autoprobe() 519 struct uclass *uc; in dm_test_uclass() local 983 struct uclass *uc; in dm_test_uclass_before_ready() local [all …]
|
A D | test-main.c | 66 struct uclass *uc; in dm_test_destroy() local 72 uc = uclass_find(id); in dm_test_destroy() 73 if (!uc) in dm_test_destroy() 75 ut_assertok(uclass_destroy(uc)); in dm_test_destroy()
|
/u-boot/lib/ |
A D | display_options.c | 144 uint8_t uc[MAX_LINE_LENGTH_BYTES/sizeof(uint8_t) + 1]; in print_buffer() member 171 x = lb.uc[i] = *(volatile uint8_t *)data; in print_buffer() 188 if (!isprint(lb.uc[i]) || lb.uc[i] >= 0x80) in print_buffer() 189 lb.uc[i] = '.'; in print_buffer() 191 lb.uc[i] = '\0'; in print_buffer() 192 printf(" %s\n", lb.uc); in print_buffer()
|
/u-boot/cmd/ |
A D | lsblk.c | 18 struct uclass *uc; in do_lsblk() local 22 ret = uclass_get(UCLASS_BLK, &uc); in do_lsblk() 34 uclass_foreach_dev(udev, uc) { in do_lsblk()
|
A D | wdt.c | 19 struct uclass *uc; in do_wdt_list() local 22 ret = uclass_get(UCLASS_WDT, &uc); in do_wdt_list() 26 uclass_foreach_dev(dev, uc) in do_wdt_list()
|
/u-boot/drivers/block/ |
A D | blk-uclass.c | 97 struct uclass *uc; in blk_get_devnum_by_typename() local 116 uclass_foreach_dev(dev, uc) { in blk_get_devnum_by_typename() 179 struct uclass *uc; in get_desc() local 186 uclass_foreach_dev(dev, uc) { in get_desc() 403 struct uclass *uc; in blk_find_device() local 410 uclass_foreach_dev(dev, uc) { in blk_find_device() 512 struct uclass *uc; in blk_find_max_devnum() local 518 uclass_foreach_dev(dev, uc) { in blk_find_max_devnum() 544 struct uclass *uc; in blk_claim_devnum() local 550 uclass_foreach_dev(dev, uc) { in blk_claim_devnum() [all …]
|
/u-boot/arch/arm/mach-rockchip/ |
A D | boot_mode.c | 44 struct uclass *uc; in rockchip_dnl_key_pressed() local 47 ret = uclass_get(UCLASS_ADC, &uc); in rockchip_dnl_key_pressed() 52 uclass_foreach_dev(dev, uc) { in rockchip_dnl_key_pressed()
|
/u-boot/common/ |
A D | ddr_spd.c | 146 if (spd->mod_section.uc[126] != crc_lsb || in ddr4_spd_check() 147 spd->mod_section.uc[127] != crc_msb) { in ddr4_spd_check() 151 spd->mod_section.uc[126], in ddr4_spd_check() 152 crc_lsb, spd->mod_section.uc[127], in ddr4_spd_check()
|
/u-boot/drivers/usb/host/ |
A D | usb-uclass.c | 178 struct uclass *uc; in usb_stop() local 187 uc_priv = uclass_get_priv(uc); in usb_stop() 189 uclass_foreach_dev(bus, uc) { in usb_stop() 239 uclass_foreach_dev(bus, uc) { in remove_inactive_children() 257 struct uclass *uc; in usb_init() local 266 uc_priv = uclass_get_priv(uc); in usb_init() 268 uclass_foreach_dev(bus, uc) { in usb_init() 305 uclass_foreach_dev(bus, uc) { in usb_init() 320 uclass_foreach_dev(bus, uc) { in usb_init() 734 struct uclass *uc; in usb_detect_change() local [all …]
|
/u-boot/drivers/button/ |
A D | button-uclass.c | 16 struct uclass *uc; in button_get_by_label() local 18 uclass_id_foreach_dev(UCLASS_BUTTON, dev, uc) { in button_get_by_label()
|
/u-boot/drivers/w1-eeprom/ |
A D | w1-eeprom-uclass.c | 94 struct uclass *uc; in w1_eeprom_dm_init() local 97 ret = uclass_get(UCLASS_W1_EEPROM, &uc); in w1_eeprom_dm_init() 103 uclass_foreach_dev(dev, uc) { in w1_eeprom_dm_init()
|
/u-boot/arch/x86/cpu/ |
A D | qfw_cpu.c | 20 struct uclass *uc; in qemu_cpu_fixup() local 26 ret = uclass_get(UCLASS_CPU, &uc); in qemu_cpu_fixup()
|