/Zephyr-Core-3.5.0/tests/lib/notify/src/ |
D | main.c | 33 struct sys_notify notify = { in ZTEST() local 39 zassert_equal(sys_notify_validate(¬ify), -EINVAL, in ZTEST() 50 struct sys_notify notify; in ZTEST() local 53 memset(¬ify, 0xac, sizeof(notify)); in ZTEST() 54 rc = sys_notify_validate(¬ify); in ZTEST() 58 sys_notify_init_spinwait(¬ify); in ZTEST() 59 rc = sys_notify_validate(¬ify); in ZTEST() 63 zassert_false(sys_notify_uses_callback(¬ify), in ZTEST() 66 zassert_equal(notify.flags, SYS_NOTIFY_METHOD_SPINWAIT, in ZTEST() 69 set_extflags(¬ify, xflags); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/sys/ |
D | notify.h | 178 static inline uint32_t sys_notify_get_method(const struct sys_notify *notify) in sys_notify_get_method() argument 180 uint32_t method = notify->flags >> SYS_NOTIFY_METHOD_POS; in sys_notify_get_method() 204 int sys_notify_validate(struct sys_notify *notify); 222 sys_notify_generic_callback sys_notify_finalize(struct sys_notify *notify, 237 static inline int sys_notify_fetch_result(const struct sys_notify *notify, in sys_notify_fetch_result() argument 240 __ASSERT_NO_MSG(notify != NULL); in sys_notify_fetch_result() 244 if (sys_notify_get_method(notify) == SYS_NOTIFY_METHOD_COMPLETED) { in sys_notify_fetch_result() 246 *result = notify->result; in sys_notify_fetch_result() 264 static inline void sys_notify_init_spinwait(struct sys_notify *notify) in sys_notify_init_spinwait() argument 266 __ASSERT_NO_MSG(notify != NULL); in sys_notify_init_spinwait() [all …]
|
D | onoff.h | 130 onoff_notify_fn notify); 285 struct sys_notify notify; member
|
/Zephyr-Core-3.5.0/lib/os/ |
D | notify.c | 11 int sys_notify_validate(struct sys_notify *notify) in sys_notify_validate() argument 15 if (notify == NULL) { in sys_notify_validate() 20 switch (sys_notify_get_method(notify)) { in sys_notify_validate() 24 if (notify->method.callback == NULL) { in sys_notify_validate() 30 if (notify->method.signal == NULL) { in sys_notify_validate() 42 notify->result = 0; in sys_notify_validate() 48 sys_notify_generic_callback sys_notify_finalize(struct sys_notify *notify, in sys_notify_finalize() argument 53 uint32_t method = sys_notify_get_method(notify); in sys_notify_finalize() 58 notify->result = res; in sys_notify_finalize() 63 rv = notify->method.callback; in sys_notify_finalize() [all …]
|
D | onoff.c | 129 int rv = sys_notify_validate(&cli->notify); in validate_args() 132 && ((cli->notify.flags in validate_args() 174 (onoff_client_callback)sys_notify_finalize(&cli->notify, res); in notify_one() 426 bool notify = false; /* do client notification */ in onoff_request() local 445 notify = true; in onoff_request() 470 if (notify) { in onoff_request()
|
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/ |
D | vcp_vol_rend.c | 53 ATOMIC_DEFINE(notify, NOTIFY_NUM); 77 static const char *vol_rend_notify_str(enum vol_rend_notify notify) in vol_rend_notify_str() argument 79 switch (notify) { in vol_rend_notify_str() 89 static void notify_work_reschedule(struct bt_vcp_vol_rend *inst, enum vol_rend_notify notify, in notify_work_reschedule() argument 94 atomic_set_bit(inst->notify, notify); in notify_work_reschedule() 98 LOG_ERR("Failed to reschedule %s notification err %d", vol_rend_notify_str(notify), in notify_work_reschedule() 101 LOG_DBG("%s notification scheduled in %dms", vol_rend_notify_str(notify), in notify_work_reschedule() 106 static void notify(struct bt_vcp_vol_rend *inst, enum vol_rend_notify notify, in notify() argument 113 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify() 115 LOG_ERR("Notify %s err %d", vol_rend_notify_str(notify), err); in notify() [all …]
|
D | vocs.c | 53 static const char *vocs_notify_str(enum bt_vocs_notify notify) in vocs_notify_str() argument 55 switch (notify) { in vocs_notify_str() 67 static void notify_work_reschedule(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify_work_reschedule() argument 72 atomic_set_bit(inst->notify, notify); in notify_work_reschedule() 77 vocs_notify_str(notify), err); in notify_work_reschedule() 81 static void notify(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify() function 88 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify() 90 LOG_ERR("Notify %s err %d", vocs_notify_str(notify), err); in notify() 99 if (atomic_test_and_clear_bit(inst->notify, NOTIFY_STATE)) { in notify_work_handler() 100 notify(inst, NOTIFY_STATE, BT_UUID_VOCS_STATE, &inst->state, sizeof(inst->state)); in notify_work_handler() [all …]
|
D | aics.c | 167 static const char *aics_notify_str(enum bt_aics_notify notify) in aics_notify_str() argument 169 switch (notify) { in aics_notify_str() 181 static void notify_work_reschedule(struct bt_aics *inst, enum bt_aics_notify notify, in notify_work_reschedule() argument 186 atomic_set_bit(inst->srv.notify, notify); in notify_work_reschedule() 191 aics_notify_str(notify), err); in notify_work_reschedule() 195 static void notify(struct bt_aics *inst, enum bt_aics_notify notify, const struct bt_uuid *uuid, in notify() argument 202 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify() 204 LOG_ERR("Notify %s err %d", aics_notify_str(notify), err); in notify() 213 if (atomic_test_and_clear_bit(inst->srv.notify, AICS_NOTIFY_STATE)) { in notify_work_handler() 214 notify(inst, AICS_NOTIFY_STATE, BT_UUID_AICS_STATE, &inst->srv.state, in notify_work_handler() [all …]
|
D | mcs.c | 36 static void notify(const struct bt_uuid *uuid, const void *data, uint16_t len); 632 notify(BT_UUID_MCS_MEDIA_CONTROL_POINT, &cmd_ntf, sizeof(cmd_ntf)); in write_control_point() 643 notify(BT_UUID_MCS_MEDIA_CONTROL_POINT, &cmd_ntf, sizeof(cmd_ntf)); in write_control_point() 709 notify(BT_UUID_MCS_SEARCH_CONTROL_POINT, &result_code, sizeof(result_code)); in write_search_control_point() 930 static void notify(const struct bt_uuid *uuid, const void *data, uint16_t len) in notify() function 1018 notify(BT_UUID_MCS_TRACK_DURATION, &duration_le, sizeof(duration_le)); in notify_cb() 1026 notify(BT_UUID_MCS_TRACK_POSITION, &position_le, sizeof(position_le)); in notify_cb() 1033 notify(BT_UUID_MCS_PLAYBACK_SPEED, &speed, sizeof(speed)); in notify_cb() 1040 notify(BT_UUID_MCS_SEEKING_SPEED, &speed, sizeof(speed)); in notify_cb() 1051 notify(BT_UUID_MCS_CURRENT_TRACK_OBJ_ID, track_id_le, sizeof(track_id_le)); in notify_cb() [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/clock_control/onoff/src/ |
D | test_clock_control_onoff.c | 46 sys_notify_init_spinwait(&cli.notify); in ZTEST() 50 while (sys_notify_fetch_result(&cli.notify, &err) < 0) { in ZTEST() 70 sys_notify_init_spinwait(&cli.notify); in ZTEST() 105 sys_notify_init_callback(&cli.notify, request_cb); in ZTEST()
|
/Zephyr-Core-3.5.0/tests/lib/onoff/src/ |
D | main.c | 93 int rc = sys_notify_fetch_result(&cp->notify, &result); in cli_result() 113 onoff_notify_fn notify; member 121 tsp->notify = NULL; in reset_transit_state() 126 onoff_notify_fn notify, in run_transit() argument 131 tsp->notify = notify; in run_transit() 135 notify(srv, tsp->retval); in run_transit() 139 static void notify(struct transit_state *tsp) in notify() function 141 TC_PRINT("%s settle %d %p\n", tsp->tag, tsp->retval, tsp->notify); in notify() 142 tsp->notify(tsp->srv, tsp->retval); in notify() 143 tsp->notify = NULL; in notify() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/drivers/rtc/ |
D | maxim_ds3231.h | 248 struct sys_notify *notify, 505 struct sys_notify *notify); 569 struct sys_notify *notify);
|
/Zephyr-Core-3.5.0/modules/hal_nordic/nrf_802154/sl_opensource/platform/ |
D | nrf_802154_clock_zephyr.c | 47 sys_notify_init_callback(&hfclk_cli.notify, hfclk_on_callback); in nrf_802154_clock_hfclk_start() 88 sys_notify_init_callback(&lfclk_cli.notify, lfclk_on_callback); in nrf_802154_clock_lfclk_start()
|
/Zephyr-Core-3.5.0/samples/drivers/counter/maxim_ds3231/src/ |
D | main.c | 200 struct sys_notify notify; in set_aligned_clock() local 206 sys_notify_init_signal(¬ify, &ss); in set_aligned_clock() 210 rc = maxim_ds3231_set(ds3231, &sp, ¬ify); in set_aligned_clock() 265 struct sys_notify notify; in main() local 272 sys_notify_init_signal(¬ify, &ss); in main() 276 rc = maxim_ds3231_synchronize(ds3231, ¬ify); in main()
|
/Zephyr-Core-3.5.0/drivers/usb/uvb/ |
D | uvb.h | 124 void (*notify)(const void *const priv, member 252 .notify = host_notify, \
|
D | uvb.c | 259 if (dev_node->notify) { in handle_msg_event() 260 dev_node->notify(dev_node->priv, in handle_msg_event() 279 if (host_node->head && host_node->notify) { in handle_msg_to_host() 280 host_node->notify(host_node->priv, in handle_msg_to_host()
|
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/nordic/lll/ |
D | lll_clock.c | 45 sys_notify_init_callback(&state.cli.notify, clock_ready); in blocking_on() 59 sys_notify_init_spinwait(&lf_cli.notify); in lll_clock_init()
|
/Zephyr-Core-3.5.0/include/zephyr/logging/ |
D | log_backend.h | 74 void (*notify)(const struct log_backend *const backend, member 356 if (backend->api->notify) { in log_backend_notify() 357 backend->api->notify(backend, event, arg); in log_backend_notify()
|
/Zephyr-Core-3.5.0/drivers/clock_control/ |
D | clock_control_nrf.c | 428 onoff_notify_fn notify) in onoff_stop() argument 433 notify(mgr, res); in onoff_stop() 442 onoff_notify_fn notify = user_data; in onoff_started_callback() local 444 notify(mgr, 0); in onoff_started_callback() 448 onoff_notify_fn notify) in onoff_start() argument 453 onoff_started_callback, notify, CTX_ONOFF); in onoff_start() 455 notify(mgr, err); in onoff_start() 558 sys_notify_init_spinwait(&cli.notify); in z_nrf_clock_control_lf_on()
|
/Zephyr-Core-3.5.0/drivers/counter/ |
D | maxim_ds3231.c | 106 struct sys_notify *notify; member 777 struct sys_notify *notify = NULL; in sync_finish() local 783 notify = data->sync.notify; in sync_finish() 790 LOG_DBG("sync complete, notify %d to %p or %p\n", rc, notify, signal); in sync_finish() 793 if (notify != NULL) { in sync_finish() 795 (maxim_ds3231_notify_callback)sys_notify_finalize(notify, rc); in sync_finish() 798 cb(dev, notify, rc); in sync_finish() 994 struct sys_notify *notify) in maxim_ds3231_synchronize() argument 1000 if (notify == NULL) { in maxim_ds3231_synchronize() 1018 data->sync.notify = notify; in maxim_ds3231_synchronize() [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/clock_control/nrf_clock_calibration/src/ |
D | test_nrf_clock_calibration.c | 30 sys_notify_init_spinwait(&cli.notify); in turn_on_clock() 35 while (sys_notify_fetch_result(&cli.notify, &res) != 0) { in turn_on_clock()
|
/Zephyr-Core-3.5.0/tests/subsys/logging/log_api/src/ |
D | mock_backend.c | 212 static void notify(const struct log_backend *const backend, in notify() function 230 .notify = notify,
|
/Zephyr-Core-3.5.0/lib/posix/ |
D | Kconfig.eventfd | 14 be used as an event wait/notify mechanism together with POSIX calls
|
/Zephyr-Core-3.5.0/doc/connectivity/usb/pd/ |
D | ucds.rst | 80 This callback is used by the subsystem to notify the application of an event: 84 :start-after: usbc.rst notify start 85 :end-before: usbc.rst notify end 170 This callback is used by the subsystem to notify the application of an event: 174 :start-after: usbc.rst notify start 175 :end-before: usbc.rst notify end
|
/Zephyr-Core-3.5.0/tests/drivers/clock_control/nrf_onoff_and_bt/src/ |
D | main.c | 117 sys_notify_init_spinwait(&cli.notify); in ZTEST() 155 sys_notify_init_spinwait(&cli.notify); in onoff_timeout_handler()
|