Lines Matching refs:nic
220 struct nic *natsemi_probe(struct nic *nic, unsigned short *io_addrs, struct pci_device *pci);
223 static void natsemi_init(struct nic *nic);
224 static void natsemi_reset(struct nic *nic);
225 static void natsemi_init_rxfilter(struct nic *nic);
226 static void natsemi_init_txd(struct nic *nic);
227 static void natsemi_init_rxd(struct nic *nic);
228 static void natsemi_set_rx_mode(struct nic *nic);
229 static void natsemi_check_duplex(struct nic *nic);
230 static void natsemi_transmit(struct nic *nic, const char *d, unsigned int t, unsigned int s, const …
231 static int natsemi_poll(struct nic *nic);
232 static void natsemi_disable(struct nic *nic);
248 struct nic *
249 natsemi_probe(struct nic *nic, unsigned short *io_addrs, struct pci_device *pci) in natsemi_probe() argument
283 nic->node_addr[i*2] = (eedata << 1) + (prev_eedata >> 15); in natsemi_probe()
284 nic->node_addr[i*2+1] = eedata >> 7; in natsemi_probe()
289 nic->node_addr, ioaddr); in natsemi_probe()
318 natsemi_init(nic); in natsemi_probe()
320 nic->reset = natsemi_init; in natsemi_probe()
321 nic->poll = natsemi_poll; in natsemi_probe()
322 nic->transmit = natsemi_transmit; in natsemi_probe()
323 nic->disable = natsemi_disable; in natsemi_probe()
325 return nic; in natsemi_probe()
409 natsemi_init(struct nic *nic) in natsemi_init() argument
411 natsemi_reset(nic); in natsemi_init()
421 natsemi_init_rxfilter(nic); in natsemi_init()
423 natsemi_init_txd(nic); in natsemi_init()
424 natsemi_init_rxd(nic); in natsemi_init()
439 natsemi_check_duplex(nic); in natsemi_init()
440 natsemi_set_rx_mode(nic); in natsemi_init()
455 natsemi_reset(struct nic *nic) in natsemi_reset() argument
486 natsemi_init_rxfilter(struct nic *nic) in natsemi_init_rxfilter() argument
492 outw(nic->node_addr[i] + (nic->node_addr[i+1] << 8), ioaddr + RxFilterData); in natsemi_init_rxfilter()
507 natsemi_init_txd(struct nic *nic) in natsemi_init_txd() argument
530 natsemi_init_rxd(struct nic *nic) in natsemi_init_rxd() argument
565 static void natsemi_set_rx_mode(struct nic *nic) in natsemi_set_rx_mode() argument
572 static void natsemi_check_duplex(struct nic *nic) in natsemi_check_duplex() argument
604 natsemi_transmit(struct nic *nic, in natsemi_transmit() argument
623 memcpy(txb + ETH_ALEN, nic->node_addr, ETH_ALEN); in natsemi_transmit()
677 natsemi_poll(struct nic *nic) in natsemi_poll() argument
692 nic->packetlen = (rx_status & DSIZE) - CRC_SIZE; in natsemi_poll()
701 memcpy(nic->packet, (rxb + cur_rx*RX_BUF_SIZE), nic->packetlen); in natsemi_poll()
728 natsemi_disable(struct nic *nic) in natsemi_disable() argument