Lines Matching refs:pd_mgr

1525 			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()
1570 cmd->start_pd_id = dev->pd_mgr->pd_norm_start; in ocrdma_mbx_dealloc_pd_range()
1571 cmd->pd_count = 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()
1583 cmd->start_pd_id = dev->pd_mgr->pd_dpp_start; in ocrdma_mbx_dealloc_pd_range()
1584 cmd->pd_count = dev->pd_mgr->max_dpp_pd; in ocrdma_mbx_dealloc_pd_range()
1595 dev->pd_mgr = kzalloc(sizeof(struct ocrdma_pd_resource_mgr), in ocrdma_alloc_pd_pool()
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()
1612 kfree(dev->pd_mgr); in ocrdma_free_pd_pool()