Lines Matching refs:inst_index
249 static void current_calls_changed(struct bt_conn *conn, int err, uint8_t inst_index,
256 listener->current_calls(conn, err, inst_index, call_count, calls);
373 static void provider_name_changed(struct bt_conn *conn, int err, uint8_t inst_index,
380 listener->bearer_provider_name(conn, err, inst_index, name);
399 static void technology_changed(struct bt_conn *conn, int err, uint8_t inst_index,
406 listener->technology(conn, err, inst_index, technology);
429 static void signal_strength_changed(struct bt_conn *conn, int err, uint8_t inst_index,
436 listener->signal_strength(conn, err, inst_index, signal_strength);
476 static void status_flags_changed(struct bt_conn *conn, int err, uint8_t inst_index,
483 listener->status_flags(conn, err, inst_index, status_flags);
506 static void call_uri_changed(struct bt_conn *conn, int err, uint8_t inst_index,
513 listener->call_uri(conn, err, inst_index, call_uri);
531 static void call_state_changed(struct bt_conn *conn, int err, uint8_t inst_index,
539 listener->call_state(conn, err, inst_index, call_count, call_states);
602 static void terminate_reason_changed(struct bt_conn *conn, int err, uint8_t inst_index,
609 listener->termination_reason(conn, err, inst_index, reason.call_index,
633 static void remote_uri_changed(struct bt_conn *conn, int err, uint8_t inst_index,
640 listener->remote_uri(conn, err, inst_index, remote_uri);
659 static void friendly_name_changed(struct bt_conn *conn, int err, uint8_t inst_index,
666 listener->friendly_name(conn, err, inst_index, friendly_name);
701 uint8_t inst_index = tbs_index(conn, tbs_inst);
703 LOG_DBG("Index %u", inst_index);
907 uint8_t inst_index,
914 inst = tbs_inst_by_index(conn, inst_index);
938 const uint8_t inst_index = tbs_index(conn, inst);
947 provider_name_changed(conn, 0, inst_index, (char *)inst->net_buf.data);
949 provider_name_changed(conn, ret, inst_index, NULL);
962 static void bearer_uci_changed(struct bt_conn *conn, int err, uint8_t inst_index, const char *uci)
968 listener->bearer_uci(conn, err, inst_index, uci);
978 const uint8_t inst_index = tbs_index(conn, inst);
987 bearer_uci_changed(conn, 0, inst_index, (char *)inst->net_buf.data);
989 bearer_uci_changed(conn, ret, inst_index, NULL);
1009 uint8_t inst_index = tbs_index(conn, inst);
1013 LOG_DBG("Index %u", inst_index);
1030 technology_changed(conn, cb_err, inst_index, technology);
1037 static void uri_list_changed(struct bt_conn *conn, int err, uint8_t inst_index,
1044 listener->uri_list(conn, err, inst_index, uri_list);
1054 const uint8_t inst_index = tbs_index(conn, inst);
1063 uri_list_changed(conn, 0, inst_index, (char *)inst->net_buf.data);
1065 uri_list_changed(conn, ret, inst_index, NULL);
1085 uint8_t inst_index = tbs_index(conn, inst);
1089 LOG_DBG("Index %u", inst_index);
1106 signal_strength_changed(conn, cb_err, inst_index, signal_strength);
1113 static void signal_interval_changed(struct bt_conn *conn, int err, uint8_t inst_index,
1120 listener->signal_interval(conn, err, inst_index, signal_interval);
1132 uint8_t inst_index = tbs_index(conn, inst);
1136 LOG_DBG("Index %u", inst_index);
1153 signal_interval_changed(conn, cb_err, inst_index, signal_interval);
1167 uint8_t inst_index = tbs_index(conn, inst);
1170 LOG_DBG("Read bearer list current calls, index %u", inst_index);
1182 current_calls_changed(conn, tbs_err, inst_index, 0, NULL);
1203 current_calls_changed(conn, 0, inst_index, 0, NULL);
1215 static void ccid_changed(struct bt_conn *conn, int err, uint8_t inst_index, uint8_t ccid)
1221 listener->ccid(conn, err, inst_index, ccid);
1233 uint8_t inst_index = tbs_index(conn, inst);
1237 LOG_DBG("Index %u", inst_index);
1254 ccid_changed(conn, cb_err, inst_index, ccid);
1268 uint8_t inst_index = tbs_index(conn, inst);
1272 LOG_DBG("Index %u", inst_index);
1289 status_flags_changed(conn, cb_err, inst_index, status_flags);
1301 const uint8_t inst_index = tbs_index(conn, inst);
1310 call_uri_changed(conn, 0, inst_index, (char *)inst->net_buf.data);
1312 call_uri_changed(conn, ret, inst_index, NULL);
1331 uint8_t inst_index = tbs_index(conn, inst);
1336 LOG_DBG("Index %u", inst_index);
1348 call_state_changed(conn, tbs_err, inst_index, 0, NULL);
1366 call_state_changed(conn, 0, inst_index, 0, NULL);
1393 call_state_changed(conn, tbs_err, inst_index, cnt, call_states);
1399 static void optional_opcodes_changed(struct bt_conn *conn, int err, uint8_t inst_index,
1406 listener->optional_opcodes(conn, err, inst_index, optional_opcodes);
1416 uint8_t inst_index = tbs_index(conn, inst);
1420 LOG_DBG("Index %u", inst_index);
1437 optional_opcodes_changed(conn, cb_err, inst_index, optional_opcodes);
1449 const uint8_t inst_index = tbs_index(conn, inst);
1458 remote_uri_changed(conn, 0, inst_index, (char *)inst->net_buf.data);
1460 remote_uri_changed(conn, ret, inst_index, NULL);
1478 const uint8_t inst_index = tbs_index(conn, inst);
1487 friendly_name_changed(conn, 0, inst_index, (char *)inst->net_buf.data);
1489 friendly_name_changed(conn, ret, inst_index, NULL);
1507 uint8_t inst_index = tbs_index(conn, inst);
1510 LOG_DBG("Index %u", inst_index);
1724 uint8_t inst_index;
1727 inst_index = tbs_index(conn, srv_inst->current_inst);
1728 if (inst_index == BT_TBS_GTBS_INDEX) {
1729 inst_index = 0;
1731 inst_index++;
1734 return tbs_inst_by_index(conn, inst_index);
1737 inst_index = gtbs_found(srv_inst) ? BT_TBS_GTBS_INDEX : 0;
1739 return tbs_inst_by_index(conn, inst_index);
1754 LOG_DBG("inst_index %u", tbs_index(conn, srv_inst->current_inst));
1902 int bt_tbs_client_hold_call(struct bt_conn *conn, uint8_t inst_index,
1905 return tbs_client_common_call_control(conn, inst_index, call_index,
1911 int bt_tbs_client_accept_call(struct bt_conn *conn, uint8_t inst_index,
1914 return tbs_client_common_call_control(conn, inst_index, call_index,
1920 int bt_tbs_client_retrieve_call(struct bt_conn *conn, uint8_t inst_index,
1923 return tbs_client_common_call_control(conn, inst_index, call_index,
1929 int bt_tbs_client_terminate_call(struct bt_conn *conn, uint8_t inst_index,
1932 return tbs_client_common_call_control(conn, inst_index, call_index,
1938 int bt_tbs_client_originate_call(struct bt_conn *conn, uint8_t inst_index,
1954 inst = tbs_inst_by_index(conn, inst_index);
1984 int bt_tbs_client_join_calls(struct bt_conn *conn, uint8_t inst_index,
1999 inst = tbs_inst_by_index(conn, inst_index);
2033 uint8_t inst_index,
2042 inst = tbs_inst_by_index(conn, inst_index);
2062 uint8_t inst_index)
2070 inst = tbs_inst_by_index(conn, inst_index);
2086 int bt_tbs_client_read_bearer_uci(struct bt_conn *conn, uint8_t inst_index)
2094 inst = tbs_inst_by_index(conn, inst_index);
2109 int bt_tbs_client_read_technology(struct bt_conn *conn, uint8_t inst_index)
2117 inst = tbs_inst_by_index(conn, inst_index);
2133 int bt_tbs_client_read_uri_list(struct bt_conn *conn, uint8_t inst_index)
2141 inst = tbs_inst_by_index(conn, inst_index);
2156 int bt_tbs_client_read_signal_strength(struct bt_conn *conn, uint8_t inst_index)
2164 inst = tbs_inst_by_index(conn, inst_index);
2180 int bt_tbs_client_read_signal_interval(struct bt_conn *conn, uint8_t inst_index)
2188 inst = tbs_inst_by_index(conn, inst_index);
2204 int bt_tbs_client_read_current_calls(struct bt_conn *conn, uint8_t inst_index)
2212 inst = tbs_inst_by_index(conn, inst_index);
2228 int bt_tbs_client_read_ccid(struct bt_conn *conn, uint8_t inst_index)
2236 inst = tbs_inst_by_index(conn, inst_index);
2251 int bt_tbs_client_read_call_uri(struct bt_conn *conn, uint8_t inst_index)
2259 inst = tbs_inst_by_index(conn, inst_index);
2275 int bt_tbs_client_read_status_flags(struct bt_conn *conn, uint8_t inst_index)
2283 inst = tbs_inst_by_index(conn, inst_index);
2298 int bt_tbs_client_read_call_state(struct bt_conn *conn, uint8_t inst_index)
2306 inst = tbs_inst_by_index(conn, inst_index);
2322 uint8_t inst_index)
2330 inst = tbs_inst_by_index(conn, inst_index);
2346 int bt_tbs_client_read_remote_uri(struct bt_conn *conn, uint8_t inst_index)
2354 inst = tbs_inst_by_index(conn, inst_index);
2370 int bt_tbs_client_read_friendly_name(struct bt_conn *conn, uint8_t inst_index)
2378 inst = tbs_inst_by_index(conn, inst_index);