Home
last modified time | relevance | path

Searched refs:vocs_insts (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-2.7.6/subsys/bluetooth/audio/
Dvocs_client.c28 static struct bt_vocs vocs_insts[CONFIG_BT_MAX_CONN * CONFIG_BT_VOCS_CLIENT_MAX_INSTANCE_COUNT]; variable
35 for (int i = 0; i < ARRAY_SIZE(vocs_insts); i++) { in lookup_vocs_by_handle()
36 if (vocs_insts[i].cli.conn == conn && in lookup_vocs_by_handle()
37 vocs_insts[i].cli.active && in lookup_vocs_by_handle()
38 vocs_insts[i].cli.start_handle <= handle && in lookup_vocs_by_handle()
39 vocs_insts[i].cli.end_handle >= handle) { in lookup_vocs_by_handle()
40 return &vocs_insts[i]; in lookup_vocs_by_handle()
626 for (int i = 0; i < ARRAY_SIZE(vocs_insts); i++) { in bt_vocs_client_free_instance_get()
627 if (!vocs_insts[i].cli.active) { in bt_vocs_client_free_instance_get()
628 vocs_insts[i].client_instance = true; in bt_vocs_client_free_instance_get()
[all …]
Dvocs.c238 static struct bt_vocs vocs_insts[CONFIG_BT_VOCS_MAX_INSTANCE_COUNT]; variable
239 BT_GATT_SERVICE_INSTANCE_DEFINE(vocs_service_list, vocs_insts, CONFIG_BT_VOCS_MAX_INSTANCE_COUNT,
250 return &vocs_insts[instance_cnt++]; in bt_vocs_free_instance_get()
265 for (int i = 0; i < ARRAY_SIZE(vocs_insts); i++) { in prepare_vocs_instances()
266 vocs_insts[i].srv.service_p = &vocs_service_list[i]; in prepare_vocs_instances()
Dvcs.c36 for (int i = 0; i < ARRAY_SIZE(vcs->srv.vocs_insts); i++) { in valid_vocs_inst()
37 if (vcs->srv.vocs_insts[i] == vocs) { in valid_vocs_inst()
284 vcs_inst.srv.vocs_insts[j] = bt_vocs_free_instance_get(); in prepare_vocs_inst()
286 if (vcs_inst.srv.vocs_insts[j] == NULL) { in prepare_vocs_inst()
292 err = bt_vocs_register(vcs_inst.srv.vocs_insts[j], in prepare_vocs_inst()
300 vcs_attrs[i].user_data = bt_vocs_svc_decl_get(vcs_inst.srv.vocs_insts[j]); in prepare_vocs_inst()
479 included->vocs_cnt = ARRAY_SIZE(vcs->srv.vocs_insts); in bt_vcs_included_get()
480 included->vocs = vcs->srv.vocs_insts; in bt_vcs_included_get()
Dvcs_internal.h76 struct bt_vocs *vocs_insts[CONFIG_BT_VCS_VOCS_INSTANCE_COUNT]; member