Lines Matching +full:8 +full:mb
219 mp->chipid = mp->mace->chipid_hi << 8 | mp->mace->chipid_lo; in mace_probe()
222 * The PROM contains 8 bytes which total 0xFF when XOR'd in mace_probe()
236 for (; j < 8; ++j) { in mace_probe()
266 volatile struct mace *mb = mp->mace; in mace_reset() local
272 mb->biucc = SWRST; in mace_reset()
273 if (mb->biucc & SWRST) { in mace_reset()
284 mb->maccc = 0; /* turn off tx, rx */ in mace_reset()
285 mb->imr = 0xFF; /* disable all intrs for now */ in mace_reset()
286 i = mb->ir; in mace_reset()
288 mb->biucc = XMTSP_64; in mace_reset()
289 mb->utr = RTRD; in mace_reset()
290 mb->fifocc = XMTFW_8 | RCVFW_64 | XMTFWU | RCVFWU; in mace_reset()
292 mb->xmtfc = AUTO_PAD_XMIT; /* auto-pad short frames */ in mace_reset()
293 mb->rcvfc = 0; in mace_reset()
300 mb->iac = LOGADDR; in mace_reset()
302 mb->iac = ADDRCHG | LOGADDR; in mace_reset()
303 while ((mb->iac & ADDRCHG) != 0) in mace_reset()
306 for (i = 0; i < 8; ++i) in mace_reset()
307 mb->ladrf = 0; in mace_reset()
311 mb->iac = 0; in mace_reset()
313 mb->plscc = PORTSEL_AUI; in mace_reset()
323 volatile struct mace *mb = mp->mace; in __mace_set_address() local
330 mb->iac = PHYADDR; in __mace_set_address()
332 mb->iac = ADDRCHG | PHYADDR; in __mace_set_address()
333 while ((mb->iac & ADDRCHG) != 0) in __mace_set_address()
337 mb->padr = macaddr[i] = p[i]; in __mace_set_address()
340 mb->iac = 0; in __mace_set_address()
346 volatile struct mace *mb = mp->mace; in mace_set_address() local
352 maccc = mb->maccc; in mace_set_address()
356 mb->maccc = maccc; in mace_set_address()
371 volatile struct mace *mb = mp->mace; in mace_open() local
413 mb->maccc = ENXMT | ENRCV; in mace_open()
415 mb->imr = RCVINT; in mace_open()
434 volatile struct mace *mb = mp->mace; in mace_close() local
436 mb->maccc = 0; /* disable rx and tx */ in mace_close()
437 mb->imr = 0xFF; /* disable all irqs */ in mace_close()
486 volatile struct mace *mb = mp->mace; in mace_set_multicast() local
493 maccc = mb->maccc; in mace_set_multicast()
494 mb->maccc &= ~PROM; in mace_set_multicast()
497 mb->maccc |= PROM; in mace_set_multicast()
499 unsigned char multicast_filter[8]; in mace_set_multicast()
503 for (i = 0; i < 8; i++) { in mace_set_multicast()
507 for (i = 0; i < 8; i++) in mace_set_multicast()
518 mb->iac = LOGADDR; in mace_set_multicast()
520 mb->iac = ADDRCHG | LOGADDR; in mace_set_multicast()
521 while ((mb->iac & ADDRCHG) != 0) in mace_set_multicast()
524 for (i = 0; i < 8; ++i) in mace_set_multicast()
525 mb->ladrf = multicast_filter[i]; in mace_set_multicast()
527 mb->iac = 0; in mace_set_multicast()
530 mb->maccc = maccc; in mace_set_multicast()
537 volatile struct mace *mb = mp->mace; in mace_handle_misc_intrs() local
542 dev->stats.rx_missed_errors += mb->mpc; /* reading clears it */ in mace_handle_misc_intrs()
545 dev->stats.rx_length_errors += mb->rntpc; /* reading clears it */ in mace_handle_misc_intrs()
560 volatile struct mace *mb = mp->mace; in mace_interrupt() local
567 intr = mb->ir; /* read interrupt register */ in mace_interrupt()
571 fs = mb->xmtfs; in mace_interrupt()
591 if (mb->xmtfs & UFLO) { in mace_interrupt()
610 volatile struct mace *mb = mp->mace; in mace_tx_timeout() local
616 mb->maccc = 0; in mace_tx_timeout()
628 mb->maccc = ENXMT | ENRCV; in mace_tx_timeout()
630 mb->imr = RCVINT; in mace_tx_timeout()
655 unsigned int frame_length = mf->rcvcnt + ((frame_status & 0x0F) << 8 ); in mace_dma_rx_frame()