Home
last modified time | relevance | path

Searched refs:notify (Results 1 – 25 of 70) sorted by relevance

123

/Zephyr-Core-2.7.6/tests/lib/notify/src/
Dmain.c33 struct sys_notify notify = { in test_validate() local
39 zassert_equal(sys_notify_validate(&notify), -EINVAL, in test_validate()
50 struct sys_notify notify; in test_spinwait() local
53 memset(&notify, 0xac, sizeof(notify)); in test_spinwait()
54 rc = sys_notify_validate(&notify); in test_spinwait()
58 sys_notify_init_spinwait(&notify); in test_spinwait()
59 rc = sys_notify_validate(&notify); in test_spinwait()
63 zassert_false(sys_notify_uses_callback(&notify), in test_spinwait()
66 zassert_equal(notify.flags, SYS_NOTIFY_METHOD_SPINWAIT, in test_spinwait()
69 set_extflags(&notify, xflags); in test_spinwait()
[all …]
/Zephyr-Core-2.7.6/include/sys/
Dnotify.h178 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 …]
Donoff.h130 onoff_notify_fn notify);
283 struct sys_notify notify; member
/Zephyr-Core-2.7.6/lib/os/
Dnotify.c11 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 …]
Donoff.c129 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()
DCMakeLists.txt16 notify.c
/Zephyr-Core-2.7.6/drivers/regulator/
Dregulator_fixed.c44 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/
Dmain.c93 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/
Dtest_clock_control_onoff.c45 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/
Dmaxim_ds3231.h248 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/
Dmain.c200 struct sys_notify notify; in set_aligned_clock() local
206 sys_notify_init_signal(&notify, &ss); in set_aligned_clock()
210 rc = maxim_ds3231_set(ds3231, &sp, &notify); in set_aligned_clock()
267 struct sys_notify notify; in main() local
274 sys_notify_init_signal(&notify, &ss); in main()
278 rc = maxim_ds3231_synchronize(ds3231, &notify); in main()
/Zephyr-Core-2.7.6/modules/hal_nordic/nrf_802154/sl_opensource/platform/
Dnrf_802154_clock_zephyr.c47 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/
Dlll_clock.c48 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/
Dclock_control_nrf.c418 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/
Dmaxim_ds3231.c115 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/
Dtest_nrf_clock_calibration.c30 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/
Dvcs.c98 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 …]
Daics.c180 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/
Dmain.c87 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/
Dmain.c123 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/
Dws2812_gpio.c114 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/
Dindex.rst11 misc/notify.rst
/Zephyr-Core-2.7.6/drivers/sensor/nrf5/
Dtemp_nrf5.c58 sys_notify_init_callback(&cli.notify, hfclk_on_callback); in temp_nrf5_sample_fetch()
/Zephyr-Core-2.7.6/subsys/net/lib/http/
Dhttp_client.c430 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/
Dtest_clock_control.c97 sys_notify_init_spinwait(&cli.notify); in tear_down_instance()
101 while (sys_notify_fetch_result(&cli.notify, &err) < 0) { in tear_down_instance()

123