Lines Matching refs:nic
415 static void phy_intr(struct nic *nic __unused) in phy_intr()
502 static void ns83820_set_multicast(struct nic *nic __unused);
503 static void ns83820_setup_rx(struct nic *nic) in ns83820_setup_rx() argument
534 phy_intr(nic); in ns83820_setup_rx()
551 ns83820_set_multicast(nic); in ns83820_setup_rx()
556 static void ns83820_do_reset(struct nic *nic __unused, u32 which) in ns83820_do_reset()
566 static void ns83820_reset(struct nic *nic) in ns83820_reset() argument
573 ns83820_setup_rx(nic); in ns83820_reset()
587 static void ns83820_getmac(struct nic *nic __unused, u8 * mac) in ns83820_getmac()
602 static void ns83820_set_multicast(struct nic *nic __unused) in ns83820_set_multicast()
618 static void ns83820_run_bist(struct nic *nic __unused, const char *name, in ns83820_run_bist()
656 static void ns83820_check_intr(struct nic *nic) { in ns83820_check_intr() argument
660 phy_intr(nic); in ns83820_check_intr()
673 static int ns83820_poll(struct nic *nic, int retrieve) in ns83820_poll() argument
681 ns83820_check_intr(nic); in ns83820_poll()
693 nic->packetlen = cmdsts & 0xffff; in ns83820_poll()
694 memcpy(nic->packet, in ns83820_poll()
696 nic->packetlen); in ns83820_poll()
708 static inline void kick_tx(struct nic *nic __unused) in kick_tx()
717 static void ns83820_transmit(struct nic *nic, const char *d, /* Destination */ in ns83820_transmit() argument
729 kick_tx(nic); in ns83820_transmit()
732 memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN); in ns83820_transmit()
753 kick_tx(nic); in ns83820_transmit()
778 ns83820_do_reset((struct nic *) dev, CR_RST); in ns83820_disable()
796 static void ns83820_irq(struct nic *nic __unused, irq_action_t action __unused) in ns83820_irq()
816 struct nic *nic = (struct nic *) dev; in ns83820_probe() local
841 nic->irqno = 0; in ns83820_probe()
842 nic->ioaddr = pci->ioaddr & ~3; in ns83820_probe()
851 ns83820_do_reset(nic, CR_RST); in ns83820_probe()
855 ns83820_run_bist(nic, "sram bist", PTSCR_RBIST_EN, in ns83820_probe()
857 ns83820_run_bist(nic, "eeprom bist", PTSCR_EEBIST_EN, 0, in ns83820_probe()
859 ns83820_run_bist(nic, "eeprom load", PTSCR_EELOAD_EN, 0, 0); in ns83820_probe()
983 ns83820_getmac(nic, nic->node_addr); in ns83820_probe()
984 printf("%! at ioaddr 0x%hX, ", nic->node_addr, ns->base); in ns83820_probe()
994 nic->node_addr, pci->ioaddr)); in ns83820_probe()
1000 ns83820_reset(nic); in ns83820_probe()
1003 nic->poll = ns83820_poll; in ns83820_probe()
1004 nic->transmit = ns83820_transmit; in ns83820_probe()
1005 nic->irq = ns83820_irq; in ns83820_probe()