Lines Matching refs:command
97 unsigned char command[2]; in sst25l_write_enable() local
100 command[0] = enable ? SST25L_CMD_WREN : SST25L_CMD_WRDI; in sst25l_write_enable()
101 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
105 command[0] = SST25L_CMD_EWSR; in sst25l_write_enable()
106 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
110 command[0] = SST25L_CMD_WRSR; in sst25l_write_enable()
111 command[1] = enable ? 0 : SST25L_STATUS_BP0 | SST25L_STATUS_BP1; in sst25l_write_enable()
112 err = spi_write(flash->spi, command, 2); in sst25l_write_enable()
148 unsigned char command[4]; in sst25l_erase_sector() local
155 command[0] = SST25L_CMD_SECTOR_ERASE; in sst25l_erase_sector()
156 command[1] = offset >> 16; in sst25l_erase_sector()
157 command[2] = offset >> 8; in sst25l_erase_sector()
158 command[3] = offset; in sst25l_erase_sector()
159 err = spi_write(flash->spi, command, 4); in sst25l_erase_sector()
216 unsigned char command[4]; in sst25l_read() local
222 command[0] = SST25L_CMD_READ; in sst25l_read()
223 command[1] = from >> 16; in sst25l_read()
224 command[2] = from >> 8; in sst25l_read()
225 command[3] = from; in sst25l_read()
227 transfer[0].tx_buf = command; in sst25l_read()
228 transfer[0].len = sizeof(command); in sst25l_read()
246 if (retlen && message.actual_length > sizeof(command)) in sst25l_read()
247 *retlen += message.actual_length - sizeof(command); in sst25l_read()
258 unsigned char command[5]; in sst25l_write() local
275 command[0] = SST25L_CMD_AAI_PROGRAM; in sst25l_write()
276 command[1] = (to + i) >> 16; in sst25l_write()
277 command[2] = (to + i) >> 8; in sst25l_write()
278 command[3] = (to + i); in sst25l_write()
279 command[4] = buf[i]; in sst25l_write()
280 ret = spi_write(flash->spi, command, 5); in sst25l_write()
295 command[1] = buf[i + j]; in sst25l_write()
296 ret = spi_write(flash->spi, command, 2); in sst25l_write()