Lines Matching refs:nic

419 void r8169_irq ( struct nic *nic __unused, irq_action_t action ) {  in r8169_irq()
446 static int r8169_poll(struct nic *nic, int retreive) in r8169_poll() argument
467 nic->packetlen = (int) (tpc->RxDescArray[cur_rx]. in r8169_poll()
469 memcpy(nic->packet, tpc->RxBufferRing[cur_rx], in r8169_poll()
470 nic->packetlen); in r8169_poll()
500 static void r8169_transmit(struct nic *nic, const char *d, /* Destination */ in r8169_transmit() argument
515 memcpy(ptxb + ETH_ALEN, nic->node_addr, ETH_ALEN); in r8169_transmit()
544 static void rtl8169_set_rx_mode(struct nic *nic __unused) in rtl8169_set_rx_mode()
564 static void rtl8169_hw_start(struct nic *nic) in rtl8169_hw_start() argument
606 rtl8169_set_rx_mode(nic); in rtl8169_hw_start()
612 static void rtl8169_init_ring(struct nic *nic __unused) in rtl8169_init_ring()
641 static void r8169_reset(struct nic *nic) in r8169_reset() argument
668 rtl8169_init_ring(nic); in r8169_reset()
669 rtl8169_hw_start(nic); in r8169_reset()
675 txb[0] = nic->node_addr[0]; in r8169_reset()
676 txb[1] = nic->node_addr[1]; in r8169_reset()
677 txb[2] = nic->node_addr[2]; in r8169_reset()
678 txb[3] = nic->node_addr[3]; in r8169_reset()
679 txb[4] = nic->node_addr[4]; in r8169_reset()
680 txb[5] = nic->node_addr[5]; in r8169_reset()
714 struct nic *nic = (struct nic *) dev; in r8169_probe() local
734 nic->node_addr[i] = RTL_R8(MAC0 + i); in r8169_probe()
739 printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr, in r8169_probe()
831 r8169_reset(nic); in r8169_probe()
834 nic->poll = r8169_poll; in r8169_probe()
835 nic->transmit = r8169_transmit; in r8169_probe()
836 nic->irqno = pci->irq; in r8169_probe()
837 nic->irq = r8169_irq; in r8169_probe()
838 nic->ioaddr = ioaddr; in r8169_probe()