Home
last modified time | relevance | path

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

/openbmc/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_verbs.c255 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()
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()
289 dev->pd_mgr->pd_dpp_count--; in _ocrdma_pd_mgr_put_bitmap()
297 dev->pd_mgr->pd_norm_count--; in _ocrdma_pd_mgr_put_bitmap()
323 if (dev->pd_mgr->pd_dpp_count < dev->pd_mgr->max_dpp_pd) { in ocrdma_get_pd_num()
[all …]
H A Docrdma_hw.c1529 dev->pd_mgr->max_dpp_pd = rsp->pd_count; in ocrdma_mbx_alloc_pd_range()
1546 dev->pd_mgr->max_normal_pd = 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()
1575 if (dev->pd_mgr->max_dpp_pd) { in ocrdma_mbx_dealloc_pd_range()
1584 cmd->pd_count = dev->pd_mgr->max_dpp_pd; in ocrdma_mbx_dealloc_pd_range()
1597 if (!dev->pd_mgr) in ocrdma_alloc_pd_pool()
1610 bitmap_free(dev->pd_mgr->pd_norm_bitmap); in ocrdma_free_pd_pool()
1611 bitmap_free(dev->pd_mgr->pd_dpp_bitmap); in ocrdma_free_pd_pool()
[all …]
H A 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()
H A Docrdma.h312 struct ocrdma_pd_resource_mgr *pd_mgr; member