Home
last modified time | relevance | path

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

12

/linux/drivers/tee/
A 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()
/linux/drivers/ata/
A Dsata_sx4.c988 u8 page_mask; in pdc20621_get_from_dimm() local
996 page_mask = 0x00; in pdc20621_get_from_dimm()
1002 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1016 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1027 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1040 u8 page_mask; in pdc20621_put_to_dimm() local
1048 page_mask = 0x00; in pdc20621_put_to_dimm()
1052 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1065 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1076 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
/linux/drivers/gpu/drm/i915/gem/selftests/
A Dhuge_pages.c62 unsigned int page_mask = obj->mm.page_mask; in get_huge_pages() local
88 unsigned int bit = ilog2(page_mask); in get_huge_pages()
111 } while ((rem - ((page_size-1) & page_mask)) >= page_size); in get_huge_pages()
113 page_mask &= (page_size-1); in get_huge_pages()
114 } while (page_mask); in get_huge_pages()
119 GEM_BUG_ON(sg_page_sizes != obj->mm.page_mask); in get_huge_pages()
153 unsigned int page_mask) in huge_pages_object() argument
160 GEM_BUG_ON(!IS_ALIGNED(size, BIT(__ffs(page_mask)))); in huge_pages_object()
183 obj->mm.page_mask = page_mask; in huge_pages_object()
/linux/include/linux/qed/
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()
/linux/net/rds/
A Dib_recv.c276 gfp_t slab_mask, gfp_t page_mask) in rds_ib_refill_one_frag() argument
294 RDS_FRAG_SIZE, page_mask); in rds_ib_refill_one_frag()
314 gfp_t page_mask = gfp; in rds_ib_recv_refill_one() local
318 page_mask = GFP_HIGHUSER; in rds_ib_recv_refill_one()
337 recv->r_frag = rds_ib_refill_one_frag(ic, slab_mask, page_mask); in rds_ib_recv_refill_one()
/linux/include/linux/
A Dagp_backend.h55 unsigned long page_mask; member
A Dedac.h427 unsigned long page_mask; /* used for interleaving - member
/linux/drivers/firmware/
A Dstratix10-svc.c617 size_t page_mask = PAGE_SIZE - 1; in svc_create_memory_pool() local
634 if ((vaddr & page_mask) || (paddr & page_mask) || in svc_create_memory_pool()
635 (size & page_mask)) { in svc_create_memory_pool()
/linux/drivers/gpu/drm/
A Ddrm_agpsupport.c410 head->page_mask = head->agp_info.page_mask; in drm_legacy_agp_init()
/linux/drivers/gpu/drm/radeon/
A Dradeon_agp.c156 head->page_mask = head->agp_info.page_mask; in radeon_agp_head_init()
/linux/mm/
A Dmlock.c429 unsigned int page_mask = 0; in munlock_vma_pages_range() local
456 page_mask = munlock_vma_page(page); in munlock_vma_pages_range()
480 page_increm = 1 + page_mask; in munlock_vma_pages_range()
A Dgup.c29 unsigned int page_mask; member
710 ctx->page_mask = HPAGE_PMD_NR - 1; in follow_pmd_mask()
807 ctx->page_mask = 0; in follow_page_mask()
1119 ctx.page_mask = 0; in __get_user_pages()
1189 ctx.page_mask = 0; in __get_user_pages()
1194 ctx.page_mask = 0; in __get_user_pages()
1196 page_increm = 1 + (~(start >> PAGE_SHIFT) & ctx.page_mask); in __get_user_pages()
/linux/drivers/gpu/drm/i915/display/
A Dintel_display_power.c5700 u32 page_mask; member
5706 { .num_channels = 1, .type = INTEL_DRAM_DDR4, .page_mask = 0xF },
5707 { .num_channels = 1, .type = INTEL_DRAM_DDR5, .page_mask = 0xF },
5718 { .num_channels = 1, .type = INTEL_DRAM_LPDDR4, .page_mask = 0x1 },
5719 { .num_channels = 1, .type = INTEL_DRAM_DDR4, .page_mask = 0x1 },
5720 { .num_channels = 1, .type = INTEL_DRAM_DDR5, .page_mask = 0x1 },
5721 { .num_channels = 1, .type = INTEL_DRAM_LPDDR5, .page_mask = 0x1 },
5722 { .num_channels = 2, .type = INTEL_DRAM_LPDDR4, .page_mask = 0x3 },
5750 for (config = 0; table[config].page_mask != 0; config++) in tgl_bw_buddy_init()
5755 if (table[config].page_mask == 0) { in tgl_bw_buddy_init()
[all …]
/linux/drivers/edac/
A Dedac_mc.c115 edac_dbg(4, " csrow->page_mask = 0x%lx\n", csrow->page_mask); in edac_mc_dump_csrow()
843 csrow->page_mask); in edac_mc_find_csrow_by_page()
847 ((page & csrow->page_mask) == in edac_mc_find_csrow_by_page()
848 (csrow->first_page & csrow->page_mask))) { in edac_mc_find_csrow_by_page()
A Dpasemi_edac.c170 csrow->page_mask = 0; in pasemi_edac_init_csrows()
A Damd76x_edac.c211 csrow->page_mask = mba_mask >> PAGE_SHIFT; in amd76x_init_csrows()
/linux/include/linux/mtd/
A Donenand.h98 unsigned int page_mask; member
/linux/drivers/gpu/drm/i915/gem/
A Di915_gem_object_types.h544 I915_SELFTEST_DECLARE(unsigned int page_mask);
/linux/include/drm/
A Ddrm_legacy.h247 unsigned long page_mask; member
/linux/drivers/misc/habanalabs/common/mmu/
A Dmmu_v1.c244 u64 page_mask = (ctx->hdev->asic_prop.mmu_hop_table_size - 1); in get_phys_addr() local
245 u64 shadow_hop_addr = shadow_addr & ~page_mask; in get_phys_addr()
246 u64 pte_offset = shadow_addr & page_mask; in get_phys_addr()
/linux/drivers/infiniband/sw/rxe/
A Drxe_mr.c197 set->page_mask = PAGE_SIZE - 1; in rxe_mr_init_user()
279 *offset_out = offset & set->page_mask; in lookup_iova()
A Drxe_verbs.h301 int page_mask; member
/linux/fs/ntfs3/
A Dfslog.c993 u32 page_mask; // page_size - 1 member
1061 return (((u32)lsn) << 3) & log->page_mask; in lsn_to_page_off()
1089 (lsn < (lsn_to_vbo(log, h_lsn) & ~log->page_mask) ? 1 : 0)) in base_lsn()
1123 u32 page_off = vbo & log->page_mask; in read_log_page()
1318 log->page_mask = page_size - 1; in log_init_pg_hdr()
1432 u32 page_off = base_vbo & log->page_mask; in final_log_off()
1593 vbo != (lsn_to_vbo(log, lsn) & ~log->page_mask)); in check_subseq_log_page()
1853 (lsn_to_vbo(log, lsn_cur) & ~log->page_mask)) in last_log_lsn()
2260 u32 vbo = lsn_to_vbo(log, lsn) & ~log->page_mask; in read_log_rec_buf()
3804 log->page_mask = page_size - 1; in log_replay()
[all …]
/linux/drivers/infiniband/hw/mlx5/
A Dmr.c1130 const int page_mask = page_align - 1; in mlx5_ib_update_xlt() local
1147 if (idx & page_mask) { in mlx5_ib_update_xlt()
1148 npages += idx & page_mask; in mlx5_ib_update_xlt()
1149 idx &= ~page_mask; in mlx5_ib_update_xlt()
2542 u64 page_mask = ~((u64)ibmr->page_size - 1); in mlx5_ib_map_mtt_mr_sg_pi() local
2555 pi_mr->pi_iova = (iova & page_mask) + in mlx5_ib_map_mtt_mr_sg_pi()
2557 (pi_mr->ibmr.iova & ~page_mask); in mlx5_ib_map_mtt_mr_sg_pi()
/linux/drivers/media/i2c/
A Dadv7604.c142 unsigned long page_mask; member
629 if (page >= ADV76XX_PAGE_MAX || !(BIT(page) & state->info->page_mask)) in adv76xx_read_reg()
644 if (page >= ADV76XX_PAGE_MAX || !(BIT(page) & state->info->page_mask)) in adv76xx_write_reg()
3060 .page_mask = BIT(ADV76XX_PAGE_IO) | BIT(ADV7604_PAGE_AVLINK) |
3109 .page_mask = BIT(ADV76XX_PAGE_IO) | BIT(ADV76XX_PAGE_CEC) |
3158 .page_mask = BIT(ADV76XX_PAGE_IO) | BIT(ADV76XX_PAGE_CEC) |
3586 if (!(BIT(i) & state->info->page_mask)) in adv76xx_probe()

Completed in 98 milliseconds

12