Lines Matching refs:can_shell_mode_map
35 static const struct can_shell_mode_mapping can_shell_mode_map[] = { variable
268 for (i = 0; i < ARRAY_SIZE(can_shell_mode_map); i++) { in can_shell_print_extended_modes()
269 if (BIT(bit) == can_shell_mode_map[i].mode) { in can_shell_print_extended_modes()
270 shell_fprintf_normal(sh, "%s ", can_shell_mode_map[i].name); in can_shell_print_extended_modes()
275 if (i == ARRAY_SIZE(can_shell_mode_map)) { in can_shell_print_extended_modes()
690 for (j = 0; j < ARRAY_SIZE(can_shell_mode_map); j++) { in cmd_can_mode_set()
691 if (strcmp(argv[i], can_shell_mode_map[j].name) == 0) { in cmd_can_mode_set()
692 mode |= can_shell_mode_map[j].mode; in cmd_can_mode_set()
697 if (j == ARRAY_SIZE(can_shell_mode_map)) { in cmd_can_mode_set()
1020 if (idx < ARRAY_SIZE(can_shell_mode_map)) { in cmd_can_mode()
1021 entry->syntax = can_shell_mode_map[idx].name; in cmd_can_mode()