Lines Matching full:role
26 char role; in device_role_select() local
29 printk("Choose device role - type r (receiver role) or b " in device_role_select()
30 "(broadcaster role), or q to quit: "); in device_role_select()
32 role = tolower(console_getchar()); in device_role_select()
34 printk("%c\n", role); in device_role_select()
36 if (role == 'r') { in device_role_select()
37 printk("Receiver role\n"); in device_role_select()
39 } else if (role == 'b') { in device_role_select()
40 printk("Broadcaster role\n"); in device_role_select()
42 } else if (role == 'q') { in device_role_select()
45 } else if (role == '\n') { in device_role_select()
49 printk("Invalid role: %c\n", role); in device_role_select()
56 enum benchmark_role role; in main() local
76 role = device_role_select(); in main()
78 if (role == ROLE_RECEIVER) { in main()
80 } else if (role == ROLE_BROADCASTER) { in main()
83 if (role != ROLE_QUIT) { in main()
84 LOG_INF("Invalid role %u", role); in main()