Lines Matching refs:index

104 	ptrdiff_t index = 0;  in inst_index()  local
112 index = inst - svc_insts; in inst_index()
113 __ASSERT(index >= 0 && index < ARRAY_SIZE(svc_insts), "Invalid tbs_inst pointer"); in inst_index()
115 return (uint8_t)index; in inst_index()
118 static struct tbs_inst *inst_lookup_index(uint8_t index) in inst_lookup_index() argument
122 if (index == BT_TBS_GTBS_INDEX) { in inst_lookup_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()
142 if (inst->calls[i].index == call_index) { in lookup_call_in_inst()
359 if (inst->calls[i].index == BT_TBS_FREE_CALL_INDEX) { in call_alloc()
374 free_call->index = next_free_call_index(); in call_alloc()
375 __ASSERT_NO_MSG(free_call->index != BT_TBS_FREE_CALL_INDEX); in call_alloc()
386 call->index = BT_TBS_FREE_CALL_INDEX; in call_free()
400 if (call->index == BT_TBS_FREE_CALL_INDEX) { in net_buf_put_call_states_by_inst()
409 net_buf_simple_add_u8(buf, call->index); in net_buf_put_call_states_by_inst()
445 if (call->index == BT_TBS_FREE_CALL_INDEX) { in net_buf_put_current_calls_by_inst()
450 item_len = sizeof(call->index) + sizeof(call->state) + sizeof(call->flags) + in net_buf_put_current_calls_by_inst()
461 net_buf_simple_add_u8(buf, call->index); in net_buf_put_current_calls_by_inst()
824 if (inst->calls[i].index == call_indexes[j]) { in hold_other_calls()
959 hold_other_calls(inst, 1, &call->index); in originate_call()
965 LOG_DBG("New call with call index %u", call->index); in originate_call()
967 *call_index = call->index; in originate_call()
1111 tbs_cbs->hold_call(conn, held_calls[i]->index); in notify_app()
1963 inst->in_call.call_index = call->index; in tbs_inst_remote_incoming()
1966 inst->incoming_uri.call_index = call->index; in tbs_inst_remote_incoming()
1976 inst->friendly_name.call_index = call->index; in tbs_inst_remote_incoming()
2024 LOG_DBG("New call with call index %u", call->index); in bt_tbs_remote_incoming()
2026 return call->index; in bt_tbs_remote_incoming()
2210 if (call->index == BT_TBS_FREE_CALL_INDEX) { in bt_tbs_dbg_print_calls()
2214 LOG_DBG(" Call #%u", call->index); in bt_tbs_dbg_print_calls()