Lines Matching refs:command
86 u8 command[4]; member
161 u8 *command; in dataflash_erase() local
176 x.tx_buf = command = priv->command; in dataflash_erase()
193 command[0] = do_block ? OP_ERASE_BLOCK : OP_ERASE_PAGE; in dataflash_erase()
194 command[1] = (u8)(pageaddr >> 16); in dataflash_erase()
195 command[2] = (u8)(pageaddr >> 8); in dataflash_erase()
196 command[3] = 0; in dataflash_erase()
200 command[0], command[1], command[2], command[3], in dataflash_erase()
242 u8 *command; in dataflash_read() local
252 command = priv->command; in dataflash_read()
255 command[0], command[1], command[2], command[3]); in dataflash_read()
259 x[0].tx_buf = command; in dataflash_read()
273 command[0] = OP_READ_CONTINUOUS; in dataflash_read()
274 command[1] = (u8)(addr >> 16); in dataflash_read()
275 command[2] = (u8)(addr >> 8); in dataflash_read()
276 command[3] = (u8)(addr >> 0); in dataflash_read()
310 u8 *command; in dataflash_write() local
317 x[0].tx_buf = command = priv->command; in dataflash_write()
353 command[0] = OP_TRANSFER_BUF1; in dataflash_write()
354 command[1] = (addr & 0x00FF0000) >> 16; in dataflash_write()
355 command[2] = (addr & 0x0000FF00) >> 8; in dataflash_write()
356 command[3] = 0; in dataflash_write()
359 command[0], command[1], command[2], command[3]); in dataflash_write()
371 command[0] = OP_PROGRAM_VIA_BUF1; in dataflash_write()
372 command[1] = (addr & 0x00FF0000) >> 16; in dataflash_write()
373 command[2] = (addr & 0x0000FF00) >> 8; in dataflash_write()
374 command[3] = (addr & 0x000000FF); in dataflash_write()
377 command[0], command[1], command[2], command[3]); in dataflash_write()
395 command[0] = OP_COMPARE_BUF1; in dataflash_write()
396 command[1] = (addr & 0x00FF0000) >> 16; in dataflash_write()
397 command[2] = (addr & 0x0000FF00) >> 8; in dataflash_write()
398 command[3] = 0; in dataflash_write()
401 command[0], command[1], command[2], command[3]); in dataflash_write()