/Zephyr-Core-2.7.6/tests/lib/notify/src/ |
D | main.c | 33 struct sys_notify notify = { in test_validate() local 39 zassert_equal(sys_notify_validate(¬ify), -EINVAL, in test_validate() 50 struct sys_notify notify; in test_spinwait() local 53 memset(¬ify, 0xac, sizeof(notify)); in test_spinwait() 54 rc = sys_notify_validate(¬ify); in test_spinwait() 58 sys_notify_init_spinwait(¬ify); in test_spinwait() 59 rc = sys_notify_validate(¬ify); in test_spinwait() 63 zassert_false(sys_notify_uses_callback(¬ify), in test_spinwait() 66 zassert_equal(notify.flags, SYS_NOTIFY_METHOD_SPINWAIT, in test_spinwait() 69 set_extflags(¬ify, xflags); in test_spinwait() [all …]
|
/Zephyr-Core-2.7.6/include/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); 283 struct sys_notify notify; member
|
/Zephyr-Core-2.7.6/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() 427 bool notify = false; /* do client notification */ in onoff_request() local 446 notify = true; in onoff_request() 471 if (notify) { in onoff_request()
|
D | CMakeLists.txt | 16 notify.c
|
/Zephyr-Core-2.7.6/drivers/regulator/ |
D | regulator_fixed.c | 44 onoff_notify_fn notify; member 94 onoff_notify_fn notify, in finalize_transition() argument 116 data->notify = notify; in finalize_transition() 125 notify(&data->mgr, rc); in finalize_transition() 143 onoff_notify_fn notify = data->notify; in onoff_worker() local 160 data->notify = NULL; in onoff_worker() 162 finalize_transition(data, notify, delay_us, rc); in onoff_worker() 167 onoff_notify_fn notify) in start() argument 191 data->notify = notify; in start() 198 finalize_transition(data, notify, delay_us, rc); in start() [all …]
|
/Zephyr-Core-2.7.6/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-2.7.6/tests/drivers/clock_control/onoff/src/ |
D | test_clock_control_onoff.c | 45 sys_notify_init_spinwait(&cli.notify); in test_clock_blocking_on() 49 while (sys_notify_fetch_result(&cli.notify, &err) < 0) { in test_clock_blocking_on() 69 sys_notify_init_spinwait(&cli.notify); in test_clock_spinwait_release_before_start() 104 sys_notify_init_callback(&cli.notify, request_cb); in test_clock_release_from_callback()
|
/Zephyr-Core-2.7.6/include/drivers/rtc/ |
D | maxim_ds3231.h | 248 struct sys_notify *notify, 505 struct sys_notify *notify); 569 struct sys_notify *notify);
|
/Zephyr-Core-2.7.6/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() 267 struct sys_notify notify; in main() local 274 sys_notify_init_signal(¬ify, &ss); in main() 278 rc = maxim_ds3231_synchronize(ds3231, ¬ify); in main()
|
/Zephyr-Core-2.7.6/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-2.7.6/subsys/bluetooth/controller/ll_sw/nordic/lll/ |
D | lll_clock.c | 48 sys_notify_init_callback(&state.cli.notify, clock_ready); in blocking_on() 62 sys_notify_init_spinwait(&lf_cli.notify); in lll_clock_init()
|
/Zephyr-Core-2.7.6/drivers/clock_control/ |
D | clock_control_nrf.c | 418 onoff_notify_fn notify) in onoff_stop() argument 423 notify(mgr, res); in onoff_stop() 432 onoff_notify_fn notify = user_data; in onoff_started_callback() local 434 notify(mgr, 0); in onoff_started_callback() 438 onoff_notify_fn notify) in onoff_start() argument 443 onoff_started_callback, notify, CTX_ONOFF); in onoff_start() 445 notify(mgr, err); in onoff_start() 548 sys_notify_init_spinwait(&cli.notify); in z_nrf_clock_control_lf_on()
|
/Zephyr-Core-2.7.6/drivers/counter/ |
D | maxim_ds3231.c | 115 struct sys_notify *notify; member 791 struct sys_notify *notify = NULL; in sync_finish() local 797 notify = data->sync.notify; in sync_finish() 804 LOG_DBG("sync complete, notify %d to %p or %p\n", rc, notify, signal); in sync_finish() 807 if (notify != NULL) { in sync_finish() 809 (maxim_ds3231_notify_callback)sys_notify_finalize(notify, rc); in sync_finish() 812 cb(dev, notify, rc); in sync_finish() 1008 struct sys_notify *notify) in maxim_ds3231_synchronize() argument 1013 if (notify == NULL) { in maxim_ds3231_synchronize() 1031 data->sync.notify = notify; in maxim_ds3231_synchronize() [all …]
|
/Zephyr-Core-2.7.6/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-2.7.6/subsys/bluetooth/audio/ |
D | vcs.c | 98 bool notify = false; in write_vcs_control() local 136 notify = true; in write_vcs_control() 144 notify = true; in write_vcs_control() 152 notify = true; in write_vcs_control() 156 notify = true; in write_vcs_control() 164 notify = true; in write_vcs_control() 168 notify = true; in write_vcs_control() 177 notify = true; in write_vcs_control() 185 notify = true; in write_vcs_control() 192 notify = true; in write_vcs_control() [all …]
|
D | aics.c | 180 bool notify = false; in write_aics_control() local 217 notify = true; in write_aics_control() 227 notify = true; in write_aics_control() 237 notify = true; in write_aics_control() 247 notify = true; in write_aics_control() 257 notify = true; in write_aics_control() 264 if (notify) { in write_aics_control()
|
/Zephyr-Core-2.7.6/tests/drivers/regulator/fixed/src/ |
D | main.c | 87 sys_notify_init_callback(&cli.notify, callback); in reset_client() 224 rc = sys_notify_fetch_result(&cli.notify, &rc); in test_basic() 229 while (sys_notify_fetch_result(&cli.notify, &rc) == -EAGAIN) { in test_basic()
|
/Zephyr-Core-2.7.6/tests/drivers/clock_control/nrf_onoff_and_bt/src/ |
D | main.c | 123 sys_notify_init_spinwait(&cli.notify); in test_onoff_interrupted() 166 sys_notify_init_spinwait(&cli.notify); in onoff_timeout_handler()
|
/Zephyr-Core-2.7.6/drivers/led_strip/ |
D | ws2812_gpio.c | 114 sys_notify_init_spinwait(&cli.notify); in send_buf() 120 while (sys_notify_fetch_result(&cli.notify, &rc)) { in send_buf()
|
/Zephyr-Core-2.7.6/doc/reference/ |
D | index.rst | 11 misc/notify.rst
|
/Zephyr-Core-2.7.6/drivers/sensor/nrf5/ |
D | temp_nrf5.c | 58 sys_notify_init_callback(&cli.notify, hfclk_on_callback); in temp_nrf5_sample_fetch()
|
/Zephyr-Core-2.7.6/subsys/net/lib/http/ |
D | http_client.c | 430 bool notify = false; in http_wait_data() local 437 notify = true; in http_wait_data() 443 notify = true; in http_wait_data() 447 if (notify) { in http_wait_data()
|
/Zephyr-Core-2.7.6/tests/drivers/clock_control/clock_control_api/src/ |
D | test_clock_control.c | 97 sys_notify_init_spinwait(&cli.notify); in tear_down_instance() 101 while (sys_notify_fetch_result(&cli.notify, &err) < 0) { in tear_down_instance()
|