Lines Matching refs:command

93 	unsigned char command[2];  in sst25l_write_enable()  local
96 command[0] = enable ? SST25L_CMD_WREN : SST25L_CMD_WRDI; in sst25l_write_enable()
97 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
101 command[0] = SST25L_CMD_EWSR; in sst25l_write_enable()
102 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
106 command[0] = SST25L_CMD_WRSR; in sst25l_write_enable()
107 command[1] = enable ? 0 : SST25L_STATUS_BP0 | SST25L_STATUS_BP1; in sst25l_write_enable()
108 err = spi_write(flash->spi, command, 2); in sst25l_write_enable()
144 unsigned char command[4]; in sst25l_erase_sector() local
151 command[0] = SST25L_CMD_SECTOR_ERASE; in sst25l_erase_sector()
152 command[1] = offset >> 16; in sst25l_erase_sector()
153 command[2] = offset >> 8; in sst25l_erase_sector()
154 command[3] = offset; in sst25l_erase_sector()
155 err = spi_write(flash->spi, command, 4); in sst25l_erase_sector()
212 unsigned char command[4]; in sst25l_read() local
218 command[0] = SST25L_CMD_READ; in sst25l_read()
219 command[1] = from >> 16; in sst25l_read()
220 command[2] = from >> 8; in sst25l_read()
221 command[3] = from; in sst25l_read()
223 transfer[0].tx_buf = command; in sst25l_read()
224 transfer[0].len = sizeof(command); in sst25l_read()
242 if (retlen && message.actual_length > sizeof(command)) in sst25l_read()
243 *retlen += message.actual_length - sizeof(command); in sst25l_read()
254 unsigned char command[5]; in sst25l_write() local
271 command[0] = SST25L_CMD_AAI_PROGRAM; in sst25l_write()
272 command[1] = (to + i) >> 16; in sst25l_write()
273 command[2] = (to + i) >> 8; in sst25l_write()
274 command[3] = (to + i); in sst25l_write()
275 command[4] = buf[i]; in sst25l_write()
276 ret = spi_write(flash->spi, command, 5); in sst25l_write()
291 command[1] = buf[i + j]; in sst25l_write()
292 ret = spi_write(flash->spi, command, 2); in sst25l_write()