Lines Matching full:result

34 	int result = 0;  in cmd_tbs_client_discover()  local
36 result = bt_tbs_client_discover(default_conn); in cmd_tbs_client_discover()
37 if (result != 0) { in cmd_tbs_client_discover()
38 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_discover()
41 return result; in cmd_tbs_client_discover()
51 int result = 0; in cmd_tbs_client_set_signal_strength_interval() local
60 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_set_signal_strength_interval()
61 if (result != 0) { in cmd_tbs_client_set_signal_strength_interval()
64 result); in cmd_tbs_client_set_signal_strength_interval()
80 interval = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_set_signal_strength_interval()
81 if (result != 0) { in cmd_tbs_client_set_signal_strength_interval()
82 shell_error(sh, "Failed to parse interval: %d", result); in cmd_tbs_client_set_signal_strength_interval()
93 result = bt_tbs_client_set_signal_strength_interval(default_conn, in cmd_tbs_client_set_signal_strength_interval()
96 if (result != 0) { in cmd_tbs_client_set_signal_strength_interval()
97 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_set_signal_strength_interval()
100 return result; in cmd_tbs_client_set_signal_strength_interval()
110 int result = 0; in cmd_tbs_client_hold() local
116 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_hold()
117 if (result != 0) { in cmd_tbs_client_hold()
120 result); in cmd_tbs_client_hold()
136 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_hold()
137 if (result != 0) { in cmd_tbs_client_hold()
138 shell_error(sh, "Failed to parse call_index: %d", result); in cmd_tbs_client_hold()
149 result = bt_tbs_client_hold_call(default_conn, inst_index, call_index); in cmd_tbs_client_hold()
150 if (result != 0) { in cmd_tbs_client_hold()
151 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_hold()
154 return result; in cmd_tbs_client_hold()
164 int result = 0; in cmd_tbs_client_retrieve() local
170 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_retrieve()
171 if (result != 0) { in cmd_tbs_client_retrieve()
174 result); in cmd_tbs_client_retrieve()
190 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_retrieve()
191 if (result != 0) { in cmd_tbs_client_retrieve()
192 shell_error(sh, "Failed to parse call_index: %d", result); in cmd_tbs_client_retrieve()
203 result = bt_tbs_client_retrieve_call(default_conn, inst_index, in cmd_tbs_client_retrieve()
205 if (result != 0) { in cmd_tbs_client_retrieve()
206 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_retrieve()
209 return result; in cmd_tbs_client_retrieve()
219 int result = 0; in cmd_tbs_client_accept() local
225 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_accept()
226 if (result != 0) { in cmd_tbs_client_accept()
229 result); in cmd_tbs_client_accept()
245 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_accept()
246 if (result != 0) { in cmd_tbs_client_accept()
247 shell_error(sh, "Failed to parse call_index: %d", result); in cmd_tbs_client_accept()
258 result = bt_tbs_client_accept_call(default_conn, inst_index, in cmd_tbs_client_accept()
261 if (result != 0) { in cmd_tbs_client_accept()
262 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_accept()
265 return result; in cmd_tbs_client_accept()
276 int result = 0; in cmd_tbs_client_join() local
281 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_join()
282 if (result != 0) { in cmd_tbs_client_join()
285 result); in cmd_tbs_client_join()
301 call_index = shell_strtoul(argv[i], 0, &result); in cmd_tbs_client_join()
302 if (result != 0) { in cmd_tbs_client_join()
304 result); in cmd_tbs_client_join()
318 result = bt_tbs_client_join_calls(default_conn, inst_index, in cmd_tbs_client_join()
320 if (result != 0) { in cmd_tbs_client_join()
321 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_join()
324 return result; in cmd_tbs_client_join()
334 int result = 0; in cmd_tbs_client_terminate() local
340 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_terminate()
341 if (result != 0) { in cmd_tbs_client_terminate()
344 result); in cmd_tbs_client_terminate()
360 call_index = shell_strtoul(argv[argc - 1], 0, &result); in cmd_tbs_client_terminate()
361 if (result != 0) { in cmd_tbs_client_terminate()
362 shell_error(sh, "Failed to parse call_index: %d", result); in cmd_tbs_client_terminate()
373 result = bt_tbs_client_terminate_call(default_conn, inst_index, in cmd_tbs_client_terminate()
375 if (result != 0) { in cmd_tbs_client_terminate()
376 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_terminate()
379 return result; in cmd_tbs_client_terminate()
388 int result = 0; in cmd_tbs_client_originate() local
394 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_originate()
395 if (result != 0) { in cmd_tbs_client_originate()
398 result); in cmd_tbs_client_originate()
414 result = bt_tbs_client_originate_call(default_conn, inst_index, in cmd_tbs_client_originate()
416 if (result != 0) { in cmd_tbs_client_originate()
417 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_originate()
420 return result; in cmd_tbs_client_originate()
429 int result = 0; in cmd_tbs_client_read_bearer_provider_name() local
435 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_bearer_provider_name()
436 if (result != 0) { in cmd_tbs_client_read_bearer_provider_name()
439 result); in cmd_tbs_client_read_bearer_provider_name()
455 result = bt_tbs_client_read_bearer_provider_name(default_conn, in cmd_tbs_client_read_bearer_provider_name()
457 if (result != 0) { in cmd_tbs_client_read_bearer_provider_name()
458 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_bearer_provider_name()
461 return result; in cmd_tbs_client_read_bearer_provider_name()
470 int result = 0; in cmd_tbs_client_read_bearer_uci() local
476 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_bearer_uci()
477 if (result != 0) { in cmd_tbs_client_read_bearer_uci()
480 result); in cmd_tbs_client_read_bearer_uci()
496 result = bt_tbs_client_read_bearer_uci(default_conn, inst_index); in cmd_tbs_client_read_bearer_uci()
497 if (result != 0) { in cmd_tbs_client_read_bearer_uci()
498 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_bearer_uci()
501 return result; in cmd_tbs_client_read_bearer_uci()
510 int result = 0; in cmd_tbs_client_read_technology() local
516 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_technology()
517 if (result != 0) { in cmd_tbs_client_read_technology()
520 result); in cmd_tbs_client_read_technology()
536 result = bt_tbs_client_read_technology(default_conn, inst_index); in cmd_tbs_client_read_technology()
537 if (result != 0) { in cmd_tbs_client_read_technology()
538 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_technology()
541 return result; in cmd_tbs_client_read_technology()
550 int result = 0; in cmd_tbs_client_read_uri_list() local
556 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_uri_list()
557 if (result != 0) { in cmd_tbs_client_read_uri_list()
560 result); in cmd_tbs_client_read_uri_list()
576 result = bt_tbs_client_read_uri_list(default_conn, inst_index); in cmd_tbs_client_read_uri_list()
577 if (result != 0) { in cmd_tbs_client_read_uri_list()
578 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_uri_list()
581 return result; in cmd_tbs_client_read_uri_list()
590 int result = 0; in cmd_tbs_client_read_signal_strength() local
596 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_signal_strength()
597 if (result != 0) { in cmd_tbs_client_read_signal_strength()
600 result); in cmd_tbs_client_read_signal_strength()
616 result = bt_tbs_client_read_signal_strength(default_conn, inst_index); in cmd_tbs_client_read_signal_strength()
617 if (result != 0) { in cmd_tbs_client_read_signal_strength()
618 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_signal_strength()
621 return result; in cmd_tbs_client_read_signal_strength()
630 int result = 0; in cmd_tbs_client_read_signal_interval() local
636 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_signal_interval()
637 if (result != 0) { in cmd_tbs_client_read_signal_interval()
640 result); in cmd_tbs_client_read_signal_interval()
656 result = bt_tbs_client_read_signal_interval(default_conn, inst_index); in cmd_tbs_client_read_signal_interval()
657 if (result != 0) { in cmd_tbs_client_read_signal_interval()
658 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_signal_interval()
661 return result; in cmd_tbs_client_read_signal_interval()
670 int result = 0; in cmd_tbs_client_read_current_calls() local
676 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_current_calls()
677 if (result != 0) { in cmd_tbs_client_read_current_calls()
680 result); in cmd_tbs_client_read_current_calls()
696 result = bt_tbs_client_read_current_calls(default_conn, inst_index); in cmd_tbs_client_read_current_calls()
697 if (result != 0) { in cmd_tbs_client_read_current_calls()
698 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_current_calls()
701 return result; in cmd_tbs_client_read_current_calls()
710 int result = 0; in cmd_tbs_client_read_ccid() local
716 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_ccid()
717 if (result != 0) { in cmd_tbs_client_read_ccid()
720 result); in cmd_tbs_client_read_ccid()
736 result = bt_tbs_client_read_ccid(default_conn, inst_index); in cmd_tbs_client_read_ccid()
737 if (result != 0) { in cmd_tbs_client_read_ccid()
738 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_ccid()
741 return result; in cmd_tbs_client_read_ccid()
750 int result = 0; in cmd_tbs_client_read_uri() local
756 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_uri()
757 if (result != 0) { in cmd_tbs_client_read_uri()
760 result); in cmd_tbs_client_read_uri()
776 result = bt_tbs_client_read_call_uri(default_conn, inst_index); in cmd_tbs_client_read_uri()
777 if (result != 0) { in cmd_tbs_client_read_uri()
778 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_uri()
781 return result; in cmd_tbs_client_read_uri()
790 int result = 0; in cmd_tbs_client_read_status_flags() local
796 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_status_flags()
797 if (result != 0) { in cmd_tbs_client_read_status_flags()
800 result); in cmd_tbs_client_read_status_flags()
816 result = bt_tbs_client_read_status_flags(default_conn, inst_index); in cmd_tbs_client_read_status_flags()
817 if (result != 0) { in cmd_tbs_client_read_status_flags()
818 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_status_flags()
821 return result; in cmd_tbs_client_read_status_flags()
829 int result = 0; in cmd_tbs_client_read_call_state() local
835 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_call_state()
836 if (result != 0) { in cmd_tbs_client_read_call_state()
839 result); in cmd_tbs_client_read_call_state()
855 result = bt_tbs_client_read_call_state(default_conn, inst_index); in cmd_tbs_client_read_call_state()
856 if (result != 0) { in cmd_tbs_client_read_call_state()
857 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_call_state()
860 return result; in cmd_tbs_client_read_call_state()
868 int result = 0; in cmd_tbs_client_read_remote_uri() local
874 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_remote_uri()
875 if (result != 0) { in cmd_tbs_client_read_remote_uri()
878 result); in cmd_tbs_client_read_remote_uri()
894 result = bt_tbs_client_read_remote_uri(default_conn, inst_index); in cmd_tbs_client_read_remote_uri()
895 if (result != 0) { in cmd_tbs_client_read_remote_uri()
896 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_remote_uri()
899 return result; in cmd_tbs_client_read_remote_uri()
908 int result = 0; in cmd_tbs_client_read_friendly_name() local
914 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_friendly_name()
915 if (result != 0) { in cmd_tbs_client_read_friendly_name()
918 result); in cmd_tbs_client_read_friendly_name()
934 result = bt_tbs_client_read_friendly_name(default_conn, inst_index); in cmd_tbs_client_read_friendly_name()
935 if (result != 0) { in cmd_tbs_client_read_friendly_name()
936 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_friendly_name()
939 return result; in cmd_tbs_client_read_friendly_name()
948 int result = 0; in cmd_tbs_client_read_optional_opcodes() local
954 inst_index = shell_strtoul(argv[1], 0, &result); in cmd_tbs_client_read_optional_opcodes()
955 if (result != 0) { in cmd_tbs_client_read_optional_opcodes()
958 result); in cmd_tbs_client_read_optional_opcodes()
974 result = bt_tbs_client_read_optional_opcodes(default_conn, inst_index); in cmd_tbs_client_read_optional_opcodes()
975 if (result != 0) { in cmd_tbs_client_read_optional_opcodes()
976 shell_print(sh, "Fail: %d", result); in cmd_tbs_client_read_optional_opcodes()
979 return result; in cmd_tbs_client_read_optional_opcodes()