| /rk3399_rockchip-uboot/arch/x86/lib/ |
| H A D | relocate.c | 29 size_t len = (uintptr_t)&__data_end - (uintptr_t)&__text_start; in copy_uboot_to_ram() 41 size_t len = (uintptr_t)&__bss_end - (uintptr_t)&__bss_start; in clear_bss() 51 static void do_elf_reloc_fixups64(unsigned int text_base, uintptr_t size, in do_elf_reloc_fixups64() 59 offset_ptr_rom = (Elf64_Addr *)(uintptr_t)re_src->r_offset; in do_elf_reloc_fixups64() 62 if (offset_ptr_rom >= (Elf64_Addr *)(uintptr_t)text_base && in do_elf_reloc_fixups64() 90 static void do_elf_reloc_fixups32(unsigned int text_base, uintptr_t size, in do_elf_reloc_fixups32() 98 offset_ptr_rom = (Elf32_Addr *)(uintptr_t)re_src->r_offset; in do_elf_reloc_fixups32() 101 if (offset_ptr_rom >= (Elf32_Addr *)(uintptr_t)text_base && in do_elf_reloc_fixups32() 141 uintptr_t size = (uintptr_t)&__bss_end - (uintptr_t)&__text_start; in do_elf_reloc_fixups()
|
| H A D | physmem.c | 67 static void x86_phys_map_page(uintptr_t virt, phys_addr_t phys, int invlpg) in x86_phys_map_page() 70 uintptr_t pdpt_idx = (virt >> 30) & 0x3; in x86_phys_map_page() 71 uintptr_t pdt_idx = (virt >> 21) & 0x1ff; in x86_phys_map_page() 106 pdpt[i].base = ((uintptr_t)&pdts[i]) >> 12; in x86_phys_enter_paging() 134 static void x86_phys_memset_page(phys_addr_t map_addr, uintptr_t offset, int c, in x86_phys_memset_page() 141 const uintptr_t window = LARGE_PAGE_SIZE; in x86_phys_memset_page() 157 const phys_addr_t max_addr = (phys_addr_t)~(uintptr_t)0; in arch_phys_memset() 166 void *start_ptr = (void *)(uintptr_t)start; in arch_phys_memset() 168 assert(((phys_addr_t)(uintptr_t)start) == start); in arch_phys_memset()
|
| /rk3399_rockchip-uboot/api/ |
| H A D | api.c | 55 if ((c = (int *)va_arg(ap, uintptr_t)) == NULL) in API_getc() 71 if ((t = (int *)va_arg(ap, uintptr_t)) == NULL) in API_tstc() 87 if ((c = (char *)va_arg(ap, uintptr_t)) == NULL) in API_putc() 103 if ((s = (char *)va_arg(ap, uintptr_t)) == NULL) in API_puts() 135 si = (struct sys_info *)va_arg(ap, uintptr_t); in API_get_sys_info() 202 di = (struct device_info *)va_arg(ap, uintptr_t); in API_dev_enum() 236 di = (struct device_info *)va_arg(ap, uintptr_t); in API_dev_open() 268 di = (struct device_info *)va_arg(ap, uintptr_t); in API_dev_close() 322 di = (struct device_info *)va_arg(ap, uintptr_t); in API_dev_write() 332 buf = (void *)va_arg(ap, uintptr_t); in API_dev_write() [all …]
|
| /rk3399_rockchip-uboot/include/cavium/ |
| H A D | atf.h | 10 ssize_t atf_read_mmc(uintptr_t offset, void *buffer, size_t size); 11 ssize_t atf_read_nor(uintptr_t offset, void *buffer, size_t size); 14 ssize_t atf_erase_nor(uintptr_t offset, size_t size); 15 ssize_t atf_write_nor(uintptr_t offset, const void *buffer, size_t size); 16 ssize_t atf_write_mmc(uintptr_t offset, const void *buffer, size_t size);
|
| /rk3399_rockchip-uboot/common/spl/ |
| H A D | spl_atf.c | 35 uintptr_t bl32_entry, in bl2_plat_get_bl31_params() 36 uintptr_t bl33_entry) in bl2_plat_get_bl31_params() 124 uintptr_t bl31_entry, uintptr_t bl32_entry, in bl31_entry() 125 uintptr_t bl33_entry, uintptr_t fdt_addr) in bl31_entry() 159 uintptr_t spl_fit_images_get_entry(void *blob, int node) in spl_fit_images_get_entry() 173 uintptr_t bl32_entry, bl33_entry; in spl_invoke_atf() 175 uintptr_t platform_param = (uintptr_t)blob; in spl_invoke_atf()
|
| /rk3399_rockchip-uboot/lib/ |
| H A D | physmem.c | 17 void *s_ptr = (void *)(uintptr_t)s; in arch_phys_memset() 19 assert(((phys_addr_t)(uintptr_t)s) == s); in arch_phys_memset() 20 assert(((phys_addr_t)(uintptr_t)(s + n)) == s + n); in arch_phys_memset() 21 return (phys_addr_t)(uintptr_t)memset(s_ptr, c, n); in arch_phys_memset()
|
| H A D | trace.c | 29 uintptr_t *call_accum; 44 static inline uintptr_t __attribute__((no_instrument_function)) 47 uintptr_t offset = (uintptr_t)func_ptr; in func_ptr_to_num() 50 offset -= (uintptr_t)&_init; in func_ptr_to_num() 310 needed = sizeof(*hdr) + func_count * sizeof(uintptr_t); in trace_init() 320 hdr->call_accum = (uintptr_t *)(hdr + 1); in trace_init() 346 needed = sizeof(*hdr) + func_count * sizeof(uintptr_t); in trace_early_init() 354 hdr->call_accum = (uintptr_t *)(hdr + 1); in trace_early_init()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | spl.h | 31 uintptr_t load_addr; 32 uintptr_t entry_point; /* Next stage entry point */ 34 uintptr_t entry_point_bl32; 35 uintptr_t entry_point_bl33; 38 uintptr_t entry_point_os; /* point to uboot or kernel */ 298 uintptr_t bl31_entry, uintptr_t bl32_entry, 299 uintptr_t bl33_entry, uintptr_t fdt_addr);
|
| H A D | fsl_validate.h | 221 uintptr_t ie_addr; 236 uintptr_t ie_addr; 260 uintptr_t ehdrloc; /* ESBC Header location */ 261 uintptr_t *img_addr_ptr; /* ESBC Image Location */ 268 int fsl_secboot_validate(uintptr_t haddr, char *arg_hash_str, 269 uintptr_t *img_addr_ptr); 283 void spl_validate_uboot(uint32_t hdr_addr, uintptr_t img_addr);
|
| H A D | mapmem.h | 19 return (void *)(uintptr_t)paddr; in map_sysmem() 28 return (phys_addr_t)(uintptr_t)ptr; in map_to_sysmem()
|
| /rk3399_rockchip-uboot/drivers/usb/host/ |
| H A D | ehci-rcar_gen3.c | 61 setbits_le32((uintptr_t)(base + EHCI_USBCMD), CMD_RESET); in ehci_hcd_stop() 62 ret = wait_for_bit_le32((void *)(uintptr_t)base + EHCI_USBCMD, in ehci_hcd_stop() 81 (void __iomem *)(uintptr_t)RCAR_GEN3_USB_BASE(index); in ehci_hcd_init() 82 struct usb_ehci *ehci = (struct usb_ehci *)(uintptr_t)base; in ehci_hcd_init() 87 *hccr = (struct ehci_hccr *)((uintptr_t)&ehci->caplength); in ehci_hcd_init() 88 *hcor = (struct ehci_hcor *)((uintptr_t)*hccr + in ehci_hcd_init()
|
| H A D | xhci-fsl.c | 140 hcor = (struct xhci_hcor *)((uintptr_t) hccr in xhci_fsl_probe() 144 (uintptr_t)hccr, (uintptr_t)hcor, in xhci_fsl_probe() 145 (uintptr_t)HC_LENGTH(xhci_readl(&hccr->cr_capbase))); in xhci_fsl_probe() 199 *hcor = (struct xhci_hcor *)((uintptr_t) *hccr in xhci_hcd_init() 203 (uintptr_t)*hccr, (uintptr_t)*hcor, in xhci_hcd_init() 204 (uintptr_t)HC_LENGTH(xhci_readl(&(*hccr)->cr_capbase))); in xhci_hcd_init()
|
| H A D | xhci-mem.c | 35 void xhci_flush_cache(uintptr_t addr, u32 len) in xhci_flush_cache() 50 void xhci_inval_cache(uintptr_t addr, u32 len) in xhci_inval_cache() 111 free((void *)(uintptr_t)ctrl->scratchpad->sp_array[0]); in xhci_scratchpad_free() 199 xhci_flush_cache((uintptr_t)ptr, size); in xhci_malloc() 225 val_64 = (uintptr_t)next->trbs; in xhci_link_segments() 371 cpu_to_le64((uintptr_t)scratchpad->sp_array); in xhci_scratchpad_alloc() 373 xhci_flush_cache((uintptr_t)&ctrl->dcbaa->dev_context_ptrs[0], in xhci_scratchpad_alloc() 389 xhci_flush_cache((uintptr_t)buf, num_sp * page_size); in xhci_scratchpad_alloc() 392 uintptr_t ptr = (uintptr_t)buf + i * page_size; in xhci_scratchpad_alloc() 484 byte_64 = (uintptr_t)(virt_dev->out_ctx->bytes); in xhci_alloc_virt_device() [all …]
|
| H A D | xhci-ring.c | 125 xhci_flush_cache((uintptr_t)next, in inc_enq() 194 xhci_flush_cache((uintptr_t)trb, sizeof(struct xhci_generic_trb)); in queue_trb() 247 xhci_flush_cache((uintptr_t)next, sizeof(union xhci_trb)); in prepare_ring() 276 u64 val_64 = (uintptr_t)ptr; in xhci_queue_command() 374 xhci_flush_cache((uintptr_t)start_trb, sizeof(struct xhci_generic_trb)); in giveback_first_trb() 400 (uintptr_t)ctrl->event_ring->dequeue | ERST_EHB); in xhci_acknowledge_event() 413 xhci_inval_cache((uintptr_t)ctrl->event_ring->dequeue, in event_ready() 498 xhci_queue_command(ctrl, (void *)((uintptr_t)ring->enqueue | in reset_ep() 547 xhci_queue_command(ctrl, (void *)((uintptr_t)ring->enqueue | in abort_td() 620 u64 val_64 = (uintptr_t)buffer; in xhci_bulk_tx() [all …]
|
| /rk3399_rockchip-uboot/drivers/net/ |
| H A D | sun8i_emac.c | 341 flush_dcache_range((uintptr_t)rxbuffs, (ulong)rxbuffs + in rx_descs_init() 346 desc_p->buf_addr = (uintptr_t)&rxbuffs[idx * CONFIG_ETH_BUFSIZE] in rx_descs_init() 348 desc_p->next = (uintptr_t)&desc_table_p[idx + 1]; in rx_descs_init() 354 desc_p->next = (uintptr_t)&desc_table_p[0]; in rx_descs_init() 356 flush_dcache_range((uintptr_t)priv->rx_chain, in rx_descs_init() 357 (uintptr_t)priv->rx_chain + in rx_descs_init() 360 writel((uintptr_t)&desc_table_p[0], (priv->mac_reg + EMAC_RX_DMA_DESC)); in rx_descs_init() 373 desc_p->buf_addr = (uintptr_t)&txbuffs[idx * CONFIG_ETH_BUFSIZE] in tx_descs_init() 375 desc_p->next = (uintptr_t)&desc_table_p[idx + 1]; in tx_descs_init() 381 desc_p->next = (uintptr_t)&desc_table_p[0]; in tx_descs_init() [all …]
|
| H A D | ravb.c | 134 u32 start = addr & ~((uintptr_t)ARCH_DMA_MINALIGN - 1); in ravb_invalidate_dcache() 146 ravb_flush_dcache((uintptr_t)packet, len); in ravb_send() 149 desc->dptr = (uintptr_t)packet; in ravb_send() 150 ravb_flush_dcache((uintptr_t)desc, sizeof(*desc)); in ravb_send() 159 ravb_invalidate_dcache((uintptr_t)desc, sizeof(*desc)); in ravb_send() 180 ravb_invalidate_dcache((uintptr_t)desc, sizeof(*desc)); in ravb_recv() 191 packet = (u8 *)(uintptr_t)desc->data.dptr; in ravb_recv() 192 ravb_invalidate_dcache((uintptr_t)packet, len); in ravb_recv() 205 ravb_flush_dcache((uintptr_t)desc, sizeof(*desc)); in ravb_free_pkt() 210 ravb_invalidate_dcache((uintptr_t)desc, sizeof(*desc)); in ravb_free_pkt() [all …]
|
| /rk3399_rockchip-uboot/board/cavium/thunderx/ |
| H A D | atf.c | 21 ssize_t atf_read_mmc(uintptr_t offset, void *buffer, size_t size) in atf_read_mmc() 27 regs.regs[3] = (uintptr_t)buffer; in atf_read_mmc() 34 ssize_t atf_read_nor(uintptr_t offset, void *buffer, size_t size) in atf_read_nor() 40 regs.regs[3] = (uintptr_t)buffer; in atf_read_nor() 61 regs.regs[1] = (uintptr_t)part; in atf_get_part() 69 ssize_t atf_erase_nor(uintptr_t offset, size_t size) in atf_erase_nor() 81 ssize_t atf_write_nor(uintptr_t offset, const void *buffer, size_t size) in atf_write_nor() 88 regs.regs[3] = (uintptr_t)buffer; in atf_write_nor() 95 ssize_t atf_write_mmc(uintptr_t offset, const void *buffer, size_t size) in atf_write_mmc() 102 regs.regs[3] = (uintptr_t)buffer; in atf_write_mmc()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/rk3368/ |
| H A D | rk3368.c | 232 static inline uintptr_t sgrf_soc_con_addr(unsigned no) in sgrf_soc_con_addr() 234 const uintptr_t SGRF_BASE = in sgrf_soc_con_addr() 235 (uintptr_t)syscon_get_first_range(ROCKCHIP_SYSCON_SGRF); in sgrf_soc_con_addr() 240 static inline uintptr_t sgrf_busdmac_addr(unsigned no) in sgrf_busdmac_addr() 242 const uintptr_t SGRF_BASE = in sgrf_busdmac_addr() 243 (uintptr_t)syscon_get_first_range(ROCKCHIP_SYSCON_SGRF); in sgrf_busdmac_addr() 244 const uintptr_t SGRF_BUSDMAC_OFFSET = 0x100; in sgrf_busdmac_addr() 245 const uintptr_t SGRF_BUSDMAC_BASE = SGRF_BASE + SGRF_BUSDMAC_OFFSET; in sgrf_busdmac_addr()
|
| /rk3399_rockchip-uboot/board/freescale/common/ |
| H A D | cmd_esbc_validate.c | 30 uintptr_t haddr; in do_esbc_validate() 32 uintptr_t img_addr = 0; in do_esbc_validate() 42 haddr = (uintptr_t)simple_strtoul(argv[1], NULL, 16); in do_esbc_validate()
|
| H A D | fsl_validate.c | 116 if (memcmp((u8 *)(uintptr_t)csf_hdr_addr, in get_csf_base_addr() 127 static int get_ie_info_addr(uintptr_t *ie_addr) in get_ie_info_addr() 140 static int get_ie_info_addr(uintptr_t *ie_addr) in get_ie_info_addr() 149 hdr = (struct fsl_secboot_img_hdr *)(uintptr_t)csf_addr; in get_ie_info_addr() 162 sg_tbl = (struct fsl_secboot_sg_table *)(uintptr_t)(csf_addr + in get_ie_info_addr() 168 *ie_addr = (uintptr_t)((sg_tbl->src_addr & in get_ie_info_addr() 172 *ie_addr = (uintptr_t)sg_tbl->src_addr; in get_ie_info_addr() 225 void *esbc = (u8 *)(uintptr_t)img->ehdrloc; in read_validate_srk_tbl() 263 void *esbc = (u8 *)(uintptr_t)img->ehdrloc; in read_validate_single_key() 279 static void install_ie_tbl(uintptr_t ie_tbl_addr, in install_ie_tbl() [all …]
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | blob.c | 76 km_ptr = (uint8_t *)(uintptr_t)key_addr; in do_blob() 77 src_ptr = (uint8_t *)(uintptr_t)src_addr; in do_blob() 78 dst_ptr = (uint8_t *)(uintptr_t)dst_addr; in do_blob()
|
| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | bcm_udc_otg.h | 12 static inline void wfld_set(uintptr_t addr, uint32_t fld_val, uint32_t fld_mask) in wfld_set() 17 static inline void wfld_clear(uintptr_t addr, uint32_t fld_mask) in wfld_clear()
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | mkimage.h | 35 return (void *)(uintptr_t)paddr; in map_sysmem() 40 return (ulong)(uintptr_t)ptr; in map_to_sysmem()
|
| /rk3399_rockchip-uboot/drivers/pci/ |
| H A D | pcie_dw_mvebu.c | 142 static uintptr_t set_cfg_address(struct pcie_dw_mvebu *pcie, in set_cfg_address() 145 uintptr_t va_address; in set_cfg_address() 163 va_address = (uintptr_t)pcie->ctrl_base; in set_cfg_address() 166 va_address = (uintptr_t)pcie->cfg_base; in set_cfg_address() 214 uintptr_t va_address; in pcie_dw_mvebu_read_config() 256 uintptr_t va_address; in pcie_dw_mvebu_write_config() 405 writel((u32)(uintptr_t)pcie->cfg_base, pcie->ctrl_base in pcie_dw_regions_setup() 408 writel((u32)(uintptr_t)pcie->cfg_base + pcie->cfg_size, in pcie_dw_regions_setup()
|
| /rk3399_rockchip-uboot/arch/arm/mach-snapdragon/ |
| H A D | clock-apq8016.c | 101 uintptr_t cfg_rcgr; 102 uintptr_t cmd_rcgr; 103 uintptr_t M; 104 uintptr_t N; 105 uintptr_t D;
|