Home
last modified time | relevance | path

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

12

/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mem.c127 int page_shift, size_t offset, size_t num_pages, in __mlx5_ib_populate_pas() argument
131 int shift = page_shift - umem_page_shift; in __mlx5_ib_populate_pas()
176 int page_shift, __be64 *pas, int access_flags) in mlx5_ib_populate_pas() argument
178 return __mlx5_ib_populate_pas(dev, umem, page_shift, 0, in mlx5_ib_populate_pas()
182 int mlx5_ib_get_buf_offset(u64 addr, int page_shift, u32 *offset) in mlx5_ib_get_buf_offset() argument
190 page_size = (u64)1 << page_shift; in mlx5_ib_get_buf_offset()
H A Dmlx5_ib_mr.c547 int npages, int page_shift, int *size, in dma_map_mr_pas() argument
564 mlx5_ib_populate_pas(dev, umem, page_shift, pas, MLX5_IB_MTT_PRESENT); in dma_map_mr_pas()
579 int page_shift) in prep_umr_wqe_common() argument
597 umrwr->page_shift = page_shift; in prep_umr_wqe_common()
603 int page_shift, u64 virt_addr, u64 len, in prep_umr_reg_wqe() argument
606 prep_umr_wqe_common(pd, umrwr, sg, dma, n, key, page_shift); in prep_umr_reg_wqe()
626 int *page_shift, int *ncont, int *order) in mr_umem_get() argument
636 mlx5_ib_cont_pages(umem, start, MLX5_MKEY_PAGE_SHIFT_MASK, npages, page_shift, ncont, order); in mr_umem_get()
644 *npages, *ncont, *order, *page_shift); in mr_umem_get()
667 int page_shift, int order, int access_flags) in reg_umr() argument
[all …]
H A Dmlx5_ib_srq.c80 int page_shift; in create_srq_user() local
116 &page_shift, &ncont, NULL); in create_srq_user()
117 err = mlx5_ib_get_buf_offset(ucmd.buf_addr, page_shift, in create_srq_user()
130 mlx5_ib_populate_pas(dev, srq->umem, page_shift, in->pas, 0); in create_srq_user()
138 in->log_page_size = page_shift - MLX5_ADAPTER_PAGE_SHIFT; in create_srq_user()
185 mlx5_ib_dbg(dev, "srq->buf.page_shift = %d\n", srq->buf.page_shift); in create_srq_kernel()
200 in->log_page_size = srq->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT; in create_srq_kernel()
H A Dmlx5_ib_cq.c751 int page_shift; in create_cq_user() local
788 mlx5_ib_cont_pages(cq->buf.umem, ucmd.buf_addr, 0, &npages, &page_shift, in create_cq_user()
790 mlx5_ib_dbg(dev, "addr 0x%llx, size %u, npages %d, page_shift %d, ncont %d\n", in create_cq_user()
791 (long long)ucmd.buf_addr, entries * ucmd.cqe_size, npages, page_shift, ncont); in create_cq_user()
802 mlx5_ib_populate_pas(dev, cq->buf.umem, page_shift, pas, 0); in create_cq_user()
806 page_shift - MLX5_ADAPTER_PAGE_SHIFT); in create_cq_user()
888 cq->buf.buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in create_cq_kernel()
1114 int *page_shift, int *cqe_size) in resize_user() argument
1141 mlx5_ib_cont_pages(umem, ucmd.buf_addr, 0, &npages, page_shift, in resize_user()
1248 int page_shift; in mlx5_ib_resize_cq() local
[all...]
H A Dmlx5_ib_qp.c653 int *npages, int *page_shift, int *ncont, in mlx5_ib_umem_get() argument
664 mlx5_ib_cont_pages(*umem, addr, 0, npages, page_shift, ncont, NULL); in mlx5_ib_umem_get()
666 err = mlx5_ib_get_buf_offset(addr, *page_shift, offset); in mlx5_ib_umem_get()
673 addr, size, *npages, *page_shift, *ncont, *offset); in mlx5_ib_umem_get()
703 int page_shift = 0; in create_user_rq() local
721 mlx5_ib_cont_pages(rwq->umem, ucmd->buf_addr, 0, &npages, &page_shift, in create_user_rq()
723 err = mlx5_ib_get_buf_offset(ucmd->buf_addr, page_shift, in create_user_rq()
731 rwq->page_shift = page_shift; in create_user_rq()
732 rwq->log_page_size = page_shift - MLX5_ADAPTER_PAGE_SHIFT; in create_user_rq()
737 npages, page_shift, ncont, offset); in create_user_rq()
[all …]
H A Dmlx5_ib.h255 unsigned int page_shift; member
449 unsigned int page_shift; member
964 int mlx5_ib_get_buf_offset(u64 addr, int page_shift, u32 *offset);
991 int page_shift, size_t offset, size_t num_pages,
994 int page_shift, __be64 *pas, int access_flags);
H A Dmlx5_ib_devx.c141 int page_shift; member
2117 &obj->page_shift, &obj->ncont, NULL); in devx_umem_get()
2124 page_mask = (1 << obj->page_shift) - 1; in devx_umem_get()
2152 MLX5_SET(umem, umem, log_page_size, obj->page_shift - in devx_umem_reg_cmd_build()
2155 mlx5_ib_populate_pas(dev, obj->umem, obj->page_shift, mtt, in devx_umem_reg_cmd_build()
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_mr.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()
424 int page_shift, struct mlx4_mr *mr) in mlx4_mr_alloc_reserved() argument
433 return mlx4_mtt_init(dev, npages, page_shift, &mr->mtt); in mlx4_mr_alloc_reserved()
533 int npages, int page_shift, struct mlx4_mr *mr) in mlx4_mr_alloc() argument
543 access, npages, page_shift, mr); in mlx4_mr_alloc()
596 int page_shift, struct mlx4_mpt_entry *mpt_entry) in mlx4_mr_rereg_mem_write() argument
600 err = mlx4_mtt_init(dev, npages, page_shift, &mr->mtt); in mlx4_mr_rereg_mem_write()
606 mpt_entry->entity_size = cpu_to_be32(page_shift); in mlx4_mr_rereg_mem_write()
[all …]
H A Dmlx4_alloc.c593 buf->page_shift = get_order(size) + PAGE_SHIFT; in mlx4_buf_alloc()
601 while (t & ((1 << buf->page_shift) - 1)) { in mlx4_buf_alloc()
602 --buf->page_shift; in mlx4_buf_alloc()
613 buf->page_shift = PAGE_SHIFT; in mlx4_buf_alloc()
805 err = mlx4_mtt_init(dev, wqres->buf.npages, wqres->buf.page_shift, in mlx4_alloc_hwq_res()
H A Dmlx4_cq.c153 cq_context->log_page_size = mtt->page_shift - 12; in mlx4_cq_resize()
279 cq_context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_cq_alloc()
H A Dmlx4_srq.c193 srq_context->log_page_size = mtt->page_shift - MLX4_ICM_PAGE_SHIFT; in mlx4_srq_alloc()
H A Dmlx4_resource_tracker.c2665 int page_shift = (qpc->log_page_size & 0x3f) + 12; in qp_get_mtt_size() local
2685 page_shift); in qp_get_mtt_size()
3012 int page_shift = (eqc->log_page_size & 0x3f) + 12; in eq_get_mtt_size() local
3014 if (log_eq_size + 5 < page_shift) in eq_get_mtt_size()
3017 return 1 << (log_eq_size + 5 - page_shift); in eq_get_mtt_size()
3028 int page_shift = (cqc->log_page_size & 0x3f) + 12; in cq_get_mtt_size() local
3030 if (log_cq_size + 5 < page_shift) in cq_get_mtt_size()
3033 return 1 << (log_cq_size + 5 - page_shift); in cq_get_mtt_size()
3231 mtt.page_shift = 0; in mlx4_WRITE_MTT_wrapper()
3545 int page_shift = (srqc->log_page_size & 0x3f) + 12; in srq_get_mtt_size() local
[all …]
/freebsd/sys/ofed/include/rdma/
H A Dib_fmr_pool.h59 int page_shift; member
H A Drdmavt_mr.h83 u8 page_shift; /* 0 - non unform/non powerof2 sizes */ member
/freebsd/sys/dev/mthca/
H A Dmthca_mr.c578 if (mr->attr.page_shift < 12 || mr->attr.page_shift >= 32) in mthca_fmr_alloc()
636 mpt_entry->page_size = cpu_to_be32(mr->attr.page_shift - 12); in mthca_fmr_alloc()
697 page_mask = (1 << fmr->attr.page_shift) - 1; in mthca_check_fmr()
744 mpt_entry.length = cpu_to_be64(list_len * (1ull << fmr->attr.page_shift)); in mthca_tavor_map_phys_fmr()
794 fmr->mem.arbel.mpt->length = cpu_to_be64(list_len * (1ull << fmr->attr.page_shift)); in mthca_arbel_map_phys_fmr()
/freebsd/sys/dev/mlx4/
H A Ddevice.h640 int page_shift; member
646 int page_shift; member
711 u8 page_shift; member
1094 int mlx4_mtt_init(struct mlx4_dev *dev, int npages, int page_shift,
1100 int npages, int page_shift, struct mlx4_mr *mr);
1399 int max_maps, u8 page_shift, struct mlx4_fmr *fmr);
1519 int page_shift, struct mlx4_mpt_entry *mpt_entry);
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_fmr_pool.c287 .page_shift = params->page_shift in ib_create_fmr_pool()
/freebsd/usr.sbin/pciconf/
H A Dcap.c1083 uint32_t page_caps, page_size, page_shift, size;
1114 page_shift = ffs(page_caps) - 1;
1121 size = (1 << (page_shift + PCI_SRIOV_BASE_PAGE_SHIFT));
1125 page_caps &= ~(1 << page_shift);
968 uint32_t page_caps, page_size, page_shift, size; ecap_sriov() local
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.c5009 static int bnxt_re_page_size_ok(int page_shift) in bnxt_re_page_size_ok() argument
5011 switch (page_shift) { in bnxt_re_page_size_ok()
5037 static int bnxt_re_get_num_pages(struct ib_umem *umem, u64 start, u64 length, int page_shift) in bnxt_re_get_num_pages() argument
5041 if (page_shift == PAGE_SHIFT) { in bnxt_re_get_num_pages()
5044 npages = ALIGN(length, BIT(page_shift)) / BIT(page_shift); in bnxt_re_get_num_pages()
5045 if (start % BIT(page_shift)) in bnxt_re_get_num_pages()
5059 int umem_pgs, page_shift, rc; in bnxt_re_reg_user_mr() local
5119 page_shift = bnxt_re_get_page_shift(umem, virt_addr, start, in bnxt_re_reg_user_mr()
5121 if (!bnxt_re_page_size_ok(page_shift)) { in bnxt_re_reg_user_mr()
5126 npages = bnxt_re_get_num_pages(umem, start, length, page_shift); in bnxt_re_reg_user_mr()
[all …]
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mr.c110 len = sg_dma_len(sg) >> mtt->page_shift; in mlx4_ib_umem_write_mtt()
443 fmr_attr->page_shift, &fmr->mfmr); in mlx4_ib_fmr_alloc()
H A Dmlx4_ib_srq.c159 err = mlx4_mtt_init(dev->dev, srq->buf.npages, srq->buf.page_shift, in mlx4_ib_create_srq()
/freebsd/sys/dev/e1000/
H A De1000_phy.c3144 u32 page_shift, page_select; in e1000_write_phy_reg_bm() local
3151 page_shift = IGP_PAGE_SHIFT; in e1000_write_phy_reg_bm()
3154 page_shift = 0; in e1000_write_phy_reg_bm()
3160 (page << page_shift)); in e1000_write_phy_reg_bm()
3204 u32 page_shift, page_select; in e1000_read_phy_reg_bm() local
3211 page_shift = IGP_PAGE_SHIFT; in e1000_read_phy_reg_bm()
3214 page_shift = 0; in e1000_read_phy_reg_bm()
3220 (page << page_shift)); in e1000_read_phy_reg_bm()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_alloc.c78 buf->page_shift = PAGE_SHIFT; in mlx5_buf_alloc()
/freebsd/sys/dev/cxgbe/common/
H A Dt4vf_hw.c149 sp->page_shift = ((vals[1] >> s_hps) & M_HOSTPAGESIZEPF0) + 10; in t4vf_get_sge_params()
/freebsd/sys/dev/mlx5/
H A Ddriver.h371 u8 page_shift; member
379 u8 page_shift; member

12