Lines Matching refs:idx
60 int idx,
63 lm_rx_chain_t * pLmRxChain = &LM_RXQ(&pUM->lm_dev, idx);
75 BNXE_LOCK_ENTER_RX(pUM, idx);
77 if (pUM->rxq[idx].rxLowWater > s_list_entry_cnt(&pLmRxChain->active_descq))
79 pUM->rxq[idx].rxLowWater = s_list_entry_cnt(&pLmRxChain->active_descq);
82 lm_return_packet_bytes(&pUM->lm_dev, idx, returnedBytes);
94 BNXE_LOCK_EXIT_RX(pUM, idx);
103 BNXE_LOCK_EXIT_RX(pUM, idx);
108 lm_post_buffers(&pUM->lm_dev, idx, NULL, 0);
110 BNXE_LOCK_EXIT_RX(pUM, idx);
145 int idx = pRxPkt->idx;
159 if (pUM->rxBufSignature[LM_CHAIN_IDX_CLI(&pUM->lm_dev, idx)] !=
180 BNXE_LOCK_ENTER_DONERX(pUM, idx);
182 s_list_push_tail(&pUM->rxq[idx].doneRxQ,
186 if (s_list_entry_cnt(&pUM->rxq[idx].doneRxQ) >= pUM->devParams.maxRxFree)
188 doneRxQ = pUM->rxq[idx].doneRxQ;
189 s_list_clear(&pUM->rxq[idx].doneRxQ);
192 BNXE_LOCK_EXIT_DONERX(pUM, idx);
196 BnxeRxPostBuffers(pUM, idx, &doneRxQ);
200 atomic_dec_32(&pUM->rxq[idx].rxBufUpInStack);
207 int i, idx, cnt=0, tot=0;
237 LM_FOREACH_RSS_IDX(&pUM->lm_dev, idx)
241 if ((cnt = pUM->rxq[idx].rxBufUpInStack) == 0)
256 tot, idx);
274 int idx,
298 pRxQ = &pUM->rxq[idx];
303 BNXE_LOCK_ENTER_RX(pUM, idx);
305 pktsRxed = lm_get_packets_rcvd(&pUM->lm_dev, idx, &tmpList, &sp_cqes);
314 BNXE_LOCK_EXIT_RX(pUM, idx);
327 pLmRxChain = &LM_RXQ(&pUM->lm_dev, idx);
332 (pUM->lm_dev.params.l2_rx_desc_cnt[LM_CHAIN_IDX_CLI(&pUM->lm_dev, idx)] >> 3));
436 pRxPkt->idx = idx;
506 (BNXE_FCOE(pUM) && (idx == FCOE_CID(&pUM->lm_dev))) ?
517 atomic_add_32(&pUM->rxq[idx].rxBufUpInStack, notCopiedCount);
526 if (BNXE_FCOE(pUM) && (idx == FCOE_CID(&pUM->lm_dev)))
544 pUM->rxq[idx].ringHandle,
546 pUM->rxq[idx].genNumber);
549 pUM->macRxResourceHandles[idx],
559 BNXE_LOCK_ENTER_RX(pUM, idx);
561 BNXE_LOCK_EXIT_RX(pUM, idx);
566 BnxeRxPostBuffers(pUM, idx, &reclaimList);
578 int idx)
582 BNXE_LOCK_ENTER_RX(pUM, idx);
584 tmpList = pUM->rxq[idx].waitRxQ;
585 s_list_clear(&pUM->rxq[idx].waitRxQ);
587 s_list_add_tail(&LM_RXQ(&pUM->lm_dev, idx).common.free_descq, &tmpList);
589 BNXE_LOCK_EXIT_RX(pUM, idx);
598 int idx)
600 BnxeRxRingDump(pUM, idx);
602 BNXE_LOCK_ENTER_RX(pUM, idx);
603 lm_abort(&pUM->lm_dev, ABORT_OP_RX_CHAIN, idx);
604 BNXE_LOCK_EXIT_RX(pUM, idx);
611 int idx;
622 LM_FOREACH_RSS_IDX(&pUM->lm_dev, idx)
624 BnxeRxPktsAbortIdx(pUM, idx);
638 int idx,
656 pRxPkt->rx_info.mem_size = MAX_L2_CLI_BUFFER_SIZE(&pUM->lm_dev, idx);
696 int idx)
698 BNXE_LOCK_ENTER_RX(pUM, idx);
699 lm_post_buffers(&pUM->lm_dev, idx, NULL, 0);
700 BNXE_LOCK_EXIT_RX(pUM, idx);
709 int idx;
720 LM_FOREACH_RSS_IDX(&pUM->lm_dev, idx)
722 BnxeRxPktsInitPostBuffersIdx(pUM, idx);
738 int idx)
747 BNXE_LOCK_ENTER_RX(pUM, idx);
749 pLmRxChain = &LM_RXQ(pLM, idx);
751 s_list_clear(&pUM->rxq[idx].doneRxQ);
752 pUM->rxq[idx].rxLowWater = pLM->params.l2_rx_desc_cnt[LM_CHAIN_IDX_CLI(pLM, idx)];
753 pUM->rxq[idx].rxDiscards = 0;
754 pUM->rxq[idx].rxCopied = 0;
756 s_list_clear(&pUM->rxq[idx].waitRxQ);
760 i < pLM->params.l2_rx_desc_cnt[LM_CHAIN_IDX_CLI(pLM, idx)];
772 pRxPkt->signature = pUM->rxBufSignature[LM_CHAIN_IDX_CLI(pLM, idx)];
778 if (BnxeRxBufAlloc(pUM, idx, pRxPkt) != 0)
789 if (postCnt != pLM->params.l2_rx_desc_cnt[LM_CHAIN_IDX_CLI(pLM, idx)])
792 pLM->params.l2_rx_desc_cnt[LM_CHAIN_IDX_CLI(pLM, idx)],
796 BNXE_LOCK_EXIT_RX(pUM, idx);
805 int idx;
819 LM_FOREACH_RSS_IDX(&pUM->lm_dev, idx)
821 BnxeRxPktsInitIdx(pUM, idx);
837 int idx)
843 pLmRxChain = &LM_RXQ(&pUM->lm_dev, idx);
847 BNXE_LOCK_ENTER_RX(pUM, idx);
850 BNXE_LOCK_EXIT_RX(pUM, idx);
852 BNXE_LOCK_ENTER_DONERX(pUM, idx);
853 s_list_add_tail(&tmpList, &pUM->rxq[idx].doneRxQ);
854 s_list_clear(&pUM->rxq[idx].doneRxQ);
855 BNXE_LOCK_EXIT_DONERX(pUM, idx);
858 pUM->lm_dev.params.l2_rx_desc_cnt[LM_CHAIN_IDX_CLI(&pUM->lm_dev, idx)])
860 BnxeLogWarn(pUM, "WARNING Missing RX packets (idx:%d) (%lu / %d - %u in stack)",
861 idx, s_list_entry_cnt(&tmpList),
862 pUM->lm_dev.params.l2_rx_desc_cnt[LM_CHAIN_IDX_CLI(&pUM->lm_dev, idx)],
863 pUM->rxq[idx].rxBufUpInStack);
894 int idx;
908 LM_FOREACH_RSS_IDX(&pUM->lm_dev, idx)
910 BnxeRxPktsFiniIdx(pUM, idx);