Home
last modified time | relevance | path

Searched full:notify (Results 1 – 25 of 156) sorted by relevance

1234567

/Zephyr-Core-2.7.6/tests/lib/notify/src/
Dmain.c8 #include <sys/notify.h>
33 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()
[all …]
/Zephyr-Core-2.7.6/lib/os/
Dnotify.c9 #include <sys/notify.h>
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()
[all …]
Donoff.c69 * This event is triggered by the transition notify callback.
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()
244 /* Enter ERROR state and notify all clients. */ in process_complete()
368 * * We completed a transition and there are clients to notify; in process_event()
427 bool notify = false; /* do client notification */ in onoff_request() local
445 /* Increment reference count, notify in exit */ in onoff_request()
446 notify = true; in onoff_request()
471 if (notify) { in onoff_request()
/Zephyr-Core-2.7.6/include/sys/
Dnotify.h81 * @brief Generic signature used to notify of result completion by
129 * After control has reverted to the client the notify object must be
140 /* Pointer to signal used to notify client.
155 * async notify API init functions like
162 * are zeroed by the async notify API init functions, and will
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()
186 * @brief Validate and initialize the notify structure.
193 * async notify API init functions like sys_notify_init_callback()).
204 int sys_notify_validate(struct sys_notify *notify);
[all …]
Donoff.h13 #include <sys/notify.h>
88 * @brief Signature used to notify an on-off manager that a transition
123 * @param notify the function to be invoked when the transition has
124 * completed. If the transition is synchronous, notify shall be
130 onoff_notify_fn notify);
227 * @brief Signature used to notify an on-off service client of the
270 * After control has reverted to the client the notify field must be
283 struct sys_notify notify; member
334 * instructions on synchronous expectations and how to notify the
469 * to notify the client when reset completes. Behavior is undefined
[all …]
/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()
134 TC_PRINT("%s notify %d\n", tsp->tag, tsp->retval); 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()
[all …]
/Zephyr-Core-2.7.6/subsys/bluetooth/host/
Decc.h24 * Used to notify of the local public key or that the local key is not
56 * @param cb Callback to notify the new key.
73 * Used to notify of the calculated DH Key.
84 * @param cb Callback to notify the calculated key.
Diso_internal.h97 /* Notify ISO channels of a new connection */
100 /* Notify ISO channels of a new connection */
103 /* Notify ISO channels of a disconnect event */
/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/subsys/net/lib/openthread/platform/
Dplatform-zephyr.h58 * Outer component calls this method to notify UART driver that it should
87 * Notify OpenThread task about new rx message.
92 * Notify OpenThread task about new tx message.
/Zephyr-Core-2.7.6/drivers/clock_control/
Dnrf_clock_calibration.h30 * @brief Notify calibration module about LF clock start
35 * @brief Notify calibration module about LF clock stop
/Zephyr-Core-2.7.6/soc/arm/nuvoton_npcx/common/
Dsoc_power.h25 * @brief Notify the power module that the module for the console is in use.
27 * Notify the power module that the module for the console is in use. It also
/Zephyr-Core-2.7.6/samples/bluetooth/st_ble_sensor/src/
Dmain.c46 /* ST Notify button service */
124 LOG_ERR("Notify error: %d", err); in button_callback()
126 LOG_INF("Send notify ok"); in button_callback()
130 LOG_INF("Notify not enabled"); in button_callback()
/Zephyr-Core-2.7.6/tests/lib/notify/
Dtestcase.yaml3 tags: notify
/Zephyr-Core-2.7.6/include/drivers/rtc/
Dmaxim_ds3231.h40 #include <sys/notify.h>
235 /** @brief Signature used to notify a user of the DS3231 that an
243 * @param notify the notification structure provided in the call
248 struct sys_notify *notify,
487 * through the @p notify parameter.
496 * @param notify pointer to the object used to specify asynchronous
501 * @retval -EINVAL if notify is not provided
505 struct sys_notify *notify);
551 * notify parameter.
559 * @param notify pointer to the object used to specify asynchronous
[all …]
/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/drivers/counter/
Dmaxim_ds3231.c108 /* Pointer to the structure used to notify when a synchronize
110 * such an operation, or when doing a no-notify synchronize
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
[all …]
/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/include/drivers/
Dregulator.h51 * @param cli used to notify the caller when the attempt to turn on
75 * mechanism to notify when the regulator has completely turned off.
/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/
D.codecov.yml2 notify:
/Zephyr-Core-2.7.6/drivers/virtualization/
Dvirt_ivshmem_shell.c139 "Could not notify peer %u on %u. status %d", in cmd_ivshmem_int()
207 "Notify a vector on a peer",
223 "Notify a vector on an ivshmem peer",
/Zephyr-Core-2.7.6/samples/boards/intel_s1000_crb/audio/src/
Dtuning_driver.c66 /* notify audio core on tuning command reception */ in tun_drv_io_thread()
121 /* notify tuning driver thread */ in tun_drv_process_command()
/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()
227 "startup notify early: %d", rc); in test_basic()
229 while (sys_notify_fetch_result(&cli.notify, &rc) == -EAGAIN) { in test_basic()

1234567