Lines Matching refs:mb
264 volatile struct mace *mb = mp->mace; in mace_reset() local
270 mb->biucc = SWRST; in mace_reset()
271 if (mb->biucc & SWRST) { in mace_reset()
282 mb->maccc = 0; /* turn off tx, rx */ in mace_reset()
283 mb->imr = 0xFF; /* disable all intrs for now */ in mace_reset()
284 i = mb->ir; in mace_reset()
286 mb->biucc = XMTSP_64; in mace_reset()
287 mb->utr = RTRD; in mace_reset()
288 mb->fifocc = XMTFW_8 | RCVFW_64 | XMTFWU | RCVFWU; in mace_reset()
290 mb->xmtfc = AUTO_PAD_XMIT; /* auto-pad short frames */ in mace_reset()
291 mb->rcvfc = 0; in mace_reset()
298 mb->iac = LOGADDR; in mace_reset()
300 mb->iac = ADDRCHG | LOGADDR; in mace_reset()
301 while ((mb->iac & ADDRCHG) != 0) in mace_reset()
305 mb->ladrf = 0; in mace_reset()
309 mb->iac = 0; in mace_reset()
311 mb->plscc = PORTSEL_AUI; in mace_reset()
321 volatile struct mace *mb = mp->mace; in __mace_set_address() local
327 mb->iac = PHYADDR; in __mace_set_address()
329 mb->iac = ADDRCHG | PHYADDR; in __mace_set_address()
330 while ((mb->iac & ADDRCHG) != 0) in __mace_set_address()
334 mb->padr = dev->dev_addr[i] = p[i]; in __mace_set_address()
336 mb->iac = 0; in __mace_set_address()
342 volatile struct mace *mb = mp->mace; in mace_set_address() local
348 maccc = mb->maccc; in mace_set_address()
352 mb->maccc = maccc; in mace_set_address()
367 volatile struct mace *mb = mp->mace; in mace_open() local
409 mb->maccc = ENXMT | ENRCV; in mace_open()
411 mb->imr = RCVINT; in mace_open()
430 volatile struct mace *mb = mp->mace; in mace_close() local
432 mb->maccc = 0; /* disable rx and tx */ in mace_close()
433 mb->imr = 0xFF; /* disable all irqs */ in mace_close()
482 volatile struct mace *mb = mp->mace; in mace_set_multicast() local
489 maccc = mb->maccc; in mace_set_multicast()
490 mb->maccc &= ~PROM; in mace_set_multicast()
493 mb->maccc |= PROM; in mace_set_multicast()
514 mb->iac = LOGADDR; in mace_set_multicast()
516 mb->iac = ADDRCHG | LOGADDR; in mace_set_multicast()
517 while ((mb->iac & ADDRCHG) != 0) in mace_set_multicast()
521 mb->ladrf = multicast_filter[i]; in mace_set_multicast()
523 mb->iac = 0; in mace_set_multicast()
526 mb->maccc = maccc; in mace_set_multicast()
533 volatile struct mace *mb = mp->mace; in mace_handle_misc_intrs() local
538 dev->stats.rx_missed_errors += mb->mpc; /* reading clears it */ in mace_handle_misc_intrs()
541 dev->stats.rx_length_errors += mb->rntpc; /* reading clears it */ in mace_handle_misc_intrs()
556 volatile struct mace *mb = mp->mace; in mace_interrupt() local
563 intr = mb->ir; /* read interrupt register */ in mace_interrupt()
567 fs = mb->xmtfs; in mace_interrupt()
587 if (mb->xmtfs & UFLO) { in mace_interrupt()
606 volatile struct mace *mb = mp->mace; in mace_tx_timeout() local
612 mb->maccc = 0; in mace_tx_timeout()
624 mb->maccc = ENXMT | ENRCV; in mace_tx_timeout()
626 mb->imr = RCVINT; in mace_tx_timeout()