Lines Matching refs:nic
303 static void w89c840_reset(struct nic *nic) in w89c840_reset() argument
317 writeb(nic->node_addr[i], ioaddr + StationAddr + i); in w89c840_reset()
379 static int w89c840_poll(struct nic *nic, int retrieve) in w89c840_poll() argument
434 w89c840_reset(nic); in w89c840_poll()
447 nic->packetlen = pkt_len; in w89c840_poll()
452 memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len); in w89c840_poll()
463 nic->packet[0], nic->packet[1], nic->packet[2], nic->packet[3], in w89c840_poll()
464 nic->packet[4], nic->packet[5], nic->packet[6], nic->packet[7], in w89c840_poll()
465 nic->packet[8], nic->packet[9], nic->packet[10], in w89c840_poll()
466 nic->packet[11], nic->packet[12], nic->packet[13], in w89c840_poll()
467 nic->packet[14], nic->packet[15], nic->packet[16], in w89c840_poll()
468 nic->packet[17]); in w89c840_poll()
485 struct nic *nic, in w89c840_transmit() argument
502 memcpy (tx_packet + ETH_ALEN, nic->node_addr, ETH_ALEN);/* src */ in w89c840_transmit()
584 struct nic *nic = (struct nic *)dev; in w89c840_disable() local
586 w89c840_reset(nic); in w89c840_disable()
597 static void w89c840_irq(struct nic *nic __unused, irq_action_t action __unused) in w89c840_irq()
614 struct nic *nic = (struct nic *)dev; in w89c840_probe() local
623 nic->ioaddr = p->ioaddr & ~3; in w89c840_probe()
624 nic->irqno = 0; in w89c840_probe()
662 nic->node_addr[i] = (eeprom[i/2] >> (8*(i&1))) & 0xff; in w89c840_probe()
664 printf ("Ethernet addr: %!\n", nic->node_addr); in w89c840_probe()
699 nic->poll = w89c840_poll; in w89c840_probe()
700 nic->transmit = w89c840_transmit; in w89c840_probe()
701 nic->irq = w89c840_irq; in w89c840_probe()
703 w89c840_reset(nic); in w89c840_probe()