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()
144 if (op->addr.nbytes && in spi_mem_default_supports_op()
148 if (op->dummy.nbytes && in spi_mem_default_supports_op()
174 if ((op->addr.nbytes && !op->addr.buswidth) || in spi_mem_check_op()
175 (op->dummy.nbytes && !op->dummy.buswidth) || in spi_mem_check_op()
176 (op->data.nbytes && !op->data.buswidth)) in spi_mem_check_op()
307 tmpbufsize = sizeof(op->cmd.opcode) + op->addr.nbytes + in spi_mem_exec_op()
308 op->dummy.nbytes; in spi_mem_exec_op()
329 if (op->addr.nbytes) { in spi_mem_exec_op()
332 for (i = 0; i < op->addr.nbytes; i++) in spi_mem_exec_op()
334 (8 * (op->addr.nbytes - i - 1)); in spi_mem_exec_op()
337 xfers[xferpos].len = op->addr.nbytes; in spi_mem_exec_op()
341 totalxferlen += op->addr.nbytes; in spi_mem_exec_op()
344 if (op->dummy.nbytes) { in spi_mem_exec_op()
345 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
346 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op()
347 xfers[xferpos].len = op->dummy.nbytes; in spi_mem_exec_op()
351 totalxferlen += op->dummy.nbytes; in spi_mem_exec_op()
354 if (op->data.nbytes) { in spi_mem_exec_op()
363 xfers[xferpos].len = op->data.nbytes; in spi_mem_exec_op()
366 totalxferlen += op->data.nbytes; in spi_mem_exec_op()
421 len = sizeof(op->cmd.opcode) + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
430 op->data.nbytes = min3((size_t)op->data.nbytes, in spi_mem_adjust_op_size()
434 if (!op->data.nbytes) in spi_mem_adjust_op_size()
450 op.data.nbytes = len; in spi_mem_no_dirmap_read()
459 return op.data.nbytes; in spi_mem_no_dirmap_read()
470 op.data.nbytes = len; in spi_mem_no_dirmap_write()
479 return op.data.nbytes; in spi_mem_no_dirmap_write()
504 if (!info->op_tmpl.addr.nbytes || info->op_tmpl.addr.nbytes > 8) in spi_mem_dirmap_create()