Home
last modified time | relevance | path

Searched refs:src_id (Results 1 – 25 of 34) sorted by relevance

12

/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/
Dbap_broadcast_assistant.c13 uint8_t src_id; member
94 inst->recv_states.src_id = max_src_id; in bt_bap_broadcast_assistant_add_src()
101 state.src_id = max_src_id; in bt_bap_broadcast_assistant_add_src()
136 state.src_id = param->src_id; in bt_bap_broadcast_assistant_mod_src()
137 inst->recv_states.src_id = param->src_id; in bt_bap_broadcast_assistant_mod_src()
158 int bt_bap_broadcast_assistant_rem_src(struct bt_conn *conn, uint8_t src_id) in bt_bap_broadcast_assistant_rem_src() argument
166 zassert_equal(src_id, inst->recv_states.src_id, "Invalid src_id"); in bt_bap_broadcast_assistant_rem_src()
182 struct bt_conn *conn, uint8_t src_id, in bt_bap_broadcast_assistant_set_broadcast_code() argument
190 zassert_equal(src_id, RANDOM_SRC_ID, "Invalid src_id"); in bt_bap_broadcast_assistant_set_broadcast_code()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap_scan_delegator.c43 uint8_t src_id; member
135 static struct sync_state *sync_state_get_by_src_id(uint8_t src_id) in sync_state_get_by_src_id() argument
138 if (sync_states[i].src_id == src_id) { in sync_state_get_by_src_id()
185 bt_bap_scan_delegator_set_pa_state(state->recv_state->src_id, in pa_timer_handler()
280 shell_info(ctx_shell, "Receive state with ID %u updated", recv_state->src_id); in recv_state_updated_cb()
302 state->src_id = recv_state->src_id; in pa_sync_req_cb()
483 unsigned long src_id; in cmd_bap_scan_delegator_sync_pa() local
488 src_id = shell_strtoul(argv[1], 16, &err); in cmd_bap_scan_delegator_sync_pa()
495 if (src_id > UINT8_MAX) { in cmd_bap_scan_delegator_sync_pa()
501 state = sync_state_get_by_src_id((uint8_t)src_id); in cmd_bap_scan_delegator_sync_pa()
[all …]
Dbap_broadcast_assistant.c149 state->src_id, le_addr, state->adv_sid, state->broadcast_id, in bap_broadcast_assistant_recv_state_cb()
238 static void bap_broadcast_assistant_recv_state_removed_cb(struct bt_conn *conn, uint8_t src_id) in bap_broadcast_assistant_recv_state_removed_cb() argument
240 shell_print(ctx_shell, "BASS recv state %u removed", src_id); in bap_broadcast_assistant_recv_state_removed_cb()
776 unsigned long src_id; in cmd_bap_broadcast_assistant_mod_src() local
779 src_id = shell_strtoul(argv[1], 0, &result); in cmd_bap_broadcast_assistant_mod_src()
786 if (src_id > UINT8_MAX) { in cmd_bap_broadcast_assistant_mod_src()
787 shell_error(sh, "Invalid src_id: %lu", src_id); in cmd_bap_broadcast_assistant_mod_src()
791 param.src_id = src_id; in cmd_bap_broadcast_assistant_mod_src()
1046 unsigned long src_id; in cmd_bap_broadcast_assistant_broadcast_code() local
1049 src_id = shell_strtoul(argv[1], 0, &result); in cmd_bap_broadcast_assistant_broadcast_code()
[all …]
Dcap_commander.c732 unsigned long src_id; in cmd_cap_commander_broadcast_reception_stop() local
734 src_id = shell_strtoul(arg, 0, &err); in cmd_cap_commander_broadcast_reception_stop()
741 if (src_id > UINT8_MAX) { in cmd_cap_commander_broadcast_reception_stop()
742 shell_error(sh, "Invalid src_id: %lu", src_id); in cmd_cap_commander_broadcast_reception_stop()
749 member_params[i].src_id = src_id; in cmd_cap_commander_broadcast_reception_stop()
816 unsigned long src_id; in cmd_cap_commander_distribute_broadcast_code() local
818 src_id = shell_strtoul(arg, 0, &err); in cmd_cap_commander_distribute_broadcast_code()
823 if (src_id > UINT8_MAX) { in cmd_cap_commander_distribute_broadcast_code()
824 shell_error(sh, "Invalid src_id: %lu", src_id); in cmd_cap_commander_distribute_broadcast_code()
828 member_params[i].src_id = src_id; in cmd_cap_commander_distribute_broadcast_code()
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_scan_delegator.c134 recv_state->index, state->src_id, bt_addr_le_str(&state->addr), in bt_debug_dump_recv_state()
197 (void)net_buf_simple_add_u8(&read_buf, state->src_id); in net_buf_put_recv_state()
308 scan_delegator.recv_states[i].state.src_id == next_src_id) { in next_src_id()
318 static struct bass_recv_state_internal *bass_lookup_src_id(uint8_t src_id) in bass_lookup_src_id() argument
322 scan_delegator.recv_states[i].state.src_id == src_id) { in bass_lookup_src_id()
477 LOG_DBG("recv_state already exists at src_id=0x%02X", state->state.src_id); in bass_source_is_duplicate()
513 state->src_id = next_src_id(); in scan_delegator_add_source()
650 internal_state->index, state->src_id); in scan_delegator_add_source()
670 uint8_t src_id; in scan_delegator_mod_src() local
687 src_id = net_buf_simple_pull_u8(buf); in scan_delegator_mod_src()
[all …]
Dbap_internal.h71 uint8_t src_id; member
80 uint8_t src_id; member
86 uint8_t src_id; member
Dbap_broadcast_assistant.c58 uint8_t src_id; member
183 static void bap_broadcast_assistant_recv_state_removed(struct bt_conn *conn, uint8_t src_id) in bap_broadcast_assistant_recv_state_removed() argument
190 listener->recv_state_removed(conn, src_id); in bap_broadcast_assistant_recv_state_removed()
247 recv_state->src_id = net_buf_simple_pull_u8(&buf); in parse_recv_state()
359 inst->recv_states[index].src_id = recv_state->src_id; in parse_and_send_recv_state()
541 bap_broadcast_assistant_recv_state_removed(conn, inst->recv_states[index].src_id); in notify_handler()
585 stored_state->src_id = recv_state.src_id; in read_recv_state_cb()
934 LOG_DBG("recv_state already exists at src_id=0x%02X", state->src_id); in broadcast_src_is_duplicate()
1518 cp->src_id = param->src_id; in bt_bap_broadcast_assistant_mod_src()
1526 if (inst->recv_states[i].src_id == param->src_id) { in bt_bap_broadcast_assistant_mod_src()
[all …]
Dcap_internal.h109 uint8_t src_id; member
122 uint8_t src_id; member
Dcap_commander.c409 mod_src_param->src_id = stop_param->src_id; in copy_broadcast_reception_stop_param()
431 LOG_DBG("BASS recv state: conn %p, src_id %u", (void *)conn, state->src_id); in cap_commander_broadcast_assistant_recv_state_cb()
445 err = bt_bap_broadcast_assistant_rem_src(conn, state->src_id); in cap_commander_broadcast_assistant_recv_state_cb()
585 uint8_t other_src_id = param->param[j].src_id; in valid_broadcast_reception_stop_param()
587 if (other == member && stop_param->src_id == other_src_id) { in valid_broadcast_reception_stop_param()
590 j, other_src_id, other, i, stop_param->src_id, member); in valid_broadcast_reception_stop_param()
649 stored_param->broadcast_reception_stop.src_id = member_param->src_id; in bt_cap_commander_broadcast_reception_stop()
712 conn, proc_param->distribute_broadcast_code.src_id, in cap_commander_broadcast_assistant_set_broadcast_code_cb()
830 stored_param->distribute_broadcast_code.src_id = member_param->src_id; in bt_cap_commander_distribute_broadcast_code()
842 conn, proc_param->distribute_broadcast_code.src_id, in bt_cap_commander_distribute_broadcast_code()
Dbap_broadcast_sink.c73 sink->bass_src_id == recv_state->src_id) { in find_recv_state_by_sink_cb()
135 mod_src_param.src_id = recv_state->src_id; in update_recv_state_big_synced()
178 mod_src_param.src_id = recv_state->src_id; in update_recv_state_big_cleared()
539 mod_src_param.src_id = recv_state->src_id; in update_recv_state_base()
900 mod_src_param.src_id = recv_state->src_id; in update_recv_state_encryption()
1214 sink->bass_src_id = recv_state->src_id; in bt_bap_broadcast_sink_create()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_scan_delegator_test.c46 uint8_t src_id; member
100 static struct sync_state *sync_state_get_by_src_id(uint8_t src_id) in sync_state_get_by_src_id() argument
103 if (sync_states[i].src_id == src_id) { in sync_state_get_by_src_id()
127 bt_bap_scan_delegator_set_pa_state(state->recv_state->src_id, in pa_timer_handler()
167 state->src_id = recv_state->src_id; in pa_sync_no_past()
222 printk("Receive state with ID %u updated\n", recv_state->src_id); in recv_state_updated_cb()
224 state = sync_state_get_by_src_id(recv_state->src_id); in recv_state_updated_cb()
260 state->src_id = recv_state->src_id; in pa_sync_req_cb()
272 err = bt_bap_scan_delegator_set_pa_state(state->recv_state->src_id, in pa_sync_req_cb()
515 state->src_id = (uint8_t)res; in add_source()
[all …]
Dbap_broadcast_assistant_test.c136 state->src_id, le_addr, state->adv_sid, state->pa_sync_state, state->encrypt_state, in bap_broadcast_assistant_recv_state_cb()
192 g_src_id = state->src_id; in bap_broadcast_assistant_recv_state_cb()
198 static void bap_broadcast_assistant_recv_state_removed_cb(struct bt_conn *conn, uint8_t src_id) in bap_broadcast_assistant_recv_state_removed_cb() argument
200 printk("BASS recv state %u removed\n", src_id); in bap_broadcast_assistant_recv_state_removed_cb()
468 mod_src_param.src_id = g_src_id; in test_bass_mod_source()
498 mod_src_param.src_id = g_src_id; in test_bass_mod_source_long_meta()
Dcap_commander_test.c55 static uint8_t src_id[CONFIG_BT_MAX_CONN]; variable
461 state->src_id, le_addr, state->adv_sid, state->pa_sync_state, state->encrypt_state, in bap_broadcast_assistant_recv_state_cb()
471 src_id[index] = state->src_id; in bap_broadcast_assistant_recv_state_cb()
1047 reception_stop_param.param[i].src_id = src_id[i]; in test_broadcast_reception_stop()
1075 distribute_broadcast_code_param.param[i].src_id = src_id[i]; in test_distribute_broadcast_code()
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_bap.h107 uint8_t src_id; member
153 uint8_t src_id; member
159 uint8_t src_id; member
169 uint8_t src_id; member
176 uint8_t src_id; member
258 uint8_t src_id; member
271 uint8_t src_id; member
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dbap_scan_delegator.rst28 sync_pa : Sync to PA <src_id>
29 term_pa : Terminate PA sync <src_id>
34 mod_src : Modify source <src_id> <broadcast_id> <enc_state>
36 rem_src : Remove source <src_id>
37 synced : Set server scan state <src_id> <bis_syncs>
Dbap_broadcast_assistant.rst43 mod_src : Set sync <src_id> <sync_pa> [<pa_interval> | "unknown"] [<sync_bis>]
46 <src_id> <broadcast code>
47 rem_src : Remove a source <src_id>
87 …BASS recv state: src_id 0, addr 11:22:33:44:55:66 (public), sid 5, sync_state 1, encrypt_state 000…
99 BASS recv state: src_id 0, addr 1E:4D:0A:AA:6E:49 (random), sid 0, sync_state 0, encrypt_state 0
102 BASS recv state: src_id 0, addr 1E:4D:0A:AA:6E:49 (random), sid 0, sync_state 2, encrypt_state 0
104 BASS recv state: src_id 0, addr 1E:4D:0A:AA:6E:49 (random), sid 0, sync_state 2, encrypt_state 0
116 BASS recv state: src_id 0, addr 1E:4D:0A:AA:6E:49 (random), sid 0, sync_state 2, encrypt_state 0
/Zephyr-latest/tests/bluetooth/audio/cap_commander/src/
Dtest_broadcast_reception.c45 static uint8_t src_id[CONFIG_BT_MAX_CONN]; variable
56 src_id[index] = state->src_id; in cap_commander_broadcast_assistant_recv_state_cb()
163 fixture->stop_member_params[i].src_id = 0; in test_stop_param_init()
458 fixture->stop_param.param[i].src_id = src_id[i]; in ZTEST_F()
476 fixture->stop_param.param[i].src_id = src_id[i]; in ZTEST_F()
492 printk("Source ID %d: %d %d\n", i, fixture->stop_param.param[i].src_id, src_id[i]); in ZTEST_F()
494 fixture->stop_param.param[i].src_id = src_id[i]; in ZTEST_F()
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/
Dintel_vtd.h22 uint16_t src_id);
114 uint16_t src_id) in vtd_remap() argument
119 return api->remap(dev, irte_idx, vector, flags, src_id); in vtd_remap()
/Zephyr-latest/subsys/net/lib/dns/
Ddns_pack.h367 int dns_unpack_response_header(struct dns_msg_t *msg, int src_id);
441 int mdns_unpack_query_header(struct dns_msg_t *msg, uint16_t *src_id);
444 uint16_t *src_id) in llmnr_unpack_query_header() argument
446 return mdns_unpack_query_header(msg, src_id); in llmnr_unpack_query_header()
Ddns_pack.c180 int dns_unpack_response_header(struct dns_msg_t *msg, int src_id) in dns_unpack_response_header() argument
195 if (dns_unpack_header_id(dns_header) != src_id) { in dns_unpack_response_header()
226 if ((qdcount < 1 && src_id > 0) || ancount < 1) { in dns_unpack_response_header()
421 int mdns_unpack_query_header(struct dns_msg_t *msg, uint16_t *src_id) in mdns_unpack_query_header() argument
456 if (src_id) { in mdns_unpack_query_header()
457 *src_id = dns_unpack_header_id(dns_header); in mdns_unpack_query_header()
/Zephyr-latest/scripts/logging/dictionary/dictionary_parser/
Dlog_database.py244 src_id = str(source_id)
246 if src_id in self.database['log_subsys']['log_instances']:
247 return self.database['log_subsys']['log_instances'][src_id]['name']
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dbap.h559 uint8_t src_id; member
2439 int bt_bap_scan_delegator_set_pa_state(uint8_t src_id,
2450 int bt_bap_scan_delegator_set_bis_sync_state(uint8_t src_id,
2492 uint8_t src_id; member
2540 int bt_bap_scan_delegator_rem_src(uint8_t src_id);
2634 void (*recv_state_removed)(struct bt_conn *conn, uint8_t src_id);
2821 uint8_t src_id; member
2871 struct bt_conn *conn, uint8_t src_id,
2887 int bt_bap_broadcast_assistant_rem_src(struct bt_conn *conn, uint8_t src_id);
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_broadcast.c780 bt_bap_scan_delegator_set_pa_state(recv_state->src_id, pa_state); in pa_timer_handler()
823 static void btp_send_pas_sync_req_ev(struct bt_conn *conn, uint8_t src_id, in btp_send_pas_sync_req_ev() argument
830 ev.src_id = src_id; in btp_send_pas_sync_req_ev()
865 ev->src_id = state->src_id; in btp_send_broadcast_receive_state_ev()
937 btp_send_pas_sync_req_ev(conn, recv_state->src_id, recv_state->adv_sid, in pa_sync_req_cb()
1049 LOG_DBG("Receive state with ID %u updated", recv_state->src_id); in recv_state_updated_cb()
1174 err = bt_bap_scan_delegator_set_pa_state(cp->src_id, BT_BAP_PA_STATE_INFO_REQ); in btp_bap_broadcast_sink_sync()
1305 static void bap_broadcast_assistant_recv_state_removed_cb(struct bt_conn *conn, uint8_t src_id) in bap_broadcast_assistant_recv_state_removed_cb() argument
1478 err = bt_bap_broadcast_assistant_rem_src(conn, cp->src_id); in btp_bap_broadcast_assistant_remove_src()
1500 param.src_id = cp->src_id; in btp_bap_broadcast_assistant_modify_src()
[all …]
/Zephyr-latest/drivers/espi/
Despi_mchp_xec_v2.c299 uint8_t src_id = signal_info.bit; in espi_xec_send_vwire() local
303 if ((src_id >= ESPI_VWIRE_SRC_ID_MAX) || in espi_xec_send_vwire()
317 sys_write8(level, regaddr + MSVW_BI_SRC0 + src_id); in espi_xec_send_vwire()
323 sys_write8(level, regaddr + SMVW_BI_SRC0 + src_id); in espi_xec_send_vwire()
344 uint8_t src_id = signal_info.bit; in espi_xec_receive_vwire() local
348 if ((src_id >= ESPI_VWIRE_SRC_ID_MAX) || in espi_xec_receive_vwire()
361 *level = sys_read8(regaddr + MSVW_BI_SRC0 + src_id) & BIT(0); in espi_xec_receive_vwire()
366 *level = sys_read8(regaddr + SMVW_BI_SRC0 + src_id) & BIT(0); in espi_xec_receive_vwire()
832 uint8_t src_id, uint8_t intr_mode) in xec_espi_vw_intr_ctrl() argument
837 if ((msvw_idx >= ESPI_NUM_MSVW) || (src_id > 3)) { in xec_espi_vw_intr_ctrl()
[all …]
/Zephyr-latest/drivers/dma/
Ddma_pl330.h133 uint32_t src_id; member

12