Lines Matching refs:cmd_buf
24 ax_spi->cmd_buf[0] = AX_SPICMD_EXIT_PWD; /* OP */ in axspi_wakeup()
25 ret = spi_write(ax_spi->spi, ax_spi->cmd_buf, 1); in axspi_wakeup()
36 ax_spi->cmd_buf[0] = AX_SPICMD_READ_STATUS; in axspi_read_status()
37 ret = spi_write_then_read(ax_spi->spi, ax_spi->cmd_buf, 1, (u8 *)status, 3); in axspi_read_status()
51 memcpy(ax_spi->cmd_buf, ax88796c_rx_cmd_buf, 5); in axspi_read_rxq()
53 xfer->tx_buf = ax_spi->cmd_buf; in axspi_read_rxq()
82 ax_spi->cmd_buf[0] = 0x03; /* OP code read register */ in axspi_read_reg()
83 ax_spi->cmd_buf[1] = reg; /* register address */ in axspi_read_reg()
84 ax_spi->cmd_buf[2] = 0xFF; /* dumy cycle */ in axspi_read_reg()
85 ax_spi->cmd_buf[3] = 0xFF; /* dumy cycle */ in axspi_read_reg()
87 ax_spi->cmd_buf, len, in axspi_read_reg()
104 memset(ax_spi->cmd_buf, 0, sizeof(ax_spi->cmd_buf)); in axspi_write_reg()
105 ax_spi->cmd_buf[0] = AX_SPICMD_WRITE_REG; /* OP code read register */ in axspi_write_reg()
106 ax_spi->cmd_buf[1] = reg; /* register address */ in axspi_write_reg()
107 ax_spi->cmd_buf[2] = value; in axspi_write_reg()
108 ax_spi->cmd_buf[3] = value >> 8; in axspi_write_reg()
110 ret = spi_write(ax_spi->spi, ax_spi->cmd_buf, 4); in axspi_write_reg()