| /f-stack/freebsd/contrib/octeon-sdk/ |
| H A D | cvmx-scratch.h | 80 return *CASTPTR(volatile uint8_t, CVMX_SCRATCH_BASE + address); in cvmx_scratch_read8() 91 return *CASTPTR(volatile uint16_t, CVMX_SCRATCH_BASE + address); in cvmx_scratch_read16() 102 return *CASTPTR(volatile uint32_t, CVMX_SCRATCH_BASE + address); in cvmx_scratch_read32() 113 return *CASTPTR(volatile uint64_t, CVMX_SCRATCH_BASE + address); in cvmx_scratch_read64() 126 *CASTPTR(volatile uint8_t, CVMX_SCRATCH_BASE + address) = (uint8_t)value; in cvmx_scratch_write8() 136 *CASTPTR(volatile uint16_t, CVMX_SCRATCH_BASE + address) = (uint16_t)value; in cvmx_scratch_write16() 146 *CASTPTR(volatile uint32_t, CVMX_SCRATCH_BASE + address) = (uint32_t)value; in cvmx_scratch_write32() 156 *CASTPTR(volatile uint64_t, CVMX_SCRATCH_BASE + address) = value; in cvmx_scratch_write64()
|
| H A D | cvmx-access-native.h | 199 return CASTPTR(void, physical_address); in cvmx_phys_to_ptr() 232 return CASTPTR(void, CVMX_ADD_SEG32(CVMX_MIPS32_SPACE_KSEG0, physical_address)); in cvmx_phys_to_ptr() 236 return CASTPTR(void, physical_address + linux_mem32_offset); in cvmx_phys_to_ptr() 242 return CASTPTR(void, CVMX_ADD_SEG32(CVMX_MIPS32_SPACE_KSEG0, physical_address)); in cvmx_phys_to_ptr() 251 return CASTPTR(void, physical_address - 0x400000000ull); in cvmx_phys_to_ptr() 253 return CASTPTR(void, physical_address); in cvmx_phys_to_ptr() 256 return CASTPTR(void, CVMX_ADD_SEG(CVMX_MIPS_SPACE_XKPHYS, physical_address)); in cvmx_phys_to_ptr() 259 return CASTPTR(void, CVMX_ADD_SEG32(CVMX_MIPS32_SPACE_KSEG0, physical_address)); in cvmx_phys_to_ptr() 270 return CASTPTR(void, physical_address); in cvmx_phys_to_ptr() 295 *CASTPTR(volatile TYPE##_t, addr) = val; \ [all …]
|
| H A D | cvmx-log.c | 164 cvmx_log_buffer_head_ptr = CASTPTR(uint64_t, *cvmx_log_buffer_end_ptr); in __cvmx_log_full_process() 213 cvmx_log_buffer_write_ptr = CASTPTR(uint64_t, *cvmx_log_buffer_end_ptr); in __cvmx_log_write() 443 cvmx_log_buffer_read_ptr = CASTPTR(uint64_t, *cvmx_log_buffer_read_end_ptr); in __cvmx_log_read() 491 printf(CASTPTR(const char, __cvmx_log_read())); in cvmx_log_display() 494 printf(CASTPTR(const char, __cvmx_log_read()), __cvmx_log_read()); in cvmx_log_display() 497 … printf(CASTPTR(const char, __cvmx_log_read()), __cvmx_log_read(), __cvmx_log_read()); in cvmx_log_display() 500 …printf(CASTPTR(const char, __cvmx_log_read()), __cvmx_log_read(), __cvmx_log_read(), __cvmx_log_re… in cvmx_log_display() 503 …printf(CASTPTR(const char, __cvmx_log_read()), __cvmx_log_read(), __cvmx_log_read(), __cvmx_log_re… in cvmx_log_display() 518 printf("struct %s", CASTPTR(const char, __cvmx_log_read())); in cvmx_log_display()
|
| H A D | cvmx-ebt3000.c | 66 …char *led_base = CASTPTR(char , CVMX_ADD_SEG32(CVMX_MIPS32_SPACE_KSEG0, cvmx_sysinfo_get()->led_di… in ebt3000_char_write() 91 …led_base = CASTPTR(char, CVMX_ADD_SEG32(CVMX_MIPS32_SPACE_KSEG0, cvmx_sysinfo_get()->led_display_b… in ebt3000_str_write()
|
| H A D | cvmx-app-init.c | 109 cvmx_bootinfo_t *cvmx_bootinfo_ptr = CASTPTR(cvmx_bootinfo_t, app_desc_ptr->cvmx_desc_vaddr); in process_boot_desc_ver_6() 296 octeon_boot_descriptor_t *app_desc_ptr = CASTPTR(octeon_boot_descriptor_t, app_desc_addr); in __cvmx_app_init() 310 … cvmx_bootmem_init(CASTPTR(cvmx_bootinfo_t, app_desc_ptr->cvmx_desc_vaddr)->phy_mem_desc_addr); in __cvmx_app_init() 384 …const char *argv = CASTPTR(const char, CVMX_ADD_SEG32(CVMX_MIPS32_SPACE_KSEG0, app_desc_ptr->argv[… in __cvmx_app_init() 393 …int32_t *trampoline = CASTPTR(int32_t, CVMX_ADD_SEG32(CVMX_MIPS32_SPACE_KSEG0, BOOTLOADER_DEBUG_TR… in __cvmx_app_init()
|
| H A D | cvmx-app-hotplug.c | 366 ((void(*)(void*))(long)ai->shutdown_callback)(CASTPTR(void *, ai->data)); in __cvmx_app_hotplug_shutdown() 392 ((void(*)(void*))(long)ai->unplug_callback)(CASTPTR(void *, in __cvmx_app_hotplug_shutdown() 409 (ai->unplug_cores, CASTPTR(void *, ai->data)); in __cvmx_app_hotplug_shutdown() 424 (ai->hplugged_cores, CASTPTR(void *, ai->data)); in __cvmx_app_hotplug_shutdown() 560 hgp = CASTPTR(void, CVMX_ADD_SEG(CVMX_MIPS_SPACE_XKPHYS, block_desc->base_addr)); in cvmx_app_get_hotplug_global_ptr()
|
| H A D | cvmx-dfa.c | 110 final_base_address = CASTPTR(void, (final_state.s2.base_address_div32 * 32ull)); in cvmx_dfa_shutdown()
|
| H A D | cvmx-utils.h | 100 #define CASTPTR(type, v) ((type *)(long)(v)) macro
|
| H A D | cvmx-app-init-linux.c | 281 linux_mem32_base_ptr = CASTPTR(void, (1ull<<31) - region_size); in setup_reserve32()
|
| H A D | cvmx-debug.c | 238 …int32_t *trampoline = CASTPTR(int32_t, CVMX_ADD_SEG32(CVMX_MIPS32_SPACE_KSEG0, BOOTLOADER_DEBUG_TR… in cvmx_debug_install_handler() 256 p = CASTPTR(cvmx_debug_globals_t, CVMX_ADD_SEG32(CVMX_MIPS32_SPACE_KSEG0, phys)); in cvmx_debug_init_global_ptr() 274 … cvmx_debug_globals = CASTPTR(cvmx_debug_globals_t, CVMX_ADD_SEG32(CVMX_MIPS32_SPACE_KSEG0, phys)); in cvmx_debug_init_globals()
|
| H A D | cvmx-shmem.c | 89 nbase = CASTPTR(void *, nbase_64); in __cvmx_shmem_vsbrk_64()
|
| H A D | cvmx-helper-board.c | 205 const void *fdt_addr = CASTPTR(const void *, cvmx_sysinfo_get()->fdt_addr); in __get_phy_info_from_dt() 1532 const void *fdt_addr = CASTPTR(const void *, cvmx_sysinfo_get()->fdt_addr); in __cvmx_helper_board_usb_get_clock_type()
|
| H A D | cvmx-dfa.h | 659 head = &((CASTPTR(cvmx_dfa_command_t, (cvmx_dfa_state.s2.base_address_div32 * 32ull))[index])); in __cvmx_dfa_write_command()
|
| H A D | cvmx-interrupt.c | 1170 …low_level_loc = CASTPTR(void, CVMX_ADD_SEG32(CVMX_MIPS32_SPACE_KSEG0,sys_info_ptr->exception_base_… in cvmx_interrupt_initialize()
|