/Zephyr-latest/tests/lib/notify/src/ |
D | main.c | 8 #include <zephyr/sys/notify.h> 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() [all …]
|
/Zephyr-latest/lib/utils/ |
D | notify.c | 9 #include <zephyr/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 …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | notify.h | 81 * @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 …]
|
/Zephyr-latest/samples/subsys/zbus/remote_mock/ |
D | README.rst | 77 Proxy NOTIFY: [sensor_data] -> sensor value 1 79 Proxy NOTIFY: [sensor_data] -> sensor value 2 81 Proxy NOTIFY: [sensor_data] -> sensor value 3 83 Proxy NOTIFY: [sensor_data] -> sensor value 4 85 Proxy NOTIFY: [sensor_data] -> sensor value 5 87 Proxy NOTIFY: [sensor_data] -> sensor value 6 89 Proxy NOTIFY: [sensor_data] -> sensor value 7 91 Proxy NOTIFY: [sensor_data] -> sensor value 8 93 Proxy NOTIFY: [sensor_data] -> sensor value 9 95 Proxy NOTIFY: [sensor_data] -> sensor value 10
|
/Zephyr-latest/soc/nordic/nrf53/ |
D | nrf53_cpunet_mgmt.c | 16 #include <zephyr/sys/notify.h> 24 static void onoff_start(struct onoff_manager *mgr, onoff_notify_fn notify) in onoff_start() argument 28 notify(mgr, 0); in onoff_start() 31 static void onoff_stop(struct onoff_manager *mgr, onoff_notify_fn notify) in onoff_stop() argument 35 notify(mgr, 0); in onoff_stop() 57 sys_notify_init_spinwait(&cli.notify); in nrf53_cpunet_enable() 63 ret = sys_notify_fetch_result(&cli.notify, &ignored); in nrf53_cpunet_enable()
|
/Zephyr-latest/soc/nordic/nrf54h/gpd/ |
D | gpd.c | 31 onoff_notify_fn notify; member 38 static void start(struct onoff_manager *mgr, onoff_notify_fn notify); 39 static void stop(struct onoff_manager *mgr, onoff_notify_fn notify); 156 gpd_mgr->notify(&gpd_mgr->mgr, 0); in evt_handler() 160 gpd_mgr->notify(&gpd_mgr->mgr, -EIO); in evt_handler() 176 static void start(struct onoff_manager *mgr, onoff_notify_fn notify) in start() argument 180 gpd_mgr->notify = notify; in start() 183 notify(mgr, 0); in start() 190 notify(mgr, -EIO); in start() 195 static void stop(struct onoff_manager *mgr, onoff_notify_fn notify) in stop() argument [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | vcp_vol_rend.c | 69 ATOMIC_DEFINE(notify, NOTIFY_NUM); 93 static const char *vol_rend_notify_str(enum vol_rend_notify notify) in vol_rend_notify_str() argument 95 switch (notify) { in vol_rend_notify_str() 105 static void notify_work_reschedule(struct bt_vcp_vol_rend *inst, enum vol_rend_notify notify, in notify_work_reschedule() argument 110 atomic_set_bit(inst->notify, notify); in notify_work_reschedule() 114 LOG_ERR("Failed to reschedule %s notification err %d", vol_rend_notify_str(notify), in notify_work_reschedule() 117 LOG_DBG("%s notification scheduled in %dms", vol_rend_notify_str(notify), in notify_work_reschedule() 122 static void notify(struct bt_vcp_vol_rend *inst, enum vol_rend_notify notify, in notify() argument 129 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify() 131 LOG_ERR("Notify %s err %d", vol_rend_notify_str(notify), err); in notify() [all …]
|
D | vocs.c | 65 static const char *vocs_notify_str(enum bt_vocs_notify notify) in vocs_notify_str() argument 67 switch (notify) { in vocs_notify_str() 79 static void notify_work_reschedule(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify_work_reschedule() argument 84 atomic_set_bit(inst->notify, notify); in notify_work_reschedule() 89 vocs_notify_str(notify), err); in notify_work_reschedule() 93 static void notify(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify() function 100 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify() 102 LOG_ERR("Notify %s err %d", vocs_notify_str(notify), err); in notify() 111 if (atomic_test_and_clear_bit(inst->notify, NOTIFY_STATE)) { in notify_work_handler() 112 notify(inst, NOTIFY_STATE, BT_UUID_VOCS_STATE, &inst->state, sizeof(inst->state)); in notify_work_handler() [all …]
|
D | aics.c | 179 static const char *aics_notify_str(enum bt_aics_notify notify) in aics_notify_str() argument 181 switch (notify) { in aics_notify_str() 193 static void notify_work_reschedule(struct bt_aics *inst, enum bt_aics_notify notify, in notify_work_reschedule() argument 198 atomic_set_bit(inst->srv.notify, notify); in notify_work_reschedule() 203 aics_notify_str(notify), err); in notify_work_reschedule() 207 static void notify(struct bt_aics *inst, enum bt_aics_notify notify, const struct bt_uuid *uuid, in notify() argument 214 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify() 216 LOG_ERR("Notify %s err %d", aics_notify_str(notify), err); in notify() 225 if (atomic_test_and_clear_bit(inst->srv.notify, AICS_NOTIFY_STATE)) { in notify_work_handler() 226 notify(inst, AICS_NOTIFY_STATE, BT_UUID_AICS_STATE, &inst->srv.state, in notify_work_handler() [all …]
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_nrf2_common.c | 55 onoff_notify_fn notify) in onoff_start_option() argument 63 onoff->notify = notify; in onoff_start_option() 70 onoff_notify_fn notify) in onoff_stop_option() argument 81 notify(mgr, 0); in onoff_stop_option() 176 onoff_notify_fn notify = cfg->onoff[i].notify; in clock_config_update_end() local 178 if (notify) { in clock_config_update_end() 189 cfg->onoff[i].notify = NULL; in clock_config_update_end() 190 notify(&cfg->onoff[i].mgr, status); in clock_config_update_end() 229 sys_notify_init_callback(&req.cli.notify, sync_cb); in nrf_clock_control_request_sync()
|
D | clock_control_nrf2_hfxo.c | 22 onoff_notify_fn notify; member 69 if (dev_data->notify) { in hfxo_start_up_timer_handler() 70 dev_data->notify(&dev_data->mgr, 0); in hfxo_start_up_timer_handler() 108 static void onoff_start_hfxo(struct onoff_manager *mgr, onoff_notify_fn notify) in onoff_start_hfxo() argument 113 dev_data->notify = notify; in onoff_start_hfxo() 164 static void onoff_stop_hfxo(struct onoff_manager *mgr, onoff_notify_fn notify) in onoff_stop_hfxo() argument 170 notify(mgr, 0); in onoff_stop_hfxo()
|
D | nrf_clock_calibration.h | 30 * @brief Notify calibration module about LF clock start 35 * @brief Notify calibration module about LF clock stop
|
/Zephyr-latest/drivers/smbus/ |
D | intel_pch_smbus.h | 113 #define PCH_SMBUS_SSTS_HNS BIT(0) /* Host Notify Status */ 117 #define PCH_SMBUS_SCMD_HNI_EN BIT(0) /* Host Notify INT En */ 118 #define PCH_SMBUS_SCMD_HNW_EN BIT(1) /* Host Notify Wake */ 121 /* Notify Device Address Register (NDA) */ 122 #define PCH_SMBUS_NDA 0x14 /* Notify Device addr */ 124 /* Notify Data Low Byte Register (NDLB) */ 125 #define PCH_SMBUS_NDLB 0x16 /* Notify Data low */ 127 /* Notify Data High Byte Register (NDHB) */ 128 #define PCH_SMBUS_NDHB 0x17 /* Notify Data high */
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | iso_internal.h | 90 /** A callback used to notify about freed buffer in the iso rx pool. */ 93 /** Set a callback to notify about freed buffer in the iso rx pool. 95 * @param cb Callback to notify about freed buffer in the iso rx pool. If NULL, the callback is 119 /* Notify ISO channels of a new connection */ 122 /* Notify ISO channels of a disconnect event */ 125 /* Notify ISO connected channels of security changed */
|
D | ecc.h | 24 * Used to notify of the local public key or that the local key is not 66 * @param cb Callback to notify the new key. 89 * Used to notify of the calculated DH Key. 100 * @param cb Callback to notify the calculated key.
|
/Zephyr-latest/include/zephyr/bluetooth/classic/ |
D | hfp_ag.h | 198 /** @brief Notify HFP Unit of an incoming call 200 * Notify HFP Unit of an incoming call. 250 /** @brief Notify HFP Unit that the remote starts ringing 252 * Notify HFP Unit that the remote starts ringing. 260 /** @brief Notify HFP Unit that the remote rejects the call 262 * Notify HFP Unit that the remote rejects the call. 270 /** @brief Notify HFP Unit that the remote accepts the call 272 * Notify HFP Unit that the remote accepts the call. 280 /** @brief Notify HFP Unit that the remote terminates the active/hold call 282 * Notify HFP Unit that the remote terminates the active/hold call.
|
/Zephyr-latest/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() 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-latest/soc/nordic/common/ |
D | mram_latency.c | 42 /* There is no event for that setting so we can notify onoff manager in latency_change_req() 66 static void no_latency_start(struct onoff_manager *mgr, onoff_notify_fn notify) in no_latency_start() argument 68 onoff_notify = notify; in no_latency_start() 72 static void no_latency_stop(struct onoff_manager *mgr, onoff_notify_fn notify) in no_latency_stop() argument 119 sys_notify_init_callback(&req.cli.notify, sync_req_cb); in mram_no_latency_sync_request()
|
/Zephyr-latest/include/zephyr/ipc/ |
D | ipc_static_vrings.h | 37 * @brief Define the notify callback. 39 * This callback is defined at instance level and it is called on virtqueue notify. 84 /** Private data to be passed to the notify callback. */ 87 /** Notify callback. */
|
/Zephyr-latest/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-latest/samples/modules/chre/ |
D | README.rst | 12 * A ``nanoappStart`` function used to notify the nanoapp that it is now active. 13 * A ``nanoappHandleEvent`` function used to notify the nanoapp tha an event of interest took place. 14 * A ``nanoappEnd`` function used to notify the nanoapp that it is now deactivated. 45 #. Notify that the event loop started via an ``inf`` level log 46 #. Notify that a nanoapp was started and assigned an instance/app ID of 1 via a ``dbg`` level log 49 #. Notify that the event was processed
|
/Zephyr-latest/tests/boards/nrf/mram_latency/src/ |
D | main.c | 56 sys_notify_init_callback(&req1.cli.notify, basic_cb); in ZTEST() 62 sys_notify_init_callback(&req2.cli.notify, basic_cb); in ZTEST() 87 sys_notify_init_callback(&req1.cli.notify, basic_cb); in ZTEST() 108 sys_notify_init_callback(&req->cli.notify, basic_cb); in timeout() 161 sys_notify_fetch_result(&early_client.notify, &early_result); in setup() 181 sys_notify_init_spinwait(&early_client.notify); in early_mram_client()
|
/Zephyr-latest/modules/openthread/platform/ |
D | platform-zephyr.h | 58 * Outer component calls this method to notify UART driver that it should 101 * Notify OpenThread task about new rx message. 106 * Notify OpenThread task about new tx message.
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/host/ |
D | gatt.rst | 21 The server can now notify the client with the command :code:`gatt notify`.
|
/Zephyr-latest/samples/boards/nordic/clock_control/src/ |
D | main.c | 61 sys_notify_init_callback(&cli.notify, sample_notify_cb); in main() 82 ret = sys_notify_fetch_result(&cli.notify, &res); in main() 84 printk("sys notify fetch failed\n"); in main()
|