Lines Matching refs:cp

310 	const struct btp_ccp_discover_tbs_cmd *cp = cmd;  in ccp_discover_tbs()  local
314 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_discover_tbs()
326 const struct btp_ccp_accept_call_cmd *cp = cmd; in ccp_accept_call() local
330 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_accept_call()
331 err = (conn) ? bt_tbs_client_accept_call(conn, cp->inst_index, cp->call_id) : -ENOTCONN; in ccp_accept_call()
342 const struct btp_ccp_terminate_call_cmd *cp = cmd; in ccp_terminate_call() local
346 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_terminate_call()
347 err = (conn) ? bt_tbs_client_terminate_call(conn, cp->inst_index, cp->call_id) : in ccp_terminate_call()
359 const struct btp_ccp_originate_call_cmd *cp = cmd; in ccp_originate_call() local
363 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_originate_call()
364 err = (conn) ? bt_tbs_client_originate_call(conn, cp->inst_index, cp->uri) : -ENOTCONN; in ccp_originate_call()
375 const struct btp_ccp_read_call_state_cmd *cp = cmd; in ccp_read_call_state() local
379 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_call_state()
380 err = (conn) ? bt_tbs_client_read_call_state(conn, cp->inst_index) : -ENOTCONN; in ccp_read_call_state()
391 const struct btp_ccp_read_bearer_name_cmd *cp = cmd; in ccp_read_bearer_name() local
395 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_bearer_name()
401 err = bt_tbs_client_read_bearer_provider_name(conn, cp->inst_index); in ccp_read_bearer_name()
412 const struct btp_ccp_read_bearer_uci_cmd *cp = cmd; in ccp_read_bearer_uci() local
416 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_bearer_uci()
422 err = bt_tbs_client_read_bearer_uci(conn, cp->inst_index); in ccp_read_bearer_uci()
433 const struct btp_ccp_read_bearer_technology_cmd *cp = cmd; in ccp_read_bearer_tech() local
437 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_bearer_tech()
443 err = bt_tbs_client_read_technology(conn, cp->inst_index); in ccp_read_bearer_tech()
453 const struct btp_ccp_read_uri_list_cmd *cp = cmd; in ccp_read_uri_list() local
457 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_uri_list()
463 err = bt_tbs_client_read_uri_list(conn, cp->inst_index); in ccp_read_uri_list()
474 const struct btp_ccp_read_signal_strength_cmd *cp = cmd; in ccp_read_signal_strength() local
478 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_signal_strength()
484 err = bt_tbs_client_read_signal_strength(conn, cp->inst_index); in ccp_read_signal_strength()
495 const struct btp_ccp_read_signal_interval_cmd *cp = cmd; in ccp_read_signal_interval() local
499 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_signal_interval()
505 err = bt_tbs_client_read_signal_interval(conn, cp->inst_index); in ccp_read_signal_interval()
516 const struct btp_ccp_read_current_calls_cmd *cp = cmd; in ccp_read_current_calls() local
520 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_current_calls()
526 err = bt_tbs_client_read_current_calls(conn, cp->inst_index); in ccp_read_current_calls()
537 const struct btp_ccp_read_ccid_cmd *cp = cmd; in ccp_read_ccid() local
541 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_ccid()
547 err = bt_tbs_client_read_ccid(conn, cp->inst_index); in ccp_read_ccid()
558 const struct btp_ccp_read_call_uri_cmd *cp = cmd; in ccp_read_call_uri() local
562 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_call_uri()
568 err = bt_tbs_client_read_call_uri(conn, cp->inst_index); in ccp_read_call_uri()
579 const struct btp_ccp_read_status_flags_cmd *cp = cmd; in ccp_read_status_flags() local
583 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_status_flags()
589 err = bt_tbs_client_read_status_flags(conn, cp->inst_index); in ccp_read_status_flags()
600 const struct btp_ccp_read_optional_opcodes_cmd *cp = cmd; in ccp_read_optional_opcodes() local
604 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_optional_opcodes()
610 err = bt_tbs_client_read_optional_opcodes(conn, cp->inst_index); in ccp_read_optional_opcodes()
621 const struct btp_ccp_read_friendly_name_cmd *cp = cmd; in ccp_read_friendly_name() local
625 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_friendly_name()
631 err = bt_tbs_client_read_friendly_name(conn, cp->inst_index); in ccp_read_friendly_name()
642 const struct btp_ccp_read_remote_uri_cmd *cp = cmd; in ccp_read_remote_uri() local
646 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_read_remote_uri()
652 err = bt_tbs_client_read_remote_uri(conn, cp->inst_index); in ccp_read_remote_uri()
663 const struct btp_ccp_set_signal_interval_cmd *cp = cmd; in ccp_set_signal_interval() local
667 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_set_signal_interval()
673 err = bt_tbs_client_set_signal_strength_interval(conn, cp->inst_index, cp->interval); in ccp_set_signal_interval()
683 const struct btp_ccp_hold_call_cmd *cp = cmd; in ccp_hold_call() local
687 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_hold_call()
693 err = bt_tbs_client_hold_call(conn, cp->inst_index, cp->call_id); in ccp_hold_call()
703 const struct btp_ccp_retrieve_call_cmd *cp = cmd; in ccp_retrieve_call() local
707 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_retrieve_call()
713 err = bt_tbs_client_retrieve_call(conn, cp->inst_index, cp->call_id); in ccp_retrieve_call()
723 const struct btp_ccp_join_calls_cmd *cp = cmd; in ccp_join_calls() local
728 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in ccp_join_calls()
734 call_index = cp->call_index; in ccp_join_calls()
736 err = bt_tbs_client_join_calls(conn, cp->inst_index, call_index, cp->count); in ccp_join_calls()
910 const struct btp_tbs_remote_incoming_cmd *cp = cmd; in tbs_remote_incoming() local
918 if ((cp->recv_len >= sizeof(recv_uri) || cp->caller_len >= sizeof(caller_uri)) || in tbs_remote_incoming()
919 cp->fn_len >= sizeof(friendly_name)) { in tbs_remote_incoming()
923 memcpy(recv_uri, cp->data, cp->recv_len); in tbs_remote_incoming()
924 memcpy(caller_uri, cp->data + cp->recv_len, cp->caller_len); in tbs_remote_incoming()
925 memcpy(friendly_name, cp->data + cp->recv_len + cp->caller_len, cp->fn_len); in tbs_remote_incoming()
927 recv_uri[cp->recv_len] = '\0'; in tbs_remote_incoming()
928 caller_uri[cp->caller_len] = '\0'; in tbs_remote_incoming()
929 friendly_name[cp->fn_len] = '\0'; in tbs_remote_incoming()
931 err = bt_tbs_remote_incoming(cp->index, recv_uri, caller_uri, friendly_name); in tbs_remote_incoming()
941 const struct btp_tbs_originate_cmd *cp = cmd; in tbs_originate() local
947 if (cp->uri_len >= sizeof(uri)) { in tbs_originate()
951 memcpy(uri, cp->uri, cp->uri_len); in tbs_originate()
952 uri[cp->uri_len] = '\0'; in tbs_originate()
954 err = bt_tbs_originate(cp->index, uri, &call_index); in tbs_originate()
964 const struct btp_tbs_hold_cmd *cp = cmd; in tbs_hold() local
969 err = bt_tbs_hold(cp->index); in tbs_hold()
979 const struct btp_tbs_remote_hold_cmd *cp = cmd; in tbs_remote_hold() local
984 err = bt_tbs_remote_hold(cp->index); in tbs_remote_hold()
994 const struct btp_tbs_set_bearer_name_cmd *cp = cmd; in tbs_set_bearer_name() local
1000 if (cp->name_len >= sizeof(bearer_name)) { in tbs_set_bearer_name()
1004 memcpy(bearer_name, cp->name, cp->name_len); in tbs_set_bearer_name()
1005 bearer_name[cp->name_len] = '\0'; in tbs_set_bearer_name()
1007 err = bt_tbs_set_bearer_provider_name(cp->index, bearer_name); in tbs_set_bearer_name()
1018 const struct btp_tbs_set_technology_cmd *cp = cmd; in tbs_set_bearer_technology() local
1023 err = bt_tbs_set_bearer_technology(cp->index, cp->tech); in tbs_set_bearer_technology()
1034 const struct btp_tbs_set_uri_schemes_list_cmd *cp = cmd; in tbs_set_uri_scheme_list() local
1041 if (cp->uri_len >= sizeof(uri_list)) { in tbs_set_uri_scheme_list()
1045 memcpy(uri_list, cp->uri_list, cp->uri_len); in tbs_set_uri_scheme_list()
1046 uri_list[cp->uri_len] = '\0'; in tbs_set_uri_scheme_list()
1048 if (cp->uri_count > 1) { in tbs_set_uri_scheme_list()
1053 err = bt_tbs_set_uri_scheme_list(cp->index, (const char **)&uri_ptr, cp->uri_count); in tbs_set_uri_scheme_list()
1064 const struct btp_tbs_set_status_flags_cmd *cp = cmd; in tbs_set_status_flags() local
1065 uint16_t flags = sys_le16_to_cpu(cp->flags); in tbs_set_status_flags()
1070 err = bt_tbs_set_status_flags(cp->index, flags); in tbs_set_status_flags()
1081 const struct btp_tbs_set_signal_strength_cmd *cp = cmd; in tbs_set_signal_strength() local
1086 err = bt_tbs_set_signal_strength(cp->index, cp->strength); in tbs_set_signal_strength()