Lines Matching refs:Rpl
372 tp->Rpl[i].NextRPLAddr = htonl(((char *)(&tp->Rpl[(i+1) % RPL_NUM]) - (char *)tp) + tp->dmabuffer); /* DMA buffer may be MMU driven */
373 tp->Rpl[i].Status = (RX_VALID | RX_START_FRAME | RX_END_FRAME | RX_FRAME_IRQ);
374 tp->Rpl[i].FrameSize = 0;
375 tp->Rpl[i].FragList[0].DataCount = cpu_to_be16((unsigned short)tp->MaxPacketSize);
378 tp->Rpl[i].Skb = dev_alloc_skb(tp->MaxPacketSize);
379 tp->Rpl[i].DMABuff = 0;
382 if(tp->Rpl[i].Skb == NULL)
384 tp->Rpl[i].SkbStat = SKB_UNAVAILABLE;
385 tp->Rpl[i].FragList[0].DataAddr = htonl(((char *)tp->LocalRxBuffers[i] - (char *)tp) + tp->dmabuffer);
386 tp->Rpl[i].MData = tp->LocalRxBuffers[i];
390 tp->Rpl[i].Skb->dev = dev;
391 skb_put(tp->Rpl[i].Skb, tp->MaxPacketSize);
394 dmabuf = dma_map_single(tp->pdev, tp->Rpl[i].Skb->data, tp->MaxPacketSize, DMA_FROM_DEVICE);
397 tp->Rpl[i].SkbStat = SKB_DATA_COPY;
398 tp->Rpl[i].FragList[0].DataAddr = htonl(((char *)tp->LocalRxBuffers[i] - (char *)tp) + tp->dmabuffer);
399 tp->Rpl[i].MData = tp->LocalRxBuffers[i];
403 tp->Rpl[i].SkbStat = SKB_DMA_DIRECT;
404 tp->Rpl[i].FragList[0].DataAddr = htonl(dmabuf);
405 tp->Rpl[i].MData = tp->Rpl[i].Skb->data;
406 tp->Rpl[i].DMABuff = dmabuf;
410 tp->Rpl[i].NextRPLPtr = &tp->Rpl[(i+1) % RPL_NUM];
411 tp->Rpl[i].RPLIndex = i;
414 tp->RplHead = &tp->Rpl[0];
415 tp->RplTail = &tp->Rpl[RPL_NUM-1];