Lines Matching defs:data
137 * bit[13]: Sets whether multiple bit SPI uses 2 or 4 bits of data
141 if (op->data.buswidth == 4 || op->data.buswidth == 2) {
163 u32 control, data;
172 * the reamaining data byte wise.
180 data = readl_relaxed(qspi->regs + REG_X4_RX_DATA);
181 *(u32 *)qspi->rxbuf = data;
192 data = readl_relaxed(qspi->regs + REG_RX_DATA);
193 *qspi->rxbuf++ = (data & 0xFF);
199 u32 control, data;
208 data = *(u32 *)qspi->txbuf;
211 writel_relaxed(data, qspi->regs + REG_X4_TX_DATA);
220 data = *qspi->txbuf++;
221 writel_relaxed(data, qspi->regs + REG_TX_DATA);
319 total_bytes = cmd_bytes + op->data.nbytes;
322 * As per the coreQSPI IP spec,the number of command and data bytes are
331 * | | and receive data is discarded |
337 * | | bytes discarding the receive data and |
347 if (!(op->data.dir == SPI_MEM_DATA_IN))
430 if (op->data.nbytes) {
431 if (op->data.dir == SPI_MEM_DATA_OUT) {
432 qspi->txbuf = (u8 *)op->data.buf.out;
435 qspi->tx_len = op->data.nbytes;
439 qspi->rxbuf = (u8 *)op->data.buf.in;
440 qspi->rx_len = op->data.nbytes;
462 if ((op->data.buswidth == 4 || op->data.buswidth == 2) &&
466 * controller doesn't support sending data on dual and
467 * quad lines. but it supports reading data on dual and
472 * not to write data, it is just to read.
477 if (op->data.dir == SPI_MEM_DATA_OUT)
486 if (op->data.dir == SPI_MEM_DATA_OUT || op->data.dir == SPI_MEM_DATA_IN) {
487 if (op->data.nbytes > MAX_DATA_CMD_LEN)
488 op->data.nbytes = MAX_DATA_CMD_LEN;