Lines Matching defs:op
63 static bool spi_mem_supports_op(const struct spi_mem_op *op)
65 if (!spi_mem_check_buswidth_req(op->cmd.buswidth, true)) {
69 if ((op->addr.nbytes != 0U) &&
70 !spi_mem_check_buswidth_req(op->addr.buswidth, true)) {
74 if ((op->dummy.nbytes != 0U) &&
75 !spi_mem_check_buswidth_req(op->dummy.buswidth, true)) {
79 if ((op->data.nbytes != 0U) &&
80 !spi_mem_check_buswidth_req(op->data.buswidth,
81 op->data.dir == SPI_MEM_DATA_OUT)) {
123 VERBOSE("Ops exec op is not defined\n");
142 * @op: The memory operation to execute.
144 * This function first checks that @op is supported and then tries to execute
149 int spi_mem_exec_op(const struct spi_mem_op *op)
155 __func__, op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth,
156 op->dummy.buswidth, op->data.buswidth,
157 op->addr.val, op->data.nbytes);
159 if (!spi_mem_supports_op(op)) {
170 ret = ops->exec_op(op);