Home
last modified time | relevance | path

Searched refs:page_shift (Results 1 – 25 of 26) sorted by relevance

12

/drivers/net/mlx4/
Dmr.c200 int mlx4_mtt_init(struct mlx4_dev *dev, int npages, int page_shift, in mlx4_mtt_init() argument
207 mtt->page_shift = MLX4_ICM_PAGE_SHIFT; in mlx4_mtt_init()
210 mtt->page_shift = page_shift; in mlx4_mtt_init()
267 int npages, int page_shift, struct mlx4_mr *mr) in mlx4_mr_alloc() argument
284 err = mlx4_mtt_init(dev, npages, page_shift, &mr->mtt); in mlx4_mr_alloc()
338 mpt_entry->entity_size = cpu_to_be32(mr->mtt.page_shift); in mlx4_mr_enable()
347 if (mr->mtt.order >= 0 && mr->mtt.page_shift == 0) { in mlx4_mr_enable()
447 page_list[i] = buf->direct.map + (i << buf->page_shift); in mlx4_buf_write_mtt()
509 page_mask = (1 << fmr->page_shift) - 1; in mlx4_check_fmr()
557 fmr->mpt->length = cpu_to_be64(npages * (1ull << fmr->page_shift)); in mlx4_map_phys_fmr()
[all …]
Dalloc.c200 buf->page_shift = get_order(size) + PAGE_SHIFT; in mlx4_buf_alloc()
208 while (t & ((1 << buf->page_shift) - 1)) { in mlx4_buf_alloc()
209 --buf->page_shift; in mlx4_buf_alloc()
219 buf->page_shift = PAGE_SHIFT; in mlx4_buf_alloc()
407 err = mlx4_mtt_init(dev, wqres->buf.npages, wqres->buf.page_shift, in mlx4_alloc_hwq_res()
Dcq.c178 cq_context->log_page_size = mtt->page_shift - 12; in mlx4_cq_resize()
236 cq_context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_cq_alloc()
Dsrq.c152 srq_context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_srq_alloc()
Dqp.c132 context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_qp_modify()
/drivers/mtd/nand/
Dnand_bbt.c153 from = ((loff_t) page) << this->page_shift; in read_bbt()
287 scan_read_raw(mtd, buf, (loff_t)td->pages[0] << this->page_shift, in read_abs_bbts()
296 scan_read_raw(mtd, buf, (loff_t)md->pages[0] << this->page_shift, in read_abs_bbts()
381 len = 1 << (this->bbt_erase_shift - this->page_shift); in create_bbt()
466 int blocktopage = this->bbt_erase_shift - this->page_shift; in search_bbt()
626 (this->bbt_erase_shift - this->page_shift); in write_bbt()
656 to = ((loff_t) page) << this->page_shift; in write_bbt()
676 ops.ooblen = (len >> this->page_shift) * mtd->oobsize; in write_bbt()
683 pageoffs = page - (int)(to >> this->page_shift); in write_bbt()
684 offs = pageoffs << this->page_shift; in write_bbt()
[all …]
Dnand_base.c307 page = (int)(ofs >> chip->page_shift) & chip->pagemask; in nand_block_bad()
1042 int blkcheck = (1 << (chip->phys_erase_shift - chip->page_shift)) - 1; in nand_do_read_ops()
1054 realpage = (int)(from >> chip->page_shift); in nand_do_read_ops()
1354 int blkcheck = (1 << (chip->phys_erase_shift - chip->page_shift)) - 1; in nand_do_read_oob()
1375 ops->ooboffs + readlen > ((mtd->size >> chip->page_shift) - in nand_do_read_oob()
1376 (from >> chip->page_shift)) * len)) { in nand_do_read_oob()
1386 realpage = (int)(from >> chip->page_shift); in nand_do_read_oob()
1740 realpage = (int)(to >> chip->page_shift); in nand_do_write_ops()
1742 blockmask = (1 << (chip->phys_erase_shift - chip->page_shift)) - 1; in nand_do_write_ops()
1745 if (to <= (chip->pagebuf << chip->page_shift) && in nand_do_write_ops()
[all …]
Ddiskonchip.c1083 doc->mh0_page = offs >> this->page_shift; in find_media_headers()
1088 doc->mh1_page = offs >> this->page_shift; in find_media_headers()
1097 offs = doc->mh0_page << this->page_shift; in find_media_headers()
1114 const unsigned psize = 1 << this->page_shift; in nftl_partscan()
1179 offs <<= this->page_shift; in nftl_partscan()
1235 doc->mh1_page = doc->mh0_page + (4096 >> this->page_shift); in inftl_partscan()
Dfsl_elbc_nand.c174 page_addr >> (chip->phys_erase_shift - chip->page_shift)); in set_addr()
198 chip->phys_erase_shift, chip->page_shift); in set_addr()
690 chip->page_shift); in fsl_elbc_chip_init_tail()
Ds3c2410.c774 chip, chip->page_shift); in s3c2410_nand_update_chip()
780 if (chip->page_shift > 10) { in s3c2410_nand_update_chip()
Dnandsim.c576 ns->geom.pgshift = chip->page_shift; in init_nandsim()
2309 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; in ns_init_module()
/drivers/infiniband/hw/amso1100/
Dc2_provider.c346 int err, i, j, k, page_shift, pbl_depth; in c2_reg_phys_mr() local
351 page_shift = PAGE_SHIFT; in c2_reg_phys_mr()
357 page_shift += 3; in c2_reg_phys_mr()
374 (1 << page_shift)) >> page_shift; in c2_reg_phys_mr()
389 (1 << page_shift)) >> page_shift; in c2_reg_phys_mr()
392 (k << page_shift)); in c2_reg_phys_mr()
405 __func__, page_shift, pbl_depth, total_len, in c2_reg_phys_mr()
410 (1 << page_shift), pbl_depth, in c2_reg_phys_mr()
/drivers/infiniband/hw/ipath/
Dipath_mr.c43 u8 page_shift; member
325 fmr->page_shift = fmr_attr->page_shift; in ipath_alloc_fmr()
368 ps = 1 << fmr->page_shift; in ipath_map_phys_fmr()
372 ps = 1 << fmr->page_shift; in ipath_map_phys_fmr()
/drivers/net/e1000e/
Dphy.c1962 u32 page_shift = 0; in e1000e_write_phy_reg_bm() local
1984 page_shift = IGP_PAGE_SHIFT; in e1000e_write_phy_reg_bm()
1987 page_shift = 0; in e1000e_write_phy_reg_bm()
1993 (page << page_shift)); in e1000e_write_phy_reg_bm()
2024 u32 page_shift = 0; in e1000e_read_phy_reg_bm() local
2046 page_shift = IGP_PAGE_SHIFT; in e1000e_read_phy_reg_bm()
2049 page_shift = 0; in e1000e_read_phy_reg_bm()
2055 (page << page_shift)); in e1000e_read_phy_reg_bm()
/drivers/infiniband/hw/mthca/
Dmthca_mr.c594 if (mr->attr.page_shift < 12 || mr->attr.page_shift >= 32) in mthca_fmr_alloc()
652 mpt_entry->page_size = cpu_to_be32(mr->attr.page_shift - 12); in mthca_fmr_alloc()
720 page_mask = (1 << fmr->attr.page_shift) - 1; in mthca_check_fmr()
768 mpt_entry.length = cpu_to_be64(list_len * (1ull << fmr->attr.page_shift)); in mthca_tavor_map_phys_fmr()
815 fmr->mem.arbel.mpt->length = cpu_to_be64(list_len * (1ull << fmr->attr.page_shift)); in mthca_arbel_map_phys_fmr()
/drivers/mtd/onenand/
Donenand_base.c219 page = (int) (addr >> this->page_shift); in onenand_command()
619 page = (int) (addr >> (this->page_shift + 1)) & this->page_mask; in onenand_get_2x_blockpage()
642 blockpage = (int) (addr >> this->page_shift); in onenand_check_bufferram()
685 blockpage = (int) (addr >> this->page_shift); in onenand_update_bufferram()
717 loff_t buf_addr = this->bufferram[i].blockpage << this->page_shift; in onenand_invalidate_bufferram()
988 column + len > ((mtd->size >> this->page_shift) - in onenand_read_oob_nolock()
989 (from >> this->page_shift)) * oobsize)) { in onenand_read_oob_nolock()
1623 column + len > ((mtd->size >> this->page_shift) - in onenand_write_oob_nolock()
1624 (to >> this->page_shift)) * oobsize)) { in onenand_write_oob_nolock()
2628 this->page_shift = ffs(mtd->writesize) - 1; in onenand_probe()
[all …]
Donenand_sim.c345 offset += page << this->page_shift; in onenand_command_handle()
/drivers/infiniband/hw/ehca/
Dehca_mrmw.c287 int ret, page_shift; in ehca_reg_user_mr() local
342 page_shift = PAGE_SHIFT; in ehca_reg_user_mr()
345 page_shift = (fls64(length - 1) + 3) & ~3; in ehca_reg_user_mr()
346 page_shift = min(max(page_shift, EHCA_MR_PGSHIFT4K), in ehca_reg_user_mr()
349 hwpage_size = 1UL << page_shift; in ehca_reg_user_mr()
767 fmr_attr->page_shift); in ehca_alloc_fmr()
772 hw_pgsize = 1 << fmr_attr->page_shift; in ehca_alloc_fmr()
775 fmr_attr->page_shift); in ehca_alloc_fmr()
795 fmr_attr->max_pages * (1 << fmr_attr->page_shift), in ehca_alloc_fmr()
805 e_fmr->fmr_page_size = 1 << fmr_attr->page_shift; in ehca_alloc_fmr()
/drivers/infiniband/hw/mlx4/
Dmr.c95 len = sg_dma_len(&chunk->page_list[j]) >> mtt->page_shift; in mlx4_ib_umem_write_mtt()
273 fmr_attr->page_shift, &fmr->mfmr); in mlx4_ib_fmr_alloc()
Dsrq.c154 err = mlx4_mtt_init(dev->dev, srq->buf.npages, srq->buf.page_shift, in mlx4_ib_create_srq()
Dcq.c107 err = mlx4_mtt_init(dev->dev, buf->buf.npages, buf->buf.page_shift, in mlx4_ib_alloc_cq_buf()
Dqp.c531 err = mlx4_mtt_init(dev->dev, qp->buf.npages, qp->buf.page_shift, in create_qp_common()
1378 fseg->page_size = cpu_to_be32(wr->wr.fast_reg.page_shift); in set_fmr_seg()
/drivers/infiniband/core/
Dfmr_pool.c304 .page_shift = params->page_shift in ib_create_fmr_pool()
/drivers/infiniband/ulp/iser/
Diser_verbs.c148 params.page_shift = SHIFT_4K; in iser_create_ib_conn_res()
/drivers/infiniband/hw/cxgb3/
Diwch_qp.c163 V_FR_PAGE_SIZE(wr->wr.fast_reg.page_shift-12) | in build_fastreg()

12