Lines Matching refs:nic
365 static int mdio_read(struct nic * , int phy_id, int location);
366 static void getlinktype(struct nic * );
367 static void getlinkstatus(struct nic * );
368 static void set_rx_mode(struct nic *);
373 static void init_ring(struct nic *nic __unused) in init_ring()
415 static void mtd_reset( struct nic *nic ) in mtd_reset() argument
420 init_ring(nic); in mtd_reset()
440 getlinkstatus(nic); in mtd_reset()
444 getlinktype(nic); in mtd_reset()
452 set_rx_mode(nic); in mtd_reset()
462 static int mtd_poll(struct nic *nic, __unused int retrieve) in mtd_poll() argument
493 nic->packetlen = pkt_len; in mtd_poll()
494 memcpy(nic->packet, mtdx.cur_rx->skbuff, pkt_len); in mtd_poll()
515 struct nic *nic, in mtd_transmit() argument
526 memcpy( txb + ETH_ALEN, nic->node_addr, ETH_ALEN ); in mtd_transmit()
577 static void mtd_disable ( struct nic *nic ) { in mtd_disable() argument
583 mtd_reset(nic); in mtd_disable()
608 static int mtd_probe ( struct nic *nic, struct pci_device *pci ) { in mtd_probe() argument
617 nic->ioaddr = pci->ioaddr; in mtd_probe()
618 nic->irqno = 0; in mtd_probe()
622 mtdx.ioaddr = nic->ioaddr; in mtd_probe()
627 nic->node_addr[i] = inb(mtdx.ioaddr + PAR0 + i); in mtd_probe()
630 if (memcmp(nic->node_addr, "\0\0\0\0\0\0", 6) == 0) in mtd_probe()
635 DBG ( "%s: ioaddr %4.4x MAC %s\n", mtdx.nic_name, mtdx.ioaddr, eth_ntoa ( nic->node_addr ) ); in mtd_probe()
647 int mii_status = mdio_read(nic, phy, 1); in mtd_probe()
658 data = mdio_read(nic, mtdx.phys[phy_idx], 2); in mtd_probe()
693 getlinkstatus(nic); in mtd_probe()
700 mtd_reset( nic ); in mtd_probe()
703 nic->nic_op = &mtd_operations; in mtd_probe()
709 static void set_rx_mode(struct nic *nic __unused) in set_rx_mode()
811 static int mdio_read(struct nic *nic __unused, int phyad, int regad) in mdio_read()
850 static void mdio_write(struct nic *nic __unused, int phyad, int regad,
885 static void getlinkstatus(struct nic *nic) in getlinkstatus() argument
907 if (mdio_read(nic, mtdx.phys[0], MII_BMSR) & BMSR_LSTATUS) { in getlinkstatus()
918 static void getlinktype(struct nic *dev) in getlinktype()