Home
last modified time | relevance | path

Searched refs:page_mask (Results 1 – 25 of 69) sorted by relevance

123

/openbmc/qemu/hw/ppc/
H A Dspapr_iommu.c130 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 Dspapr_rtas_ddw.c68 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 Dtee_shm_pool.c60 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 Dxen-hvm.c179 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 Dpgtable.py18 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 Dspapr.c62 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 Dvhost-vdpa.c35 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 Dx86_mmu.c82 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 Dhotpages.c26 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 Dintel_display_power.c1570 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 Dsata_sx4.c941 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 Damd_iommu.c77 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 Dqed_chain.h580 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 Dhuge_pages.c81 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 Dagp_backend.h55 unsigned long page_mask; member
/openbmc/linux/mm/
H A Duserfaultfd.c841 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 Dib_recv.c277 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 Dradeon_agp.c156 head->page_mask = head->agp_info.page_mask; in radeon_agp_head_init()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_agpsupport.c410 head->page_mask = head->agp_info.page_mask; in drm_legacy_agp_init()
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dumr.c697 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 Donenand.h86 unsigned int page_mask; member
/openbmc/linux/drivers/edac/
H A Dedac_mc.c114 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 Ddlmalloc.c937 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 Dstratix10-svc.c768 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 Donenand.h98 unsigned int page_mask; member

123