/openbmc/qemu/hw/ppc/ |
H A D | spapr_iommu.c | 130 hwaddr page_mask = IOMMU_PAGE_MASK(tcet->page_shift); in spapr_tce_translate_iommu() local 133 ret.iova = addr & page_mask; in spapr_tce_translate_iommu() 134 ret.translated_addr = tce & page_mask; in spapr_tce_translate_iommu() 135 ret.addr_mask = ~page_mask; in spapr_tce_translate_iommu() 454 hwaddr page_mask = IOMMU_PAGE_MASK(tcet->page_shift); in put_tce_emu() local 466 event.entry.iova = (ioba - tcet->bus_offset) & page_mask; in put_tce_emu() 467 event.entry.translated_addr = tce & page_mask; in put_tce_emu() 468 event.entry.addr_mask = ~page_mask; in put_tce_emu() 489 hwaddr page_mask, page_size; in h_put_tce_indirect() local 499 page_mask = IOMMU_PAGE_MASK(tcet->page_shift); in h_put_tce_indirect() [all …]
|
H A D | spapr_rtas_ddw.c | 68 static uint32_t spapr_page_mask_to_query_mask(uint64_t page_mask) in spapr_page_mask_to_query_mask() argument 85 if (page_mask & (1ULL << masks[i].shift)) { in spapr_page_mask_to_query_mask()
|
/openbmc/linux/drivers/tee/ |
H A D | tee_shm_pool.c | 60 const size_t page_mask = PAGE_SIZE - 1; in tee_shm_pool_alloc_res_mem() local 65 if (vaddr & page_mask || paddr & page_mask || size & page_mask) in tee_shm_pool_alloc_res_mem()
|
/openbmc/qemu/hw/i386/xen/ |
H A D | xen-hvm.c | 179 int page_mask) in get_physmapping() argument 183 start_addr &= page_mask; in get_physmapping() 194 int page_mask) in xen_phys_offset_to_gaddr() argument 196 hwaddr addr = phys_offset & page_mask; in xen_phys_offset_to_gaddr() 253 int page_mask = -page_size; in xen_add_to_physmap() local 261 if (get_physmapping(start_addr, size, page_mask)) { in xen_add_to_physmap() 332 int page_mask = -page_size; in xen_remove_from_physmap() local 337 physmap = get_physmapping(start_addr, size, page_mask); in xen_remove_from_physmap() 381 int page_mask = -page_size; in xen_sync_dirty_bitmap() local 388 physmap = get_physmapping(start_addr, size, page_mask); in xen_sync_dirty_bitmap() [all …]
|
/openbmc/linux/scripts/gdb/linux/ |
H A D | pgtable.py | 18 def page_mask(level=1): function 71 self.next_entry_physical_address = cr3 & PHYSICAL_ADDRESS_MASK & page_mask() 105 self.page_physical_address = data & PHYSICAL_ADDRESS_MASK & page_mask(level) 127 …self.page_physical_address = data & PHYSICAL_ADDRESS_MASK & page_mask(level) if page_size_bit else… 128 …next_entry_physical_address = None if page_size_bit else data & PHYSICAL_ADDRESS_MASK & page_mask()
|
/openbmc/qemu/hw/vfio/ |
H A D | spapr.c | 62 hwaddr page_mask = qemu_real_host_page_mask(); in vfio_prereg_listener_region_add() local 76 if (unlikely((section->offset_within_address_space & ~page_mask) || in vfio_prereg_listener_region_add() 77 (section->offset_within_region & ~page_mask) || in vfio_prereg_listener_region_add() 78 (int128_get64(section->size) & ~page_mask))) { in vfio_prereg_listener_region_add() 121 hwaddr page_mask = qemu_real_host_page_mask(); in vfio_prereg_listener_region_del() local 135 if (unlikely((section->offset_within_address_space & ~page_mask) || in vfio_prereg_listener_region_del() 136 (section->offset_within_region & ~page_mask) || in vfio_prereg_listener_region_del() 137 (int128_get64(section->size) & ~page_mask))) { in vfio_prereg_listener_region_del()
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-vdpa.c | 35 int page_mask) in vhost_vdpa_section_end() argument 39 llend = int128_and(llend, int128_exts64(page_mask)); in vhost_vdpa_section_end() 47 int page_mask) in vhost_vdpa_listener_skipped_section() argument 60 iova_max, page_mask); in vhost_vdpa_listener_skipped_section() 78 llend = vhost_vdpa_section_end(section, page_mask); in vhost_vdpa_listener_skipped_section() 324 int page_mask = -page_size; in vhost_vdpa_listener_region_add() local 327 s->iova_range.last, page_mask)) { in vhost_vdpa_listener_region_add() 335 if (unlikely((section->offset_within_address_space & ~page_mask) != in vhost_vdpa_listener_region_add() 336 (section->offset_within_region & ~page_mask))) { in vhost_vdpa_listener_region_add() 338 section->offset_within_address_space & ~page_mask, in vhost_vdpa_listener_region_add() [all …]
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86_mmu.c | 82 uint64_t page_mask = pae ? PAE_PTE_PAGE_MASK : LEGACY_PTE_PAGE_MASK; in get_pt_entry() local 83 uint64_t gpa = pt->pte[level] & page_mask; in get_pt_entry() 185 uint64_t page_mask = pae ? PAE_PTE_PAGE_MASK : LEGACY_PTE_PAGE_MASK; in walk_gpt() local 209 pt->gpa = (pt->pte[0] & page_mask) | (pt->gva & 0xfff); in walk_gpt()
|
/openbmc/qemu/contrib/plugins/ |
H A D | hotpages.c | 26 static uint64_t page_mask; variable 105 page_mask = (page_size - 1); in plugin_init() 130 page &= ~page_mask; in vcpu_haddr()
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display_power.c | 1570 u32 page_mask; member 1576 { .num_channels = 1, .type = INTEL_DRAM_DDR4, .page_mask = 0xF }, 1577 { .num_channels = 1, .type = INTEL_DRAM_DDR5, .page_mask = 0xF }, 1578 { .num_channels = 2, .type = INTEL_DRAM_LPDDR4, .page_mask = 0x1C }, 1579 { .num_channels = 2, .type = INTEL_DRAM_LPDDR5, .page_mask = 0x1C }, 1580 { .num_channels = 2, .type = INTEL_DRAM_DDR4, .page_mask = 0x1F }, 1581 { .num_channels = 2, .type = INTEL_DRAM_DDR5, .page_mask = 0x1E }, 1582 { .num_channels = 4, .type = INTEL_DRAM_LPDDR4, .page_mask = 0x38 }, 1583 { .num_channels = 4, .type = INTEL_DRAM_LPDDR5, .page_mask = 0x38 }, 1588 { .num_channels = 1, .type = INTEL_DRAM_LPDDR4, .page_mask = 0x1 }, [all …]
|
/openbmc/linux/drivers/ata/ |
H A D | sata_sx4.c | 941 u8 page_mask; in pdc20621_get_from_dimm() local 949 page_mask = 0x00; in pdc20621_get_from_dimm() 955 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm() 968 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm() 979 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm() 991 u8 page_mask; in pdc20621_put_to_dimm() local 999 page_mask = 0x00; in pdc20621_put_to_dimm() 1003 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm() 1015 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm() 1026 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
|
/openbmc/qemu/hw/i386/ |
H A D | amd_iommu.c | 77 uint64_t page_mask; /* physical page size */ member 378 entry->page_mask = to_cache.addr_mask; in amdvi_update_iotlb() 893 uint8_t page_mask = 13; in pte_override_page_mask() local 897 page_mask++; in pte_override_page_mask() 901 return ~((1ULL << page_mask) - 1); in pte_override_page_mask() 931 uint64_t pte = dte[0], pte_addr, page_mask; in amdvi_page_walk() local 967 page_mask = pte_override_page_mask(pte); in amdvi_page_walk() 969 page_mask = pte_get_page_mask(oldlevel); in amdvi_page_walk() 973 ret->iova = addr & page_mask; in amdvi_page_walk() 974 ret->translated_addr = (pte & AMDVI_DEV_PT_ROOT_MASK) & page_mask; in amdvi_page_walk() [all …]
|
/openbmc/linux/include/linux/qed/ |
H A D | qed_chain.h | 580 u32 cur_prod, page_mask, page_cnt, page_diff; in qed_chain_set_prod() local 586 page_mask = ~p_chain->elem_per_page_mask; in qed_chain_set_prod() 595 page_diff = (((cur_prod - 1) & page_mask) - in qed_chain_set_prod() 596 ((prod_idx - 1) & page_mask)) / in qed_chain_set_prod()
|
/openbmc/linux/drivers/gpu/drm/i915/gem/selftests/ |
H A D | huge_pages.c | 81 unsigned int page_mask = obj->mm.page_mask; in get_huge_pages() local 111 unsigned int bit = ilog2(page_mask); in get_huge_pages() 134 } while ((rem - ((page_size-1) & page_mask)) >= page_size); in get_huge_pages() 136 page_mask &= (page_size-1); in get_huge_pages() 137 } while (page_mask); in get_huge_pages() 142 GEM_BUG_ON(sg_page_sizes != obj->mm.page_mask); in get_huge_pages() 176 unsigned int page_mask) in huge_pages_object() argument 183 GEM_BUG_ON(!IS_ALIGNED(size, BIT(__ffs(page_mask)))); in huge_pages_object() 206 obj->mm.page_mask = page_mask; in huge_pages_object()
|
/openbmc/linux/include/linux/ |
H A D | agp_backend.h | 55 unsigned long page_mask; member
|
/openbmc/linux/mm/ |
H A D | userfaultfd.c | 841 unsigned long page_mask; in mwriteprotect_range() local 875 page_mask = vma_kernel_pagesize(dst_vma) - 1; in mwriteprotect_range() 876 if ((start & page_mask) || (len & page_mask)) in mwriteprotect_range()
|
/openbmc/linux/net/rds/ |
H A D | ib_recv.c | 277 gfp_t slab_mask, gfp_t page_mask) in rds_ib_refill_one_frag() argument 295 RDS_FRAG_SIZE, page_mask); in rds_ib_refill_one_frag() 315 gfp_t page_mask = gfp; in rds_ib_recv_refill_one() local 319 page_mask = GFP_HIGHUSER; in rds_ib_recv_refill_one() 338 recv->r_frag = rds_ib_refill_one_frag(ic, slab_mask, page_mask); in rds_ib_recv_refill_one()
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_agp.c | 156 head->page_mask = head->agp_info.page_mask; in radeon_agp_head_init()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_agpsupport.c | 410 head->page_mask = head->agp_info.page_mask; in drm_legacy_agp_init()
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | umr.c | 697 const int page_mask = page_align - 1; in mlx5r_umr_update_xlt() local 718 if (idx & page_mask) { in mlx5r_umr_update_xlt() 719 npages += idx & page_mask; in mlx5r_umr_update_xlt() 720 idx &= ~page_mask; in mlx5r_umr_update_xlt()
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | onenand.h | 86 unsigned int page_mask; member
|
/openbmc/linux/drivers/edac/ |
H A D | edac_mc.c | 114 edac_dbg(4, " csrow->page_mask = 0x%lx\n", csrow->page_mask); in edac_mc_dump_csrow() 774 csrow->page_mask); in edac_mc_find_csrow_by_page() 778 ((page & csrow->page_mask) == in edac_mc_find_csrow_by_page() 779 (csrow->first_page & csrow->page_mask))) { in edac_mc_find_csrow_by_page()
|
/openbmc/u-boot/common/ |
H A D | dlmalloc.c | 937 size_t page_mask = malloc_getpagesize - 1; local 949 size = (size + SIZE_SZ + page_mask) & ~page_mask; 1017 size_t page_mask = malloc_getpagesize - 1; local 1028 new_size = (new_size + offset + SIZE_SZ + page_mask) & ~page_mask;
|
/openbmc/linux/drivers/firmware/ |
H A D | stratix10-svc.c | 768 size_t page_mask = PAGE_SIZE - 1; in svc_create_memory_pool() local 785 if ((vaddr & page_mask) || (paddr & page_mask) || in svc_create_memory_pool() 786 (size & page_mask)) { in svc_create_memory_pool()
|
/openbmc/linux/include/linux/mtd/ |
H A D | onenand.h | 98 unsigned int page_mask; member
|