| /Linux-v4.19/drivers/infiniband/hw/bnxt_re/ |
| D | qplib_res.c | 64 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 …]
|
| D | qplib_fp.c | 562 (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 …]
|
| D | qplib_res.h | 83 u32 pg_size; member 204 u32 elements_per_page, u32 aux, u32 pg_size,
|
| D | qplib_rcfw.c | 438 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()
|
| D | qplib_sp.c | 657 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()
|
| D | ib_verbs.c | 3693 resp.pg_size = PAGE_SIZE; in bnxt_re_alloc_ucontext()
|
| /Linux-v4.19/include/uapi/rdma/ |
| D | bnxt_re-abi.h | 50 __u32 pg_size; member
|
| /Linux-v4.19/drivers/net/ethernet/huawei/hinic/ |
| D | hinic_hw_eqs.c | 35 #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/ |
| D | chtls_io.c | 1082 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/ |
| D | ctrl.c | 494 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/ |
| D | iommu.c | 527 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/ |
| D | i40iw_verbs.c | 1432 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/ |
| D | sbp_target.c | 1257 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/ |
| D | t3_hw.c | 2586 unsigned int pg_size) in pm_num_pages() argument 2588 unsigned int n = mem_size / pg_size; in pm_num_pages()
|