Home
last modified time | relevance | path

Searched refs:pg_size (Results 1 – 14 of 14) sorted by relevance

/Linux-v4.19/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c64 dma_free_coherent(&pdev->dev, pbl->pg_size, in __free_pbl()
81 pbl->pg_size = 0; in __free_pbl()
85 struct scatterlist *sghead, u32 pages, u32 pg_size) in __alloc_pbl() argument
103 pbl->pg_size = pg_size; in __alloc_pbl()
108 pbl->pg_size, in __alloc_pbl()
164 u32 pg_size, enum bnxt_qplib_hwq_type hwq_type) in bnxt_qplib_alloc_init_hwq() argument
175 aux_pages = (slots * aux_size) / pg_size; in bnxt_qplib_alloc_init_hwq()
176 if ((slots * aux_size) % pg_size) in bnxt_qplib_alloc_init_hwq()
183 pages = (slots * size) / pg_size + aux_pages; in bnxt_qplib_alloc_init_hwq()
184 if ((slots * size) % pg_size) in bnxt_qplib_alloc_init_hwq()
[all …]
Dqplib_fp.c562 (pbl->pg_size == ROCE_PG_SIZE_4K ? in bnxt_qplib_create_srq()
564 pbl->pg_size == ROCE_PG_SIZE_8K ? in bnxt_qplib_create_srq()
566 pbl->pg_size == ROCE_PG_SIZE_64K ? in bnxt_qplib_create_srq()
568 pbl->pg_size == ROCE_PG_SIZE_2M ? in bnxt_qplib_create_srq()
570 pbl->pg_size == ROCE_PG_SIZE_8M ? in bnxt_qplib_create_srq()
572 pbl->pg_size == ROCE_PG_SIZE_1G ? in bnxt_qplib_create_srq()
754 (pbl->pg_size == ROCE_PG_SIZE_4K ? in bnxt_qplib_create_qp1()
756 pbl->pg_size == ROCE_PG_SIZE_8K ? in bnxt_qplib_create_qp1()
758 pbl->pg_size == ROCE_PG_SIZE_64K ? in bnxt_qplib_create_qp1()
760 pbl->pg_size == ROCE_PG_SIZE_2M ? in bnxt_qplib_create_qp1()
[all …]
Dqplib_res.h83 u32 pg_size; member
204 u32 elements_per_page, u32 aux, u32 pg_size,
Dqplib_rcfw.c438 return (pbl->pg_size == ROCE_PG_SIZE_4K ? in __get_pbl_pg_idx()
440 pbl->pg_size == ROCE_PG_SIZE_8K ? in __get_pbl_pg_idx()
442 pbl->pg_size == ROCE_PG_SIZE_64K ? in __get_pbl_pg_idx()
444 pbl->pg_size == ROCE_PG_SIZE_2M ? in __get_pbl_pg_idx()
446 pbl->pg_size == ROCE_PG_SIZE_8M ? in __get_pbl_pg_idx()
448 pbl->pg_size == ROCE_PG_SIZE_1G ? in __get_pbl_pg_idx()
Dqplib_sp.c657 u32 pg_size; in bnxt_qplib_reg_mr() local
704 pg_size = PAGE_SIZE; in bnxt_qplib_reg_mr()
709 pg_size = buf_pg_size ? buf_pg_size : PAGE_SIZE; in bnxt_qplib_reg_mr()
711 ((ilog2(pg_size) << in bnxt_qplib_reg_mr()
Dib_verbs.c3693 resp.pg_size = PAGE_SIZE; in bnxt_re_alloc_ucontext()
/Linux-v4.19/include/uapi/rdma/
Dbnxt_re-abi.h50 __u32 pg_size; member
/Linux-v4.19/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_eqs.c35 #define GET_EQ_NUM_PAGES(eq, pg_size) \ argument
36 (ALIGN((eq)->q_len * (eq)->elem_size, pg_size) / (pg_size))
38 #define GET_EQ_NUM_ELEMS_IN_PG(eq, pg_size) ((pg_size) / (eq)->elem_size) argument
/Linux-v4.19/drivers/crypto/chelsio/chtls/
Dchtls_io.c1082 int pg_size = PAGE_SIZE; in chtls_sendmsg() local
1089 pg_size <<= compound_order(page); in chtls_sendmsg()
1090 if (off < pg_size && in chtls_sendmsg()
1100 if (page && off == pg_size) { in chtls_sendmsg()
1103 pg_size = PAGE_SIZE; in chtls_sendmsg()
1116 pg_size <<= in chtls_sendmsg()
1121 pg_size = PAGE_SIZE; in chtls_sendmsg()
1128 if (copy > pg_size - off) in chtls_sendmsg()
1129 copy = pg_size - off; in chtls_sendmsg()
1148 if (off + copy < pg_size) { in chtls_sendmsg()
/Linux-v4.19/drivers/crypto/caam/
Dctrl.c494 int pg_size; in caam_probe() local
595 pg_size = (comp_params & CTPR_MS_PG_SZ_MASK) >> CTPR_MS_PG_SZ_SHIFT; in caam_probe()
600 if (pg_size == 0) in caam_probe()
/Linux-v4.19/drivers/iommu/
Diommu.c527 unsigned long pg_size; in iommu_group_create_direct_mappings() local
535 pg_size = 1UL << __ffs(domain->pgsize_bitmap); in iommu_group_create_direct_mappings()
547 start = ALIGN(entry->start, pg_size); in iommu_group_create_direct_mappings()
548 end = ALIGN(entry->start + entry->length, pg_size); in iommu_group_create_direct_mappings()
553 for (addr = start; addr < end; addr += pg_size) { in iommu_group_create_direct_mappings()
560 ret = iommu_map(domain, addr, addr, pg_size, entry->prot); in iommu_group_create_direct_mappings()
/Linux-v4.19/drivers/infiniband/hw/i40iw/
Di40iw_verbs.c1432 static bool i40iw_check_mem_contiguous(u64 *arr, u32 npages, u32 pg_size) in i40iw_check_mem_contiguous() argument
1437 if ((*arr + (pg_size * pg_idx)) != arr[pg_idx]) in i40iw_check_mem_contiguous()
1448 static bool i40iw_check_mr_contiguous(struct i40iw_pble_alloc *palloc, u32 pg_size) in i40iw_check_mr_contiguous() argument
1459 ret = i40iw_check_mem_contiguous(arr, palloc->total_cnt, pg_size); in i40iw_check_mr_contiguous()
1467 if ((*start_addr + (i * pg_size * PBLE_PER_PAGE)) != *arr) in i40iw_check_mr_contiguous()
1469 ret = i40iw_check_mem_contiguous(arr, leaf->cnt, pg_size); in i40iw_check_mr_contiguous()
1535 u32 pg_size; in i40iw_handle_q_mem() local
1541 pg_size = iwmr->page_size; in i40iw_handle_q_mem()
1561 ret = i40iw_check_mem_contiguous(arr, req->sq_pages, pg_size); in i40iw_handle_q_mem()
1563 ret = i40iw_check_mem_contiguous(&arr[req->sq_pages], req->rq_pages, pg_size); in i40iw_handle_q_mem()
[all …]
/Linux-v4.19/drivers/target/sbp/
Dsbp_target.c1257 int tcode, sg_miter_flags, max_payload, pg_size, speed, node_id, in sbp_rw_data() local
1276 pg_size = CMDBLK_ORB_PG_SIZE(be32_to_cpu(req->orb.misc)); in sbp_rw_data()
1277 if (pg_size) { in sbp_rw_data()
1279 pg_size = 0x100 << pg_size; in sbp_rw_data()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c2586 unsigned int pg_size) in pm_num_pages() argument
2588 unsigned int n = mem_size / pg_size; in pm_num_pages()