Lines Matching refs:command
34 u8 command[MAX_CMD_SIZE]; member
69 flash->command[0] = opcode; in m25p80_write_reg()
71 memcpy(&flash->command[1], buf, len); in m25p80_write_reg()
73 return spi_write(spi, flash->command, len + 1); in m25p80_write_reg()
90 flash->command[0] = nor->program_opcode; in m25p80_write()
91 m25p_addr2cmd(nor, to, flash->command); in m25p80_write()
93 t[0].tx_buf = flash->command; in m25p80_write()
137 flash->command[0] = nor->read_opcode; in m25p80_read()
138 m25p_addr2cmd(nor, from, flash->command); in m25p80_read()
140 t[0].tx_buf = flash->command; in m25p80_read()
163 flash->command[0] = nor->erase_opcode; in m25p80_erase()
164 m25p_addr2cmd(nor, offset, flash->command); in m25p80_erase()
166 spi_write(flash->spi, flash->command, m25p_cmdsz(nor)); in m25p80_erase()