Home
last modified time | relevance | path

Searched refs:notif (Results 1 – 25 of 51) sorted by relevance

123

/linux/drivers/tee/optee/
H A Dnotif.c25 list_for_each_entry(entry, &optee->notif.db, link) in have_key()
38 if (key > optee->notif.max_key) in optee_notif_wait()
47 spin_lock_irqsave(&optee->notif.lock, flags); in optee_notif_wait()
53 if (test_bit(key, optee->notif.bitmap)) { in optee_notif_wait()
54 clear_bit(key, optee->notif.bitmap); in optee_notif_wait()
67 list_add_tail(&entry->link, &optee->notif.db); in optee_notif_wait()
72 spin_unlock_irqrestore(&optee->notif.lock, flags); in optee_notif_wait()
79 spin_lock_irqsave(&optee->notif.lock, flags); in optee_notif_wait()
83 spin_unlock_irqrestore(&optee->notif.lock, flags); in optee_notif_wait()
95 if (key > optee->notif.max_key) in optee_notif_send()
[all …]
/linux/io_uring/
H A Dnotif.c14 static void io_notif_tw_complete(struct io_kiocb *notif, struct io_tw_state *ts) in io_notif_tw_complete() argument
16 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_tw_complete()
19 notif = cmd_to_io_kiocb(nd); in io_notif_tw_complete()
24 notif->cqe.res |= IORING_NOTIF_USAGE_ZC_COPIED; in io_notif_tw_complete()
26 if (nd->account_pages && notif->ctx->user) { in io_notif_tw_complete()
27 __io_unaccount_mem(notif->ctx->user, nd->account_pages); in io_notif_tw_complete()
32 io_req_task_complete(notif, ts); in io_notif_tw_complete()
40 struct io_kiocb *notif = cmd_to_io_kiocb(nd); in io_tx_ubuf_complete() local
59 notif->io_task_work.func = io_notif_tw_complete; in io_tx_ubuf_complete()
60 __io_req_task_work_add(notif, tw_flags); in io_tx_ubuf_complete()
[all …]
H A Dnotif.h30 static inline struct io_notif_data *io_notif_to_data(struct io_kiocb *notif) in io_notif_to_data() argument
32 return io_kiocb_to_cmd(notif, struct io_notif_data); in io_notif_to_data()
35 static inline void io_notif_flush(struct io_kiocb *notif) in io_notif_flush() argument
36 __must_hold(&notif->ctx->uring_lock) in io_notif_flush()
38 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_flush()
43 static inline int io_notif_account_mem(struct io_kiocb *notif, unsigned len) in io_notif_account_mem() argument
45 struct io_ring_ctx *ctx = notif->ctx; in io_notif_account_mem()
46 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_account_mem()
H A Dnet.c17 #include "notif.h"
82 struct io_kiocb *notif; member
1212 if (zc->notif) { in io_send_zc_cleanup()
1213 io_notif_flush(zc->notif); in io_send_zc_cleanup()
1214 zc->notif = NULL; in io_send_zc_cleanup()
1225 struct io_kiocb *notif; in io_send_zc_prep()
1236 notif = zc->notif = io_alloc_notif(ctx); in io_send_zc_prep()
1237 if (!notif) in io_send_zc_prep()
1239 notif in io_send_zc_prep()
1223 struct io_kiocb *notif; io_send_zc_prep() local
[all...]
/linux/sound/aoa/core/
H A Dgpio-pmf.c74 struct gpio_notification *notif = in pmf_handle_notify() local
77 mutex_lock(&notif->mutex); in pmf_handle_notify()
78 if (notif->notify) in pmf_handle_notify()
79 notif->notify(notif->data); in pmf_handle_notify()
80 mutex_unlock(&notif->mutex); in pmf_handle_notify()
124 struct gpio_notification *notif = data; in pmf_handle_notify_irq() local
126 schedule_delayed_work(&notif->work, 0); in pmf_handle_notify_irq()
134 struct gpio_notification *notif; in pmf_set_notify() local
142 notif = &rt->headphone_notify; in pmf_set_notify()
146 notif = &rt->line_in_notify; in pmf_set_notify()
[all …]
H A Dgpio-feature.c212 struct gpio_notification *notif = in ftr_handle_notify() local
215 mutex_lock(&notif->mutex); in ftr_handle_notify()
216 if (notif->notify) in ftr_handle_notify()
217 notif->notify(notif->data); in ftr_handle_notify()
218 mutex_unlock(&notif->mutex); in ftr_handle_notify()
303 struct gpio_notification *notif = data; in ftr_handle_notify_irq() local
305 schedule_delayed_work(&notif->work, 0); in ftr_handle_notify_irq()
315 struct gpio_notification *notif; in ftr_set_notify() local
323 notif = &rt->headphone_notify; in ftr_set_notify()
328 notif = &rt->line_in_notify; in ftr_set_notify()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dtime-sync.c62 struct iwl_time_msmt_notify *notif = (void *)pkt->data; in iwl_mvm_time_sync_msmt_event() local
67 iwl_mvm_time_sync_find_skb(mvm, notif->peer_addr, in iwl_mvm_time_sync_msmt_event()
68 le32_to_cpu(notif->dialog_token)); in iwl_mvm_time_sync_msmt_event()
76 ts_10ns = iwl_mvm_get_64_bit(notif->t2_hi, notif->t2_lo); in iwl_mvm_time_sync_msmt_event()
81 ts_10ns = iwl_mvm_get_64_bit(notif->t3_hi, notif->t3_lo); in iwl_mvm_time_sync_msmt_event()
97 struct iwl_time_msmt_cfm_notify *notif = (void *)pkt->data; in iwl_mvm_time_sync_msmt_confirm_event() local
103 iwl_mvm_time_sync_find_skb(mvm, notif->peer_addr, in iwl_mvm_time_sync_msmt_confirm_event()
104 le32_to_cpu(notif->dialog_token)); in iwl_mvm_time_sync_msmt_confirm_event()
111 ts_10ns = iwl_mvm_get_64_bit(notif->t1_hi, notif->t1_lo); in iwl_mvm_time_sync_msmt_confirm_event()
116 ts_10ns = iwl_mvm_get_64_bit(notif->t4_hi, notif->t4_lo); in iwl_mvm_time_sync_msmt_confirm_event()
H A Dtime-event.c234 struct iwl_time_event_notif *notif) in iwl_mvm_te_handle_notify_csa() argument
239 if (!notif->status) in iwl_mvm_te_handle_notify_csa()
244 if (!notif->status) in iwl_mvm_te_handle_notify_csa()
249 if (!notif->status) { in iwl_mvm_te_handle_notify_csa()
269 struct iwl_time_event_notif *notif, in iwl_mvm_te_check_trigger() argument
292 !(trig_action_bitmap & le32_to_cpu(notif->action)) || in iwl_mvm_te_check_trigger()
293 !(trig_status_bitmap & BIT(le32_to_cpu(notif->status)))) in iwl_mvm_te_check_trigger()
299 le32_to_cpu(notif->action), in iwl_mvm_te_check_trigger()
300 le32_to_cpu(notif->status)); in iwl_mvm_te_check_trigger()
314 struct iwl_time_event_notif *notif) in iwl_mvm_te_handle_notif() argument
[all …]
H A Drs-fw.c418 struct iwl_tlc_update_notif *notif; in iwl_mvm_tlc_update_notif() local
428 notif = (void *)pkt->data; in iwl_mvm_tlc_update_notif()
429 link_sta = rcu_dereference(mvm->fw_id_to_link_sta[notif->sta_id]); in iwl_mvm_tlc_update_notif()
430 sta = rcu_dereference(mvm->fw_id_to_mac_id[notif->sta_id]); in iwl_mvm_tlc_update_notif()
437 notif->sta_id); in iwl_mvm_tlc_update_notif()
445 notif->sta_id); in iwl_mvm_tlc_update_notif()
449 flags = le32_to_cpu(notif->flags); in iwl_mvm_tlc_update_notif()
455 link_sta->link_id, notif->sta_id); in iwl_mvm_tlc_update_notif()
467 le32_to_cpu(notif->rate)); in iwl_mvm_tlc_update_notif()
472 iwl_new_rate_from_v1(le32_to_cpu(notif->rate)); in iwl_mvm_tlc_update_notif()
[all …]
H A Dcoex.c211 struct iwl_bt_coex_prof_old_notif *notif; member
395 bt_activity_grading = le32_to_cpu(data->notif->bt_activity_grading); in iwl_mvm_bt_notif_per_link()
561 .notif = &mvm->last_bt_notif, in iwl_mvm_bt_coex_notif_handle()
643 struct iwl_bt_coex_prof_old_notif *notif = (void *)pkt->data; in iwl_mvm_rx_bt_coex_old_notif() local
646 IWL_DEBUG_COEX(mvm, "\tBT ci compliance %d\n", notif->bt_ci_compliance); in iwl_mvm_rx_bt_coex_old_notif()
648 le32_to_cpu(notif->primary_ch_lut)); in iwl_mvm_rx_bt_coex_old_notif()
650 le32_to_cpu(notif->secondary_ch_lut)); in iwl_mvm_rx_bt_coex_old_notif()
652 le32_to_cpu(notif->bt_activity_grading)); in iwl_mvm_rx_bt_coex_old_notif()
655 memcpy(&mvm->last_bt_notif, notif, sizeof(mvm->last_bt_notif)); in iwl_mvm_rx_bt_coex_old_notif()
664 const struct iwl_bt_coex_profile_notif *notif = (const void *)pkt->data; in iwl_mvm_rx_bt_coex_notif() local
[all …]
H A Dmac-ctxt.c1804 struct iwl_probe_resp_data_notif *notif = (void *)pkt->data; in iwl_mvm_probe_resp_data_notif() local
1806 u32 id = le32_to_cpu(notif->mac_id); in iwl_mvm_probe_resp_data_notif()
1811 notif->noa_active, notif->csa_counter); in iwl_mvm_probe_resp_data_notif()
1823 memcpy(&new_data->notif, notif, sizeof(new_data->notif)); in iwl_mvm_probe_resp_data_notif()
1827 sizeof(new_data->notif.noa_attr) - 1; in iwl_mvm_probe_resp_data_notif()
1833 if (new_data->notif.noa_attr.len_low == in iwl_mvm_probe_resp_data_notif()
1844 if (notif->csa_counter != IWL_PROBE_RESP_DATA_NO_CSA && in iwl_mvm_probe_resp_data_notif()
1845 notif->csa_counter >= 1) in iwl_mvm_probe_resp_data_notif()
1846 ieee80211_beacon_set_cntdwn(vif, notif->csa_counter); in iwl_mvm_probe_resp_data_notif()
1866 struct iwl_channel_switch_start_notif_v1 *notif = (void *)pkt->data; in iwl_mvm_channel_switch_start_notif() local
[all …]
H A Dscan.c339 struct iwl_lmac_scan_complete_notif *notif = (void *)pkt->data; in iwl_mvm_rx_lmac_scan_iter_complete_notif() local
343 notif->status, notif->scanned_channels); in iwl_mvm_rx_lmac_scan_iter_complete_notif()
3219 struct iwl_umac_scan_complete *notif = (void *)pkt->data; in iwl_mvm_rx_umac_scan_complete_notif() local
3220 u32 uid = __le32_to_cpu(notif->uid); in iwl_mvm_rx_umac_scan_complete_notif()
3221 bool aborted = (notif->status == IWL_SCAN_OFFLOAD_ABORTED); in iwl_mvm_rx_umac_scan_complete_notif()
3229 notif->status == IWL_SCAN_OFFLOAD_COMPLETED ? in iwl_mvm_rx_umac_scan_complete_notif()
3231 iwl_mvm_ebs_status_str(notif->ebs_status)); in iwl_mvm_rx_umac_scan_complete_notif()
3238 notif->last_schedule, notif->last_iter, in iwl_mvm_rx_umac_scan_complete_notif()
3239 __le32_to_cpu(notif->time_from_last_iter)); in iwl_mvm_rx_umac_scan_complete_notif()
3275 select_links = notif->status == IWL_SCAN_OFFLOAD_COMPLETED; in iwl_mvm_rx_umac_scan_complete_notif()
[all …]
H A Drfi.c154 struct iwl_rfi_deactivate_notif *notif = (void *)pkt->data; in iwl_rfi_deactivate_notif_handler() local
156 IWL_INFO(mvm, "RFIm is deactivated, reason = %d\n", notif->reason); in iwl_rfi_deactivate_notif_handler()
/linux/drivers/power/supply/
H A Dsurface_charger.c57 struct ssam_event_notifier notif; member
108 ac = container_of(nf, struct spwr_ac_device, notif); in spwr_notify_ac()
182 ac->notif.base.priority = 1; in spwr_ac_init()
183 ac->notif.base.fn = spwr_notify_ac; in spwr_ac_init()
184 ac->notif.event.reg = registry; in spwr_ac_init()
185 ac->notif.event.id.target_category = sdev->uid.category; in spwr_ac_init()
186 ac->notif.event.id.instance = 0; in spwr_ac_init()
187 ac->notif.event.mask = SSAM_EVENT_MASK_NONE; in spwr_ac_init()
188 ac->notif.event.flags = SSAM_EVENT_SEQUENCED; in spwr_ac_init()
219 return ssam_device_notifier_register(ac->sdev, &ac->notif); in spwr_ac_register()
[all …]
H A Dsurface_battery.c128 struct ssam_event_notifier notif; member
345 struct spwr_battery_device *bat = container_of(nf, struct spwr_battery_device, notif); in spwr_notify_bat()
729 bat->notif.base.priority = 1; in spwr_battery_init()
730 bat->notif.base.fn = spwr_notify_bat; in spwr_battery_init()
731 bat->notif.event.reg = registry; in spwr_battery_init()
732 bat->notif.event.id.target_category = sdev->uid.category; in spwr_battery_init()
733 bat->notif.event.id.instance = 0; /* need to register with instance 0 */ in spwr_battery_init()
734 bat->notif.event.mask = SSAM_EVENT_MASK_TARGET; in spwr_battery_init()
735 bat->notif.event.flags = SSAM_EVENT_SEQUENCED; in spwr_battery_init()
805 return ssam_device_notifier_register(bat->sdev, &bat->notif); in spwr_battery_register()
[all …]
/linux/drivers/platform/surface/
H A Dsurface_aggregator_hub.c48 struct ssam_event_notifier notif; member
174 hub->notif.base.priority = INT_MAX; /* This notifier should run first. */ in ssam_hub_probe()
175 hub->notif.base.fn = desc->ops.notify; in ssam_hub_probe()
176 hub->notif.event.reg = desc->event.reg; in ssam_hub_probe()
177 hub->notif.event.id = desc->event.id; in ssam_hub_probe()
178 hub->notif.event.mask = desc->event.mask; in ssam_hub_probe()
179 hub->notif.event.flags = SSAM_EVENT_SEQUENCED; in ssam_hub_probe()
188 status = ssam_device_notifier_register(sdev, &hub->notif); in ssam_hub_probe()
200 ssam_device_notifier_unregister(sdev, &hub->notif); in ssam_hub_remove()
246 struct ssam_hub *hub = container_of(nf, struct ssam_hub, notif); in ssam_base_hub_notif()
[all …]
H A Dsurface_aggregator_tabletsw.c44 struct ssam_event_notifier notif; member
167 sw->notif.base.priority = 0; in ssam_tablet_sw_probe()
168 sw->notif.base.fn = desc->ops.notify; in ssam_tablet_sw_probe()
169 sw->notif.event.reg = desc->event.reg; in ssam_tablet_sw_probe()
170 sw->notif.event.id = desc->event.id; in ssam_tablet_sw_probe()
171 sw->notif.event.mask = desc->event.mask; in ssam_tablet_sw_probe()
172 sw->notif.event.flags = SSAM_EVENT_SEQUENCED; in ssam_tablet_sw_probe()
174 status = ssam_device_notifier_register(sdev, &sw->notif); in ssam_tablet_sw_probe()
187 ssam_device_notifier_unregister(sdev, &sw->notif); in ssam_tablet_sw_probe()
198 ssam_device_notifier_unregister(sdev, &sw->notif); in ssam_tablet_sw_remove()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/tests/
H A Dscan.c81 struct iwl_umac_scan_channel_survey_notif notif; in KUNIT_ARRAY_PARAM_DESC() local
86 notif.noise[i] = params->neg_dbm[i]; in KUNIT_ARRAY_PARAM_DESC()
88 iwl_mvm_average_dbm_values(&notif), in KUNIT_ARRAY_PARAM_DESC()
93 notif.noise[ARRAY_SIZE(params->neg_dbm) - i - 1] = in KUNIT_ARRAY_PARAM_DESC()
96 iwl_mvm_average_dbm_values(&notif), in KUNIT_ARRAY_PARAM_DESC()
/linux/drivers/hid/surface-hid/
H A Dsurface_hid.c159 struct surface_hid_device *shid = container_of(nf, struct surface_hid_device, notif); in ssam_hid_event_fn()
210 shid->notif.base.priority = 1; in surface_hid_probe()
211 shid->notif.base.fn = ssam_hid_event_fn; in surface_hid_probe()
212 shid->notif.event.reg = SSAM_EVENT_REGISTRY_REG(sdev->uid.target); in surface_hid_probe()
213 shid->notif.event.id.target_category = sdev->uid.category; in surface_hid_probe()
214 shid->notif.event.id.instance = sdev->uid.instance; in surface_hid_probe()
215 shid->notif.event.mask = SSAM_EVENT_MASK_STRICT; in surface_hid_probe()
216 shid->notif.event.flags = 0; in surface_hid_probe()
H A Dsurface_kbd.c126 struct surface_hid_device *shid = container_of(nf, struct surface_hid_device, notif); in ssam_kbd_event_fn()
257 shid->notif.base.priority = 1; in surface_kbd_probe()
258 shid->notif.base.fn = ssam_kbd_event_fn; in surface_kbd_probe()
259 shid->notif.event.reg = SSAM_EVENT_REGISTRY_SAM; in surface_kbd_probe()
260 shid->notif.event.id.target_category = shid->uid.category; in surface_kbd_probe()
261 shid->notif.event.id.instance = shid->uid.instance; in surface_kbd_probe()
262 shid->notif.event.mask = SSAM_EVENT_MASK_NONE; in surface_kbd_probe()
263 shid->notif.event.flags = 0; in surface_kbd_probe()
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dscan.c237 struct iwl_scanreq_notification *notif = (void *)pkt->data; in iwl_rx_reply_scan() local
239 IWL_DEBUG_SCAN(priv, "Scan request status = 0x%x\n", notif->status); in iwl_rx_reply_scan()
248 struct iwl_scanstart_notification *notif = (void *)pkt->data; in iwl_rx_scan_start_notif() local
250 priv->scan_start_tsf = le32_to_cpu(notif->tsf_low); in iwl_rx_scan_start_notif()
254 notif->channel, in iwl_rx_scan_start_notif()
255 notif->band ? "bg" : "a", in iwl_rx_scan_start_notif()
256 le32_to_cpu(notif->tsf_high), in iwl_rx_scan_start_notif()
257 le32_to_cpu(notif->tsf_low), in iwl_rx_scan_start_notif()
258 notif->status, notif->beacon_timer); in iwl_rx_scan_start_notif()
267 struct iwl_scanresults_notification *notif = (void *)pkt->data; in iwl_rx_scan_results_notif() local
[all …]
/linux/kernel/
H A Dseccomp.c234 struct notification *notif; member
1075 return filter->notif->next_id++; in seccomp_next_notify_id()
1130 if (!match->notif) in seccomp_do_user_notification()
1138 list_add_tail(&n.list, &match->notif->notifications); in seccomp_do_user_notification()
1141 atomic_inc(&match->notif->requests); in seccomp_do_user_notification()
1142 if (match->notif->flags & SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP) in seccomp_do_user_notification()
1202 if (match->notif) in seccomp_do_user_notification()
1416 kfree(filter->notif); in seccomp_notify_free()
1417 filter->notif = NULL; in seccomp_notify_free()
1433 list_for_each_entry(knotif, &filter->notif->notifications, list) { in seccomp_notify_detach()
[all …]
/linux/drivers/media/pci/intel/ivsc/
H A Dmei_csi.c260 struct csi_notif notif = { 0 }; in mei_csi_rx() local
263 ret = mei_cldev_recv(cldev, (u8 *)&notif, sizeof(notif)); in mei_csi_rx()
269 switch (notif.cmd_id) { in mei_csi_rx()
271 if (notif.cont.cont < CSI_PRIVACY_MAX) in mei_csi_rx()
273 notif.cont.cont == CSI_PRIVACY_ON); in mei_csi_rx()
277 memcpy(&csi->cmd_response, &notif, ret); in mei_csi_rx()
/linux/drivers/platform/surface/aggregator/
H A Dcontroller.c785 nf = &queue->cplt->event.notif; in ssam_event_queue_work_fn()
839 status = ssam_nf_init(&cplt->event.notif); in ssam_cplt_init()
862 ssam_nf_destroy(&cplt->event.notif); in ssam_cplt_destroy()
2217 struct ssam_nf *nf = &ctrl->cplt.event.notif; in ssam_nf_refcount_enable()
2281 struct ssam_nf *nf = &ctrl->cplt.event.notif; in ssam_nf_refcount_disable_free()
2338 nf = &ctrl->cplt.event.notif; in ssam_notifier_register()
2407 nf = &ctrl->cplt.event.notif; in __ssam_notifier_unregister()
2472 struct ssam_nf *nf = &ctrl->cplt.event.notif; in ssam_controller_event_enable()
2523 struct ssam_nf *nf = &ctrl->cplt.event.notif; in ssam_controller_event_disable()
2568 struct ssam_nf *nf = &ctrl->cplt.event.notif; in ssam_notifier_disable_registered()
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-async.c723 __v4l2_async_nf_add_fwnode_remote(struct v4l2_async_notifier *notif, in __v4l2_async_nf_add_fwnode_remote() argument
734 asc = __v4l2_async_nf_add_fwnode(notif, remote, asc_struct_size); in __v4l2_async_nf_add_fwnode_remote()
935 struct v4l2_async_notifier *notif; in pending_subdevs_show() local
940 list_for_each_entry(notif, &notifier_list, notifier_entry) { in pending_subdevs_show()
941 seq_printf(s, "%s:\n", v4l2_async_nf_name(notif)); in pending_subdevs_show()
942 list_for_each_entry(asc, &notif->waiting_list, asc_entry) in pending_subdevs_show()

123