Lines Matching refs:pbl_pool

21513 	struct lpfc_pbl_pool *pbl_pool;
21523 pbl_pool = &qp->p_multixri_pool->pbl_pool;
21526 multixri_pool->stat_pbl_count = pbl_pool->count;
21621 struct lpfc_pbl_pool *pbl_pool;
21631 pbl_pool = &qp->p_multixri_pool->pbl_pool;
21635 lpfc_qp_spin_lock_irqsave(&pbl_pool->lock, iflag, qp, mv_to_pub_pool);
21640 * to pbl_pool
21653 /* Move all bufs from pvt_pool to pbl_pool */
21654 list_splice_init(&pvt_pool->list, &pbl_pool->list);
21659 pbl_pool->count += (pvt_pool->count - tmp_count);
21662 /* Step 2: move the rest from pvt_pool to pbl_pool */
21663 list_splice_init(&pvt_pool->list, &pbl_pool->list);
21664 pbl_pool->count += pvt_pool->count;
21669 spin_unlock_irqrestore(&pbl_pool->lock, iflag);
21676 * @pbl_pool: specified public free XRI pool
21680 * This routine tries to move some free common bufs from the specified pbl_pool
21685 * true - if XRIs are successfully moved from the specified pbl_pool to the
21687 * false - if the specified pbl_pool is empty or locked by someone else
21691 struct lpfc_pbl_pool *pbl_pool,
21699 ret = spin_trylock_irqsave(&pbl_pool->lock, iflag);
21701 if (pbl_pool->count) {
21706 &pbl_pool->list,
21711 pbl_pool->count--;
21718 spin_unlock_irqrestore(&pbl_pool->lock, iflag);
21721 spin_unlock_irqrestore(&pbl_pool->lock, iflag);
21744 struct lpfc_pbl_pool *pbl_pool;
21753 pbl_pool = &multixri_pool->pbl_pool;
21755 /* Check if local pbl_pool is available */
21756 ret = _lpfc_move_xri_pbl_to_pvt(phba, qp, pbl_pool, pvt_pool, count);
21775 pbl_pool = &next_multixri_pool->pbl_pool;
21779 phba, qp, pbl_pool, pvt_pool, count);
21807 * This routine get a batch of XRIs from pbl_pool if pvt_pool is less than
21830 * the IO buf is returned to pbl_pool or pvt_pool based on watermark and
21838 struct lpfc_pbl_pool *pbl_pool;
21875 pbl_pool = &qp->p_multixri_pool->pbl_pool;
21905 lpfc_qp_spin_lock_irqsave(&pbl_pool->lock, iflag,
21908 &pbl_pool->list);
21909 pbl_pool->count++;
21910 spin_unlock_irqrestore(&pbl_pool->lock, iflag);