Lines Matching refs:pvt_pool
21419 struct lpfc_pvt_pool *pvt_pool; in lpfc_snapshot_mxp() local
21429 pvt_pool = &qp->p_multixri_pool->pvt_pool; in lpfc_snapshot_mxp()
21434 multixri_pool->stat_pvt_count = pvt_pool->count; in lpfc_snapshot_mxp()
21508 multixri_pool->pvt_pool.high_watermark = new_watermark; in lpfc_adjust_high_watermark()
21529 struct lpfc_pvt_pool *pvt_pool; in lpfc_move_xri_pvt_to_pbl() local
21539 pvt_pool = &qp->p_multixri_pool->pvt_pool; in lpfc_move_xri_pvt_to_pbl()
21543 lpfc_qp_spin_lock(&pvt_pool->lock, qp, mv_from_pvt_pool); in lpfc_move_xri_pvt_to_pbl()
21545 if (pvt_pool->count > pvt_pool->low_watermark) { in lpfc_move_xri_pvt_to_pbl()
21553 &pvt_pool->list, list) { in lpfc_move_xri_pvt_to_pbl()
21556 if (tmp_count >= pvt_pool->low_watermark) in lpfc_move_xri_pvt_to_pbl()
21561 list_splice_init(&pvt_pool->list, &pbl_pool->list); in lpfc_move_xri_pvt_to_pbl()
21564 list_splice(&tmp_list, &pvt_pool->list); in lpfc_move_xri_pvt_to_pbl()
21566 pbl_pool->count += (pvt_pool->count - tmp_count); in lpfc_move_xri_pvt_to_pbl()
21567 pvt_pool->count = tmp_count; in lpfc_move_xri_pvt_to_pbl()
21570 list_splice_init(&pvt_pool->list, &pbl_pool->list); in lpfc_move_xri_pvt_to_pbl()
21571 pbl_pool->count += pvt_pool->count; in lpfc_move_xri_pvt_to_pbl()
21572 pvt_pool->count = 0; in lpfc_move_xri_pvt_to_pbl()
21575 spin_unlock(&pvt_pool->lock); in lpfc_move_xri_pvt_to_pbl()
21599 struct lpfc_pvt_pool *pvt_pool, u32 count) in _lpfc_move_xri_pbl_to_pvt() argument
21610 lpfc_qp_spin_lock(&pvt_pool->lock, qp, mv_to_pvt_pool); in _lpfc_move_xri_pbl_to_pvt()
21616 &pvt_pool->list); in _lpfc_move_xri_pbl_to_pvt()
21617 pvt_pool->count++; in _lpfc_move_xri_pbl_to_pvt()
21624 spin_unlock(&pvt_pool->lock); in _lpfc_move_xri_pbl_to_pvt()
21650 struct lpfc_pvt_pool *pvt_pool; in lpfc_move_xri_pbl_to_pvt() local
21659 pvt_pool = &multixri_pool->pvt_pool; in lpfc_move_xri_pbl_to_pvt()
21663 ret = _lpfc_move_xri_pbl_to_pvt(phba, qp, pbl_pool, pvt_pool, count); in lpfc_move_xri_pbl_to_pvt()
21686 phba, qp, pbl_pool, pvt_pool, count); in lpfc_move_xri_pbl_to_pvt()
21720 struct lpfc_pvt_pool *pvt_pool; in lpfc_keep_pvt_pool_above_lowwm() local
21723 pvt_pool = &multixri_pool->pvt_pool; in lpfc_keep_pvt_pool_above_lowwm()
21725 if (pvt_pool->count < pvt_pool->low_watermark) in lpfc_keep_pvt_pool_above_lowwm()
21746 struct lpfc_pvt_pool *pvt_pool; in lpfc_release_io_buf() local
21783 pvt_pool = &qp->p_multixri_pool->pvt_pool; in lpfc_release_io_buf()
21789 xri_owned = pvt_pool->count + txcmplq_cnt + abts_io_bufs; in lpfc_release_io_buf()
21802 if ((pvt_pool->count < pvt_pool->low_watermark) || in lpfc_release_io_buf()
21804 pvt_pool->count < pvt_pool->high_watermark)) { in lpfc_release_io_buf()
21805 lpfc_qp_spin_lock_irqsave(&pvt_pool->lock, iflag, in lpfc_release_io_buf()
21808 &pvt_pool->list); in lpfc_release_io_buf()
21809 pvt_pool->count++; in lpfc_release_io_buf()
21810 spin_unlock_irqrestore(&pvt_pool->lock, iflag); in lpfc_release_io_buf()
21846 struct lpfc_pvt_pool *pvt_pool, in lpfc_get_io_buf_from_private_pool() argument
21853 lpfc_qp_spin_lock_irqsave(&pvt_pool->lock, iflag, qp, alloc_pvt_pool); in lpfc_get_io_buf_from_private_pool()
21855 &pvt_pool->list, list) { in lpfc_get_io_buf_from_private_pool()
21860 pvt_pool->count--; in lpfc_get_io_buf_from_private_pool()
21861 spin_unlock_irqrestore(&pvt_pool->lock, iflag); in lpfc_get_io_buf_from_private_pool()
21864 spin_unlock_irqrestore(&pvt_pool->lock, iflag); in lpfc_get_io_buf_from_private_pool()
21934 struct lpfc_pvt_pool *pvt_pool; in lpfc_get_io_buf_from_multixri_pools() local
21952 pvt_pool = &multixri_pool->pvt_pool; in lpfc_get_io_buf_from_multixri_pools()
21953 if (!pvt_pool) { in lpfc_get_io_buf_from_multixri_pools()
21962 if (pvt_pool->count == 0) in lpfc_get_io_buf_from_multixri_pools()
21966 lpfc_ncmd = lpfc_get_io_buf_from_private_pool(phba, qp, pvt_pool, ndlp); in lpfc_get_io_buf_from_multixri_pools()