• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/rt2860/common/

Lines Matching refs:index

57 	int index, num;
145 for (index = 0; index < TX_RING_SIZE; index++) {
146 pTxRing->Cell[index].pNdisPacket = NULL;
147 pTxRing->Cell[index].pNextNdisPacket = NULL;
149 pTxRing->Cell[index].AllocSize = TXD_SIZE;
150 pTxRing->Cell[index].AllocVa = RingBaseVa;
152 Cell[index].AllocPa,
154 RTMP_SetPhysicalAddressLow(pTxRing->Cell[index].
159 pDmaBuf = &pTxRing->Cell[index].DmaBuf;
169 (struct rt_txd *) pTxRing->Cell[index].AllocVa;
183 index));
218 for (index = 0; index < MGMT_RING_SIZE; index++) {
219 pAd->MgmtRing.Cell[index].pNdisPacket = NULL;
220 pAd->MgmtRing.Cell[index].pNextNdisPacket = NULL;
222 pAd->MgmtRing.Cell[index].AllocSize = TXD_SIZE;
223 pAd->MgmtRing.Cell[index].AllocVa = RingBaseVa;
224 RTMP_SetPhysicalAddressHigh(pAd->MgmtRing.Cell[index].
226 RTMP_SetPhysicalAddressLow(pAd->MgmtRing.Cell[index].
234 pTxD = (struct rt_txd *) pAd->MgmtRing.Cell[index].AllocVa;
240 ("MGMT Ring: total %d entry allocated\n", index));
276 for (index = 0; index < RX_RING_SIZE; index++) {
278 pAd->RxRing.Cell[index].AllocSize = RXD_SIZE;
279 pAd->RxRing.Cell[index].AllocVa = RingBaseVa;
280 RTMP_SetPhysicalAddressHigh(pAd->RxRing.Cell[index].
282 RTMP_SetPhysicalAddressLow(pAd->RxRing.Cell[index].
292 pDmaBuf = &pAd->RxRing.Cell[index].DmaBuf;
302 pAd->RxRing.Cell[index].pNdisPacket = pPacket;
315 pRxD = (struct rt_rxd *) pAd->RxRing.Cell[index].AllocVa;
323 ("Rx Ring: total %d entry allocated\n", index));
355 for (index = 0; index < NUM_OF_TX_RING; index++) {
356 InitializeQueueHeader(&pAd->TxSwQueue[index]);
357 /* Init TX rings index pointer */
358 pAd->TxRing[index].TxSwFreeIdx = 0;
359 pAd->TxRing[index].TxCpuIdx = 0;
363 /* Init RX Ring index pointer */
368 /* init MGMT ring index pointer */
538 int index, num, j;
549 for (index = 0; index < NUM_OF_TX_RING; index++) {
555 pQueue = &pAd->TxSwQueue[index];
565 for (index = 0; index < NUM_OF_TX_RING; index++) {
566 pTxRing = &pAd->TxRing[index];
598 for (index = RX_RING_SIZE - 1; index >= 0; index--) {
599 if ((pAd->RxRing.Cell[index].DmaBuf.AllocVa)
600 && (pAd->RxRing.Cell[index].pNdisPacket)) {
602 pAd->RxRing.Cell[index].DmaBuf.AllocPa,
603 pAd->RxRing.Cell[index].DmaBuf.
606 pAd->RxRing.Cell[index].pNdisPacket,