Lines Matching full:command

98 	unsigned char command[2];  in sst25l_write_enable()  local
101 command[0] = enable ? SST25L_CMD_WREN : SST25L_CMD_WRDI; in sst25l_write_enable()
102 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
106 command[0] = SST25L_CMD_EWSR; in sst25l_write_enable()
107 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
111 command[0] = SST25L_CMD_WRSR; in sst25l_write_enable()
112 command[1] = enable ? 0 : SST25L_STATUS_BP0 | SST25L_STATUS_BP1; in sst25l_write_enable()
113 err = spi_write(flash->spi, command, 2); in sst25l_write_enable()
149 unsigned char command[4]; in sst25l_erase_sector() local
156 command[0] = SST25L_CMD_SECTOR_ERASE; in sst25l_erase_sector()
157 command[1] = offset >> 16; in sst25l_erase_sector()
158 command[2] = offset >> 8; in sst25l_erase_sector()
159 command[3] = offset; in sst25l_erase_sector()
160 err = spi_write(flash->spi, command, 4); in sst25l_erase_sector()
223 unsigned char command[4]; in sst25l_read() local
239 command[0] = SST25L_CMD_READ; in sst25l_read()
240 command[1] = from >> 16; in sst25l_read()
241 command[2] = from >> 8; in sst25l_read()
242 command[3] = from; in sst25l_read()
244 transfer[0].tx_buf = command; in sst25l_read()
245 transfer[0].len = sizeof(command); in sst25l_read()
263 if (retlen && message.actual_length > sizeof(command)) in sst25l_read()
264 *retlen += message.actual_length - sizeof(command); in sst25l_read()
275 unsigned char command[5]; in sst25l_write() local
299 command[0] = SST25L_CMD_AAI_PROGRAM; in sst25l_write()
300 command[1] = (to + i) >> 16; in sst25l_write()
301 command[2] = (to + i) >> 8; in sst25l_write()
302 command[3] = (to + i); in sst25l_write()
303 command[4] = buf[i]; in sst25l_write()
304 ret = spi_write(flash->spi, command, 5); in sst25l_write()
319 command[1] = buf[i + j]; in sst25l_write()
320 ret = spi_write(flash->spi, command, 2); in sst25l_write()