Home
last modified time | relevance | path

Searched refs:pble_rsrc (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.1/drivers/infiniband/hw/irdma/
Dpble.c10 static int add_pble_prm(struct irdma_hmc_pble_rsrc *pble_rsrc);
16 void irdma_destroy_pble_prm(struct irdma_hmc_pble_rsrc *pble_rsrc) in irdma_destroy_pble_prm() argument
19 struct irdma_pble_prm *pinfo = &pble_rsrc->pinfo; in irdma_destroy_pble_prm()
37 struct irdma_hmc_pble_rsrc *pble_rsrc) in irdma_hmc_init_pble() argument
44 pble_rsrc->dev = dev; in irdma_hmc_init_pble()
45 pble_rsrc->fpm_base_addr = hmc_info->hmc_obj[IRDMA_HMC_IW_PBLE].base; in irdma_hmc_init_pble()
47 if (pble_rsrc->fpm_base_addr & 0xfff) in irdma_hmc_init_pble()
48 fpm_idx = (4096 - (pble_rsrc->fpm_base_addr & 0xfff)) >> 3; in irdma_hmc_init_pble()
49 pble_rsrc->unallocated_pble = in irdma_hmc_init_pble()
51 pble_rsrc->next_fpm_addr = pble_rsrc->fpm_base_addr + (fpm_idx << 3); in irdma_hmc_init_pble()
[all …]
Dpble.h110 void irdma_destroy_pble_prm(struct irdma_hmc_pble_rsrc *pble_rsrc);
112 struct irdma_hmc_pble_rsrc *pble_rsrc);
113 void irdma_free_pble(struct irdma_hmc_pble_rsrc *pble_rsrc,
115 int irdma_get_pble(struct irdma_hmc_pble_rsrc *pble_rsrc,
125 void irdma_pble_acquire_lock(struct irdma_hmc_pble_rsrc *pble_rsrc,
127 void irdma_pble_release_lock(struct irdma_hmc_pble_rsrc *pble_rsrc,
Dhw.c597 irdma_free_pble(rf->pble_rsrc, &aeq->palloc); in irdma_destroy_virt_aeq()
1318 status = irdma_get_pble(rf->pble_rsrc, &aeq->palloc, pg_cnt, true); in irdma_create_virt_aeq()
1327 irdma_free_pble(rf->pble_rsrc, &aeq->palloc); in irdma_create_virt_aeq()
1580 rf->pble_rsrc = (struct irdma_hmc_pble_rsrc *)rf->hmc_info_mem; in irdma_initialize_dev()
1583 (rf->pble_rsrc + 1); in irdma_initialize_dev()
1720 irdma_destroy_pble_prm(rf->pble_rsrc); in irdma_ctrl_deinit_hw()
1811 rf->pble_rsrc); in irdma_rt_init_hw()
1821 irdma_destroy_pble_prm(rf->pble_rsrc); in irdma_rt_init_hw()
Dverbs.c2373 status = irdma_get_pble(rf->pble_rsrc, palloc, iwmr->page_cnt, in irdma_setup_pbles()
2422 irdma_free_pble(iwdev->rf->pble_rsrc, palloc); in irdma_handle_q_mem()
2476 irdma_free_pble(iwdev->rf->pble_rsrc, palloc); in irdma_handle_q_mem()
2655 err_code = irdma_get_pble(iwdev->rf->pble_rsrc, palloc, iwmr->page_cnt, in irdma_alloc_mr()
2668 irdma_free_pble(iwdev->rf->pble_rsrc, palloc); in irdma_alloc_mr()
2910 irdma_free_pble(iwdev->rf->pble_rsrc, palloc); in irdma_reg_user_mr()
2941 irdma_free_pble(iwdev->rf->pble_rsrc, palloc); in irdma_reg_user_mr()
3103 irdma_free_pble(iwdev->rf->pble_rsrc, palloc); in irdma_dereg_mr()
Dmain.h304 struct irdma_hmc_pble_rsrc *pble_rsrc; member