Searched refs:region_base (Results 1 – 9 of 9) sorted by relevance
/linux-6.12.1/drivers/accel/habanalabs/common/pci/ |
D | pci.c | 249 u64 bar_phys_base, region_base, region_end_address; in hl_pci_set_inbound_region() local 258 region_base = bar_phys_base + pci_region->offset_in_bar; in hl_pci_set_inbound_region() 259 region_end_address = region_base + pci_region->size - 1; in hl_pci_set_inbound_region() 262 lower_32_bits(region_base)); in hl_pci_set_inbound_region() 264 upper_32_bits(region_base)); in hl_pci_set_inbound_region() 362 if ((addr >= region->region_base) && in hl_get_pci_memory_region() 363 (addr < region->region_base + region->region_size)) in hl_get_pci_memory_region()
|
/linux-6.12.1/arch/mips/cavium-octeon/ |
D | octeon-platform.c | 929 unsigned long base_ptr, region_base, region_size; in octeon_prune_device_tree() local 956 region_base = mio_boot_reg_cfg.s.base << 16; in octeon_prune_device_tree() 958 if (mio_boot_reg_cfg.s.en && base_ptr >= region_base in octeon_prune_device_tree() 959 && base_ptr < region_base + region_size) { in octeon_prune_device_tree() 1011 ranges[(cs * 5) + 2] = cpu_to_be32(region_base >> 32); in octeon_prune_device_tree() 1012 ranges[(cs * 5) + 3] = cpu_to_be32(region_base & 0xffffffff); in octeon_prune_device_tree() 1033 unsigned long base_ptr, region_base, region_size; in octeon_prune_device_tree() local 1046 region_base = mio_boot_reg_cfg.s.base << 16; in octeon_prune_device_tree() 1048 if (mio_boot_reg_cfg.s.en && base_ptr >= region_base in octeon_prune_device_tree() 1049 && base_ptr < region_base + region_size) in octeon_prune_device_tree() [all …]
|
/linux-6.12.1/drivers/accel/habanalabs/common/ |
D | device.c | 60 bar_base_addr = region->region_base + in hl_set_dram_bar() 61 div64_u64((addr - region->region_base), prop->dram_pci_bar_size) * in hl_set_dram_bar() 77 u64 old_base = 0, rc, bar_region_base = region->region_base; in hl_access_sram_dram_region() 300 *val = RREG32(addr - cfg_region->region_base); in hl_access_cfg_region() 303 WREG32(addr - cfg_region->region_base, *val); in hl_access_cfg_region() 306 val_l = RREG32(addr - cfg_region->region_base); in hl_access_cfg_region() 307 val_h = RREG32(addr + sizeof(u32) - cfg_region->region_base); in hl_access_cfg_region() 312 WREG32(addr - cfg_region->region_base, lower_32_bits(*val)); in hl_access_cfg_region() 313 WREG32(addr + sizeof(u32) - cfg_region->region_base, upper_32_bits(*val)); in hl_access_cfg_region()
|
D | firmware_if.c | 2046 if (end_addr >= region->region_base + region->region_size) { in hl_fw_dynamic_validate_memory_bound() 2058 if (end_addr >= region->region_base - region->offset_in_bar + in hl_fw_dynamic_validate_memory_bound() 2152 device_addr = region->region_base + response->ram_offset; in hl_fw_dynamic_validate_response() 2380 (addr - region->region_base); in hl_fw_dynamic_copy_image() 2412 (addr - region->region_base); in hl_fw_dynamic_copy_msg()
|
D | debugfs.c | 757 if (addr >= mem_reg->region_base && in hl_access_dev_mem_by_region() 758 addr <= mem_reg->region_base + mem_reg->region_size - acc_size) { in hl_access_dev_mem_by_region()
|
D | habanalabs.h | 1364 u64 region_base; member
|
/linux-6.12.1/drivers/accel/habanalabs/goya/ |
D | goya.c | 935 region->region_base = CFG_BASE; in goya_set_pci_memory_regions() 944 region->region_base = SRAM_BASE_ADDR; in goya_set_pci_memory_regions() 953 region->region_base = DRAM_PHYS_BASE; in goya_set_pci_memory_regions()
|
/linux-6.12.1/drivers/accel/habanalabs/gaudi/ |
D | gaudi.c | 1814 region->region_base = CFG_BASE; in gaudi_set_pci_memory_regions() 1823 region->region_base = SRAM_BASE_ADDR; in gaudi_set_pci_memory_regions() 1832 region->region_base = DRAM_PHYS_BASE; in gaudi_set_pci_memory_regions() 1841 region->region_base = PSOC_SCRATCHPAD_ADDR; in gaudi_set_pci_memory_regions()
|
/linux-6.12.1/drivers/accel/habanalabs/gaudi2/ |
D | gaudi2.c | 3490 region->region_base = CFG_BASE; in gaudi2_set_pci_memory_regions() 3499 region->region_base = SRAM_BASE_ADDR; in gaudi2_set_pci_memory_regions() 3508 region->region_base = DRAM_PHYS_BASE; in gaudi2_set_pci_memory_regions()
|