Lines Matching refs:credits_pend
99 static void free_cmdQ_buffers(pesge *sge, cmdQ_t *Q, uint32_t credits_pend);
599 uint32_t credits_pend[2] = {0, 0};
661 credits_pend[0] += e->Cmdq0CreditReturn;
662 credits_pend[1] += e->Cmdq1CreditReturn;
664 if (unlikely(credits_pend[0] > SGE_BATCH_THRESH)) {
665 free_cmdQ_buffers(sge, &sge->cmdQ[0], credits_pend[0]);
666 credits_pend[0] = 0;
668 if (unlikely(credits_pend[1] > SGE_BATCH_THRESH)) {
669 free_cmdQ_buffers(sge, &sge->cmdQ[1], credits_pend[1]);
670 credits_pend[1] = 0;
692 if (credits_pend[0])
693 free_cmdQ_buffers(sge, &sge->cmdQ[0], credits_pend[0]);
694 if (credits_pend[1])
695 free_cmdQ_buffers(sge, &sge->cmdQ[1], credits_pend[1]);
1161 * Frees 'credits_pend' TX buffers and returns the credits to Q->credits.
1165 free_cmdQ_buffers(pesge *sge, struct cmdQ *Q, unsigned int credits_pend)
1172 uint32_t i = credits_pend;
1241 atomic_add(credits_pend, &Q->cq_credits);