Lines Matching refs:nbytes

40 	if (!op->data.nbytes)  in spi_controller_dma_map_mem_op_data()
53 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data()
86 if (!op->data.nbytes) in spi_controller_dma_unmap_mem_op_data()
146 if (op->addr.nbytes && in spi_mem_check_buswidth()
150 if (op->dummy.nbytes && in spi_mem_check_buswidth()
165 if (op->cmd.nbytes != 2) in spi_mem_dtr_supports_op()
178 if (op->cmd.nbytes != 1) in spi_mem_default_supports_op()
195 if (!op->cmd.buswidth || !op->cmd.nbytes) in spi_mem_check_op()
198 if ((op->addr.nbytes && !op->addr.buswidth) || in spi_mem_check_op()
199 (op->dummy.nbytes && !op->dummy.buswidth) || in spi_mem_check_op()
200 (op->data.nbytes && !op->data.buswidth)) in spi_mem_check_op()
332 tmpbufsize = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
347 xfers[xferpos].len = op->cmd.nbytes; in spi_mem_exec_op()
353 if (op->addr.nbytes) { in spi_mem_exec_op()
356 for (i = 0; i < op->addr.nbytes; i++) in spi_mem_exec_op()
358 (8 * (op->addr.nbytes - i - 1)); in spi_mem_exec_op()
361 xfers[xferpos].len = op->addr.nbytes; in spi_mem_exec_op()
365 totalxferlen += op->addr.nbytes; in spi_mem_exec_op()
368 if (op->dummy.nbytes) { in spi_mem_exec_op()
369 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
370 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op()
371 xfers[xferpos].len = op->dummy.nbytes; in spi_mem_exec_op()
375 totalxferlen += op->dummy.nbytes; in spi_mem_exec_op()
378 if (op->data.nbytes) { in spi_mem_exec_op()
387 xfers[xferpos].len = op->data.nbytes; in spi_mem_exec_op()
390 totalxferlen += op->data.nbytes; in spi_mem_exec_op()
449 len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
454 op->data.nbytes = min3((size_t)op->data.nbytes, in spi_mem_adjust_op_size()
458 if (!op->data.nbytes) in spi_mem_adjust_op_size()
474 op.data.nbytes = len; in spi_mem_no_dirmap_read()
483 return op.data.nbytes; in spi_mem_no_dirmap_read()
494 op.data.nbytes = len; in spi_mem_no_dirmap_write()
503 return op.data.nbytes; in spi_mem_no_dirmap_write()
528 if (!info->op_tmpl.addr.nbytes || info->op_tmpl.addr.nbytes > 8) in spi_mem_dirmap_create()