Home
last modified time | relevance | path

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

123

/linux/io_uring/
H A Dnotif.c17 struct io_kiocb *notif = tw_req.req; in io_notif_tw_complete() local
18 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_tw_complete()
19 struct io_ring_ctx *ctx = notif->ctx; in io_notif_tw_complete()
24 notif = cmd_to_io_kiocb(nd); in io_notif_tw_complete()
26 if (WARN_ON_ONCE(ctx != notif->ctx)) in io_notif_tw_complete()
31 notif->cqe.res |= IORING_NOTIF_USAGE_ZC_COPIED; in io_notif_tw_complete()
33 if (nd->account_pages && notif->ctx->user) { in io_notif_tw_complete()
34 __io_unaccount_mem(notif->ctx->user, nd->account_pages); in io_notif_tw_complete()
39 io_req_task_complete((struct io_tw_req){notif}, tw); in io_notif_tw_complete()
47 struct io_kiocb *notif = cmd_to_io_kiocb(nd); in io_tx_ubuf_complete() local
[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()
/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/sound/aoa/core/
H A Dgpio-pmf.c74 struct gpio_notification *notif = in pmf_handle_notify() local
77 guard(mutex)(&notif->mutex); in pmf_handle_notify()
78 if (notif->notify) in pmf_handle_notify()
79 notif->notify(notif->data); in pmf_handle_notify()
123 struct gpio_notification *notif = data; in pmf_handle_notify_irq() local
125 schedule_delayed_work(&notif->work, 0); in pmf_handle_notify_irq()
133 struct gpio_notification *notif; in pmf_set_notify() local
141 notif = &rt->headphone_notify; in pmf_set_notify()
145 notif = &rt->line_in_notify; in pmf_set_notify()
149 notif = &rt->line_out_notify; in pmf_set_notify()
[all …]
H A Dgpio-feature.c212 struct gpio_notification *notif = in ftr_handle_notify() local
215 guard(mutex)(&notif->mutex); in ftr_handle_notify()
216 if (notif->notify) in ftr_handle_notify()
217 notif->notify(notif->data); in ftr_handle_notify()
302 struct gpio_notification *notif = data; in ftr_handle_notify_irq() local
304 schedule_delayed_work(&notif->work, 0); in ftr_handle_notify_irq()
314 struct gpio_notification *notif; in ftr_set_notify() local
322 notif = &rt->headphone_notify; in ftr_set_notify()
327 notif = &rt->line_in_notify; in ftr_set_notify()
332 notif = &rt->line_out_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.c230 struct iwl_time_event_notif *notif) in iwl_mvm_te_handle_notify_csa() argument
235 if (!notif->status) in iwl_mvm_te_handle_notify_csa()
240 if (!notif->status) in iwl_mvm_te_handle_notify_csa()
245 if (!notif->status) { in iwl_mvm_te_handle_notify_csa()
265 struct iwl_time_event_notif *notif, in iwl_mvm_te_check_trigger() argument
288 !(trig_action_bitmap & le32_to_cpu(notif->action)) || in iwl_mvm_te_check_trigger()
289 !(trig_status_bitmap & BIT(le32_to_cpu(notif->status)))) in iwl_mvm_te_check_trigger()
295 le32_to_cpu(notif->action), in iwl_mvm_te_check_trigger()
296 le32_to_cpu(notif->status)); in iwl_mvm_te_check_trigger()
310 struct iwl_time_event_notif *notif) in iwl_mvm_te_handle_notif() argument
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dtime_sync.c174 struct iwl_time_msmt_notify *notif = (void *)pkt->data; in iwl_mld_handle_time_msmt_notif() local
179 iwl_mld_time_sync_find_skb(mld, notif->peer_addr, in iwl_mld_handle_time_msmt_notif()
180 le32_to_cpu(notif->dialog_token)); in iwl_mld_handle_time_msmt_notif()
187 ts_10ns = iwl_mld_get_64_bit(notif->t2_hi, notif->t2_lo); in iwl_mld_handle_time_msmt_notif()
192 ts_10ns = iwl_mld_get_64_bit(notif->t3_hi, notif->t3_lo); in iwl_mld_handle_time_msmt_notif()
209 struct iwl_time_msmt_cfm_notify *notif = (void *)pkt->data; in iwl_mld_handle_time_sync_confirm_notif() local
215 iwl_mld_time_sync_find_skb(mld, notif->peer_addr, in iwl_mld_handle_time_sync_confirm_notif()
216 le32_to_cpu(notif->dialog_token)); in iwl_mld_handle_time_sync_confirm_notif()
223 ts_10ns = iwl_mld_get_64_bit(notif->t1_hi, notif->t1_lo); in iwl_mld_handle_time_sync_confirm_notif()
228 ts_10ns = iwl_mld_get_64_bit(notif->t4_hi, notif->t4_lo); in iwl_mld_handle_time_sync_confirm_notif()
H A Dsession-protect.c14 struct iwl_session_prot_notif *notif = (void *)pkt->data; in iwl_mld_handle_session_prot_notif() local
15 int fw_link_id = le32_to_cpu(notif->mac_link_id); in iwl_mld_handle_session_prot_notif()
29 if (!le32_to_cpu(notif->status)) { in iwl_mld_handle_session_prot_notif()
31 } else if (le32_to_cpu(notif->start)) { in iwl_mld_handle_session_prot_notif()
117 struct iwl_session_prot_notif *notif = (void *)pkt->data; in iwl_mld_session_start_fn() local
124 if (IWL_FW_CHECK(mld, pkt_len < sizeof(*notif), in iwl_mld_session_start_fn()
129 fw_link_id = le32_to_cpu(notif->mac_link_id); in iwl_mld_session_start_fn()
135 if (!le32_to_cpu(notif->status)) in iwl_mld_session_start_fn()
138 if (notif->start) { in iwl_mld_session_start_fn()
H A Dd3.c450 const struct iwl_wowlan_info_notif *notif, in iwl_mld_convert_mlo_keys() argument
453 if (!notif->num_mlo_link_keys) in iwl_mld_convert_mlo_keys()
456 wowlan_status->num_mlo_keys = notif->num_mlo_link_keys; in iwl_mld_convert_mlo_keys()
464 const struct iwl_wowlan_mlo_gtk *fw_mlo_key = &notif->mlo_gtks[i]; in iwl_mld_convert_mlo_keys()
486 struct iwl_wowlan_info_notif *notif) in iwl_mld_convert_wowlan_notif_v5() argument
489 BUILD_BUG_ON(ARRAY_SIZE(notif->gtk) != ARRAY_SIZE(notif_v5->gtk)); in iwl_mld_convert_wowlan_notif_v5()
493 struct iwl_wowlan_gtk_status *gtk = &notif->gtk[i]; in iwl_mld_convert_wowlan_notif_v5()
520 memcpy(&notif->igtk[0], &notif_v5->igtk[0], in iwl_mld_convert_wowlan_notif_v5()
528 notif->igtk[0].key_status = IWL_WOWLAN_STATUS_NEW_KEY; in iwl_mld_convert_wowlan_notif_v5()
531 BUILD_BUG_ON(ARRAY_SIZE(notif->bigtk) != ARRAY_SIZE(notif_v5->bigtk)); in iwl_mld_convert_wowlan_notif_v5()
[all …]
H A Dnan.c213 struct iwl_nan_cluster_notif *notif = (void *)pkt->data; in iwl_mld_handle_nan_cluster_notif() local
216 bool new_cluster = !!(notif->flags & in iwl_mld_handle_nan_cluster_notif()
220 notif->cluster_id[0], notif->cluster_id[1] in iwl_mld_handle_nan_cluster_notif()
225 cluster_id, notif->flags); in iwl_mld_handle_nan_cluster_notif()
254 struct iwl_nan_dw_end_notif *notif = (void *)pkt->data; in iwl_mld_handle_nan_dw_end_notif() local
261 IWL_INFO(mld, "NAN: DW end: band=%u\n", notif->band); in iwl_mld_handle_nan_dw_end_notif()
282 switch (notif->band) { in iwl_mld_handle_nan_dw_end_notif()
293 notif->band); in iwl_mld_handle_nan_dw_end_notif()
H A Dcoex.c27 const struct iwl_bt_coex_profile_notif *notif = (void *)pkt->data; in iwl_mld_handle_bt_coex_notif() local
30 bool bt_is_active = memcmp(notif, &zero_notif, sizeof(*notif)); in iwl_mld_handle_bt_coex_notif()
H A Dlink.c529 const struct iwl_missed_beacons_notif *notif = (const void *)pkt->data; in iwl_mld_handle_missed_beacon_notif() local
531 u32 fw_link_id = le32_to_cpu(notif->link_id); in iwl_mld_handle_missed_beacon_notif()
532 u32 missed_bcon = le32_to_cpu(notif->consec_missed_beacons); in iwl_mld_handle_missed_beacon_notif()
534 le32_to_cpu(notif->consec_missed_beacons_since_last_rx); in iwl_mld_handle_missed_beacon_notif()
536 le32_to_cpu(notif->consec_missed_beacons_other_link); in iwl_mld_handle_missed_beacon_notif()
591 if (le32_to_cpu(notif->other_link_id) == FW_CTXT_ID_INVALID) in iwl_mld_handle_missed_beacon_notif()
594 other_link_fw_id = le32_to_cpu(notif->other_link_id); in iwl_mld_handle_missed_beacon_notif()
629 struct iwl_missed_beacons_notif *notif = (void *)pkt->data; in iwl_mld_cancel_missed_beacon_notif() local
631 if (le32_to_cpu(notif->other_link_id) == removed_link_id) { in iwl_mld_cancel_missed_beacon_notif()
635 notif->other_link_id = cpu_to_le32(FW_CTXT_ID_INVALID); in iwl_mld_cancel_missed_beacon_notif()
[all …]
H A Droc.c228 const struct iwl_roc_notif *notif = (void *)pkt->data; in iwl_mld_handle_roc_notif() local
229 u32 activity = le32_to_cpu(notif->activity); in iwl_mld_handle_roc_notif()
246 if (le32_to_cpu(notif->success) && in iwl_mld_handle_roc_notif()
247 le32_to_cpu(notif->started)) { in iwl_mld_handle_roc_notif()
252 if (le32_to_cpu(notif->started)) in iwl_mld_handle_roc_notif()
H A Dthermal.c24 const struct ct_kill_notif *notif = (const void *)pkt->data; in iwl_mld_handle_ct_kill_notif() local
28 le16_to_cpu(notif->temperature), notif->dts, in iwl_mld_handle_ct_kill_notif()
29 notif->scheme); in iwl_mld_handle_ct_kill_notif()
49 const struct iwl_dts_measurement_notif *notif = in iwl_mld_handle_temp_notif() local
54 temp = le32_to_cpu(notif->temp); in iwl_mld_handle_temp_notif()
60 ths_crossed = le32_to_cpu(notif->threshold_idx); in iwl_mld_handle_temp_notif()
/linux/drivers/net/wireless/intel/iwlwifi/mld/tests/
H A Dlink.c18 struct iwl_missed_beacons_notif notif; member
28 .input.notif = {
34 .input.notif = {
40 .input.notif = {
59 struct iwl_missed_beacons_notif *notif; in test_missed_beacon() local
75 pkt = iwl_mld_kunit_create_pkt(test_param->input.notif); in test_missed_beacon()
76 notif = (void *)pkt->data; in test_missed_beacon()
85 notif->link_id = cpu_to_le32(mld_vif->deflink.fw_id); in test_missed_beacon()
/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/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/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/kernel/
H A Dseccomp.c232 struct notification *notif; member
1120 return filter->notif->next_id++; in seccomp_next_notify_id()
1175 if (!match->notif) in seccomp_do_user_notification()
1183 list_add_tail(&n.list, &match->notif->notifications); in seccomp_do_user_notification()
1186 atomic_inc(&match->notif->requests); in seccomp_do_user_notification()
1187 if (match->notif->flags & SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP) in seccomp_do_user_notification()
1245 if (match->notif) in seccomp_do_user_notification()
1453 kfree(filter->notif); in seccomp_notify_free()
1454 filter->notif = NULL; in seccomp_notify_free()
1470 list_for_each_entry(knotif, &filter->notif->notifications, list) { in seccomp_notify_detach()
[all …]
/linux/drivers/mailbox/
H A Driscv-sbi-mpxy-mbox.c380 struct sbi_mpxy_notification_data *notif; member
476 struct sbi_mpxy_notification_data *notif, in mpxy_mbox_peek_rpmi_data() argument
484 event = (struct rpmi_notification_event *)(notif->events_data + pos); in mpxy_mbox_peek_rpmi_data()
487 msg.notif.event_datalen = le16_to_cpu(event->event_datalen); in mpxy_mbox_peek_rpmi_data()
488 msg.notif.event_id = event->event_id; in mpxy_mbox_peek_rpmi_data()
489 msg.notif.event_data = event->event_data; in mpxy_mbox_peek_rpmi_data()
493 pos += sizeof(*event) + msg.notif.event_datalen; in mpxy_mbox_peek_rpmi_data()
522 struct sbi_mpxy_notification_data *notif = mchan->notif; in mpxy_mbox_peek_data() local
531 rc = mpxy_get_notifications(mchan->channel_id, notif, &data_len); in mpxy_mbox_peek_data()
536 mpxy_mbox_peek_rpmi_data(chan, mchan, notif, data_len); in mpxy_mbox_peek_data()
[all …]

123