Lines Matching refs:svc_insts
73 static struct tbs_inst svc_insts[CONFIG_BT_TBS_BEARER_COUNT]; variable
79 (1U + ARRAY_SIZE(svc_insts))))
112 index = inst - svc_insts; in inst_index()
113 __ASSERT(index >= 0 && index < ARRAY_SIZE(svc_insts), "Invalid tbs_inst pointer"); in inst_index()
124 } else if (ARRAY_SIZE(svc_insts) > 0U && index < ARRAY_SIZE(svc_insts)) { in inst_lookup_index()
125 inst = &svc_insts[index]; in inst_lookup_index()
141 for (int i = 0; i < ARRAY_SIZE(svc_insts[i].calls); i++) { in lookup_call_in_inst()
169 for (size_t i = 0; i < ARRAY_SIZE(svc_insts); i++) { in lookup_call()
170 call = lookup_call_in_inst(&svc_insts[i], call_index); in lookup_call()
196 for (int i = 0; i < ARRAY_SIZE(svc_insts); i++) { in lookup_inst_by_attr()
197 if (inst_check_attr(&svc_insts[i], attr)) { in lookup_inst_by_attr()
198 return &svc_insts[i]; in lookup_inst_by_attr()
219 for (size_t i = 0; i < ARRAY_SIZE(svc_insts); i++) { in lookup_inst_by_call_index()
220 if (lookup_call_in_inst(&svc_insts[i], call_index) != NULL) { in lookup_inst_by_call_index()
221 return &svc_insts[i]; in lookup_inst_by_call_index()
290 for (size_t i = 0; i < ARRAY_SIZE(svc_insts); i++) { in lookup_inst_by_uri_scheme()
291 for (size_t j = 0; j < ARRAY_SIZE(svc_insts[i].calls); j++) { in lookup_inst_by_uri_scheme()
292 if (uri_scheme_in_list(uri_scheme, svc_insts[i].uri_scheme_list)) { in lookup_inst_by_uri_scheme()
293 return &svc_insts[i]; in lookup_inst_by_uri_scheme()
425 for (size_t i = 0; i < ARRAY_SIZE(svc_insts); i++) { in net_buf_put_call_states()
426 net_buf_put_call_states_by_inst(&svc_insts[i], buf); in net_buf_put_call_states()
478 for (size_t i = 0; i < ARRAY_SIZE(svc_insts); i++) { in net_buf_put_current_calls()
479 net_buf_put_current_calls_by_inst(&svc_insts[i], buf); in net_buf_put_current_calls()
597 for (size_t i = 0; i < ARRAY_SIZE(svc_insts); i++) { in read_uri_scheme_list()
598 size_t uri_len = strlen(svc_insts[i].uri_scheme_list); in read_uri_scheme_list()
606 net_buf_simple_add_mem(&read_buf, svc_insts[i].uri_scheme_list, uri_len); in read_uri_scheme_list()
1488 BT_GATT_SERVICE_INSTANCE_DEFINE(tbs_service_list, svc_insts, CONFIG_BT_TBS_BEARER_COUNT,
1555 for (size_t i = 0; i < ARRAY_SIZE(svc_insts); i++) { in tbs_service_inst_register()
1556 struct tbs_inst *inst = &svc_insts[i]; in tbs_service_inst_register()
1691 for (size_t i = 0; i < ARRAY_SIZE(svc_insts); i++) { in bt_tbs_unregister_bearer()
1692 struct tbs_inst *tbs = &svc_insts[i]; in bt_tbs_unregister_bearer()
2131 if (bearer_index >= ARRAY_SIZE(svc_insts)) { in bt_tbs_set_uri_scheme_list()
2135 inst = &svc_insts[bearer_index]; in bt_tbs_set_uri_scheme_list()
2176 for (size_t i = 0U; i < ARRAY_SIZE(svc_insts); i++) { in bt_tbs_set_uri_scheme_list()
2177 const size_t uri_len = strlen(svc_insts[i].uri_scheme_list); in bt_tbs_set_uri_scheme_list()
2185 net_buf_simple_add_mem(&uri_scheme_buf, svc_insts[i].uri_scheme_list, in bt_tbs_set_uri_scheme_list()
2205 for (size_t i = 0U; i < ARRAY_SIZE(svc_insts); i++) { in bt_tbs_dbg_print_calls()
2207 for (int j = 0; j < ARRAY_SIZE(svc_insts[i].calls); j++) { in bt_tbs_dbg_print_calls()
2208 struct bt_tbs_call *call = &svc_insts[i].calls[j]; in bt_tbs_dbg_print_calls()