Home
last modified time | relevance | path

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

12

/drivers/tee/
Dtee_shm_pool.c111 const size_t page_mask = PAGE_SIZE - 1; in tee_shm_pool_mgr_alloc_res_mem() local
116 if (vaddr & page_mask || paddr & page_mask || size & page_mask) in tee_shm_pool_mgr_alloc_res_mem()
/drivers/gpu/drm/i915/gem/selftests/
Dhuge_pages.c59 unsigned int page_mask = obj->mm.page_mask; in get_huge_pages() local
85 unsigned int bit = ilog2(page_mask); in get_huge_pages()
108 } while ((rem - ((page_size-1) & page_mask)) >= page_size); in get_huge_pages()
110 page_mask &= (page_size-1); in get_huge_pages()
111 } while (page_mask); in get_huge_pages()
118 GEM_BUG_ON(sg_page_sizes != obj->mm.page_mask); in get_huge_pages()
151 unsigned int page_mask) in huge_pages_object() argument
156 GEM_BUG_ON(!IS_ALIGNED(size, BIT(__ffs(page_mask)))); in huge_pages_object()
175 obj->mm.page_mask = page_mask; in huge_pages_object()
1090 unsigned int page_mask; in igt_ppgtt_exhaust_huge() local
[all …]
/drivers/infiniband/hw/mlx5/
Dmem.c202 u64 page_mask; in mlx5_ib_get_buf_offset() local
208 page_mask = page_size - 1; in mlx5_ib_get_buf_offset()
209 buf_off = addr & page_mask; in mlx5_ib_get_buf_offset()
Dmr.c934 const int page_mask = page_align - 1; in mlx5_ib_update_xlt() local
948 if (idx & page_mask) { in mlx5_ib_update_xlt()
949 npages += idx & page_mask; in mlx5_ib_update_xlt()
950 idx &= ~page_mask; in mlx5_ib_update_xlt()
2180 u64 page_mask = ~((u64)ibmr->page_size - 1); in mlx5_ib_map_mtt_mr_sg_pi() local
2193 pi_mr->pi_iova = (iova & page_mask) + in mlx5_ib_map_mtt_mr_sg_pi()
2195 (pi_mr->ibmr.iova & ~page_mask); in mlx5_ib_map_mtt_mr_sg_pi()
Dodp.c620 u64 start_idx, page_mask; in pagefault_mr() local
638 page_mask = ~(BIT(page_shift) - 1); in pagefault_mr()
639 start_idx = (io_virt - (mr->mmkey.iova & page_mask)) >> page_shift; in pagefault_mr()
/drivers/ata/
Dsata_sx4.c986 u8 page_mask; in pdc20621_get_from_dimm() local
994 page_mask = 0x00; in pdc20621_get_from_dimm()
1000 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1014 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1025 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1038 u8 page_mask; in pdc20621_put_to_dimm() local
1046 page_mask = 0x00; in pdc20621_put_to_dimm()
1050 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1063 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1074 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
/drivers/infiniband/core/
Dumem_odp.c594 u64 page_mask, off; in ib_umem_odp_map_dma_pages() local
611 page_mask = ~(BIT(page_shift) - 1); in ib_umem_odp_map_dma_pages()
612 off = user_virt & (~page_mask); in ib_umem_odp_map_dma_pages()
613 user_virt = user_virt & page_mask; in ib_umem_odp_map_dma_pages()
662 if (user_virt & ~page_mask) { in ib_umem_odp_map_dma_pages()
Dverbs.c2563 u64 page_mask = ~((u64)mr->page_size - 1); in ib_sg_to_pages() local
2577 u64 page_addr = dma_addr & page_mask; in ib_sg_to_pages()
2613 last_page_off = end_dma_addr & ~page_mask; in ib_sg_to_pages()
/drivers/misc/habanalabs/
Dmemory.c526 u64 valid_start, valid_size, prev_start, prev_end, page_mask, in get_va_block() local
538 page_mask = PAGE_MASK_2MB; in get_va_block()
541 page_mask = ~((u64)page_size - 1); in get_va_block()
554 valid_start &= page_mask; in get_va_block()
652 u64 page_mask, total_npages; in init_phys_pg_pack_from_userptr() local
688 page_mask = ~(((u64) page_size) - 1); in init_phys_pg_pack_from_userptr()
709 dma_addr &= page_mask; in init_phys_pg_pack_from_userptr()
Dmmu.c223 u64 page_mask = (ctx->hdev->asic_prop.mmu_hop_table_size - 1); in get_phys_addr() local
224 u64 shadow_hop_addr = shadow_addr & ~page_mask; in get_phys_addr()
225 u64 pte_offset = shadow_addr & page_mask; in get_phys_addr()
/drivers/firmware/
Dstratix10-svc.c610 size_t page_mask = PAGE_SIZE - 1; in svc_create_memory_pool() local
627 if ((vaddr & page_mask) || (paddr & page_mask) || in svc_create_memory_pool()
628 (size & page_mask)) { in svc_create_memory_pool()
/drivers/gpu/drm/
Ddrm_agpsupport.c428 head->page_mask = head->agp_info.page_mask; in drm_agp_init()
/drivers/gpu/drm/i915/gem/
Di915_gem_object_types.h193 I915_SELFTEST_DECLARE(unsigned int page_mask);
/drivers/edac/
Dedac_mc.c170 edac_dbg(4, " csrow->page_mask = 0x%lx\n", csrow->page_mask); in edac_mc_dump_csrow()
879 csrow->page_mask); in edac_mc_find_csrow_by_page()
883 ((page & csrow->page_mask) == in edac_mc_find_csrow_by_page()
884 (csrow->first_page & csrow->page_mask))) { in edac_mc_find_csrow_by_page()
Damd76x_edac.c212 csrow->page_mask = mba_mask >> PAGE_SHIFT; in amd76x_init_csrows()
Dpasemi_edac.c170 csrow->page_mask = 0; in pasemi_edac_init_csrows()
/drivers/infiniband/hw/mthca/
Dmthca_mr.c692 int i, page_mask; in mthca_check_fmr() local
697 page_mask = (1 << fmr->attr.page_shift) - 1; in mthca_check_fmr()
700 if (iova & page_mask) in mthca_check_fmr()
706 if (page_list[i] & ~page_mask) in mthca_check_fmr()
/drivers/net/ethernet/mellanox/mlx4/
Dmr.c972 int i, page_mask; in mlx4_check_fmr() local
977 page_mask = (1 << fmr->page_shift) - 1; in mlx4_check_fmr()
980 if (iova & page_mask) in mlx4_check_fmr()
986 if (page_list[i] & ~page_mask) in mlx4_check_fmr()
/drivers/infiniband/sw/rxe/
Drxe_mr.c193 mem->page_mask = PAGE_SIZE - 1; in rxe_mem_init_user()
276 *offset_out = offset & mem->page_mask; in lookup_iova()
Drxe_verbs.h340 int page_mask; member
Drxe_verbs.c1040 mr->page_mask = ibmr->page_size - 1; in rxe_map_mr_sg()
1041 mr->offset = mr->iova & mr->page_mask; in rxe_map_mr_sg()
/drivers/media/i2c/
Dadv7604.c135 unsigned long page_mask; member
615 if (page >= ADV76XX_PAGE_MAX || !(BIT(page) & state->info->page_mask)) in adv76xx_read_reg()
630 if (page >= ADV76XX_PAGE_MAX || !(BIT(page) & state->info->page_mask)) in adv76xx_write_reg()
3003 .page_mask = BIT(ADV76XX_PAGE_IO) | BIT(ADV7604_PAGE_AVLINK) |
3050 .page_mask = BIT(ADV76XX_PAGE_IO) | BIT(ADV76XX_PAGE_CEC) |
3094 .page_mask = BIT(ADV76XX_PAGE_IO) | BIT(ADV76XX_PAGE_CEC) |
3519 if (!(BIT(i) & state->info->page_mask)) in adv76xx_probe()
/drivers/scsi/mpt3sas/
Dmpt3sas_base.c1972 u32 page_mask_result, page_mask; in _base_build_nvme_prp() local
1997 page_mask = ioc->page_size - 1; in _base_build_nvme_prp()
1998 page_mask_result = (uintptr_t)((u8 *)prp_page + prp_size) & page_mask; in _base_build_nvme_prp()
2026 page_mask_result = (prp_entry_dma + prp_size) & page_mask; in _base_build_nvme_prp()
2046 offset = dma_addr & page_mask; in _base_build_nvme_prp()
2138 u32 page_mask, page_mask_result; in base_make_prp_nvme() local
2157 page_mask = nvme_pg_size - 1; in base_make_prp_nvme()
2198 offset = sge_addr & page_mask; in base_make_prp_nvme()
2216 offset = sge_addr & page_mask; in base_make_prp_nvme()
2219 page_mask_result = (uintptr_t)(curr_buff + 1) & page_mask; in base_make_prp_nvme()
/drivers/mtd/nand/onenand/
Donenand_base.c449 page &= this->page_mask; in onenand_command()
883 page = (int) (addr >> (this->page_shift + 1)) & this->page_mask; in onenand_get_2x_blockpage()
2721 page &= this->page_mask; in onenand_otp_command()
3761 this->page_mask = (1 << (this->erase_shift - this->page_shift)) - 1; in onenand_probe()
/drivers/scsi/megaraid/
Dmegaraid_sas_fusion.c2151 u32 page_mask, page_mask_result; in megasas_make_prp_nvme() local
2176 page_mask = mr_nvme_pg_size - 1; in megasas_make_prp_nvme()
2197 offset = (u32)(sge_addr & page_mask); in megasas_make_prp_nvme()
2215 offset = (u32)(sge_addr & page_mask); in megasas_make_prp_nvme()
2218 page_mask_result = (uintptr_t)(ptr_sgl + 1) & page_mask; in megasas_make_prp_nvme()

12