Lines Matching refs:state

74     } state;  member
109 switch (sd->state) { in sd_set_status()
131 sd->card_status |= sd->state << 9; in sd_set_status()
402 sd->state = sd_idle_state; in sd_reset()
616 DPRINTF("CMD%d 0x%08x state %d\n", req.cmd, req.arg, sd->state); in sd_normal_command()
620 switch (sd->state) { in sd_normal_command()
625 sd->state = sd_idle_state; in sd_normal_command()
635 sd->state = sd_transfer_state; in sd_normal_command()
641 switch (sd->state) { in sd_normal_command()
643 sd->state = sd_identification_state; in sd_normal_command()
654 switch (sd->state) { in sd_normal_command()
657 sd->state = sd_standby_state; in sd_normal_command()
669 switch (sd->state) { in sd_normal_command()
688 sd->state = sd_sendingdata_state; in sd_normal_command()
701 switch (sd->state) { in sd_normal_command()
706 sd->state = sd_transfer_state; in sd_normal_command()
714 sd->state = sd_standby_state; in sd_normal_command()
721 sd->state = sd_programming_state; in sd_normal_command()
728 sd->state = sd_disconnect_state; in sd_normal_command()
738 switch (sd->state) { in sd_normal_command()
756 switch (sd->state) { in sd_normal_command()
766 sd->state = sd_sendingdata_state; in sd_normal_command()
778 switch (sd->state) { in sd_normal_command()
788 sd->state = sd_sendingdata_state; in sd_normal_command()
802 switch (sd->state) { in sd_normal_command()
804 sd->state = sd_sendingdata_state; in sd_normal_command()
818 switch (sd->state) { in sd_normal_command()
820 sd->state = sd_transfer_state; in sd_normal_command()
824 sd->state = sd_programming_state; in sd_normal_command()
826 sd->state = sd_transfer_state; in sd_normal_command()
855 sd->state = sd_inactive_state; in sd_normal_command()
865 switch (sd->state) { in sd_normal_command()
880 switch (sd->state) { in sd_normal_command()
882 sd->state = sd_sendingdata_state; in sd_normal_command()
896 switch (sd->state) { in sd_normal_command()
898 sd->state = sd_sendingdata_state; in sd_normal_command()
915 switch (sd->state) { in sd_normal_command()
920 sd->state = sd_receivingdata_state; in sd_normal_command()
941 switch (sd->state) { in sd_normal_command()
946 sd->state = sd_receivingdata_state; in sd_normal_command()
967 switch (sd->state) { in sd_normal_command()
969 sd->state = sd_receivingdata_state; in sd_normal_command()
982 switch (sd->state) { in sd_normal_command()
984 sd->state = sd_receivingdata_state; in sd_normal_command()
996 switch (sd->state) { in sd_normal_command()
1003 sd->state = sd_programming_state; in sd_normal_command()
1007 sd->state = sd_transfer_state; in sd_normal_command()
1016 switch (sd->state) { in sd_normal_command()
1023 sd->state = sd_programming_state; in sd_normal_command()
1027 sd->state = sd_transfer_state; in sd_normal_command()
1036 switch (sd->state) { in sd_normal_command()
1038 sd->state = sd_sendingdata_state; in sd_normal_command()
1051 switch (sd->state) { in sd_normal_command()
1062 switch (sd->state) { in sd_normal_command()
1073 switch (sd->state) { in sd_normal_command()
1080 sd->state = sd_programming_state; in sd_normal_command()
1083 sd->state = sd_transfer_state; in sd_normal_command()
1095 switch (sd->state) { in sd_normal_command()
1097 sd->state = sd_receivingdata_state; in sd_normal_command()
1118 switch (sd->state) { in sd_normal_command()
1122 sd->state = sd_sendingdata_state; in sd_normal_command()
1124 sd->state = sd_receivingdata_state; in sd_normal_command()
1157 switch (sd->state) { in sd_app_command()
1169 switch (sd->state) { in sd_app_command()
1171 sd->state = sd_sendingdata_state; in sd_app_command()
1182 switch (sd->state) { in sd_app_command()
1186 sd->state = sd_sendingdata_state; in sd_app_command()
1197 switch (sd->state) { in sd_app_command()
1209 sd->state = sd_transfer_state; in sd_app_command()
1212 switch (sd->state) { in sd_app_command()
1216 sd->state = sd_ready_state; in sd_app_command()
1226 switch (sd->state) { in sd_app_command()
1237 switch (sd->state) { in sd_app_command()
1239 sd->state = sd_sendingdata_state; in sd_app_command()
1344 printf(" state %d\n", sd->state); in sd_do_command()
1346 DPRINTF("No response %d\n", sd->state); in sd_do_command()
1419 if (sd->state != sd_receivingdata_state) { in sd_write_data()
1432 sd->state = sd_programming_state; in sd_write_data()
1437 sd->state = sd_transfer_state; in sd_write_data()
1445 sd->state = sd_programming_state; in sd_write_data()
1461 sd->state = sd_receivingdata_state; in sd_write_data()
1469 sd->state = sd_programming_state; in sd_write_data()
1480 sd->state = sd_transfer_state; in sd_write_data()
1488 sd->state = sd_programming_state; in sd_write_data()
1504 sd->state = sd_transfer_state; in sd_write_data()
1512 sd->state = sd_programming_state; in sd_write_data()
1515 sd->state = sd_transfer_state; in sd_write_data()
1523 sd->state = sd_transfer_state; in sd_write_data()
1542 if (sd->state != sd_sendingdata_state) { in sd_read_data()
1557 sd->state = sd_transfer_state; in sd_read_data()
1565 sd->state = sd_transfer_state; in sd_read_data()
1587 sd->state = sd_transfer_state; in sd_read_data()
1596 sd->state = sd_transfer_state; in sd_read_data()
1618 sd->state = sd_transfer_state; in sd_read_data()
1625 sd->state = sd_transfer_state; in sd_read_data()
1632 sd->state = sd_transfer_state; in sd_read_data()
1641 sd->state = sd_transfer_state; in sd_read_data()
1654 return sd->state == sd_sendingdata_state; in sd_data_ready()