/Zephyr-latest/drivers/pcie/host/ |
D | pcie.c | 124 uintptr_t phys_addr; in pcie_get_bar() local 139 phys_addr = pcie_conf_read(bdf, reg); in pcie_get_bar() 141 if ((PCIE_CONF_BAR_MEM(phys_addr) && io) || (PCIE_CONF_BAR_IO(phys_addr) && !io)) { in pcie_get_bar() 146 if (PCIE_CONF_BAR_INVAL_FLAGS(phys_addr)) { in pcie_get_bar() 159 pcie_conf_write(bdf, reg, (uint32_t)phys_addr); in pcie_get_bar() 161 if (IS_ENABLED(CONFIG_64BIT) && PCIE_CONF_BAR_64(phys_addr)) { in pcie_get_bar() 163 phys_addr |= ((uint64_t)pcie_conf_read(bdf, reg)) << 32; in pcie_get_bar() 165 if ((PCIE_CONF_BAR_ADDR(phys_addr) == PCIE_CONF_BAR_INVAL64) || in pcie_get_bar() 166 (PCIE_CONF_BAR_ADDR(phys_addr) == PCIE_CONF_BAR_NONE)) { in pcie_get_bar() 173 pcie_conf_write(bdf, reg, (uint32_t)((uint64_t)phys_addr >> 32)); in pcie_get_bar() [all …]
|
D | msi.c | 100 bar.phys_addr + table_offset, in map_msix_table_entries()
|
/Zephyr-latest/include/zephyr/sys/ |
D | device_mmio.h | 58 uintptr_t phys_addr; member 66 .phys_addr = DT_REG_ADDR(node_id), \ 72 .phys_addr = DT_REG_ADDR_BY_NAME(node_id, name), \ 97 static inline void device_map(mm_reg_t *virt_addr, uintptr_t phys_addr, in device_map() argument 104 k_mem_map_phys_bare((uint8_t **)virt_addr, phys_addr, size, in device_map() 110 sys_mm_drv_page_phys_get((void *) phys_addr, virt_addr); in device_map() 112 *virt_addr = phys_addr; in device_map() 288 DEVICE_MMIO_ROM_PTR(dev)->phys_addr, \ 536 (DEVICE_MMIO_NAMED_ROM_PTR((dev), name)->phys_addr), \ 717 Z_TOPLEVEL_ROM_NAME(name).phys_addr, \
|
/Zephyr-latest/subsys/shell/modules/ |
D | devmem_service.c | 43 static int memory_dump(const struct shell *sh, mem_addr_t phys_addr, size_t size, uint8_t width) in memory_dump() argument 52 device_map((mm_reg_t *)&addr, phys_addr, size, K_MEM_CACHE_NONE); in memory_dump() 54 shell_print(sh, "Mapped 0x%lx to 0x%lx\n", phys_addr, addr); in memory_dump() 56 addr = phys_addr; in memory_dump() 312 mem_addr_t phys_addr, addr; in cmd_devmem() local 316 phys_addr = strtoul(argv[1], NULL, 16); in cmd_devmem() 319 device_map((mm_reg_t *)&addr, phys_addr, 0x100, K_MEM_CACHE_NONE); in cmd_devmem() 321 shell_print(sh, "Mapped 0x%lx to 0x%lx\n", phys_addr, addr); in cmd_devmem() 323 addr = phys_addr; in cmd_devmem()
|
/Zephyr-latest/drivers/mm/ |
D | mm_drv_intel_adsp_mtl_tlb.c | 818 uint32_t phys_addr; in adsp_mm_save_context() local 828 phys_addr = POINTER_TO_UINT(L2_SRAM_BASE) + in adsp_mm_save_context() 832 UINT_TO_POINTER(phys_addr), 1)) { in adsp_mm_save_context() 838 entry_idx = get_tlb_entry_idx(phys_addr); in adsp_mm_save_context() 839 entry = pa_to_tlb_entry(phys_addr); in adsp_mm_save_context() 852 arch_mem_map(UINT_TO_POINTER(phys_addr), phys_addr, CONFIG_MM_DRV_PAGE_SIZE, in adsp_mm_save_context() 860 sys_cache_data_invd_range(UINT_TO_POINTER(phys_addr), in adsp_mm_save_context() 865 *((uint32_t *) location) = phys_addr; in adsp_mm_save_context() 870 UINT_TO_POINTER(phys_addr), in adsp_mm_save_context() 893 uint32_t phys_addr; in adsp_mm_restore_context() local [all …]
|
/Zephyr-latest/tests/kernel/device/src/ |
D | mmio.c | 84 zassert_equal(rom->phys_addr, DT_INST_REG_ADDR(0), "bad phys_addr"); in ZTEST() 176 zassert_equal(rom_corge->phys_addr, DT_INST_REG_ADDR(1), in ZTEST() 180 zassert_equal(rom_grault->phys_addr, DT_INST_REG_ADDR(2), in ZTEST() 238 zassert_equal(rom_foo3->phys_addr, DT_INST_REG_ADDR(3), in ZTEST() 242 zassert_equal(rom_foo4->phys_addr, DT_INST_REG_ADDR(4), in ZTEST()
|
D | mmio_multireg.c | 78 zassert_equal(rom_chip->phys_addr, DT_INST_REG_ADDR_BY_NAME(0, chip), in ZTEST() 82 zassert_equal(rom_dale->phys_addr, DT_INST_REG_ADDR_BY_NAME(0, dale), in ZTEST()
|
/Zephyr-latest/drivers/firmware/scmi/ |
D | shmem.c | 21 uintptr_t phys_addr; member 182 device_map(&data->regmap, cfg->phys_addr, cfg->size, K_MEM_CACHE_NONE); in scmi_shmem_init() 189 .phys_addr = DT_INST_REG_ADDR(inst), \
|
/Zephyr-latest/drivers/can/ |
D | can_kvaser_pci.c | 89 amcc_base = iobar.phys_addr; in can_kvaser_pci_init() 97 kvaser_data->sja1000_base = iobar.phys_addr; in can_kvaser_pci_init() 105 xlnx_base = iobar.phys_addr; in can_kvaser_pci_init()
|
/Zephyr-latest/arch/x86/core/ |
D | pcie.c | 46 uintptr_t phys_addr; in pcie_mm_init() local 52 phys_addr = m->pci_segs[i].Address; in pcie_mm_init() 56 device_map((mm_reg_t *)&bus_segs[i].mmio, phys_addr, size, in pcie_mm_init()
|
D | early_serial.c | 98 device_map(&mmio, mbar.phys_addr, mbar.size, K_MEM_CACHE_NONE); in z_x86_early_serial_init()
|
/Zephyr-latest/tests/arch/arm64/arm64_mmu/src/ |
D | main.c | 46 static int mem_map_test(uintptr_t virt_addr, uintptr_t phys_addr, size_t size) in mem_map_test() argument 52 arch_mem_map((void *)virt_addr, phys_addr, size, K_MEM_ARM_NORMAL_NC); in mem_map_test()
|
/Zephyr-latest/drivers/virtualization/ |
D | virt_ivshmem.c | 176 device_map(DEVICE_MMIO_RAM_PTR(dev), mbar_regs.phys_addr, in ivshmem_configure() 188 uintptr_t shmem_phys_addr = mbar_shmem.phys_addr; in ivshmem_configure() 244 uintptr_t phys_addr = shmem_phys_addr + in ivshmem_configure() local 254 phys_addr, data->output_section_size, flags); in ivshmem_configure() 299 mbar_regs.phys_addr, DEVICE_MMIO_GET(dev)); in ivshmem_configure()
|
/Zephyr-latest/soc/intel/intel_adsp/tools/ |
D | cavstool.py | 134 (mem, phys_addr, hugef) = map_phys_mem(self.stream_id) 145 phys_addr, 147 phys_addr + buf0_len, 156 return (mem, hugef, phys_addr + bdl_off, phys_addr+dpib_off, 2) 305 (mem, phys_addr, _) = map_phys_mem(hda_ostream_id) 309 % (phys_addr, len(fw_bytes))) 319 phys_addr, buf0_len, 320 phys_addr + buf0_len, buf1_len) 322 return (phys_addr + bdl_off, 2)
|
/Zephyr-latest/arch/x86/ |
D | gen_mmu.py | 251 def map(self, virt_addr, phys_addr, entry_flags): argument 262 phys_addr, virt_addr, dump_flags(entry_flags))) 264 self.entries[index] = ((phys_addr & self.addr_mask) | 414 def map_page(self, virt_addr, phys_addr, flags, reserve, level=PT_LEVEL): argument 431 table.map(virt_addr, phys_addr, flags)
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_intel_blinky.c | 108 config->reg_base.phys_addr & ~0xFFU, in bk_intel_init()
|
/Zephyr-latest/drivers/serial/ |
D | uart_ns16550.c | 381 uint64_t phys_addr; member 824 device_map(DEVICE_MMIO_RAM_PTR(dev), mbar.phys_addr, mbar.size, 829 data->phys_addr = mbar.phys_addr; 867 sys_write32((uint32_t)data->phys_addr, 869 sys_write32((uint32_t)(data->phys_addr >> DMA_INTEL_LPSS_ADDR_RIGHT_SHIFT), 1557 head_block_config->source_address = data->phys_addr; 1586 dma_reload(dev, rx_params->dma_channel, data->phys_addr, 1624 tx_params->active_dma_block.dest_address = data->phys_addr; 1910 (.phys_addr = DT_INST_REG_ADDR(n),), ())
|
/Zephyr-latest/drivers/misc/timeaware_gpio/ |
D | timeaware_gpio_intel.c | 206 cfg->reg_base.phys_addr & ~0xFFU, in tgpio_init()
|
/Zephyr-latest/include/zephyr/drivers/pcie/ |
D | pcie.h | 153 uintptr_t phys_addr; member
|
/Zephyr-latest/drivers/xen/ |
D | gnttab.c | 322 xatp.gpfn = xen_virt_to_gfn(Z_TOPLEVEL_ROM_NAME(grant_tables).phys_addr) + i; in gnttab_init()
|
/Zephyr-latest/drivers/sdhc/ |
D | sdhc_cdns.c | 171 combo_phy)->phys_addr); in sdhc_cdns_init()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_e1000.c | 213 device_map(&dev->address, mbar.phys_addr, mbar.size, in e1000_probe()
|
/Zephyr-latest/drivers/disk/nvme/ |
D | nvme_controller.c | 348 device_map(DEVICE_MMIO_RAM_PTR(dev), mbar_regs.phys_addr, in nvme_controller_pcie_configure()
|
/Zephyr-latest/drivers/smbus/ |
D | intel_pch_smbus.c | 241 device_map(DEVICE_MMIO_RAM_PTR(dev), mbar.phys_addr, mbar.size, in pch_smbus_init() 245 mbar.phys_addr, mbar.size, DEVICE_MMIO_GET(dev)); in pch_smbus_init()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_dw.c | 1065 device_map(DEVICE_MMIO_RAM_PTR(dev), mbar.phys_addr, mbar.size, K_MEM_CACHE_NONE); in i2c_dw_initialize() 1077 dw->phy_addr = mbar.phys_addr; in i2c_dw_initialize()
|