• Home
  • Raw
  • Download

Lines Matching refs:nbytes

289 		unsigned int nbytes = len - pos;  in mxic_spi_data_xfer()  local
294 if (nbytes > 4) in mxic_spi_data_xfer()
295 nbytes = 4; in mxic_spi_data_xfer()
298 memcpy(&data, txbuf + pos, nbytes); in mxic_spi_data_xfer()
305 writel(data, mxic->regs + TXD(nbytes % 4)); in mxic_spi_data_xfer()
320 data >>= (8 * (4 - nbytes)); in mxic_spi_data_xfer()
321 memcpy(rxbuf + pos, &data, nbytes); in mxic_spi_data_xfer()
325 pos += nbytes; in mxic_spi_data_xfer()
340 if (op->data.nbytes && op->dummy.nbytes && in mxic_spi_mem_supports_op()
344 if (op->addr.nbytes > 7) in mxic_spi_mem_supports_op()
382 ss_ctrl = OP_CMD_BYTES(op->cmd.nbytes) | in mxic_spi_mem_exec_op()
386 if (op->addr.nbytes) in mxic_spi_mem_exec_op()
387 ss_ctrl |= OP_ADDR_BYTES(op->addr.nbytes) | in mxic_spi_mem_exec_op()
391 if (op->dummy.nbytes) in mxic_spi_mem_exec_op()
392 ss_ctrl |= OP_DUMMY_CYC(op->dummy.nbytes); in mxic_spi_mem_exec_op()
394 if (op->data.nbytes) { in mxic_spi_mem_exec_op()
409 for (i = 0; i < op->cmd.nbytes; i++) in mxic_spi_mem_exec_op()
410 cmd[i] = op->cmd.opcode >> (8 * (op->cmd.nbytes - i - 1)); in mxic_spi_mem_exec_op()
412 ret = mxic_spi_data_xfer(mxic, cmd, NULL, op->cmd.nbytes); in mxic_spi_mem_exec_op()
416 for (i = 0; i < op->addr.nbytes; i++) in mxic_spi_mem_exec_op()
417 addr[i] = op->addr.val >> (8 * (op->addr.nbytes - i - 1)); in mxic_spi_mem_exec_op()
419 ret = mxic_spi_data_xfer(mxic, addr, NULL, op->addr.nbytes); in mxic_spi_mem_exec_op()
423 ret = mxic_spi_data_xfer(mxic, NULL, NULL, op->dummy.nbytes); in mxic_spi_mem_exec_op()
432 op->data.nbytes); in mxic_spi_mem_exec_op()