Lines Matching refs:cmd
84 uint8_t cmd; member
181 pfl->cmd = 0x00; in pflash_reset_state_machine()
225 trace_pflash_timer_expired(pfl->name, pfl->cmd); in pflash_timer()
226 if (pfl->cmd == 0x30) { in pflash_timer()
251 pfl->cmd = 0; in pflash_timer()
325 switch (pfl->cmd) { in pflash_read()
328 trace_pflash_read_unknown_state(pfl->name, pfl->cmd); in pflash_read()
388 trace_pflash_io_read(pfl->name, offset, width, ret, pfl->cmd, pfl->wcycle); in pflash_read()
437 uint8_t cmd; in pflash_write() local
440 cmd = value; in pflash_write()
441 if (pfl->cmd != 0xA0) { in pflash_write()
443 if (cmd == 0xF0 && pfl->cmd != 0x10 && pfl->cmd != 0x30) { in pflash_write()
447 pfl->cmd = 0x90; in pflash_write()
473 if (boff == 0x55 && cmd == 0x98) { in pflash_write()
476 pfl->cmd = 0x98; in pflash_write()
480 if (cmd == 0x30) { /* Erase Resume */ in pflash_write()
487 pfl->cmd = 0x30; in pflash_write()
495 if (cmd == 0xB0) { /* Erase Suspend */ in pflash_write()
498 if (boff != pfl->unlock_addr0 || cmd != 0xAA) { in pflash_write()
500 cmd, pfl->unlock_addr0); in pflash_write()
508 if (boff != pfl->unlock_addr1 || cmd != 0x55) { in pflash_write()
509 trace_pflash_unlock1_failed(pfl->name, boff, cmd); in pflash_write()
517 trace_pflash_write_failed(pfl->name, boff, cmd); in pflash_write()
520 switch (cmd) { in pflash_write()
527 pfl->cmd = cmd; in pflash_write()
528 trace_pflash_write_start(pfl->name, cmd); in pflash_write()
531 trace_pflash_write_unknown(pfl->name, cmd); in pflash_write()
536 switch (pfl->cmd) { in pflash_write()
571 if (pfl->bypass && cmd == 0x00) { in pflash_write()
579 if (boff == 0x55 && cmd == 0x98) { in pflash_write()
582 pfl->cmd = 0x98; in pflash_write()
587 trace_pflash_write_invalid(pfl->name, pfl->cmd); in pflash_write()
591 switch (pfl->cmd) { in pflash_write()
600 trace_pflash_write_invalid_state(pfl->name, pfl->cmd, 5); in pflash_write()
609 switch (cmd) { in pflash_write()
630 trace_pflash_write_invalid_command(pfl->name, cmd); in pflash_write()
633 pfl->cmd = cmd; in pflash_write()
636 switch (pfl->cmd) { in pflash_write()
641 if (cmd == 0xB0) { in pflash_write()
670 if (cmd == 0x30) { in pflash_write()
680 trace_pflash_write_invalid_state(pfl->name, pfl->cmd, 6); in pflash_write()
706 pfl->cmd = 0; in pflash_write()