Lines Matching refs:pg_state
67 static enum pong_state pg_state = INIT; variable
205 pg_state = val; in mode_selected()
207 switch (pg_state) { in mode_selected()
219 printk("Unknown state %d\n", pg_state); in mode_selected()
325 if (pg_state == INIT) { in game_refresh()
331 game_init(pg_state == SINGLE || remote_lost); in game_refresh()
341 if (pg_state == SINGLE) { in game_refresh()
369 if (pg_state == CONNECTED) { in game_refresh()
428 game_init(pg_state == SINGLE || remote_lost); in button_pressed()
433 if (pg_state == MULTI) { in button_pressed()
435 pg_state = INIT; in button_pressed()
481 pg_state = CONNECTED; in pong_conn_ready()
488 pg_state = INIT; in pong_remote_disconnected()