• Home
  • Raw
  • Download

Lines Matching refs:pd_mgr

253 		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()
278 pd_count = dpp_pool ? dev->pd_mgr->pd_dpp_count : in _ocrdma_pd_mgr_put_bitmap()
279 dev->pd_mgr->pd_norm_count; in _ocrdma_pd_mgr_put_bitmap()
284 pd_bit_index = pd_id - dev->pd_mgr->pd_dpp_start; in _ocrdma_pd_mgr_put_bitmap()
285 if (pd_bit_index >= dev->pd_mgr->max_dpp_pd) { in _ocrdma_pd_mgr_put_bitmap()
288 __clear_bit(pd_bit_index, dev->pd_mgr->pd_dpp_bitmap); in _ocrdma_pd_mgr_put_bitmap()
289 dev->pd_mgr->pd_dpp_count--; in _ocrdma_pd_mgr_put_bitmap()
292 pd_bit_index = pd_id - dev->pd_mgr->pd_norm_start; in _ocrdma_pd_mgr_put_bitmap()
293 if (pd_bit_index >= dev->pd_mgr->max_normal_pd) { in _ocrdma_pd_mgr_put_bitmap()
296 __clear_bit(pd_bit_index, dev->pd_mgr->pd_norm_bitmap); 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()
325 pd->id = dev->pd_mgr->pd_dpp_start + pd_idx; in ocrdma_get_pd_num()
326 pd->dpp_page = dev->pd_mgr->dpp_page_index + pd_idx; in ocrdma_get_pd_num()
327 } else if (dev->pd_mgr->pd_norm_count < in ocrdma_get_pd_num()
328 dev->pd_mgr->max_normal_pd) { in ocrdma_get_pd_num()
330 pd->id = dev->pd_mgr->pd_norm_start + pd_idx; in ocrdma_get_pd_num()
336 if (dev->pd_mgr->pd_norm_count < dev->pd_mgr->max_normal_pd) { in ocrdma_get_pd_num()
338 pd->id = dev->pd_mgr->pd_norm_start + pd_idx; in ocrdma_get_pd_num()
371 if (dev->pd_mgr->pd_prealloc_valid) in _ocrdma_alloc_pd()
397 if (dev->pd_mgr->pd_prealloc_valid) in _ocrdma_dealloc_pd()