• Home
  • Raw
  • Download

Lines Matching refs:lp

87 static pcnet_priv_t *lp;  variable
334 if (lp == NULL) { in pcnet_init()
337 lp = (pcnet_priv_t *)addr; in pcnet_init()
340 sizeof(*lp->uc)); in pcnet_init()
341 flush_dcache_range(addr, addr + sizeof(*lp->uc)); in pcnet_init()
343 lp->uc = (struct pcnet_uncached_priv *)addr; in pcnet_init()
346 sizeof(*lp->rx_buf)); in pcnet_init()
347 flush_dcache_range(addr, addr + sizeof(*lp->rx_buf)); in pcnet_init()
348 lp->rx_buf = (void *)addr; in pcnet_init()
351 uc = lp->uc; in pcnet_init()
360 lp->cur_rx = 0; in pcnet_init()
362 addr = pcnet_virt_to_mem(dev, (*lp->rx_buf)[i]); in pcnet_init()
376 lp->cur_tx = 0; in pcnet_init()
385 PCNET_DEBUG1("Init block at 0x%p: MAC", &lp->uc->init_block); in pcnet_init()
388 lp->uc->init_block.phys_addr[i] = dev->enetaddr[i]; in pcnet_init()
389 PCNET_DEBUG1(" %02x", lp->uc->init_block.phys_addr[i]); in pcnet_init()
407 addr = pcnet_virt_to_mem(dev, &lp->uc->init_block); in pcnet_init()
438 struct pcnet_tx_head *entry = &lp->uc->tx_ring[lp->cur_tx]; in pcnet_send()
440 PCNET_DEBUG2("Tx%d: %d bytes from 0x%p ", lp->cur_tx, pkt_len, in pcnet_send()
456 dev->name, lp->cur_tx, status); in pcnet_send()
475 if (++lp->cur_tx >= TX_RING_SIZE) in pcnet_send()
476 lp->cur_tx = 0; in pcnet_send()
490 entry = &lp->uc->rx_ring[lp->cur_rx]; in pcnet_recv()
500 printf("%s: Rx%d", dev->name, lp->cur_rx); in pcnet_recv()
517 dev->name, lp->cur_rx, pkt_len); in pcnet_recv()
519 buf = (*lp->rx_buf)[lp->cur_rx]; in pcnet_recv()
524 lp->cur_rx, pkt_len, buf); in pcnet_recv()
531 if (++lp->cur_rx >= RX_RING_SIZE) in pcnet_recv()
532 lp->cur_rx = 0; in pcnet_recv()