Lines Matching refs:call_index

36 static bool tbs_originate_call_cb(struct bt_conn *conn, uint8_t call_index,  in tbs_originate_call_cb()  argument
125 unsigned long call_index; in cmd_tbs_accept() local
128 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_accept()
135 if (call_index > UINT8_MAX) { in cmd_tbs_accept()
136 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_accept()
141 result = bt_tbs_accept((uint8_t)call_index); in cmd_tbs_accept()
146 call_index); in cmd_tbs_accept()
155 unsigned long call_index; in cmd_tbs_terminate() local
158 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_terminate()
165 if (call_index > UINT8_MAX) { in cmd_tbs_terminate()
166 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_terminate()
171 result = bt_tbs_terminate((uint8_t)call_index); in cmd_tbs_terminate()
176 call_index); in cmd_tbs_terminate()
184 unsigned long call_index; in cmd_tbs_hold() local
187 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_hold()
194 if (call_index > UINT8_MAX) { in cmd_tbs_hold()
195 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_hold()
200 result = bt_tbs_hold((uint8_t)call_index); in cmd_tbs_hold()
205 call_index); in cmd_tbs_hold()
214 unsigned long call_index; in cmd_tbs_retrieve() local
217 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_retrieve()
224 if (call_index > UINT8_MAX) { in cmd_tbs_retrieve()
225 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_retrieve()
230 result = bt_tbs_retrieve((uint8_t)call_index); in cmd_tbs_retrieve()
235 call_index); in cmd_tbs_retrieve()
244 uint8_t call_index; in cmd_tbs_originate() local
267 &call_index); in cmd_tbs_originate()
271 shell_print(sh, "TBS call_index %u originated", call_index); in cmd_tbs_originate()
280 unsigned long call_index; in cmd_tbs_join() local
284 call_index = shell_strtoul(argv[i], 0, &result); in cmd_tbs_join()
292 if (call_index > UINT8_MAX) { in cmd_tbs_join()
293 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_join()
298 call_indexes[i - 1] = (uint8_t)call_index; in cmd_tbs_join()
313 unsigned long call_index; in cmd_tbs_answer() local
316 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_answer()
323 if (call_index > UINT8_MAX) { in cmd_tbs_answer()
324 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_answer()
329 result = bt_tbs_remote_answer((uint8_t)call_index); in cmd_tbs_answer()
334 call_index); in cmd_tbs_answer()
343 unsigned long call_index; in cmd_tbs_remote_hold() local
346 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_remote_hold()
353 if (call_index > UINT8_MAX) { in cmd_tbs_remote_hold()
354 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_remote_hold()
359 result = bt_tbs_remote_hold((uint8_t)call_index); in cmd_tbs_remote_hold()
364 call_index); in cmd_tbs_remote_hold()
373 unsigned long call_index; in cmd_tbs_remote_retrieve() local
376 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_remote_retrieve()
383 if (call_index > UINT8_MAX) { in cmd_tbs_remote_retrieve()
384 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_remote_retrieve()
389 result = bt_tbs_remote_retrieve((uint8_t)call_index); in cmd_tbs_remote_retrieve()
394 call_index); in cmd_tbs_remote_retrieve()
403 unsigned long call_index; in cmd_tbs_remote_terminate() local
406 call_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_remote_terminate()
413 if (call_index > UINT8_MAX) { in cmd_tbs_remote_terminate()
414 shell_error(sh, "Invalid call_index: %lu", call_index); in cmd_tbs_remote_terminate()
419 result = bt_tbs_remote_terminate((uint8_t)call_index); in cmd_tbs_remote_terminate()
424 call_index); in cmd_tbs_remote_terminate()