Lines Matching refs:spi_op
20 const struct spi_mem_op *spi_op, in rpcif_spi_mem_prepare() argument
26 rpc_op.cmd.opcode = spi_op->cmd.opcode; in rpcif_spi_mem_prepare()
27 rpc_op.cmd.buswidth = spi_op->cmd.buswidth; in rpcif_spi_mem_prepare()
29 if (spi_op->addr.nbytes) { in rpcif_spi_mem_prepare()
30 rpc_op.addr.buswidth = spi_op->addr.buswidth; in rpcif_spi_mem_prepare()
31 rpc_op.addr.nbytes = spi_op->addr.nbytes; in rpcif_spi_mem_prepare()
32 rpc_op.addr.val = spi_op->addr.val; in rpcif_spi_mem_prepare()
35 if (spi_op->dummy.nbytes) { in rpcif_spi_mem_prepare()
36 rpc_op.dummy.buswidth = spi_op->dummy.buswidth; in rpcif_spi_mem_prepare()
37 rpc_op.dummy.ncycles = spi_op->dummy.nbytes * 8 / in rpcif_spi_mem_prepare()
38 spi_op->dummy.buswidth; in rpcif_spi_mem_prepare()
41 if (spi_op->data.nbytes || (offs && len)) { in rpcif_spi_mem_prepare()
42 rpc_op.data.buswidth = spi_op->data.buswidth; in rpcif_spi_mem_prepare()
43 rpc_op.data.nbytes = spi_op->data.nbytes; in rpcif_spi_mem_prepare()
44 switch (spi_op->data.dir) { in rpcif_spi_mem_prepare()
47 rpc_op.data.buf.in = spi_op->data.buf.in; in rpcif_spi_mem_prepare()
51 rpc_op.data.buf.out = spi_op->data.buf.out; in rpcif_spi_mem_prepare()