Home
last modified time | relevance | path

Searched refs:listener (Results 1 – 25 of 43) sorted by relevance

12

/Zephyr-latest/lib/heap/
Dheap_listener.c13 void heap_listener_register(struct heap_listener *listener) in heap_listener_register() argument
17 sys_slist_append(&heap_listener_list, &listener->node); in heap_listener_register()
22 void heap_listener_unregister(struct heap_listener *listener) in heap_listener_unregister() argument
26 sys_slist_find_and_remove(&heap_listener_list, &listener->node); in heap_listener_unregister()
33 struct heap_listener *listener; in heap_listener_notify_alloc() local
36 SYS_SLIST_FOR_EACH_CONTAINER(&heap_listener_list, listener, node) { in heap_listener_notify_alloc()
37 if (listener->heap_id == heap_id in heap_listener_notify_alloc()
38 && listener->alloc_cb != NULL in heap_listener_notify_alloc()
39 && listener->event == HEAP_ALLOC) { in heap_listener_notify_alloc()
40 listener->alloc_cb(heap_id, mem, bytes); in heap_listener_notify_alloc()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dmicp_mic_ctlr.c53 struct bt_micp_mic_ctlr_cb *listener, *next; in micp_mic_ctlr_mute_changed() local
55 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&micp_mic_ctlr_cbs, listener, next, _node) { in micp_mic_ctlr_mute_changed()
56 if (listener->mute) { in micp_mic_ctlr_mute_changed()
57 listener->mute(mic_ctlr, err, mute_val); in micp_mic_ctlr_mute_changed()
64 struct bt_micp_mic_ctlr_cb *listener, *next; in micp_mic_ctlr_mute_written() local
66 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&micp_mic_ctlr_cbs, listener, next, _node) { in micp_mic_ctlr_mute_written()
68 if (listener->unmute_written) { in micp_mic_ctlr_mute_written()
69 listener->unmute_written(mic_ctlr, err); in micp_mic_ctlr_mute_written()
72 if (listener->mute_written) { in micp_mic_ctlr_mute_written()
73 listener->mute_written(mic_ctlr, err); in micp_mic_ctlr_mute_written()
[all …]
Dvcp_vol_ctlr.c55 struct bt_vcp_vol_ctlr_cb *listener, *next; in vcp_vol_ctlr_state_changed() local
57 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&vcp_vol_ctlr_cbs, listener, next, _node) { in vcp_vol_ctlr_state_changed()
58 if (listener->state) { in vcp_vol_ctlr_state_changed()
59 listener->state(vol_ctlr, err, err == 0 ? vol_ctlr->state.volume : 0, in vcp_vol_ctlr_state_changed()
67 struct bt_vcp_vol_ctlr_cb *listener, *next; in vcp_vol_ctlr_vol_flags_changed() local
69 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&vcp_vol_ctlr_cbs, listener, next, _node) { in vcp_vol_ctlr_vol_flags_changed()
70 if (listener->flags) { in vcp_vol_ctlr_vol_flags_changed()
71 listener->flags(vol_ctlr, err, err == 0 ? vol_ctlr->vol_flags : 0); in vcp_vol_ctlr_vol_flags_changed()
78 struct bt_vcp_vol_ctlr_cb *listener, *next; in vcp_vol_ctlr_discover_complete() local
82 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&vcp_vol_ctlr_cbs, listener, next, _node) { in vcp_vol_ctlr_discover_complete()
[all …]
Dtbs_client.c252 struct bt_tbs_client_cb *listener, *next; in current_calls_changed() local
254 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&tbs_client_cbs, listener, next, _node) { in current_calls_changed()
255 if (listener->current_calls != NULL) { in current_calls_changed()
256 listener->current_calls(conn, err, inst_index, call_count, calls); in current_calls_changed()
301 struct bt_tbs_client_cb *listener, *next; in call_cp_callback_handler() local
306 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&tbs_client_cbs, listener, next, _node) { in call_cp_callback_handler()
310 if (listener->accept_call != NULL) { in call_cp_callback_handler()
311 listener->accept_call(conn, err, index, call_index); in call_cp_callback_handler()
317 if (listener->terminate_call != NULL) { in call_cp_callback_handler()
318 listener->terminate_call(conn, err, index, call_index); in call_cp_callback_handler()
[all …]
Dbap_broadcast_assistant.c154 struct bt_bap_broadcast_assistant_cb *listener, *next; in bap_broadcast_assistant_discover_complete() local
163 listener, next, _node) { in bap_broadcast_assistant_discover_complete()
164 if (listener->discover) { in bap_broadcast_assistant_discover_complete()
165 listener->discover(conn, err, recv_state_count); in bap_broadcast_assistant_discover_complete()
173 struct bt_bap_broadcast_assistant_cb *listener, *next; in bap_broadcast_assistant_recv_state_changed() local
176 listener, next, _node) { in bap_broadcast_assistant_recv_state_changed()
177 if (listener->recv_state) { in bap_broadcast_assistant_recv_state_changed()
178 listener->recv_state(conn, err, state); in bap_broadcast_assistant_recv_state_changed()
185 struct bt_bap_broadcast_assistant_cb *listener, *next; in bap_broadcast_assistant_recv_state_removed() local
188 listener, next, _node) { in bap_broadcast_assistant_recv_state_removed()
[all …]
Dcsip_set_coordinator.c298 struct bt_csip_set_coordinator_cb *listener; in lock_changed() local
302 SYS_SLIST_FOR_EACH_CONTAINER(&csip_set_coordinator_cbs, listener, _node) { in lock_changed()
303 if (listener->lock_changed) { in lock_changed()
304 listener->lock_changed(inst, locked); in lock_changed()
311 struct bt_csip_set_coordinator_cb *listener; in sirk_changed() local
313 SYS_SLIST_FOR_EACH_CONTAINER(&csip_set_coordinator_cbs, listener, _node) { in sirk_changed()
314 if (listener->sirk_changed) { in sirk_changed()
315 listener->sirk_changed(inst); in sirk_changed()
322 struct bt_csip_set_coordinator_cb *listener; in release_set_complete() local
326 SYS_SLIST_FOR_EACH_CONTAINER(&csip_set_coordinator_cbs, listener, _node) { in release_set_complete()
[all …]
Dbap_broadcast_sink.c778 struct bt_bap_broadcast_sink_cb *listener; in pa_decode_base() local
832 SYS_SLIST_FOR_EACH_CONTAINER(&sink_cbs, listener, _node) { in pa_decode_base()
833 if (listener->base_recv != NULL) { in pa_decode_base()
834 listener->base_recv(sink, base, (size_t)base_size); in pa_decode_base()
916 struct bt_bap_broadcast_sink_cb *listener; in biginfo_recv() local
951 SYS_SLIST_FOR_EACH_CONTAINER(&sink_cbs, listener, _node) { in biginfo_recv()
952 if (listener->syncable != NULL) { in biginfo_recv()
953 listener->syncable(sink, biginfo); in biginfo_recv()
977 struct bt_bap_broadcast_sink_cb *listener; in big_started_cb() local
984 SYS_SLIST_FOR_EACH_CONTAINER(&sink_cbs, listener, _node) { in big_started_cb()
[all …]
Dbap_unicast_client.c595 struct bt_bap_unicast_client_cb *listener, *next; in unicast_client_notify_location() local
597 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&unicast_client_cbs, listener, next, _node) { in unicast_client_notify_location()
598 if (listener->location != NULL) { in unicast_client_notify_location()
599 listener->location(conn, dir, loc); in unicast_client_notify_location()
608 struct bt_bap_unicast_client_cb *listener, *next; in unicast_client_notify_available_contexts() local
610 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&unicast_client_cbs, listener, next, _node) { in unicast_client_notify_available_contexts()
611 if (listener->available_contexts != NULL) { in unicast_client_notify_available_contexts()
612 listener->available_contexts(conn, snk_ctx, src_ctx); in unicast_client_notify_available_contexts()
621 struct bt_bap_unicast_client_cb *listener, *next; in unicast_client_notify_pac_record() local
629 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&unicast_client_cbs, listener, next, _node) { in unicast_client_notify_pac_record()
[all …]
Dbap_broadcast_source.c1200 struct bt_bap_broadcast_source_cb *listener; in big_started_cb() local
1207 SYS_SLIST_FOR_EACH_CONTAINER(&bap_broadcast_source_cbs, listener, _node) { in big_started_cb()
1208 if (listener->started != NULL) { in big_started_cb()
1209 listener->started(source); in big_started_cb()
1217 struct bt_bap_broadcast_source_cb *listener; in big_stopped_cb() local
1226 SYS_SLIST_FOR_EACH_CONTAINER(&bap_broadcast_source_cbs, listener, _node) { in big_stopped_cb()
1227 if (listener->stopped != NULL) { in big_stopped_cb()
1228 listener->stopped(source, reason); in big_stopped_cb()
/Zephyr-latest/subsys/bluetooth/services/nus/
Dnus.c15 struct bt_nus_cb *listener = NULL; in nus_bt_chr_write() local
21 SYS_SLIST_FOR_EACH_CONTAINER(instance->cbs, listener, _node) { in nus_bt_chr_write()
22 if (listener->received) { in nus_bt_chr_write()
23 listener->received(conn, buf, len, listener->ctx); in nus_bt_chr_write()
32 struct bt_nus_cb *listener = NULL; in nus_ccc_cfg_changed() local
38 SYS_SLIST_FOR_EACH_CONTAINER(instance->cbs, listener, _node) { in nus_ccc_cfg_changed()
39 if (listener->notif_enabled) { in nus_ccc_cfg_changed()
40 listener->notif_enabled((value == 1), listener->ctx); in nus_ccc_cfg_changed()
/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/
Dbap_broadcast_assistant.c84 struct bt_bap_broadcast_assistant_cb *listener, *next; in bt_bap_broadcast_assistant_add_src() local
110 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&broadcast_assistant_cbs, listener, next, _node) { in bt_bap_broadcast_assistant_add_src()
111 if (listener->add_src != NULL) { in bt_bap_broadcast_assistant_add_src()
112 listener->add_src(conn, 0); in bt_bap_broadcast_assistant_add_src()
114 if (listener->recv_state != NULL) { in bt_bap_broadcast_assistant_add_src()
115 listener->recv_state(conn, 0, &state); in bt_bap_broadcast_assistant_add_src()
127 struct bt_bap_broadcast_assistant_cb *listener, *next; in bt_bap_broadcast_assistant_mod_src() local
146 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&broadcast_assistant_cbs, listener, next, _node) { in bt_bap_broadcast_assistant_mod_src()
147 if (listener->mod_src != NULL) { in bt_bap_broadcast_assistant_mod_src()
148 listener->mod_src(conn, 0); in bt_bap_broadcast_assistant_mod_src()
[all …]
/Zephyr-latest/subsys/bluetooth/services/
Dhrs.c68 struct bt_hrs_cb *listener; in hrmc_ccc_cfg_changed() local
74 SYS_SLIST_FOR_EACH_CONTAINER(&hrs_cbs, listener, _node) { in hrmc_ccc_cfg_changed()
75 if (listener->ntf_changed) { in hrmc_ccc_cfg_changed()
76 listener->ntf_changed(notif_enabled); in hrmc_ccc_cfg_changed()
92 struct bt_hrs_cb *listener; in ctrl_point_write() local
96 SYS_SLIST_FOR_EACH_CONTAINER(&hrs_cbs, listener, _node) { in ctrl_point_write()
97 if (listener->ctrl_point_write) { in ctrl_point_write()
98 err = listener->ctrl_point_write(*((uint8_t *)buf)); in ctrl_point_write()
/Zephyr-latest/tests/lib/newlib/heap_listener/src/
Dmain.c36 static HEAP_LISTENER_RESIZE_DEFINE(listener, HEAP_ID_LIBC, heap_resized);
53 heap_listener_register(&listener); in ZTEST()
77 heap_listener_unregister(&listener); in ZTEST()
/Zephyr-latest/samples/subsys/zbus/confirmed_channel/
DREADME.rst29 I: From listener -> Confirmed message payload = 0
33 I: From listener -> Confirmed message payload = 1
37 I: From listener -> Confirmed message payload = 2
41 I: From listener -> Confirmed message payload = 3
/Zephyr-latest/subsys/bluetooth/host/
Dscan.c624 struct bt_le_scan_cb *listener, *next; in le_adv_recv() local
658 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&scan_cbs, listener, next, node) { in le_adv_recv()
659 if (listener->recv) { in le_adv_recv()
663 listener->recv(info, buf); in le_adv_recv()
680 struct bt_le_scan_cb *listener, *next; in bt_hci_le_scan_timeout() local
700 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&scan_cbs, listener, next, node) { in bt_hci_le_scan_timeout()
701 if (listener->timeout) { in bt_hci_le_scan_timeout()
702 listener->timeout(); in bt_hci_le_scan_timeout()
991 struct bt_le_per_adv_sync_cb *listener; in bt_hci_le_per_adv_report_recv() local
993 SYS_SLIST_FOR_EACH_CONTAINER(&pa_sync_cbs, listener, node) { in bt_hci_le_per_adv_report_recv()
[all …]
/Zephyr-latest/subsys/bluetooth/host/classic/
Dbr.c332 struct bt_br_discovery_cb *listener, *next; in report_discovery_results() local
358 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&discovery_cbs, listener, next, node) { in report_discovery_results()
359 if (listener->timeout) { in report_discovery_results()
360 listener->timeout(discovery_results, discovery_results_count); in report_discovery_results()
439 struct bt_br_discovery_cb *listener, *next; in bt_hci_inquiry_result_with_rssi() local
464 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&discovery_cbs, listener, next, node) { in bt_hci_inquiry_result_with_rssi()
465 if (listener->recv) { in bt_hci_inquiry_result_with_rssi()
466 listener->recv(result); in bt_hci_inquiry_result_with_rssi()
477 struct bt_br_discovery_cb *listener, *next; in bt_hci_extended_inquiry_result() local
498 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&discovery_cbs, listener, next, node) { in bt_hci_extended_inquiry_result()
[all …]
Dssp.c226 struct bt_conn_auth_info_cb *listener, *next; in ssp_pairing_complete() local
228 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&bt_auth_info_cbs, listener, in ssp_pairing_complete()
230 if (listener->pairing_complete) { in ssp_pairing_complete()
231 listener->pairing_complete(conn, bond); in ssp_pairing_complete()
235 struct bt_conn_auth_info_cb *listener, *next; in ssp_pairing_complete() local
237 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&bt_auth_info_cbs, listener, in ssp_pairing_complete()
239 if (listener->pairing_failed) { in ssp_pairing_complete()
240 listener->pairing_failed(conn, status); in ssp_pairing_complete()
/Zephyr-latest/samples/net/mqtt_sn_publisher/compose/
Dmosquitto.conf234 listener 1883
/Zephyr-latest/samples/net/sockets/net_mgmt/src/
Dmain.c85 static void listener(void *p1, void *p2, void *p3) in listener() function
170 k_thread_user_mode_enter(listener, in main()
173 listener(NULL, NULL, NULL); in main()
/Zephyr-latest/include/zephyr/sys/
Dheap_listener.h125 void heap_listener_register(struct heap_listener *listener);
136 void heap_listener_unregister(struct heap_listener *listener);
/Zephyr-latest/samples/subsys/zbus/hello_world/
DREADME.rst42 D: From listener -> Acc x=1, y=1, z=1
46 D: From listener -> Acc x=2, y=2, z=2
/Zephyr-latest/samples/subsys/zbus/msg_subscriber/
DKconfig5 bool "Force selection of heap listener configurations"
DREADME.rst35 I: From listener foo_lis -> Acc x=1, y=10, z=100
57 I: From listener foo_lis -> Acc x=2, y=20, z=200
/Zephyr-latest/samples/bluetooth/bthome_sensor_template/
DREADME.rst16 * A BTHome compatible listener, for example `Home Assistant <https://www.home-assistant.io/>`_ with…
/Zephyr-latest/samples/net/sockets/net_mgmt/
DREADME.rst10 The net-mgmt-socket sample application for Zephyr implements a listener

12