Lines Matching refs:smsc_write_2
130 static ALWAYS_INLINE void smsc_write_2(struct smsc_data *sc, int offset, uint16_t val) in smsc_write_2() function
163 smsc_write_2(sc, MGMT, val); in smsc_mii_bitbang_write()
287 smsc_write_2(sc, RCR, RCR_SOFT_RST); in smsc_reset()
293 smsc_write_2(sc, CR, CR_EPH_POWER_EN); in smsc_reset()
300 smsc_write_2(sc, TCR, 0); in smsc_reset()
301 smsc_write_2(sc, RCR, 0); in smsc_reset()
309 smsc_write_2(sc, CTR, ctr); in smsc_reset()
316 smsc_write_2(sc, MMUCR, FIELD_PREP(MMUCR_CMD_MASK, MMUCR_CMD_MMU_RESET)); in smsc_reset()
326 smsc_write_2(sc, RPCR, in smsc_enable()
334 smsc_write_2(sc, TCR, TCR_TXENA | TCR_PAD_EN); in smsc_enable()
335 smsc_write_2(sc, RCR, RCR_RXEN | RCR_STRIP_CRC); in smsc_enable()
361 smsc_write_2(sc, BSR, 0); in smsc_check()
395 smsc_write_2(sc, PTR, PTR_READ | PTR_RCV | PTR_AUTO_INCR); in smsc_recv_pkt()
434 smsc_write_2(sc, PTR, 4 | PTR_READ | PTR_RCV | PTR_AUTO_INCR); in smsc_recv_pkt()
466 smsc_write_2(sc, MMUCR, FIELD_PREP(MMUCR_CMD_MASK, MMUCR_CMD_RELEASE)); in smsc_recv_pkt()
487 smsc_write_2(sc, MMUCR, FIELD_PREP(MMUCR_CMD_MASK, MMUCR_CMD_TX_ALLOC)); in smsc_send_pkt()
517 smsc_write_2(sc, PTR, PTR_AUTO_INCR); in smsc_send_pkt()
522 smsc_write_2(sc, DATA0, 0); in smsc_send_pkt()
523 smsc_write_2(sc, DATA0, len + PKT_CTRL_DATA_LEN); in smsc_send_pkt()
528 smsc_write_2(sc, DATA0, (CTRL_ODD << 8) | buf[len - 1]); in smsc_send_pkt()
530 smsc_write_2(sc, DATA0, 0); in smsc_send_pkt()
537 smsc_write_2(sc, MMUCR, FIELD_PREP(MMUCR_CMD_MASK, MMUCR_CMD_ENQUEUE)); in smsc_send_pkt()
587 smsc_write_2(sc, PTR, PTR_READ | PTR_AUTO_INCR); in smsc_isr_task()
598 smsc_write_2(sc, MMUCR, in smsc_isr_task()
604 smsc_write_2(sc, TCR, tcr); in smsc_isr_task()