Lines Matching refs:pvt_pool
21168 struct lpfc_pvt_pool *pvt_pool; in lpfc_snapshot_mxp() local
21178 pvt_pool = &qp->p_multixri_pool->pvt_pool; in lpfc_snapshot_mxp()
21183 multixri_pool->stat_pvt_count = pvt_pool->count; in lpfc_snapshot_mxp()
21257 multixri_pool->pvt_pool.high_watermark = new_watermark; in lpfc_adjust_high_watermark()
21278 struct lpfc_pvt_pool *pvt_pool; in lpfc_move_xri_pvt_to_pbl() local
21288 pvt_pool = &qp->p_multixri_pool->pvt_pool; in lpfc_move_xri_pvt_to_pbl()
21292 lpfc_qp_spin_lock(&pvt_pool->lock, qp, mv_from_pvt_pool); in lpfc_move_xri_pvt_to_pbl()
21294 if (pvt_pool->count > pvt_pool->low_watermark) { in lpfc_move_xri_pvt_to_pbl()
21302 &pvt_pool->list, list) { in lpfc_move_xri_pvt_to_pbl()
21305 if (tmp_count >= pvt_pool->low_watermark) in lpfc_move_xri_pvt_to_pbl()
21310 list_splice_init(&pvt_pool->list, &pbl_pool->list); in lpfc_move_xri_pvt_to_pbl()
21313 list_splice(&tmp_list, &pvt_pool->list); in lpfc_move_xri_pvt_to_pbl()
21315 pbl_pool->count += (pvt_pool->count - tmp_count); in lpfc_move_xri_pvt_to_pbl()
21316 pvt_pool->count = tmp_count; in lpfc_move_xri_pvt_to_pbl()
21319 list_splice_init(&pvt_pool->list, &pbl_pool->list); in lpfc_move_xri_pvt_to_pbl()
21320 pbl_pool->count += pvt_pool->count; in lpfc_move_xri_pvt_to_pbl()
21321 pvt_pool->count = 0; in lpfc_move_xri_pvt_to_pbl()
21324 spin_unlock(&pvt_pool->lock); in lpfc_move_xri_pvt_to_pbl()
21348 struct lpfc_pvt_pool *pvt_pool, u32 count) in _lpfc_move_xri_pbl_to_pvt() argument
21359 lpfc_qp_spin_lock(&pvt_pool->lock, qp, mv_to_pvt_pool); in _lpfc_move_xri_pbl_to_pvt()
21365 &pvt_pool->list); in _lpfc_move_xri_pbl_to_pvt()
21366 pvt_pool->count++; in _lpfc_move_xri_pbl_to_pvt()
21373 spin_unlock(&pvt_pool->lock); in _lpfc_move_xri_pbl_to_pvt()
21399 struct lpfc_pvt_pool *pvt_pool; in lpfc_move_xri_pbl_to_pvt() local
21408 pvt_pool = &multixri_pool->pvt_pool; in lpfc_move_xri_pbl_to_pvt()
21412 ret = _lpfc_move_xri_pbl_to_pvt(phba, qp, pbl_pool, pvt_pool, count); in lpfc_move_xri_pbl_to_pvt()
21435 phba, qp, pbl_pool, pvt_pool, count); in lpfc_move_xri_pbl_to_pvt()
21469 struct lpfc_pvt_pool *pvt_pool; in lpfc_keep_pvt_pool_above_lowwm() local
21472 pvt_pool = &multixri_pool->pvt_pool; in lpfc_keep_pvt_pool_above_lowwm()
21474 if (pvt_pool->count < pvt_pool->low_watermark) in lpfc_keep_pvt_pool_above_lowwm()
21495 struct lpfc_pvt_pool *pvt_pool; in lpfc_release_io_buf() local
21532 pvt_pool = &qp->p_multixri_pool->pvt_pool; in lpfc_release_io_buf()
21538 xri_owned = pvt_pool->count + txcmplq_cnt + abts_io_bufs; in lpfc_release_io_buf()
21551 if ((pvt_pool->count < pvt_pool->low_watermark) || in lpfc_release_io_buf()
21553 pvt_pool->count < pvt_pool->high_watermark)) { in lpfc_release_io_buf()
21554 lpfc_qp_spin_lock_irqsave(&pvt_pool->lock, iflag, in lpfc_release_io_buf()
21557 &pvt_pool->list); in lpfc_release_io_buf()
21558 pvt_pool->count++; in lpfc_release_io_buf()
21559 spin_unlock_irqrestore(&pvt_pool->lock, iflag); in lpfc_release_io_buf()
21595 struct lpfc_pvt_pool *pvt_pool, in lpfc_get_io_buf_from_private_pool() argument
21602 lpfc_qp_spin_lock_irqsave(&pvt_pool->lock, iflag, qp, alloc_pvt_pool); in lpfc_get_io_buf_from_private_pool()
21604 &pvt_pool->list, list) { in lpfc_get_io_buf_from_private_pool()
21609 pvt_pool->count--; in lpfc_get_io_buf_from_private_pool()
21610 spin_unlock_irqrestore(&pvt_pool->lock, iflag); in lpfc_get_io_buf_from_private_pool()
21613 spin_unlock_irqrestore(&pvt_pool->lock, iflag); in lpfc_get_io_buf_from_private_pool()
21683 struct lpfc_pvt_pool *pvt_pool; in lpfc_get_io_buf_from_multixri_pools() local
21701 pvt_pool = &multixri_pool->pvt_pool; in lpfc_get_io_buf_from_multixri_pools()
21702 if (!pvt_pool) { in lpfc_get_io_buf_from_multixri_pools()
21711 if (pvt_pool->count == 0) in lpfc_get_io_buf_from_multixri_pools()
21715 lpfc_ncmd = lpfc_get_io_buf_from_private_pool(phba, qp, pvt_pool, ndlp); in lpfc_get_io_buf_from_multixri_pools()