• Home
  • Raw
  • Download

Lines Matching refs:nbytes

41 	if (!op->data.nbytes)  in spi_controller_dma_map_mem_op_data()
54 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data()
87 if (!op->data.nbytes) in spi_controller_dma_unmap_mem_op_data()
147 if (op->addr.nbytes && in spi_mem_check_buswidth()
151 if (op->dummy.nbytes && in spi_mem_check_buswidth()
166 if (op->cmd.nbytes != 2) in spi_mem_dtr_supports_op()
179 if (op->cmd.nbytes != 1) in spi_mem_default_supports_op()
196 if (!op->cmd.buswidth || !op->cmd.nbytes) in spi_mem_check_op()
199 if ((op->addr.nbytes && !op->addr.buswidth) || in spi_mem_check_op()
200 (op->dummy.nbytes && !op->dummy.buswidth) || in spi_mem_check_op()
201 (op->data.nbytes && !op->data.buswidth)) in spi_mem_check_op()
333 tmpbufsize = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
348 xfers[xferpos].len = op->cmd.nbytes; in spi_mem_exec_op()
354 if (op->addr.nbytes) { in spi_mem_exec_op()
357 for (i = 0; i < op->addr.nbytes; i++) in spi_mem_exec_op()
359 (8 * (op->addr.nbytes - i - 1)); in spi_mem_exec_op()
362 xfers[xferpos].len = op->addr.nbytes; in spi_mem_exec_op()
366 totalxferlen += op->addr.nbytes; in spi_mem_exec_op()
369 if (op->dummy.nbytes) { in spi_mem_exec_op()
370 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
371 xfers[xferpos].tx_buf = tmpbuf + op->addr.nbytes + 1; in spi_mem_exec_op()
372 xfers[xferpos].len = op->dummy.nbytes; in spi_mem_exec_op()
377 totalxferlen += op->dummy.nbytes; in spi_mem_exec_op()
380 if (op->data.nbytes) { in spi_mem_exec_op()
389 xfers[xferpos].len = op->data.nbytes; in spi_mem_exec_op()
392 totalxferlen += op->data.nbytes; in spi_mem_exec_op()
451 len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
456 op->data.nbytes = min3((size_t)op->data.nbytes, in spi_mem_adjust_op_size()
460 if (!op->data.nbytes) in spi_mem_adjust_op_size()
476 op.data.nbytes = len; in spi_mem_no_dirmap_read()
485 return op.data.nbytes; in spi_mem_no_dirmap_read()
496 op.data.nbytes = len; in spi_mem_no_dirmap_write()
505 return op.data.nbytes; in spi_mem_no_dirmap_write()
530 if (!info->op_tmpl.addr.nbytes || info->op_tmpl.addr.nbytes > 8) in spi_mem_dirmap_create()
758 if (op->data.nbytes > 1) in spi_mem_read_status()
794 if (op->data.nbytes < 1 || op->data.nbytes > 2 || in spi_mem_poll_status()