Home
last modified time | relevance | path

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

1234

/linux-6.15/io_uring/
H A Dnotif.c19 notif = cmd_to_io_kiocb(nd); in io_notif_tw_complete()
32 io_req_task_complete(notif, tw); in io_notif_tw_complete()
70 notif = cmd_to_io_kiocb(nd); in io_link_skb()
110 struct io_kiocb *notif; in io_alloc_notif() local
115 notif->opcode = IORING_OP_NOP; in io_alloc_notif()
116 notif->flags = 0; in io_alloc_notif()
117 notif->file = NULL; in io_alloc_notif()
120 notif->file_node = NULL; in io_alloc_notif()
121 notif->buf_node = NULL; in io_alloc_notif()
123 nd = io_notif_to_data(notif); in io_alloc_notif()
[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-6.15/drivers/tee/optee/
H A Dnotif.c38 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()
95 if (key > optee->notif.max_key) in optee_notif_send()
107 set_bit(key, optee->notif.bitmap); in optee_notif_send()
116 spin_lock_init(&optee->notif.lock); in optee_notif_init()
117 INIT_LIST_HEAD(&optee->notif.db); in optee_notif_init()
119 if (!optee->notif.bitmap) in optee_notif_init()
122 optee->notif.max_key = max_key; in optee_notif_init()
[all …]
/linux-6.15/sound/aoa/core/
H A Dgpio-pmf.c77 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()
157 mutex_lock(&notif->mutex); in pmf_set_notify()
159 old = notif->notify; in pmf_set_notify()
176 notif->gpio_private = NULL; in pmf_set_notify()
185 irq_client->data = notif; in pmf_set_notify()
199 notif->notify = notify; in pmf_set_notify()
200 notif->data = data; in pmf_set_notify()
[all …]
H A Dgpio-feature.c215 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()
328 notif = &rt->line_in_notify; in ftr_set_notify()
344 mutex_lock(&notif->mutex); in ftr_set_notify()
346 old = notif->notify; in ftr_set_notify()
360 free_irq(irq, notif); in ftr_set_notify()
368 notif->notify = notify; in ftr_set_notify()
369 notif->data = data; in ftr_set_notify()
[all …]
/linux-6.15/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.c239 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()
299 le32_to_cpu(notif->action), in iwl_mvm_te_check_trigger()
300 le32_to_cpu(notif->status)); in iwl_mvm_te_check_trigger()
320 le32_to_cpu(notif->action)); in iwl_mvm_te_handle_notif()
425 le32_to_cpu(notif->started); in iwl_mvm_rx_roc_notif()
474 le32_to_cpu(notif->action), le32_to_cpu(notif->status)); in iwl_mvm_aux_roc_te_handle_notif()
1029 if (!le32_to_cpu(notif->status) || !le32_to_cpu(notif->start)) { in iwl_mvm_rx_session_protect_notif()
1039 le32_to_cpu(notif->conf_id))) in iwl_mvm_rx_session_protect_notif()
[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()
437 notif->sta_id); in iwl_mvm_tlc_update_notif()
443 flags = le32_to_cpu(notif->flags); in iwl_mvm_tlc_update_notif()
449 link_sta->link_id, notif->sta_id); in iwl_mvm_tlc_update_notif()
461 le32_to_cpu(notif->rate)); in iwl_mvm_tlc_update_notif()
466 iwl_new_rate_from_v1(le32_to_cpu(notif->rate)); in iwl_mvm_tlc_update_notif()
468 lq_sta->last_rate_n_flags = le32_to_cpu(notif->rate); in iwl_mvm_tlc_update_notif()
476 u32 enabled = le32_to_cpu(notif->amsdu_enabled); in iwl_mvm_tlc_update_notif()
477 u16 size = le32_to_cpu(notif->amsdu_size); in iwl_mvm_tlc_update_notif()
[all …]
/linux-6.15/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-6.15/drivers/net/wireless/intel/iwlwifi/mld/
H A Dtime_sync.c175 struct iwl_time_msmt_notify *notif = (void *)pkt->data; in iwl_mld_handle_time_msmt_notif() local
180 iwl_mld_time_sync_find_skb(mld, notif->peer_addr, in iwl_mld_handle_time_msmt_notif()
181 le32_to_cpu(notif->dialog_token)); in iwl_mld_handle_time_msmt_notif()
188 ts_10ns = iwl_mld_get_64_bit(notif->t2_hi, notif->t2_lo); in iwl_mld_handle_time_msmt_notif()
193 ts_10ns = iwl_mld_get_64_bit(notif->t3_hi, notif->t3_lo); in iwl_mld_handle_time_msmt_notif()
210 struct iwl_time_msmt_cfm_notify *notif = (void *)pkt->data; in iwl_mld_handle_time_sync_confirm_notif() local
216 iwl_mld_time_sync_find_skb(mld, notif->peer_addr, in iwl_mld_handle_time_sync_confirm_notif()
217 le32_to_cpu(notif->dialog_token)); in iwl_mld_handle_time_sync_confirm_notif()
224 ts_10ns = iwl_mld_get_64_bit(notif->t1_hi, notif->t1_lo); in iwl_mld_handle_time_sync_confirm_notif()
229 ts_10ns = iwl_mld_get_64_bit(notif->t4_hi, notif->t4_lo); in iwl_mld_handle_time_sync_confirm_notif()
H A Diface.c485 notif->noa_active, notif->csa_counter); in iwl_mld_handle_probe_resp_data_notif()
487 if (IWL_FW_CHECK(mld, le32_to_cpu(notif->mac_id) >= in iwl_mld_handle_probe_resp_data_notif()
490 le32_to_cpu(notif->mac_id))) in iwl_mld_handle_probe_resp_data_notif()
494 mld->fw_id_to_vif[le32_to_cpu(notif->mac_id)]); in iwl_mld_handle_probe_resp_data_notif()
503 if (notif->csa_counter != IWL_PROBE_RESP_DATA_NO_CSA && in iwl_mld_handle_probe_resp_data_notif()
504 notif->csa_counter >= 1) in iwl_mld_handle_probe_resp_data_notif()
505 ieee80211_beacon_set_cntdwn(vif, notif->csa_counter); in iwl_mld_handle_probe_resp_data_notif()
516 memcpy(&new_data->notif, notif, sizeof(new_data->notif)); in iwl_mld_handle_probe_resp_data_notif()
520 sizeof(new_data->notif.noa_attr) - 1; in iwl_mld_handle_probe_resp_data_notif()
526 if (new_data->notif.noa_attr.len_low == in iwl_mld_handle_probe_resp_data_notif()
[all …]
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 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 Dnotif.c75 return obj_id == _Generic((notif)->id_member, \
76 __le32: le32_to_cpu((notif)->id_member), \
77 __le16: le16_to_cpu((notif)->id_member), \
78 u8: (notif)->id_member); \
156 BUILD_BUG_ON(sizeof(notif->membership_status) != in iwl_mld_mu_mimo_iface_iterator()
158 BUILD_BUG_ON(sizeof(notif->user_position) != in iwl_mld_mu_mimo_iface_iterator()
166 (u8 *)&notif->membership_status, in iwl_mld_mu_mimo_iface_iterator()
167 (u8 *)&notif->user_position); in iwl_mld_mu_mimo_iface_iterator()
182 notif); in iwl_mld_handle_mu_mimo_grp_notif()
231 u32 link_id = le32_to_cpu(notif->link_id); in iwl_mld_handle_channel_switch_start_notif()
[all …]
H A Droc.c193 const struct iwl_roc_notif *notif = (void *)pkt->data; in iwl_mld_handle_roc_notif() local
194 u32 activity = le32_to_cpu(notif->activity); in iwl_mld_handle_roc_notif()
209 if (le32_to_cpu(notif->success) && in iwl_mld_handle_roc_notif()
210 le32_to_cpu(notif->started)) { in iwl_mld_handle_roc_notif()
215 if (le32_to_cpu(notif->started)) in iwl_mld_handle_roc_notif()
H A Dthermal.c21 const struct ct_kill_notif *notif = (const void *)pkt->data; in iwl_mld_handle_ct_kill_notif() local
25 le16_to_cpu(notif->temperature), notif->dts, in iwl_mld_handle_ct_kill_notif()
26 notif->scheme); in iwl_mld_handle_ct_kill_notif()
46 const struct iwl_dts_measurement_notif *notif = in iwl_mld_handle_temp_notif() local
51 temp = le32_to_cpu(notif->temp); in iwl_mld_handle_temp_notif()
57 ths_crossed = le32_to_cpu(notif->threshold_idx); in iwl_mld_handle_temp_notif()
/linux-6.15/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-6.15/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-6.15/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-6.15/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-6.15/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dscan.c254 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()
274 notif->channel, in iwl_rx_scan_results_notif()
275 notif->band ? "bg" : "a", in iwl_rx_scan_results_notif()
276 notif->probe_status, notif->num_probe_not_sent, in iwl_rx_scan_results_notif()
277 le32_to_cpu(notif->tsf_high), in iwl_rx_scan_results_notif()
278 le32_to_cpu(notif->tsf_low), in iwl_rx_scan_results_notif()
[all …]
/linux-6.15/kernel/
H A Dseccomp.c232 struct notification *notif; member
1102 return filter->notif->next_id++; in seccomp_next_notify_id()
1157 if (!match->notif) in seccomp_do_user_notification()
1229 if (match->notif) in seccomp_do_user_notification()
1437 kfree(filter->notif); in seccomp_notify_free()
1438 filter->notif = NULL; in seccomp_notify_free()
1691 filter->notif->flags = flags; in seccomp_notify_set_flags()
1880 filter->notif = kzalloc(sizeof(*(filter->notif)), GFP_KERNEL); in init_listener()
1881 if (!filter->notif) in init_listener()
1917 if (!new_child->notif) in has_duplicate_listener()
[all …]

1234