Home
last modified time | relevance | path

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

/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_res.h228 u32 pg_size; member
538 u8 pg_size = BNXT_QPLIB_HWRM_PG_SIZE_4K; in _get_pte_pg_size() local
542 switch (pbl->pg_size) { in _get_pte_pg_size()
543 case ROCE_PG_SIZE_4K: pg_size = BNXT_QPLIB_HWRM_PG_SIZE_4K; in _get_pte_pg_size()
545 case ROCE_PG_SIZE_8K: pg_size = BNXT_QPLIB_HWRM_PG_SIZE_8K; in _get_pte_pg_size()
547 case ROCE_PG_SIZE_64K: pg_size = BNXT_QPLIB_HWRM_PG_SIZE_64K; in _get_pte_pg_size()
549 case ROCE_PG_SIZE_2M: pg_size = BNXT_QPLIB_HWRM_PG_SIZE_2M; in _get_pte_pg_size()
551 case ROCE_PG_SIZE_8M: pg_size = BNXT_QPLIB_HWRM_PG_SIZE_8M; in _get_pte_pg_size()
553 case ROCE_PG_SIZE_1G: pg_size = BNXT_QPLIB_HWRM_PG_SIZE_1G; in _get_pte_pg_size()
558 return pg_size; in _get_pte_pg_size()
[all …]
H A Dqplib_res.c72 dma_free_coherent(&pdev->dev, pbl->pg_size, in __free_pbl()
94 pbl->pg_size = 0; in __free_pbl()
172 pbl->pg_size = sginfo->pgsize; in __alloc_pbl()
176 pbl->pg_size, in __alloc_pbl()
230 u32 aux_slots, pg_size; in bnxt_qplib_alloc_init_hwq() local
237 pg_size = hwq_attr->sginfo->pgsize; in bnxt_qplib_alloc_init_hwq()
245 aux_pages = (aux_slots * aux_size) / pg_size; in bnxt_qplib_alloc_init_hwq()
246 if ((aux_slots * aux_size) % pg_size) in bnxt_qplib_alloc_init_hwq()
252 npages = (depth * stride) / pg_size + aux_pages; in bnxt_qplib_alloc_init_hwq()
253 if ((depth * stride) % pg_size) in bnxt_qplib_alloc_init_hwq()
[all …]
H A Dbnxt_re-abi.h64 __u32 pg_size; member
H A Dqplib_sp.c641 u32 pg_size; in bnxt_qplib_reg_mr() local
673 pg_size = PAGE_SIZE; in bnxt_qplib_reg_mr()
679 pg_size = buf_pg_size ? buf_pg_size : PAGE_SIZE; in bnxt_qplib_reg_mr()
681 ((ilog2(pg_size) << in bnxt_qplib_reg_mr()
H A Dqplib_fp.c2513 pgsz = ((pbl->pg_size == ROCE_PG_SIZE_4K ? CMDQ_RESIZE_CQ_PG_SIZE_PG_4K : in bnxt_qplib_resize_cq()
2514 pbl->pg_size == ROCE_PG_SIZE_8K ? CMDQ_RESIZE_CQ_PG_SIZE_PG_8K : in bnxt_qplib_resize_cq()
2515 pbl->pg_size == ROCE_PG_SIZE_64K ? CMDQ_RESIZE_CQ_PG_SIZE_PG_64K : in bnxt_qplib_resize_cq()
2516 pbl->pg_size == ROCE_PG_SIZE_2M ? CMDQ_RESIZE_CQ_PG_SIZE_PG_2M : in bnxt_qplib_resize_cq()
2517 pbl->pg_size == ROCE_PG_SIZE_8M ? CMDQ_RESIZE_CQ_PG_SIZE_PG_8M : in bnxt_qplib_resize_cq()
2518 pbl->pg_size == ROCE_PG_SIZE_1G ? CMDQ_RESIZE_CQ_PG_SIZE_PG_1G : in bnxt_qplib_resize_cq()
H A Dib_verbs.c5303 resp.pg_size = PAGE_SIZE; in bnxt_re_alloc_ucontext()
/freebsd/sys/amd64/vmm/amd/
H A Damdvi_hw.c1074 vm_paddr_t hpa, uint64_t pg_size, bool create) in amdvi_set_pt() argument
1081 if (!pg_size) in amdvi_set_pt()
1084 if (hpa & (pg_size - 1)) { in amdvi_set_pt()
1088 if (gpa & (pg_size - 1)) { in amdvi_set_pt()
1093 while ((shift > PAGE_SHIFT) && (pg_size < (1UL << shift))) { in amdvi_set_pt()
/freebsd/sys/dev/irdma/
H A Dirdma_verbs.c1666 irdma_check_mem_contiguous(u64 *arr, u32 npages, u32 pg_size) in irdma_check_mem_contiguous() argument
1671 if ((*arr + (pg_size * pg_idx)) != arr[pg_idx]) in irdma_check_mem_contiguous()
1685 u32 pg_size) in irdma_check_mr_contiguous() argument
1697 pg_size); in irdma_check_mr_contiguous()
1705 if ((*start_addr + (i * pg_size * PBLE_PER_PAGE)) != *arr) in irdma_check_mr_contiguous()
1707 ret = irdma_check_mem_contiguous(arr, leaf->cnt, pg_size); in irdma_check_mr_contiguous()
1773 u32 pg_size, total; in irdma_handle_q_mem() local
1777 pg_size = iwmr->page_size; in irdma_handle_q_mem()
1792 pg_size); in irdma_handle_q_mem()
1796 pg_size); in irdma_handle_q_mem()
[all …]
/freebsd/sys/contrib/dev/rtw88/
H A Dfw.c1507 u32 pg_size; in __rtw_build_rsvd_page_from_vifs()
1511 pg_size = rtwdev->chip->page_size; in rtw_build_rsvd_page()
1512 pg_num = size / pg_size + ((size & (pg_size - 1)) ? 1 : 0); in rtw_build_rsvd_page()
1427 u32 pg_size; rtw_download_drv_rsvd_page() local
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_hwrm.c515 uint8_t pg_size = 0; in bnxt_hwrm_set_pg_attr() local
518 pg_size = 1 << 4; in bnxt_hwrm_set_pg_attr()
520 pg_size = 2 << 4; in bnxt_hwrm_set_pg_attr()
522 *pg_attr = pg_size; in bnxt_hwrm_set_pg_attr()
/freebsd/sys/dev/cxgb/common/
H A Dcxgb_t3_hw.c3087 unsigned int pg_size) in pm_num_pages() argument
3089 unsigned int n = mem_size / pg_size; in pm_num_pages()