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