| /freebsd/sys/dev/bnxt/bnxt_re/ |
| H A D | qplib_res.h | 228 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 D | qplib_res.c | 72 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 D | bnxt_re-abi.h | 66 __u32 pg_size; member
|
| H A D | qplib_sp.c | 643 u32 pg_size; in bnxt_qplib_reg_mr() local 675 pg_size = PAGE_SIZE; in bnxt_qplib_reg_mr() 681 pg_size = buf_pg_size ? buf_pg_size : PAGE_SIZE; in bnxt_qplib_reg_mr() 683 ((ilog2(pg_size) << in bnxt_qplib_reg_mr()
|
| H A D | qplib_fp.c | 2536 pgsz = ((pbl->pg_size == ROCE_PG_SIZE_4K ? CMDQ_RESIZE_CQ_PG_SIZE_PG_4K : in bnxt_qplib_resize_cq() 2537 pbl->pg_size == ROCE_PG_SIZE_8K ? CMDQ_RESIZE_CQ_PG_SIZE_PG_8K : in bnxt_qplib_resize_cq() 2538 pbl->pg_size == ROCE_PG_SIZE_64K ? CMDQ_RESIZE_CQ_PG_SIZE_PG_64K : in bnxt_qplib_resize_cq() 2539 pbl->pg_size == ROCE_PG_SIZE_2M ? CMDQ_RESIZE_CQ_PG_SIZE_PG_2M : in bnxt_qplib_resize_cq() 2540 pbl->pg_size == ROCE_PG_SIZE_8M ? CMDQ_RESIZE_CQ_PG_SIZE_PG_8M : in bnxt_qplib_resize_cq() 2541 pbl->pg_size == ROCE_PG_SIZE_1G ? CMDQ_RESIZE_CQ_PG_SIZE_PG_1G : in bnxt_qplib_resize_cq()
|
| H A D | ib_verbs.c | 5381 resp.pg_size = PAGE_SIZE; in bnxt_re_alloc_ucontext()
|
| /freebsd/contrib/ofed/libbnxtre/ |
| H A D | main.c | 192 dev->pg_size = resp->pg_size; in _bnxt_re_init_context() 197 cntx->shpg = mmap(NULL, dev->pg_size, PROT_READ | PROT_WRITE, in _bnxt_re_init_context() 205 cntx->dbr_page = mmap(NULL, dev->pg_size, PROT_READ, in _bnxt_re_init_context() 208 munmap(cntx->shpg, dev->pg_size); in _bnxt_re_init_context() 237 munmap(cntx->dbr_page, dev->pg_size); in _bnxt_re_uninit_context() 243 munmap(cntx->shpg, dev->pg_size); in _bnxt_re_uninit_context() 249 munmap(cntx->udpi.wcdbpg, dev->pg_size); in _bnxt_re_uninit_context() 255 munmap(cntx->udpi.dbpage, dev->pg_size); in _bnxt_re_uninit_context() 265 munmap(cntx->db_recovery_page, dev->pg_size); in _bnxt_re_uninit_context()
|
| H A D | verbs.c | 154 cntx->udpi.dbpage = mmap(NULL, dev->pg_size, PROT_WRITE, in bnxt_re_map_db_page() 159 cntx->udpi.wcdbpg = mmap(NULL, dev->pg_size, PROT_WRITE, in bnxt_re_map_db_page() 280 sz = get_aligned((depth * cntx->rdev->cqe_size), cntx->rdev->pg_size); in bnxt_re_alloc_cqslab() 281 mem = bnxt_re_alloc_mem(sz, cntx->rdev->pg_size); in bnxt_re_alloc_cqslab() 345 cq->cq_page = mmap(NULL, dev->pg_size, PROT_READ | PROT_WRITE, MAP_SHARED, in _bnxt_re_create_cq() 399 cntx->db_recovery_page = mmap(NULL, dev->pg_size, PROT_READ | in bnxt_re_create_cq() 436 munmap(cntx->db_recovery_page, dev->pg_size); in bnxt_re_create_cq() 1306 qattr->sz_ring = get_aligned(bytes, cntx->rdev->pg_size); in bnxt_re_get_sqmem_size() 1333 qattr->sz_ring = get_aligned(bytes, cntx->rdev->pg_size); in bnxt_re_get_rqmem_size() 1380 return bnxt_re_alloc_mem(bytes, cntx->rdev->pg_size); in bnxt_re_alloc_qpslab() [all …]
|
| H A D | memory.h | 163 void *bnxt_re_alloc_mem(size_t size, uint32_t pg_size);
|
| H A D | abi.h | 297 __u32 pg_size; member
|
| H A D | main.h | 249 uint32_t pg_size; member
|
| /freebsd/sys/amd64/vmm/amd/ |
| H A D | amdvi_hw.c | 1065 vm_paddr_t hpa, uint64_t pg_size, bool create) in amdvi_set_pt() argument 1072 if (!pg_size) in amdvi_set_pt() 1075 if (hpa & (pg_size - 1)) { in amdvi_set_pt() 1079 if (gpa & (pg_size - 1)) { in amdvi_set_pt() 1084 while ((shift > PAGE_SHIFT) && (pg_size < (1UL << shift))) { in amdvi_set_pt()
|
| /freebsd/sys/dev/irdma/ |
| H A D | irdma_verbs.c | 1692 irdma_check_mem_contiguous(u64 *arr, u32 npages, u32 pg_size) in irdma_check_mem_contiguous() argument 1697 if ((*arr + ((u64)pg_size * pg_idx)) != arr[pg_idx]) in irdma_check_mem_contiguous() 1711 u32 pg_size) in irdma_check_mr_contiguous() argument 1723 pg_size); in irdma_check_mr_contiguous() 1731 if ((*start_addr + (i * pg_size * PBLE_PER_PAGE)) != *arr) in irdma_check_mr_contiguous() 1733 ret = irdma_check_mem_contiguous(arr, leaf->cnt, pg_size); in irdma_check_mr_contiguous() 1799 u32 pg_size, total; in irdma_handle_q_mem() local 1803 pg_size = iwmr->page_size; in irdma_handle_q_mem() 1818 pg_size); in irdma_handle_q_mem() 1822 pg_size); in irdma_handle_q_mem() [all …]
|
| /freebsd/sys/contrib/dev/rtw88/ |
| H A D | fw.c | 1539 u32 pg_size; in rtw_download_drv_rsvd_page() local 1543 pg_size = rtwdev->chip->page_size; in rtw_download_drv_rsvd_page() 1544 pg_num = size / pg_size + ((size & (pg_size - 1)) ? 1 : 0); in rtw_download_drv_rsvd_page()
|
| /freebsd/sys/dev/cxgb/common/ |
| H A D | cxgb_t3_hw.c | 3087 unsigned int pg_size) in pm_num_pages() argument 3089 unsigned int n = mem_size / pg_size; in pm_num_pages()
|