Lines Matching refs:nbytes

42 	if (!op->data.nbytes)  in spi_controller_dma_map_mem_op_data()
55 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data()
88 if (!op->data.nbytes) in spi_controller_dma_unmap_mem_op_data()
148 if (op->addr.nbytes && in spi_mem_check_buswidth()
152 if (op->dummy.nbytes && in spi_mem_check_buswidth()
175 if (op->cmd.nbytes != 2) in spi_mem_default_supports_op()
178 if (op->cmd.nbytes != 1) in spi_mem_default_supports_op()
201 if (!op->cmd.buswidth || !op->cmd.nbytes) in spi_mem_check_op()
204 if ((op->addr.nbytes && !op->addr.buswidth) || in spi_mem_check_op()
205 (op->dummy.nbytes && !op->dummy.buswidth) || in spi_mem_check_op()
206 (op->data.nbytes && !op->data.buswidth)) in spi_mem_check_op()
346 tmpbufsize = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
361 xfers[xferpos].len = op->cmd.nbytes; in spi_mem_exec_op()
367 if (op->addr.nbytes) { in spi_mem_exec_op()
370 for (i = 0; i < op->addr.nbytes; i++) in spi_mem_exec_op()
372 (8 * (op->addr.nbytes - i - 1)); in spi_mem_exec_op()
375 xfers[xferpos].len = op->addr.nbytes; in spi_mem_exec_op()
379 totalxferlen += op->addr.nbytes; in spi_mem_exec_op()
382 if (op->dummy.nbytes) { in spi_mem_exec_op()
383 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
384 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op()
385 xfers[xferpos].len = op->dummy.nbytes; in spi_mem_exec_op()
390 totalxferlen += op->dummy.nbytes; in spi_mem_exec_op()
393 if (op->data.nbytes) { in spi_mem_exec_op()
402 xfers[xferpos].len = op->data.nbytes; in spi_mem_exec_op()
405 totalxferlen += op->data.nbytes; in spi_mem_exec_op()
464 len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
469 op->data.nbytes = min3((size_t)op->data.nbytes, in spi_mem_adjust_op_size()
473 if (!op->data.nbytes) in spi_mem_adjust_op_size()
489 op.data.nbytes = len; in spi_mem_no_dirmap_read()
498 return op.data.nbytes; in spi_mem_no_dirmap_read()
509 op.data.nbytes = len; in spi_mem_no_dirmap_write()
518 return op.data.nbytes; in spi_mem_no_dirmap_write()
543 if (!info->op_tmpl.addr.nbytes || info->op_tmpl.addr.nbytes > 8) in spi_mem_dirmap_create()
771 if (op->data.nbytes > 1) in spi_mem_read_status()
807 if (op->data.nbytes < 1 || op->data.nbytes > 2 || in spi_mem_poll_status()