/u-boot/drivers/dma/ti/ |
A D | k3-udma.c | 706 uc->id, uc->tchan->id); in udma_get_tchan() 747 uc->id, uc->rchan->id); in udma_get_rchan() 765 if ((uc->tchan && uc->rchan) && uc->tchan->id == uc->rchan->id) { in udma_get_chan_pair() 767 uc->id, uc->tchan->id); in udma_get_chan_pair() 773 uc->id, uc->tchan->id); in udma_get_chan_pair() 777 uc->id, uc->rchan->id); in udma_get_chan_pair() 808 uc->id, uc->rflow->id); in udma_get_rflow() 2009 uc->id, uc->bchan->id); in bcdma_get_bchan() 2017 uc->tchan = uc->bchan; in bcdma_get_bchan() 2289 uc->id, uc->tchan->id, uc->tchan->tflow_id, in pktdma_alloc_chan_resources() [all …]
|
A D | k3-udma-u-boot.c | 101 if (uc->config.pkt_mode) in udma_alloc_tchan_raw() 109 if (uc->config.dir == DMA_MEM_TO_MEM) in udma_alloc_tchan_raw() 113 uc->config.psd_size, 0) >> 2; in udma_alloc_tchan_raw() 123 struct udma_dev *ud = uc->ud; in udma_alloc_rchan_raw() 130 if (uc->config.pkt_mode) in udma_alloc_rchan_raw() 143 uc->config.psd_size, 0) >> 2; in udma_alloc_rchan_raw() 151 if (uc->config.dir == DMA_MEM_TO_MEM) in udma_alloc_rchan_raw() 155 uc->rflow->id != uc->rchan->id && in udma_alloc_rchan_raw() 157 udma_rchan_write(uc->rchan, UDMA_RCHAN_RFLOW_RNG_REG, uc->rflow->id | in udma_alloc_rchan_raw() 160 if (uc->config.needs_epib) in udma_alloc_rchan_raw() [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() 154 if (!uc) { in uclass_get() 159 *ucp = uc; in uclass_get() [all …]
|
A D | dump.c | 132 struct uclass *uc; in dm_dump_uclass() local 140 ret = uclass_get(id, &uc); in dm_dump_uclass() 144 printf("uclass %d: %s\n", id, uc->uc_drv->name); in dm_dump_uclass() 145 uclass_foreach_dev(dev, uc) { in dm_dump_uclass() 183 struct uclass *uc; in dm_dump_drivers() local 191 ret = uclass_get(entry->id, &uc); in dm_dump_drivers() 194 !ret ? uc->uc_drv->name : "<no uclass>"); in dm_dump_drivers() 202 uclass_foreach_dev(udev, uc) { in dm_dump_drivers()
|
A D | device.c | 45 struct uclass *uc; in device_bind_common() local 58 ret = uclass_get(drv->id, &uc); in device_bind_common() 80 dev->uclass = uc; in device_bind_common() 91 if (uc->uc_drv->name && ofnode_valid(node)) { in device_bind_common() 100 dev->seq_ = uclass_find_next_free_seq(uc); in device_bind_common() 134 size = uc->uc_drv->per_device_plat_auto; in device_bind_common() 177 if (uc->uc_drv->post_bind) { in device_bind_common() 178 ret = uc->uc_drv->post_bind(dev); in device_bind_common() 701 const struct uclass *uc = dev->uclass; in dev_get_attach_size() local 770 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 205 struct pcnet_uncached_priv *uc; in pcnet_init_common() local 239 uc = lp->uc; in pcnet_init_common() 242 uc->init_block.filter[0] = 0x00000000; in pcnet_init_common() 256 uc->rx_ring[i].base, uc->rx_ring[i].buf_length, in pcnet_init_common() 257 uc->rx_ring[i].status); in pcnet_init_common() 266 uc->tx_ring[i].base = 0; in pcnet_init_common() 267 uc->tx_ring[i].status = 0; in pcnet_init_common() 288 uc->init_block.tlen_rlen, in pcnet_init_common() 289 uc->init_block.rx_ring, uc->init_block.tx_ring); in pcnet_init_common() [all …]
|
/u-boot/drivers/block/ |
A D | host-uclass.c | 133 struct uclass *uc; in host_find_by_label() local 135 uclass_id_foreach_dev(UCLASS_HOST, dev, uc) { in host_find_by_label() 147 struct uclass *uc = uclass_find(UCLASS_HOST); in host_get_cur_dev() local 149 if (uc) { in host_get_cur_dev() 150 struct host_priv *priv = uclass_get_priv(uc); in host_get_cur_dev() 160 struct uclass *uc = uclass_find(UCLASS_HOST); in host_set_cur_dev() local 162 if (uc) { in host_set_cur_dev() 163 struct host_priv *priv = uclass_get_priv(uc); in host_set_cur_dev()
|
A D | blk-uclass.c | 111 struct uclass *uc; in blk_get_devnum_by_uclass_idname() local 130 uclass_foreach_dev(dev, uc) { in blk_get_devnum_by_uclass_idname() 193 struct uclass *uc; in get_desc() local 200 uclass_foreach_dev(dev, uc) { in get_desc() 415 struct uclass *uc; in blk_find_device() local 422 uclass_foreach_dev(dev, uc) { in blk_find_device() 552 struct uclass *uc; in blk_find_max_devnum() local 558 uclass_foreach_dev(dev, uc) { in blk_find_max_devnum() 653 struct uclass *uc; in blk_claim_devnum() local 659 uclass_foreach_dev(dev, uc) { in blk_claim_devnum() [all …]
|
/u-boot/include/dm/ |
A D | uclass.h | 150 void *uclass_get_priv(const struct uclass *uc); 470 #define uclass_id_foreach_dev(id, pos, uc) \ argument 471 if (!uclass_get(id, &uc)) \ 472 list_for_each_entry(pos, &uc->dev_head, uclass_node) 484 #define uclass_foreach_dev(pos, uc) \ argument 485 list_for_each_entry(pos, &uc->dev_head, uclass_node) 499 #define uclass_foreach_dev_safe(pos, next, uc) \ argument 500 list_for_each_entry_safe(pos, next, &uc->dev_head, uclass_node)
|
A D | uclass-internal.h | 78 void uclass_set_priv(struct uclass *uc, void *priv); 94 int uclass_find_next_free_seq(struct uclass *uc); 348 int uclass_destroy(struct uclass *uc);
|
/u-boot/test/dm/ |
A D | test-uclass.c | 74 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 107 ut_assert(uclass_get_priv(uc)); in test_init() 112 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()
|
/u-boot/cmd/mvebu/ |
A D | comphy_rx_training.c | 20 struct uclass *uc; in mvebu_comphy_rx_training_cmd() local 31 ret = uclass_get(UCLASS_MISC, &uc); in mvebu_comphy_rx_training_cmd() 37 uclass_foreach_dev(dev, uc) { in mvebu_comphy_rx_training_cmd()
|
/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()
|
/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/drivers/w1-eeprom/ |
A D | w1-eeprom-uclass.c | 65 struct uclass *uc; in w1_eeprom_dm_init() local 68 ret = uclass_get(UCLASS_W1_EEPROM, &uc); in w1_eeprom_dm_init() 74 uclass_foreach_dev(dev, uc) { in w1_eeprom_dm_init()
|
/u-boot/drivers/usb/host/ |
A D | usb-uclass.c | 179 struct uclass *uc; in usb_stop() local 188 uc_priv = uclass_get_priv(uc); in usb_stop() 190 uclass_foreach_dev(bus, uc) { in usb_stop() 240 uclass_foreach_dev(bus, uc) { in remove_inactive_children() 258 struct uclass *uc; in usb_init() local 267 uc_priv = uclass_get_priv(uc); in usb_init() 269 uclass_foreach_dev(bus, uc) { in usb_init() 310 uclass_foreach_dev(bus, uc) { in usb_init() 325 uclass_foreach_dev(bus, uc) { in usb_init() 698 struct uclass *uc; in usb_detect_change() local [all …]
|
/u-boot/lib/ |
A D | display_options.c | 157 uint8_t uc[MAX_LINE_LENGTH_BYTES/sizeof(uint8_t) + 1]; in hexdump_line() member 191 x = lb.uc[i] = *(volatile uint8_t *)data; in hexdump_line() 205 if (!isprint(lb.uc[i]) || lb.uc[i] >= 0x80) in hexdump_line() 206 lb.uc[i] = '.'; in hexdump_line() 208 lb.uc[i] = '\0'; in hexdump_line() 209 out += sprintf(out, " %s", lb.uc); in hexdump_line()
|
/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/watchdog/ |
A D | wdt-uclass.c | 90 struct uclass *uc; in initr_watchdog() local 93 ret = uclass_get(UCLASS_WDT, &uc); in initr_watchdog() 99 uclass_foreach_dev(dev, uc) { in initr_watchdog() 172 struct uclass *uc; in wdt_stop_all() local 175 ret = uclass_get(UCLASS_WDT, &uc); in wdt_stop_all() 179 uclass_foreach_dev(dev, uc) { in wdt_stop_all()
|
/u-boot/drivers/led/ |
A D | led-uclass.c | 20 struct uclass *uc; in led_get_by_label() local 23 ret = uclass_get(UCLASS_LED, &uc); in led_get_by_label() 26 uclass_foreach_dev(dev, uc) { in led_get_by_label()
|
/u-boot/drivers/button/ |
A D | button-uclass.c | 18 struct uclass *uc; in button_get_by_label() local 20 uclass_id_foreach_dev(UCLASS_BUTTON, dev, uc) { in button_get_by_label()
|