Lines Matching refs:index
217 static int get_lc3_chan_alloc_from_index(const struct shell_stream *sh_stream, uint8_t index, in get_lc3_chan_alloc_from_index() argument
224 const bool is_left = index == 0 && has_left; in get_lc3_chan_alloc_from_index()
225 const bool is_right = has_right && (index == 0U || (index == 1U && has_left)); in get_lc3_chan_alloc_from_index()
368 static bool encode_frame(struct shell_stream *sh_stream, uint8_t index, size_t frame_cnt, in encode_frame() argument
379 err = get_lc3_chan_alloc_from_index(sh_stream, index, &chan_alloc); in encode_frame()
598 unsigned long index; in cmd_select_unicast() local
601 index = shell_strtoul(argv[1], 0, &err); in cmd_select_unicast()
608 if (index > ARRAY_SIZE(unicast_streams)) { in cmd_select_unicast()
609 shell_error(sh, "Invalid index: %lu", index); in cmd_select_unicast()
614 stream = bap_stream_from_shell_stream(&unicast_streams[index]); in cmd_select_unicast()
1155 unsigned long index; in cmd_config() local
1171 index = shell_strtoul(argv[2], 0, &err); in cmd_config()
1178 if (index > ARRAY_SIZE(unicast_streams)) { in cmd_config()
1179 shell_error(sh, "Invalid index: %lu", index); in cmd_config()
1189 ep = snks[conn_index][index]; in cmd_config()
1197 ep = srcs[conn_index][index]; in cmd_config()
3250 unsigned long index; in cmd_select_broadcast_source() local
3253 index = shell_strtoul(argv[1], 0, &err); in cmd_select_broadcast_source()
3260 if (index > ARRAY_SIZE(broadcast_source_streams)) { in cmd_select_broadcast_source()
3261 shell_error(sh, "Invalid index: %lu", index); in cmd_select_broadcast_source()
3266 default_stream = bap_stream_from_shell_stream(&broadcast_source_streams[index]); in cmd_select_broadcast_source()