• Home
  • Raw
  • Download

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()
219 unsigned char command[4]; in sst25l_read() local
225 command[0] = SST25L_CMD_READ; in sst25l_read()
226 command[1] = from >> 16; in sst25l_read()
227 command[2] = from >> 8; in sst25l_read()
228 command[3] = from; in sst25l_read()
230 transfer[0].tx_buf = command; in sst25l_read()
231 transfer[0].len = sizeof(command); in sst25l_read()
249 if (retlen && message.actual_length > sizeof(command)) in sst25l_read()
250 *retlen += message.actual_length - sizeof(command); in sst25l_read()
261 unsigned char command[5]; in sst25l_write() local
278 command[0] = SST25L_CMD_AAI_PROGRAM; in sst25l_write()
279 command[1] = (to + i) >> 16; in sst25l_write()
280 command[2] = (to + i) >> 8; in sst25l_write()
281 command[3] = (to + i); in sst25l_write()
282 command[4] = buf[i]; in sst25l_write()
283 ret = spi_write(flash->spi, command, 5); in sst25l_write()
298 command[1] = buf[i + j]; in sst25l_write()
299 ret = spi_write(flash->spi, command, 2); in sst25l_write()