/drivers/net/mlx4/ |
D | mr.c | 200 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 …]
|
D | alloc.c | 200 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()
|
D | cq.c | 178 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()
|
D | srq.c | 152 srq_context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_srq_alloc()
|
D | qp.c | 132 context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_qp_modify()
|
/drivers/mtd/nand/ |
D | nand_bbt.c | 153 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 …]
|
D | nand_base.c | 307 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 …]
|
D | diskonchip.c | 1083 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()
|
D | fsl_elbc_nand.c | 174 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()
|
D | s3c2410.c | 774 chip, chip->page_shift); in s3c2410_nand_update_chip() 780 if (chip->page_shift > 10) { in s3c2410_nand_update_chip()
|
D | nandsim.c | 576 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/ |
D | c2_provider.c | 346 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/ |
D | ipath_mr.c | 43 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/ |
D | phy.c | 1962 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/ |
D | mthca_mr.c | 594 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/ |
D | onenand_base.c | 219 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 …]
|
D | onenand_sim.c | 345 offset += page << this->page_shift; in onenand_command_handle()
|
/drivers/infiniband/hw/ehca/ |
D | ehca_mrmw.c | 287 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/ |
D | mr.c | 95 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()
|
D | srq.c | 154 err = mlx4_mtt_init(dev->dev, srq->buf.npages, srq->buf.page_shift, in mlx4_ib_create_srq()
|
D | cq.c | 107 err = mlx4_mtt_init(dev->dev, buf->buf.npages, buf->buf.page_shift, in mlx4_ib_alloc_cq_buf()
|
D | qp.c | 531 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/ |
D | fmr_pool.c | 304 .page_shift = params->page_shift in ib_create_fmr_pool()
|
/drivers/infiniband/ulp/iser/ |
D | iser_verbs.c | 148 params.page_shift = SHIFT_4K; in iser_create_ib_conn_res()
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_qp.c | 163 V_FR_PAGE_SIZE(wr->wr.fast_reg.page_shift-12) | in build_fastreg()
|