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

Lines Matching defs:entry

206 	int entry = lp->next_tx;
229 sonic_tda_put(dev, entry, SONIC_TD_STATUS, 0); /* clear status */
230 sonic_tda_put(dev, entry, SONIC_TD_FRAG_COUNT, 1); /* single fragment */
231 sonic_tda_put(dev, entry, SONIC_TD_PKTSIZE, length); /* length of packet */
232 sonic_tda_put(dev, entry, SONIC_TD_FRAG_PTR_L, laddr & 0xffff);
233 sonic_tda_put(dev, entry, SONIC_TD_FRAG_PTR_H, laddr >> 16);
234 sonic_tda_put(dev, entry, SONIC_TD_FRAG_SIZE, length);
235 sonic_tda_put(dev, entry, SONIC_TD_LINK,
236 sonic_tda_get(dev, entry, SONIC_TD_LINK) | SONIC_EOL);
239 * Must set tx_skb[entry] only after clearing status, and
243 lp->tx_len[entry] = length;
244 lp->tx_laddr[entry] = laddr;
245 lp->tx_skb[entry] = skb;
250 lp->eol_tx = entry;
252 lp->next_tx = (entry + 1) & SONIC_TDS_MASK;
291 int entry = lp->cur_tx;
296 * unallocated/freed (status set & tx_skb[entry] clear)
297 * allocated and sent (status set & tx_skb[entry] set )
298 * allocated and not yet sent (status clear & tx_skb[entry] set )
299 * still being allocated by sonic_send_packet (status clear & tx_skb[entry] clear)
305 while (lp->tx_skb[entry] != NULL) {
306 if ((td_status = sonic_tda_get(dev, entry, SONIC_TD_STATUS)) == 0)
311 lp->stats.tx_bytes += sonic_tda_get(dev, entry, SONIC_TD_PKTSIZE);
325 dev_kfree_skb_irq(lp->tx_skb[entry]);
326 lp->tx_skb[entry] = NULL;
328 dma_unmap_single(lp->device, lp->tx_laddr[entry], lp->tx_len[entry], DMA_TO_DEVICE);
329 lp->tx_laddr[entry] = (dma_addr_t)0;
332 if (sonic_tda_get(dev, entry, SONIC_TD_LINK) & SONIC_EOL) {
333 entry = (entry + 1) & SONIC_TDS_MASK;
336 entry = (entry + 1) & SONIC_TDS_MASK;
339 if (freed_some || lp->tx_skb[entry] == NULL)
341 lp->cur_tx = entry;
412 int entry = lp->cur_rx;
414 while (sonic_rda_get(dev, entry, SONIC_RD_IN_USE) == 0) {
422 status = sonic_rda_get(dev, entry, SONIC_RD_STATUS);
445 dma_unmap_single(lp->device, lp->rx_laddr[entry], SONIC_RBSIZE, DMA_FROM_DEVICE);
446 used_skb = lp->rx_skb[entry];
447 pkt_len = sonic_rda_get(dev, entry, SONIC_RD_PKTLEN);
455 lp->rx_laddr[entry] = new_laddr;
456 lp->rx_skb[entry] = new_skb;
460 sonic_rra_put(dev, entry, SONIC_RR_BUFADR_L, bufadr_l);
461 sonic_rra_put(dev, entry, SONIC_RR_BUFADR_H, bufadr_h);
489 sonic_rda_put(dev, entry, SONIC_RD_LINK,
490 sonic_rda_get(dev, entry, SONIC_RD_LINK) | SONIC_EOL);
491 sonic_rda_put(dev, entry, SONIC_RD_IN_USE, 1);
494 lp->eol_rx = entry;
495 lp->cur_rx = entry = (entry + 1) & SONIC_RDS_MASK;