Lines Matching refs:mb

268 	volatile struct mace *mb = mp->mace;  in mace_reset()  local
274 mb->biucc = SWRST; in mace_reset()
275 if (mb->biucc & SWRST) { in mace_reset()
286 mb->maccc = 0; /* turn off tx, rx */ in mace_reset()
287 mb->imr = 0xFF; /* disable all intrs for now */ in mace_reset()
288 i = mb->ir; in mace_reset()
290 mb->biucc = XMTSP_64; in mace_reset()
291 mb->utr = RTRD; in mace_reset()
292 mb->fifocc = XMTFW_8 | RCVFW_64 | XMTFWU | RCVFWU; in mace_reset()
294 mb->xmtfc = AUTO_PAD_XMIT; /* auto-pad short frames */ in mace_reset()
295 mb->rcvfc = 0; in mace_reset()
302 mb->iac = LOGADDR; in mace_reset()
304 mb->iac = ADDRCHG | LOGADDR; in mace_reset()
305 while ((mb->iac & ADDRCHG) != 0) in mace_reset()
309 mb->ladrf = 0; in mace_reset()
313 mb->iac = 0; in mace_reset()
315 mb->plscc = PORTSEL_AUI; in mace_reset()
325 volatile struct mace *mb = mp->mace; in __mace_set_address() local
331 mb->iac = PHYADDR; in __mace_set_address()
333 mb->iac = ADDRCHG | PHYADDR; in __mace_set_address()
334 while ((mb->iac & ADDRCHG) != 0) in __mace_set_address()
338 mb->padr = dev->dev_addr[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()
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()
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()