Searched refs:ax_spi (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/net/ethernet/asix/ |
H A D | ax88796c_spi.c | 25 ret = spi_write(ax_spi->spi, ax_spi->cmd_buf, 1); in axspi_wakeup() 37 ret = spi_write_then_read(ax_spi->spi, ax_spi->cmd_buf, 1, (u8 *)status, 3); in axspi_read_status() 53 xfer->tx_buf = ax_spi->cmd_buf; in axspi_read_rxq() 65 ret = spi_sync(ax_spi->spi, &ax_spi->rx_msg); in axspi_read_rxq() 87 ax_spi->cmd_buf, len, in axspi_read_reg() 88 ax_spi->rx_buf, 2); in axspi_read_reg() 90 dev_err(&ax_spi->spi->dev, in axspi_read_reg() 97 return *(u16 *)ax_spi->rx_buf; in axspi_read_reg() 104 memset(ax_spi->cmd_buf, 0, sizeof(ax_spi->cmd_buf)); in axspi_write_reg() 107 ax_spi->cmd_buf[2] = value; in axspi_write_reg() [all …]
|
H A D | ax88796c_spi.h | 42 int axspi_read_rxq(struct axspi_data *ax_spi, void *data, int len); 44 u16 axspi_read_reg(struct axspi_data *ax_spi, u8 reg); 45 int axspi_write_reg(struct axspi_data *ax_spi, u8 reg, u16 value); 47 int axspi_wakeup(struct axspi_data *ax_spi); 49 static inline u16 AX_READ(struct axspi_data *ax_spi, u8 offset) in AX_READ() argument 51 return axspi_read_reg(ax_spi, offset); in AX_READ() 56 return axspi_write_reg(ax_spi, offset, value); in AX_WRITE() 59 static inline int AX_READ_STATUS(struct axspi_data *ax_spi, in AX_READ_STATUS() argument 62 return axspi_read_status(ax_spi, status); in AX_READ_STATUS() 65 static inline int AX_WAKEUP(struct axspi_data *ax_spi) in AX_WAKEUP() argument [all …]
|
H A D | ax88796c_main.c | 52 &ax_local->ax_spi, P0_PSR); 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() 81 &ax_local->ax_spi, P0_PSR); in ax88796c_reload_eeprom() 121 AX_WRITE(&ax_local->ax_spi, in ax88796c_set_hw_multicast() 351 AX_WRITE(&ax_local->ax_spi, in ax88796c_hard_xmit() 505 AX_WRITE(&ax_local->ax_spi, AX_READ(&ax_local->ax_spi, P0_RTWCR) in ax88796c_receive() 837 AX_WRITE(&ax_local->ax_spi, in ax88796c_open() [all …]
|
H A D | ax88796c_ioctl.c | 81 maccr |= AX_READ(&ax_local->ax_spi, P0_MACCR) & in ax88796c_set_pauseparam() 83 AX_WRITE(&ax_local->ax_spi, maccr, P0_MACCR); in ax88796c_set_pauseparam() 109 *p = AX_READ(&ax_local->ax_spi, offset); in ax88796c_get_regs() 177 AX_WRITE(&ax_local->ax_spi, MDIOCR_RADDR(loc) in ax88796c_mdio_read() 183 &ax_local->ax_spi, P2_MDIOCR); in ax88796c_mdio_read() 185 ret = AX_READ(&ax_local->ax_spi, P2_MDIODR); in ax88796c_mdio_read() 199 AX_WRITE(&ax_local->ax_spi, val, P2_MDIODR); in ax88796c_mdio_write() 201 AX_WRITE(&ax_local->ax_spi, in ax88796c_mdio_write() 208 &ax_local->ax_spi, P2_MDIOCR); in ax88796c_mdio_write()
|
H A D | ax88796c_main.h | 103 struct axspi_data ax_spi; member
|