Lines Matching refs:DM9000_iow

107 static void DM9000_iow(int reg, u8 value);
254 DM9000_iow(DM9000_GPCR, GPCR_GPIO0_OUT); in dm9000_reset()
256 DM9000_iow(DM9000_GPR, 0); in dm9000_reset()
258 DM9000_iow(DM9000_NCR, (NCR_LBK_INT_MAC | NCR_RST)); in dm9000_reset()
265 DM9000_iow(DM9000_NCR, 0); in dm9000_reset()
266 DM9000_iow(DM9000_NCR, (NCR_LBK_INT_MAC | NCR_RST)); /* Issue a second reset */ in dm9000_reset()
327 DM9000_iow(DM9000_NCR, 0x0); in dm9000_init()
329 DM9000_iow(DM9000_TCR, 0); in dm9000_init()
331 DM9000_iow(DM9000_BPTR, BPTR_BPHW(3) | BPTR_JPT_600US); in dm9000_init()
333 DM9000_iow(DM9000_FCTR, FCTR_HWOT(3) | FCTR_LWOT(8)); in dm9000_init()
335 DM9000_iow(DM9000_FCR, 0x0); in dm9000_init()
337 DM9000_iow(DM9000_SMCR, 0); in dm9000_init()
339 DM9000_iow(DM9000_NSR, NSR_WAKEST | NSR_TX2END | NSR_TX1END); in dm9000_init()
341 DM9000_iow(DM9000_ISR, ISR_ROOS | ISR_ROS | ISR_PTS | ISR_PRS); in dm9000_init()
350 DM9000_iow(oft, dev->enetaddr[i]); in dm9000_init()
352 DM9000_iow(oft, 0xff); in dm9000_init()
361 DM9000_iow(DM9000_RCR, RCR_DIS_LONG | RCR_DIS_CRC | RCR_RXEN); in dm9000_init()
363 DM9000_iow(DM9000_IMR, IMR_PAR); in dm9000_init()
410 DM9000_iow(DM9000_ISR, IMR_PTM); /* Clear Tx bit in ISR */ in dm9000_send()
419 DM9000_iow(DM9000_TXPLL, length & 0xff); in dm9000_send()
420 DM9000_iow(DM9000_TXPLH, (length >> 8) & 0xff); in dm9000_send()
423 DM9000_iow(DM9000_TCR, TCR_TXREQ); /* Cleared after TX complete */ in dm9000_send()
434 DM9000_iow(DM9000_ISR, IMR_PTM); /* Clear Tx bit in ISR */ in dm9000_send()
450 DM9000_iow(DM9000_GPR, 0x01); /* Power-Down PHY */ in dm9000_halt()
451 DM9000_iow(DM9000_IMR, 0x80); /* Disable all interrupt */ in dm9000_halt()
452 DM9000_iow(DM9000_RCR, 0x00); /* Disable RX */ in dm9000_halt()
470 DM9000_iow(DM9000_ISR, 0x01); /* clear PR status latched in bit 0 */ in dm9000_rx()
482 DM9000_iow(DM9000_RCR, 0x00); /* Stop Device */ in dm9000_rx()
483 DM9000_iow(DM9000_ISR, 0x80); /* Stop INT request */ in dm9000_rx()
534 DM9000_iow(DM9000_EPAR, offset); in dm9000_read_srom_word()
535 DM9000_iow(DM9000_EPCR, 0x4); in dm9000_read_srom_word()
537 DM9000_iow(DM9000_EPCR, 0x0); in dm9000_read_srom_word()
544 DM9000_iow(DM9000_EPAR, offset); in dm9000_write_srom_word()
545 DM9000_iow(DM9000_EPDRH, ((val >> 8) & 0xff)); in dm9000_write_srom_word()
546 DM9000_iow(DM9000_EPDRL, (val & 0xff)); in dm9000_write_srom_word()
547 DM9000_iow(DM9000_EPCR, 0x12); in dm9000_write_srom_word()
549 DM9000_iow(DM9000_EPCR, 0); in dm9000_write_srom_word()
576 DM9000_iow(int reg, u8 value) in DM9000_iow() function
591 DM9000_iow(DM9000_EPAR, DM9000_PHY | reg); in dm9000_phy_read()
592 DM9000_iow(DM9000_EPCR, 0xc); /* Issue phyxcer read command */ in dm9000_phy_read()
594 DM9000_iow(DM9000_EPCR, 0x0); /* Clear phyxcer read command */ in dm9000_phy_read()
610 DM9000_iow(DM9000_EPAR, DM9000_PHY | reg); in dm9000_phy_write()
613 DM9000_iow(DM9000_EPDRL, (value & 0xff)); in dm9000_phy_write()
614 DM9000_iow(DM9000_EPDRH, ((value >> 8) & 0xff)); in dm9000_phy_write()
615 DM9000_iow(DM9000_EPCR, 0xa); /* Issue phyxcer write command */ in dm9000_phy_write()
617 DM9000_iow(DM9000_EPCR, 0x0); /* Clear phyxcer write command */ in dm9000_phy_write()