| /Zephyr-latest/subsys/bluetooth/audio/ |
| D | csip_set_member.c | 88 static bool is_last_client_to_write(const struct bt_csip_set_member_svc_inst *svc_inst, in is_last_client_to_write() argument 93 &svc_inst->lock_client_addr); in is_last_client_to_write() 96 &svc_inst->lock_client_addr); in is_last_client_to_write() 115 static void notify_clients(struct bt_csip_set_member_svc_inst *svc_inst, in notify_clients() argument 121 for (size_t i = 0U; i < ARRAY_SIZE(svc_inst->clients); i++) { in notify_clients() 124 client = &svc_inst->clients[i]; in notify_clients() 205 int bt_csip_set_member_generate_rsi(const struct bt_csip_set_member_svc_inst *svc_inst, in bt_csip_set_member_generate_rsi() argument 224 res = bt_csip_sih(svc_inst->sirk.value, prand, hash); in bt_csip_set_member_generate_rsi() 241 struct bt_csip_set_member_svc_inst *svc_inst = BT_AUDIO_CHRC_USER_DATA(attr); in read_sirk() local 243 if (svc_inst->cb != NULL && svc_inst->cb->sirk_read_req != NULL) { in read_sirk() [all …]
|
| D | csip_set_coordinator.c | 96 static int read_sirk(struct bt_csip_set_coordinator_svc_inst *svc_inst); 100 static int csip_set_coordinator_read_set_lock(struct bt_csip_set_coordinator_svc_inst *svc_inst); 182 struct bt_csip_set_coordinator_svc_inst *svc_inst; in get_next_active_instance() local 186 svc_inst = lookup_instance_by_set_info(member, &active.info); in get_next_active_instance() 187 if (svc_inst == NULL) { in get_next_active_instance() 191 return svc_inst; in get_next_active_instance() 383 struct bt_csip_set_coordinator_svc_inst *svc_inst; in sirk_notify_func() local 396 svc_inst = lookup_instance_by_handle(conn, handle); in sirk_notify_func() 398 if (svc_inst != NULL) { in sirk_notify_func() 399 LOG_DBG("Instance %u", svc_inst->idx); in sirk_notify_func() [all …]
|
| D | cap_acceptor.c | 34 struct bt_csip_set_member_svc_inst **svc_inst) in bt_cap_acceptor_register() argument 49 err = bt_csip_set_member_register(param, svc_inst); in bt_cap_acceptor_register() 58 cas.attrs[1].user_data = bt_csip_set_member_svc_decl_get(*svc_inst); in bt_cap_acceptor_register() 62 const int csip_err = bt_csip_set_member_unregister(*svc_inst); in bt_cap_acceptor_register()
|
| /Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
| D | csip_set_member_test.c | 22 static struct bt_csip_set_member_svc_inst *svc_inst; variable 36 struct bt_csip_set_member_svc_inst *svc_inst, in csip_lock_changed_cb() argument 44 struct bt_csip_set_member_svc_inst *svc_inst) in sirk_read_req_cb() argument 67 err = bt_csip_set_member_register(¶m, &svc_inst); in bt_ready() 73 err = bt_csip_set_member_generate_rsi(svc_inst, csip_rsi); in bt_ready() 90 err = bt_csip_set_member_sirk(svc_inst, new_sirk); in test_sirk() 97 err = bt_csip_set_member_get_sirk(svc_inst, tmp_sirk); in test_sirk() 137 err = bt_csip_set_member_unregister(svc_inst); in test_main() 142 svc_inst = NULL; in test_main() 162 bt_csip_set_member_lock(svc_inst, false, true); in test_force_release() [all …]
|
| D | csip_notify_server_test.c | 26 static struct bt_csip_set_member_svc_inst *svc_inst; variable 42 struct bt_csip_set_member_svc_inst *svc_inst, in csip_set_member_lock_changed_cb() argument 72 err = bt_cap_acceptor_register(&csip_params, &svc_inst); in test_main() 90 err = bt_csip_set_member_lock(svc_inst, true, false); in test_main() 102 err = bt_csip_set_member_lock(svc_inst, false, false); in test_main()
|
| /Zephyr-latest/include/zephyr/bluetooth/audio/ |
| D | csip.h | 112 struct bt_csip_set_member_svc_inst *svc_inst, 129 struct bt_csip_set_member_svc_inst *svc_inst); 191 void *bt_csip_set_member_svc_decl_get(const struct bt_csip_set_member_svc_inst *svc_inst); 209 struct bt_csip_set_member_svc_inst **svc_inst); 220 int bt_csip_set_member_unregister(struct bt_csip_set_member_svc_inst *svc_inst); 228 int bt_csip_set_member_sirk(struct bt_csip_set_member_svc_inst *svc_inst, 237 int bt_csip_set_member_get_sirk(struct bt_csip_set_member_svc_inst *svc_inst, 250 int bt_csip_set_member_generate_rsi(const struct bt_csip_set_member_svc_inst *svc_inst, 264 int bt_csip_set_member_lock(struct bt_csip_set_member_svc_inst *svc_inst, 306 void *svc_inst; member
|
| D | cap.h | 72 struct bt_csip_set_member_svc_inst **svc_inst);
|
| /Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/ |
| D | csip.c | 19 } svc_inst; variable 29 .svc_inst = &svc_inst, 50 svc_inst.conn = conn; in bt_csip_set_coordinator_discover() 51 svc_inst.set_info = &member.insts[0].info; in bt_csip_set_coordinator_discover()
|
| /Zephyr-latest/tests/bluetooth/audio/cap_initiator/uut/ |
| D | csip.c | 24 } svc_inst; variable 34 .svc_inst = &svc_inst, 55 svc_inst.conn = conn; in bt_csip_set_coordinator_discover() 56 svc_inst.set_info = &member.insts[0].info; in bt_csip_set_coordinator_discover()
|
| /Zephyr-latest/samples/bluetooth/tmap_peripheral/src/ |
| D | csip_set_member.c | 22 static struct bt_csip_set_member_svc_inst *svc_inst; variable 44 return bt_cap_acceptor_register(¶m, &svc_inst); in csip_set_member_init() 51 if (svc_inst == NULL) { in csip_generate_rsi() 55 err = bt_csip_set_member_generate_rsi(svc_inst, rsi); in csip_generate_rsi()
|
| /Zephyr-latest/samples/bluetooth/hap_ha/src/ |
| D | csip_set_member.c | 22 static struct bt_csip_set_member_svc_inst *svc_inst; variable 52 return bt_cap_acceptor_register(¶m, &svc_inst); in csip_set_member_init() 59 if (svc_inst == NULL) { in csip_generate_rsi() 63 err = bt_csip_set_member_generate_rsi(svc_inst, rsi); in csip_generate_rsi()
|
| /Zephyr-latest/subsys/bluetooth/audio/shell/ |
| D | csip_set_member.c | 35 struct bt_csip_set_member_svc_inst *svc_inst; variable 163 err = bt_csip_set_member_register(¶m, &svc_inst); in cmd_csip_set_member_register() 178 if (svc_inst == NULL) { in cmd_csip_set_member_sirk() 191 err = bt_csip_set_member_sirk(svc_inst, sirk); in cmd_csip_set_member_sirk() 207 if (svc_inst == NULL) { in cmd_csip_set_member_get_sirk() 213 err = bt_csip_set_member_get_sirk(svc_inst, sirk); in cmd_csip_set_member_get_sirk() 229 err = bt_csip_set_member_lock(svc_inst, true, false); in cmd_csip_set_member_lock() 255 err = bt_csip_set_member_lock(svc_inst, false, force); in cmd_csip_set_member_release() 321 if (svc_inst != NULL && discoverable) { in csis_ad_data_add() 333 err = bt_csip_set_member_generate_rsi(svc_inst, ad_rsi); in csis_ad_data_add()
|
| D | cap_acceptor.c | 53 struct bt_csip_set_member_svc_inst *svc_inst, in locked_cb() argument 70 struct bt_csip_set_member_svc_inst *svc_inst) in sirk_read_req_cb() argument
|
| D | audio.h | 41 extern struct bt_csip_set_member_svc_inst *svc_inst;
|
| /Zephyr-latest/tests/bluetooth/tester/src/audio/ |
| D | btp_csis.c | 101 static void lock_changed_cb(struct bt_conn *conn, struct bt_csip_set_member_svc_inst *svc_inst, in lock_changed_cb() argument 107 static uint8_t sirk_read_cb(struct bt_conn *conn, struct bt_csip_set_member_svc_inst *svc_inst) in sirk_read_cb() argument
|
| /Zephyr-latest/subsys/bluetooth/host/shell/ |
| D | bt.c | 1906 svc_inst != NULL) { in ad_init()
|