/u-boot/drivers/dma/ |
H A D | sandbox-dma-test.c | 54 struct sandbox_dma_chan *uc; local 63 uc = &ud->channels[dma->id]; 66 uc->dir = DMA_MEM_TO_DEV; 68 uc->dir = DMA_DEV_TO_MEM; 70 uc->dir = DMA_MEM_TO_MEM; 71 debug("%s(dma id=%lu dir=%d)\n", __func__, dma->id, uc->dir); 79 struct sandbox_dma_chan *uc; local 84 uc = &ud->channels[dma->id]; 85 if (uc->in_use) 88 uc 97 struct sandbox_dma_chan *uc; local 117 struct sandbox_dma_chan *uc; local 137 struct sandbox_dma_chan *uc; local 158 struct sandbox_dma_chan *uc; local 190 struct sandbox_dma_chan *uc; local 261 struct sandbox_dma_chan *uc = &ud->channels[i]; local [all...] |
/u-boot/drivers/dma/ti/ |
H A D | k3-udma-u-boot.c | 97 static void udma_alloc_tchan_raw(struct udma_chan *uc) argument 101 if (uc->config.pkt_mode) 106 udma_tchan_update_bits(uc->tchan, UDMA_TCHAN_TCFG_REG, 109 if (uc->config.dir == DMA_MEM_TO_MEM) 112 fetch_size = cppi5_hdesc_calc_size(uc->config.needs_epib, 113 uc->config.psd_size, 0) >> 2; 115 udma_tchan_update_bits(uc->tchan, UDMA_TCHAN_TCFG_REG, 117 udma_tchan_write(uc->tchan, UDMA_TCHAN_TCQ_REG, 118 k3_nav_ringacc_get_ring_id(uc->tchan->tc_ring)); 121 static void udma_alloc_rchan_raw(struct udma_chan *uc) argument [all...] |
H A D | k3-udma.c | 350 static void udma_reset_uchan(struct udma_chan *uc) argument 352 memset(&uc->config, 0, sizeof(uc->config)); 353 uc->config.remote_thread_id = -1; 354 uc->config.mapped_channel_id = -1; 355 uc->config.default_flow_id = -1; 358 static inline bool udma_is_chan_running(struct udma_chan *uc) argument 363 switch (uc->config.dir) { 365 rrt_ctl = udma_rchanrt_read(uc->rchan, UDMA_RCHAN_RT_CTL_REG); 368 udma_rchanrt_read(uc 392 udma_pop_from_ring(struct udma_chan *uc, dma_addr_t *addr) argument 417 udma_reset_rings(struct udma_chan *uc) argument 445 udma_reset_counters(struct udma_chan *uc) argument 482 udma_stop_hard(struct udma_chan *uc) argument 506 udma_start(struct udma_chan *uc) argument 568 udma_stop_mem2dev(struct udma_chan *uc, bool sync) argument 594 udma_stop_dev2mem(struct udma_chan *uc, bool sync) argument 620 udma_stop(struct udma_chan *uc) argument 644 udma_poll_completion(struct udma_chan *uc, dma_addr_t *paddr) argument 701 udma_get_tchan(struct udma_chan *uc) argument 742 udma_get_rchan(struct udma_chan *uc) argument 761 udma_get_chan_pair(struct udma_chan *uc) argument 803 udma_get_rflow(struct udma_chan *uc, int flow_id) argument 824 udma_put_rchan(struct udma_chan *uc) argument 836 udma_put_tchan(struct udma_chan *uc) argument 850 udma_put_rflow(struct udma_chan *uc) argument 862 udma_free_tx_resources(struct udma_chan *uc) argument 875 udma_alloc_tx_resources(struct udma_chan *uc) argument 924 udma_free_rx_resources(struct udma_chan *uc) argument 941 udma_alloc_rx_resources(struct udma_chan *uc) argument 1007 udma_alloc_tchan_sci_req(struct udma_chan *uc) argument 1052 udma_alloc_rchan_sci_req(struct udma_chan *uc) argument 1163 udma_alloc_chan_resources(struct udma_chan *uc) argument 1265 udma_free_chan_resources(struct udma_chan *uc) argument 1810 struct udma_chan *uc = &ud->channels[i]; local 1847 udma_prep_dma_memcpy(struct udma_chan *uc, dma_addr_t dest, dma_addr_t src, size_t len) argument 1975 bcdma_tisci_m2m_channel_config(struct udma_chan *uc) argument 2012 bcdma_get_bchan(struct udma_chan *uc) argument 2031 bcdma_put_bchan(struct udma_chan *uc) argument 2044 bcdma_free_bchan_resources(struct udma_chan *uc) argument 2057 bcdma_alloc_bchan_resources(struct udma_chan *uc) argument 2097 bcdma_tisci_tx_channel_config(struct udma_chan *uc) argument 2127 pktdma_tisci_rx_channel_config(struct udma_chan *uc) argument 2173 bcdma_alloc_chan_resources(struct udma_chan *uc) argument 2225 pktdma_alloc_chan_resources(struct udma_chan *uc) argument 2321 struct udma_chan *uc = &ud->channels[0]; local 2361 struct udma_chan *uc; local 2414 struct udma_chan *uc; local 2441 struct udma_chan *uc; local 2458 struct udma_chan *uc; local 2482 struct udma_chan *uc; local 2540 struct udma_chan *uc; local 2588 struct udma_chan *uc = &ud->channels[0]; local 2653 struct udma_chan *uc; local 2695 struct udma_chan *uc; local [all...] |
/u-boot/drivers/core/ |
H A D | uclass.c | 28 struct uclass *uc; local 37 list_for_each_entry(uc, gd->uclass_root, sibling_node) { 38 if (uc->uc_drv->id == key) 39 return uc; 57 struct uclass *uc; local 72 uc = calloc(1, sizeof(*uc)); 73 if (!uc) 83 uclass_set_priv(uc, ptr); 85 uc 111 uclass_destroy(struct uclass *uc) argument 147 struct uclass *uc; local 166 struct uclass *uc; local 173 uclass_get_priv(const struct uclass *uc) argument 178 uclass_set_priv(struct uclass *uc, void *priv) argument 206 struct uclass *uc = dev->uclass; local 226 struct uclass *uc; local 249 struct uclass *uc; local 280 struct uclass *uc; local 308 uclass_find_next_free_seq(struct uclass *uc) argument 333 struct uclass *uc; local 361 struct uclass *uc; local 385 struct uclass *uc; local 419 struct uclass *uc; local 459 struct uclass *uc; local 662 const struct uclass *uc; local 677 struct uclass *uc; local 692 struct uclass *uc; local 719 struct uclass *uc; local 791 struct uclass *uc; local 825 struct uclass *uc; local [all...] |
H A D | dump.c | 167 struct uclass *uc; local 171 ret = uclass_get(id, &uc); 175 printf("uclass %d: %s\n", id, uc->uc_drv->name); 176 uclass_foreach_dev(dev, uc) { 185 struct uclass *uc; local 193 ret = uclass_get(id, &uc); 199 if (!strncmp(uc->uc_drv->name, uclass, 203 if (!strcmp(uc->uc_drv->name, uclass)) 242 struct uclass *uc; local 250 ret = uclass_get(entry->id, &uc); [all...] |
/u-boot/lib/bzip2/ |
H A D | bzlib_decompress.c | 150 UChar uc; local 239 GET_UCHAR(BZ_X_MAGIC_1, uc); 240 if (uc != BZ_HDR_B) RETURN(BZ_DATA_ERROR_MAGIC); 242 GET_UCHAR(BZ_X_MAGIC_2, uc); 243 if (uc != BZ_HDR_Z) RETURN(BZ_DATA_ERROR_MAGIC); 245 GET_UCHAR(BZ_X_MAGIC_3, uc) 246 if (uc != BZ_HDR_h) RETURN(BZ_DATA_ERROR_MAGIC); 264 GET_UCHAR(BZ_X_BLKHDR_1, uc); 266 if (uc == 0x17) goto endhdr_2; 267 if (uc ! [all...] |
/u-boot/cmd/ |
H A D | lsblk.c | 18 struct uclass *uc; local 22 ret = uclass_get(UCLASS_BLK, &uc); 34 uclass_foreach_dev(udev, uc) {
|
/u-boot/cmd/mvebu/ |
H A D | comphy_rx_training.c | 20 struct uclass *uc; local 31 ret = uclass_get(UCLASS_MISC, &uc); 37 uclass_foreach_dev(dev, uc) {
|
/u-boot/drivers/net/ |
H A D | pcnet.c | 85 struct pcnet_uncached_priv *uc; member in struct:pcnet_priv 205 struct pcnet_uncached_priv *uc; local 239 uc = lp->uc; 241 uc->init_block.mode = cpu_to_le16(0x0000); 242 uc->init_block.filter[0] = 0x00000000; 243 uc->init_block.filter[1] = 0x00000000; 251 uc->rx_ring[i].base = cpu_to_le32(addr); 252 uc->rx_ring[i].buf_length = cpu_to_le16(-PKT_BUF_SZ); 253 uc [all...] |
/u-boot/include/dm/ |
H A D | uclass.h | 147 * @uc: Uclass to check 150 void *uclass_get_priv(const struct uclass *uc); 468 * @uc: temporary uclass variable (``struct uclass *``) 470 #define uclass_id_foreach_dev(id, pos, uc) \ 471 if (!uclass_get(id, &uc)) \ 472 list_for_each_entry(pos, &uc->dev_head, uclass_node) 482 * @uc: uclass to scan (`struct uclass *`) 484 #define uclass_foreach_dev(pos, uc) \ 485 list_for_each_entry(pos, &uc->dev_head, uclass_node) 497 * @uc [all...] |
H A D | uclass-internal.h | 75 * @uc Uclass to update 78 void uclass_set_priv(struct uclass *uc, void *priv); 91 * @uc: uclass to check 94 int uclass_find_next_free_seq(struct uclass *uc); 345 * @uc: uclass to destroy 348 int uclass_destroy(struct uclass *uc);
|
/u-boot/boot/ |
H A D | prog_boot.c | 23 struct uclass *uc; local 26 uclass_id_foreach_dev(UCLASS_BOOTMETH, dev, uc)
|
/u-boot/drivers/block/ |
H A D | host-uclass.c | 142 struct uclass *uc; local 144 uclass_id_foreach_dev(UCLASS_HOST, dev, uc) { 156 struct uclass *uc = uclass_find(UCLASS_HOST); local 158 if (uc) { 159 struct host_priv *priv = uclass_get_priv(uc); 169 struct uclass *uc = uclass_find(UCLASS_HOST); local 171 if (uc) { 172 struct host_priv *priv = uclass_get_priv(uc);
|
H A D | blk-uclass.c | 114 struct uclass *uc; local 130 ret = uclass_get(UCLASS_BLK, &uc); 133 uclass_foreach_dev(dev, uc) { 186 struct uclass *uc; local 190 ret = uclass_get(UCLASS_BLK, &uc); 193 uclass_foreach_dev(dev, uc) { 379 struct uclass *uc; local 383 ret = uclass_get(UCLASS_BLK, &uc); 386 uclass_foreach_dev(dev, uc) { 574 struct uclass *uc; local 675 struct uclass *uc; local 768 struct uclass *uc; local [all...] |
/u-boot/drivers/button/ |
H A D | button-uclass.c | 18 struct uclass *uc; local 20 uclass_id_foreach_dev(UCLASS_BUTTON, dev, uc) {
|
/u-boot/arch/arm/mach-rockchip/ |
H A D | boot_mode.c | 46 struct uclass *uc; local 49 ret = uclass_get(UCLASS_ADC, &uc); 54 uclass_foreach_dev(dev, uc) {
|
/u-boot/drivers/w1-eeprom/ |
H A D | w1-eeprom-uclass.c | 65 struct uclass *uc; local 68 ret = uclass_get(UCLASS_W1_EEPROM, &uc); 74 uclass_foreach_dev(dev, uc) {
|
/u-boot/drivers/input/ |
H A D | button_kbd.c | 38 struct uclass *uc; local 50 if (uclass_get(UCLASS_BUTTON, &uc)) 57 uclass_foreach_dev_safe(button_gpio_devp, next_devp, uc) { 75 struct uclass *uc; local 79 uclass_id_foreach_dev(UCLASS_BUTTON, button_gpio_devp, uc) {
|
/u-boot/test/dm/ |
H A D | test-uclass.c | 74 struct uclass *uc = dev->uclass; local 82 if (&prev->uclass_node != &uc->dev_head) { 102 static int test_init(struct uclass *uc) argument 107 ut_assert(uclass_get_priv(uc)); 112 static int test_destroy(struct uclass *uc) argument
|
H A D | mdio.c | 27 struct uclass *uc; local 32 ut_assertok(uclass_get(UCLASS_MDIO, &uc));
|
H A D | bus.c | 28 struct uclass *uc; local 30 ut_assertok(uclass_get(UCLASS_TEST_FDT, &uc)); 31 ut_asserteq(num_devices, list_count_items(&uc->dev_head)); 37 ut_assertok(uclass_get(UCLASS_TEST_FDT, &uc)); 38 ut_asserteq(num_devices, list_count_items(&uc->dev_head)); 146 struct uclass *uc; local 172 ut_assertok(uclass_get(UCLASS_TEST_FDT, &uc)); 174 uclass_foreach_dev(dev, uc) { 189 uclass_foreach_dev(dev, uc) { 243 struct uclass *uc; local [all...] |
/u-boot/common/ |
H A D | ddr_spd.c | 146 if (spd->mod_section.uc[126] != crc_lsb || 147 spd->mod_section.uc[127] != crc_msb) { 151 spd->mod_section.uc[126], 152 crc_lsb, spd->mod_section.uc[127],
|
/u-boot/arch/x86/cpu/ |
H A D | qfw_cpu.c | 20 struct uclass *uc; local 26 ret = uclass_get(UCLASS_CPU, &uc);
|
/u-boot/drivers/usb/host/ |
H A D | usb-uclass.c | 180 struct uclass *uc; local 185 ret = uclass_get(UCLASS_USB, &uc); 189 uc_priv = uclass_get_priv(uc); 191 uclass_foreach_dev(bus, uc) { 246 static void remove_inactive_children(struct uclass *uc, struct udevice *bus) argument 248 uclass_foreach_dev(bus, uc) { 297 struct uclass *uc; local 302 ret = uclass_get(UCLASS_USB, &uc); 306 uc_priv = uclass_get_priv(uc); 308 uclass_foreach_dev(bus, uc) { 742 struct uclass *uc; local [all...] |
/u-boot/lib/ |
H A D | display_options.c | 158 uint8_t uc[MAX_LINE_LENGTH_BYTES/sizeof(uint8_t) + 1]; member in union:linebuf 192 x = lb.uc[i] = *(volatile uint8_t *)data; 206 if (!isprint(lb.uc[i]) || lb.uc[i] >= 0x80) 207 lb.uc[i] = '.'; 209 lb.uc[i] = '\0'; 210 out += sprintf(out, " %s", lb.uc);
|