Home
last modified time | relevance | path

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

/drivers/tee/
Dtee_shm_pool.c120 const size_t page_mask = PAGE_SIZE - 1; in tee_shm_pool_mgr_alloc_res_mem() local
125 if (vaddr & page_mask || paddr & page_mask || size & page_mask) in tee_shm_pool_mgr_alloc_res_mem()
/drivers/infiniband/hw/mlx5/
Dmem.c209 u64 page_mask; in mlx5_ib_get_buf_offset() local
215 page_mask = page_size - 1; in mlx5_ib_get_buf_offset()
216 buf_off = addr & page_mask; in mlx5_ib_get_buf_offset()
/drivers/ata/
Dsata_sx4.c1002 u8 page_mask; in pdc20621_get_from_dimm() local
1010 page_mask = 0x00; in pdc20621_get_from_dimm()
1016 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1030 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1041 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_get_from_dimm()
1054 u8 page_mask; in pdc20621_put_to_dimm() local
1062 page_mask = 0x00; in pdc20621_put_to_dimm()
1066 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1079 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
1090 writel(((idx) << page_mask), mmio + PDC_DIMM_WINDOW_CTLR); in pdc20621_put_to_dimm()
/drivers/gpu/drm/
Ddrm_agpsupport.c420 head->page_mask = head->agp_info.page_mask; in drm_agp_init()
/drivers/edac/
Dedac_mc.c108 edac_dbg(4, " csrow->page_mask = 0x%lx\n", csrow->page_mask); in edac_mc_dump_csrow()
863 csrow->page_mask); in edac_mc_find_csrow_by_page()
867 ((page & csrow->page_mask) == in edac_mc_find_csrow_by_page()
868 (csrow->first_page & csrow->page_mask))) { in edac_mc_find_csrow_by_page()
Dpasemi_edac.c182 csrow->page_mask = 0; in pasemi_edac_init_csrows()
Damd76x_edac.c213 csrow->page_mask = mba_mask >> PAGE_SHIFT; in amd76x_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.c975 int i, page_mask; in mlx4_check_fmr() local
980 page_mask = (1 << fmr->page_shift) - 1; in mlx4_check_fmr()
983 if (iova & page_mask) in mlx4_check_fmr()
989 if (page_list[i] & ~page_mask) in mlx4_check_fmr()
/drivers/infiniband/sw/rxe/
Drxe_mr.c197 mem->page_mask = umem->page_size - 1; in rxe_mem_init_user()
279 *offset_out = offset & mem->page_mask; in lookup_iova()
Drxe_verbs.h331 int page_mask; member
Drxe_verbs.c1165 mr->page_mask = ibmr->page_size - 1; in rxe_map_mr_sg()
1166 mr->offset = mr->iova & mr->page_mask; in rxe_map_mr_sg()
/drivers/media/i2c/
Dadv7604.c140 unsigned long page_mask; member
620 if (!(BIT(page) & state->info->page_mask)) in adv76xx_read_reg()
635 if (!(BIT(page) & state->info->page_mask)) in adv76xx_write_reg()
2936 .page_mask = BIT(ADV76XX_PAGE_IO) | BIT(ADV7604_PAGE_AVLINK) |
2980 .page_mask = BIT(ADV76XX_PAGE_IO) | BIT(ADV76XX_PAGE_CEC) |
3021 .page_mask = BIT(ADV76XX_PAGE_IO) | BIT(ADV76XX_PAGE_CEC) |
3463 if (!(BIT(i) & state->info->page_mask)) in adv76xx_probe()
/drivers/infiniband/core/
Dverbs.c1871 u64 page_mask = ~((u64)mr->page_size - 1); in ib_sg_to_pages() local
1885 u64 page_addr = dma_addr & page_mask; in ib_sg_to_pages()
1921 last_page_off = end_dma_addr & ~page_mask; in ib_sg_to_pages()
/drivers/mtd/onenand/
Donenand_base.c454 page &= this->page_mask; in onenand_command()
888 page = (int) (addr >> (this->page_shift + 1)) & this->page_mask; in onenand_get_2x_blockpage()
2822 page &= this->page_mask; in onenand_otp_command()
3854 this->page_mask = (1 << (this->erase_shift - this->page_shift)) - 1; in onenand_probe()
Dsamsung.c396 fpa &= this->page_mask; in s3c_onenand_command()
/drivers/char/agp/
Dgeneric.c389 info->page_mask = ~0UL; in agp_copy_info()