Home
last modified time | relevance | path

Searched refs:phys_addr (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-Core-3.6.0/drivers/pcie/host/
Dpcie.c141 uintptr_t phys_addr; in pcie_get_bar() local
156 phys_addr = pcie_conf_read(bdf, reg); in pcie_get_bar()
158 if ((PCIE_CONF_BAR_MEM(phys_addr) && io) || (PCIE_CONF_BAR_IO(phys_addr) && !io)) { in pcie_get_bar()
163 if (PCIE_CONF_BAR_INVAL_FLAGS(phys_addr)) { in pcie_get_bar()
176 pcie_conf_write(bdf, reg, (uint32_t)phys_addr); in pcie_get_bar()
178 if (IS_ENABLED(CONFIG_64BIT) && PCIE_CONF_BAR_64(phys_addr)) { in pcie_get_bar()
180 phys_addr |= ((uint64_t)pcie_conf_read(bdf, reg)) << 32; in pcie_get_bar()
182 if (PCIE_CONF_BAR_ADDR(phys_addr) == PCIE_CONF_BAR_INVAL64 || in pcie_get_bar()
183 PCIE_CONF_BAR_ADDR(phys_addr) == PCIE_CONF_BAR_NONE) { in pcie_get_bar()
190 pcie_conf_write(bdf, reg, (uint32_t)((uint64_t)phys_addr >> 32)); in pcie_get_bar()
[all …]
Dmsi.c100 bar.phys_addr + table_offset, in map_msix_table_entries()
/Zephyr-Core-3.6.0/include/zephyr/sys/
Ddevice_mmio.h58 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 z_phys_map((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-Core-3.6.0/subsys/shell/modules/
Ddevmem_service.c42 static int memory_dump(const struct shell *sh, mem_addr_t phys_addr, size_t size, uint8_t width) in memory_dump() argument
51 device_map((mm_reg_t *)&addr, phys_addr, size, K_MEM_CACHE_NONE); in memory_dump()
53 shell_print(sh, "Mapped 0x%lx to 0x%lx\n", phys_addr, addr); in memory_dump()
55 addr = phys_addr; in memory_dump()
307 mem_addr_t phys_addr, addr; in cmd_devmem() local
315 phys_addr = strtoul(argv[1], NULL, 16); in cmd_devmem()
318 device_map((mm_reg_t *)&addr, phys_addr, 0x100, K_MEM_CACHE_NONE); in cmd_devmem()
320 shell_print(sh, "Mapped 0x%lx to 0x%lx\n", phys_addr, addr); in cmd_devmem()
322 addr = phys_addr; in cmd_devmem()
/Zephyr-Core-3.6.0/drivers/mm/
Dmm_drv_intel_adsp_mtl_tlb.c708 uint32_t phys_addr; in adsp_mm_save_context() local
718 phys_addr = POINTER_TO_UINT(L2_SRAM_BASE) + in adsp_mm_save_context()
722 UINT_TO_POINTER(phys_addr), 1)) { in adsp_mm_save_context()
728 entry_idx = get_tlb_entry_idx(phys_addr); in adsp_mm_save_context()
729 entry = pa_to_tlb_entry(phys_addr); in adsp_mm_save_context()
737 sys_cache_data_invd_range(UINT_TO_POINTER(phys_addr), in adsp_mm_save_context()
748 *((uint32_t *) location) = phys_addr; in adsp_mm_save_context()
753 UINT_TO_POINTER(phys_addr), in adsp_mm_save_context()
776 uint32_t phys_addr; in adsp_mm_restore_context() local
782 phys_addr = *((uint32_t *) location); in adsp_mm_restore_context()
[all …]
/Zephyr-Core-3.6.0/tests/kernel/device/src/
Dmmio.c84 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()
Dmmio_multireg.c78 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-Core-3.6.0/drivers/can/
Dcan_kvaser_pci.c89 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-Core-3.6.0/soc/xtensa/intel_adsp/tools/
Dacetool.py127 (mem, phys_addr, hugef) = map_phys_mem(self.stream_id)
138 phys_addr,
140 phys_addr + buf0_len,
149 return (mem, hugef, phys_addr + bdl_off, phys_addr+dpib_off, 2)
273 (mem, phys_addr, _) = map_phys_mem(hda_ostream_id)
277 % (phys_addr, len(fw_bytes)))
287 phys_addr, buf0_len,
288 phys_addr + buf0_len, buf1_len)
290 return (phys_addr + bdl_off, 2)
Dcavstool.py123 (mem, phys_addr, hugef) = map_phys_mem(self.stream_id)
134 phys_addr,
136 phys_addr + buf0_len,
145 return (mem, hugef, phys_addr + bdl_off, phys_addr+dpib_off, 2)
263 (mem, phys_addr, _) = map_phys_mem(hda_ostream_id)
267 % (phys_addr, len(fw_bytes)))
277 phys_addr, buf0_len,
278 phys_addr + buf0_len, buf1_len)
280 return (phys_addr + bdl_off, 2)
/Zephyr-Core-3.6.0/arch/x86/core/
Dpcie.c46 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()
Dearly_serial.c98 device_map(&mmio, mbar.phys_addr, mbar.size, K_MEM_CACHE_NONE); in z_x86_early_serial_init()
/Zephyr-Core-3.6.0/drivers/virtualization/
Dvirt_ivshmem.c176 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()
243 uintptr_t phys_addr = shmem_phys_addr + in ivshmem_configure() local
253 phys_addr, data->output_section_size, flags); in ivshmem_configure()
298 mbar_regs.phys_addr, DEVICE_MMIO_GET(dev)); in ivshmem_configure()
/Zephyr-Core-3.6.0/arch/x86/
Dgen_mmu.py251 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-Core-3.6.0/drivers/pwm/
Dpwm_intel_blinky.c108 config->reg_base.phys_addr & ~0xFFU, in bk_intel_init()
/Zephyr-Core-3.6.0/drivers/serial/
Duart_ns16550.c378 uint64_t phys_addr; member
810 device_map(DEVICE_MMIO_RAM_PTR(dev), mbar.phys_addr, mbar.size,
815 data->phys_addr = mbar.phys_addr;
853 sys_write32((uint32_t)data->phys_addr,
855 sys_write32((uint32_t)(data->phys_addr >> DMA_INTEL_LPSS_ADDR_RIGHT_SHIFT),
1540 head_block_config->source_address = data->phys_addr;
1569 dma_reload(dev, rx_params->dma_channel, data->phys_addr,
1607 tx_params->active_dma_block.dest_address = data->phys_addr;
1893 (.phys_addr = DT_INST_REG_ADDR(n),), ())
/Zephyr-Core-3.6.0/drivers/misc/timeaware_gpio/
Dtimeaware_gpio_intel.c206 cfg->reg_base.phys_addr & ~0xFFU, in tgpio_init()
/Zephyr-Core-3.6.0/include/zephyr/drivers/pcie/
Dpcie.h153 uintptr_t phys_addr; member
/Zephyr-Core-3.6.0/drivers/xen/
Dgnttab.c322 xatp.gpfn = xen_virt_to_gfn(Z_TOPLEVEL_ROM_NAME(grant_tables).phys_addr) + i; in gnttab_init()
/Zephyr-Core-3.6.0/drivers/sdhc/
Dsdhc_cdns.c171 combo_phy)->phys_addr); in sdhc_cdns_init()
/Zephyr-Core-3.6.0/drivers/disk/nvme/
Dnvme_controller.c346 device_map(DEVICE_MMIO_RAM_PTR(dev), mbar_regs.phys_addr, in nvme_controller_pcie_configure()
/Zephyr-Core-3.6.0/drivers/ethernet/
Deth_e1000.c249 device_map(&dev->address, mbar.phys_addr, mbar.size, in e1000_probe()
/Zephyr-Core-3.6.0/drivers/smbus/
Dintel_pch_smbus.c241 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-Core-3.6.0/drivers/gpio/
Dgpio_intel.c546 cfg->reg_base.phys_addr & ~0xFFU, in gpio_intel_init()
/Zephyr-Core-3.6.0/drivers/i2c/
Di2c_dw.c1050 device_map(DEVICE_MMIO_RAM_PTR(dev), mbar.phys_addr, in i2c_dw_initialize()
1063 dw->phy_addr = mbar.phys_addr; in i2c_dw_initialize()

12