Lines Matching refs:ax_spi

46 	AX_WRITE(&ax_local->ax_spi, PSR_RESET, P0_PSR);  in ax88796c_soft_reset()
47 AX_WRITE(&ax_local->ax_spi, PSR_RESET_CLR, P0_PSR); in ax88796c_soft_reset()
52 &ax_local->ax_spi, P0_PSR); in ax88796c_soft_reset()
56 temp = AX_READ(&ax_local->ax_spi, P4_SPICR); in ax88796c_soft_reset()
58 AX_WRITE(&ax_local->ax_spi, in ax88796c_soft_reset()
60 ax_local->ax_spi.comp = 1; in ax88796c_soft_reset()
62 AX_WRITE(&ax_local->ax_spi, in ax88796c_soft_reset()
64 ax_local->ax_spi.comp = 0; in ax88796c_soft_reset()
76 AX_WRITE(&ax_local->ax_spi, EECR_RELOAD, P3_EECR); in ax88796c_reload_eeprom()
81 &ax_local->ax_spi, P0_PSR); in ax88796c_reload_eeprom()
121 AX_WRITE(&ax_local->ax_spi, in ax88796c_set_hw_multicast()
127 AX_WRITE(&ax_local->ax_spi, rx_ctl, P2_RXCR); in ax88796c_set_hw_multicast()
136 AX_WRITE(&ax_local->ax_spi, ((u16)(ndev->dev_addr[4] << 8) | in ax88796c_set_mac_addr()
138 AX_WRITE(&ax_local->ax_spi, ((u16)(ndev->dev_addr[2] << 8) | in ax88796c_set_mac_addr()
140 AX_WRITE(&ax_local->ax_spi, ((u16)(ndev->dev_addr[0] << 8) | in ax88796c_set_mac_addr()
162 temp = AX_READ(&ax_local->ax_spi, P3_MACASR0); in ax88796c_load_mac_addr()
166 temp = AX_READ(&ax_local->ax_spi, P3_MACASR1); in ax88796c_load_mac_addr()
170 temp = AX_READ(&ax_local->ax_spi, P3_MACASR2); in ax88796c_load_mac_addr()
229 free_pages = AX_READ(&ax_local->ax_spi, P0_TFBFCR) & TX_FREEBUF_MASK; in ax88796c_check_free_pages()
232 tmp = AX_READ(&ax_local->ax_spi, P0_TFBFCR) in ax88796c_check_free_pages()
234 AX_WRITE(&ax_local->ax_spi, tmp | TFBFCR_TX_PAGE_SET | in ax88796c_check_free_pages()
247 u8 spi_len = ax_local->ax_spi.comp ? 1 : 4; in ax88796c_tx_fixup()
351 AX_WRITE(&ax_local->ax_spi, in ax88796c_hard_xmit()
354 axspi_write_txq(&ax_local->ax_spi, tx_skb->data, tx_skb->len); in ax88796c_hard_xmit()
356 if (((AX_READ(&ax_local->ax_spi, P0_TSNR) & TXNR_TXB_IDLE) == 0) || in ax88796c_hard_xmit()
357 ((ISR_TXERR & AX_READ(&ax_local->ax_spi, P0_ISR)) != 0)) { in ax88796c_hard_xmit()
359 AX_WRITE(&ax_local->ax_spi, ISR_TXERR, P0_ISR); in ax88796c_hard_xmit()
368 AX_WRITE(&ax_local->ax_spi, TXNR_TXB_REINIT | in ax88796c_hard_xmit()
369 AX_READ(&ax_local->ax_spi, P0_TSNR), P0_TSNR); in ax88796c_hard_xmit()
505 AX_WRITE(&ax_local->ax_spi, AX_READ(&ax_local->ax_spi, P0_RTWCR) in ax88796c_receive()
508 pkt_cnt = AX_READ(&ax_local->ax_spi, P0_RXBCR2) & RXBCR2_PKT_MASK; in ax88796c_receive()
512 pkt_len = AX_READ(&ax_local->ax_spi, P0_RCPHR) & 0x7FF; in ax88796c_receive()
518 AX_WRITE(&ax_local->ax_spi, RXBCR1_RXB_DISCARD, P0_RXBCR1); in ax88796c_receive()
524 AX_WRITE(&ax_local->ax_spi, RXBCR1_RXB_START | w_count, P0_RXBCR1); in ax88796c_receive()
526 axspi_read_rxq(&ax_local->ax_spi, in ax88796c_receive()
530 if ((AX_READ(&ax_local->ax_spi, P0_RXBCR2) & RXBCR2_RXB_IDLE) == 0) { in ax88796c_receive()
534 AX_WRITE(&ax_local->ax_spi, RXBCR2_RXB_REINIT, P0_RXBCR2); in ax88796c_receive()
541 AX_WRITE(&ax_local->ax_spi, ISR_RXPKT, P0_ISR); in ax88796c_receive()
556 isr = AX_READ(&ax_local->ax_spi, P0_ISR); in ax88796c_process_isr()
557 AX_WRITE(&ax_local->ax_spi, isr, P0_ISR); in ax88796c_process_isr()
563 AX_WRITE(&ax_local->ax_spi, TXNR_TXB_REINIT, P0_TSNR); in ax88796c_process_isr()
620 AX_WRITE(&ax_local->ax_spi, IMR_MASKALL, P0_IMR); in ax88796c_work()
627 AX_WRITE(&ax_local->ax_spi, IMR_DEFAULT, P0_IMR); in ax88796c_work()
729 maccr |= AX_READ(&ax_local->ax_spi, P0_MACCR) & in ax88796c_set_mac()
732 AX_WRITE(&ax_local->ax_spi, maccr, P0_MACCR); in ax88796c_set_mac()
778 AX_WRITE(&ax_local->ax_spi, COERCR0_DEFAULT, P4_COERCR0); in ax88796c_set_csums()
779 AX_WRITE(&ax_local->ax_spi, COERCR1_DEFAULT, P4_COERCR1); in ax88796c_set_csums()
781 AX_WRITE(&ax_local->ax_spi, 0, P4_COERCR0); in ax88796c_set_csums()
782 AX_WRITE(&ax_local->ax_spi, 0, P4_COERCR1); in ax88796c_set_csums()
786 AX_WRITE(&ax_local->ax_spi, COETCR0_DEFAULT, P4_COETCR0); in ax88796c_set_csums()
787 AX_WRITE(&ax_local->ax_spi, COETCR1_TXPPPE, P4_COETCR1); in ax88796c_set_csums()
789 AX_WRITE(&ax_local->ax_spi, 0, P4_COETCR0); in ax88796c_set_csums()
790 AX_WRITE(&ax_local->ax_spi, 0, P4_COETCR1); in ax88796c_set_csums()
825 t = AX_READ(&ax_local->ax_spi, P1_RXBSPCR); in ax88796c_open()
827 AX_WRITE(&ax_local->ax_spi, t, P1_RXBSPCR); in ax88796c_open()
830 AX_WRITE(&ax_local->ax_spi, RPPER_RXEN, P1_RPPER); in ax88796c_open()
832 t = AX_READ(&ax_local->ax_spi, P0_FER); in ax88796c_open()
834 AX_WRITE(&ax_local->ax_spi, t, P0_FER); in ax88796c_open()
837 AX_WRITE(&ax_local->ax_spi, in ax88796c_open()
840 AX_WRITE(&ax_local->ax_spi, in ax88796c_open()
841 (AX_READ(&ax_local->ax_spi, P2_LCR1) & LCR_LED2_MASK) | in ax88796c_open()
845 AX_WRITE(&ax_local->ax_spi, PCR_PHYID(AX88796C_PHY_ID), P2_PCR); in ax88796c_open()
848 AX_WRITE(&ax_local->ax_spi, IMR_DEFAULT, P0_IMR); in ax88796c_open()
873 spi_message_init(&ax_local->ax_spi.rx_msg); in ax88796c_open()
904 AX_WRITE(&ax_local->ax_spi, IMR_MASKALL, P0_IMR); in ax88796c_close()
984 ax_local->ax_spi.spi = spi; in ax88796c_probe()
1044 temp = AX_READ(&ax_local->ax_spi, P2_CRIR); in ax88796c_probe()
1066 AX_WRITE(&ax_local->ax_spi, (AX_READ(&ax_local->ax_spi, P0_PSCR) in ax88796c_probe()