Home
last modified time | relevance | path

Searched refs:pd_mgr (Results 1 – 4 of 4) sorted by relevance

/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c253 pd_bitmap = dev->pd_mgr->pd_dpp_bitmap; in _ocrdma_pd_mgr_get_bitmap()
255 dev->pd_mgr->max_dpp_pd); in _ocrdma_pd_mgr_get_bitmap()
257 dev->pd_mgr->pd_dpp_count++; in _ocrdma_pd_mgr_get_bitmap()
258 if (dev->pd_mgr->pd_dpp_count > dev->pd_mgr->pd_dpp_thrsh) in _ocrdma_pd_mgr_get_bitmap()
259 dev->pd_mgr->pd_dpp_thrsh = dev->pd_mgr->pd_dpp_count; in _ocrdma_pd_mgr_get_bitmap()
261 pd_bitmap = dev->pd_mgr->pd_norm_bitmap; in _ocrdma_pd_mgr_get_bitmap()
263 dev->pd_mgr->max_normal_pd); in _ocrdma_pd_mgr_get_bitmap()
265 dev->pd_mgr->pd_norm_count++; in _ocrdma_pd_mgr_get_bitmap()
266 if (dev->pd_mgr->pd_norm_count > dev->pd_mgr->pd_norm_thrsh) in _ocrdma_pd_mgr_get_bitmap()
267 dev->pd_mgr->pd_norm_thrsh = dev->pd_mgr->pd_norm_count; in _ocrdma_pd_mgr_get_bitmap()
[all …]
Docrdma_hw.c1525 dev->pd_mgr->dpp_page_index = rsp->dpp_page_pdid >> in ocrdma_mbx_alloc_pd_range()
1527 dev->pd_mgr->pd_dpp_start = rsp->dpp_page_pdid & in ocrdma_mbx_alloc_pd_range()
1529 dev->pd_mgr->max_dpp_pd = rsp->pd_count; in ocrdma_mbx_alloc_pd_range()
1530 dev->pd_mgr->pd_dpp_bitmap = bitmap_zalloc(rsp->pd_count, in ocrdma_mbx_alloc_pd_range()
1544 dev->pd_mgr->pd_norm_start = rsp->dpp_page_pdid & in ocrdma_mbx_alloc_pd_range()
1546 dev->pd_mgr->max_normal_pd = rsp->pd_count; in ocrdma_mbx_alloc_pd_range()
1547 dev->pd_mgr->pd_norm_bitmap = bitmap_zalloc(rsp->pd_count, in ocrdma_mbx_alloc_pd_range()
1552 if (dev->pd_mgr->pd_norm_bitmap || dev->pd_mgr->pd_dpp_bitmap) { in ocrdma_mbx_alloc_pd_range()
1554 dev->pd_mgr->pd_prealloc_valid = true; in ocrdma_mbx_alloc_pd_range()
1569 if (dev->pd_mgr->max_normal_pd) { in ocrdma_mbx_dealloc_pd_range()
[all …]
Docrdma_stats.c622 if (dev->pd_mgr->pd_prealloc_valid) { in ocrdma_update_stats()
623 rsrc_stats->dpp_pds = dev->pd_mgr->pd_dpp_count; in ocrdma_update_stats()
624 rsrc_stats->non_dpp_pds = dev->pd_mgr->pd_norm_count; in ocrdma_update_stats()
627 rsrc_stats->dpp_pds = dev->pd_mgr->pd_dpp_thrsh; in ocrdma_update_stats()
628 rsrc_stats->non_dpp_pds = dev->pd_mgr->pd_norm_thrsh; in ocrdma_update_stats()
Docrdma.h312 struct ocrdma_pd_resource_mgr *pd_mgr; member