Home
last modified time | relevance | path

Searched refs:op_buf (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/drivers/spi/
H A Dspi-mem-nodm.c15 u8 *op_buf; in spi_mem_exec_op() local
29 op_buf = calloc(1, op_len); in spi_mem_exec_op()
35 op_buf[pos++] = op->cmd.opcode; in spi_mem_exec_op()
39 op_buf[pos + i] = op->addr.val >> in spi_mem_exec_op()
46 memset(op_buf + pos, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
54 ret = spi_xfer(slave, op_len * 8, op_buf, NULL, flag); in spi_mem_exec_op()
69 debug("%02x ", op_buf[i]); in spi_mem_exec_op()
77 free(op_buf); in spi_mem_exec_op()
H A Dspi-mem.c356 u8 op_buf[op_len]; in spi_mem_exec_op() local
358 op_buf[pos++] = op->cmd.opcode; in spi_mem_exec_op()
362 op_buf[pos + i] = op->addr.val >> in spi_mem_exec_op()
369 memset(op_buf + pos, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
377 ret = spi_xfer(slave, op_len * 8, op_buf, NULL, flag); in spi_mem_exec_op()
396 debug("%02x ", op_buf[i]); in spi_mem_exec_op()