Home
last modified time | relevance | path

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

12

/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 …]
/linux/io_uring/
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.c20 #include "notif.h"
87 struct io_kiocb *notif;
1365 if (zc->notif) { in io_send_zc_cleanup()
1366 io_notif_flush(zc->notif); in io_send_zc_cleanup()
1367 zc->notif = NULL; in io_send_zc_cleanup()
1380 struct io_kiocb *notif; in io_send_zc_prep()
1392 notif = zc->notif = io_alloc_notif(ctx); in io_send_zc_prep()
1393 if (!notif) in io_send_zc_prep()
1399 notif in io_send_zc_prep()
86 struct io_kiocb *notif; global() member
1379 struct io_kiocb *notif; io_send_zc_prep() local
1502 struct io_kiocb *notif = sr->notif; io_send_zc_import() local
[all...]
H A Dzcrx.c937 const struct zcrx_event_desc *notif) in zcrx_validate_notif_stats()
939 size_t stats_off = notif->stats_offset; in zcrx_validate_notif_stats()
965 struct zcrx_event_desc notif; in io_register_zcrx()
1011 memset(&notif, 0, sizeof(notif)); in io_register_zcrx()
1012 if (reg.event_desc && copy_from_user(&notif, u64_to_user_ptr(reg.event_desc), in io_register_zcrx()
1013 sizeof(notif))) in io_register_zcrx()
1015 if (notif.type_mask & ~ZCRX_EVENT_TYPE_MASK) in io_register_zcrx()
1017 if (notif.flags & ~ZCRX_EVENT_DESC_FLAG_STATS) in io_register_zcrx()
1019 if (!(notif in io_register_zcrx()
936 zcrx_validate_notif_stats(struct io_zcrx_ifq * ifq,const struct io_uring_zcrx_ifq_reg * reg,const struct zcrx_event_desc * notif) zcrx_validate_notif_stats() argument
964 struct zcrx_event_desc notif; io_register_zcrx() local
[all...]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dtime-event.c231 struct iwl_time_event_notif *notif) in iwl_mvm_te_handle_notify_csa() argument
236 if (!notif->status) in iwl_mvm_te_handle_notify_csa()
241 if (!notif->status) in iwl_mvm_te_handle_notify_csa()
246 if (!notif->status) { in iwl_mvm_te_handle_notify_csa()
266 struct iwl_time_event_notif *notif, in iwl_mvm_te_check_trigger() argument
289 !(trig_action_bitmap & le32_to_cpu(notif->action)) || in iwl_mvm_te_check_trigger()
290 !(trig_status_bitmap & BIT(le32_to_cpu(notif->status)))) in iwl_mvm_te_check_trigger()
296 le32_to_cpu(notif->action), in iwl_mvm_te_check_trigger()
297 le32_to_cpu(notif->status)); in iwl_mvm_te_check_trigger()
311 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
426 notif = (void *)pkt->data; in iwl_mvm_tlc_update_notif()
427 if (IWL_FW_CHECK(mvm, notif->sta_id >= mvm->fw->ucode_capa.num_stations, in iwl_mvm_tlc_update_notif()
429 notif->sta_id)) in iwl_mvm_tlc_update_notif()
434 link_sta = rcu_dereference(mvm->fw_id_to_link_sta[notif->sta_id]); in iwl_mvm_tlc_update_notif()
435 sta = rcu_dereference(mvm->fw_id_to_mac_id[notif->sta_id]); in iwl_mvm_tlc_update_notif()
442 notif->sta_id); in iwl_mvm_tlc_update_notif()
448 flags = le32_to_cpu(notif->flags); in iwl_mvm_tlc_update_notif()
454 link_sta->link_id, notif->sta_id); in iwl_mvm_tlc_update_notif()
463 iwl_mvm_v3_rate_from_fw(notif->rate, mvm->fw_rates_ver); in iwl_mvm_tlc_update_notif()
[all …]
H A Dmac-ctxt.c1752 struct iwl_probe_resp_data_notif *notif = (void *)pkt->data; in iwl_mvm_probe_resp_data_notif() local
1754 u32 id = le32_to_cpu(notif->mac_id); in iwl_mvm_probe_resp_data_notif()
1759 notif->noa_active, notif->csa_counter); in iwl_mvm_probe_resp_data_notif()
1772 if (IWL_FW_CHECK(mvm, notif->noa_active && in iwl_mvm_probe_resp_data_notif()
1773 notif->noa_attr.len_low != 2 + in iwl_mvm_probe_resp_data_notif()
1775 notif->noa_attr.len_low != 2 + in iwl_mvm_probe_resp_data_notif()
1778 notif->noa_attr.len_low)) in iwl_mvm_probe_resp_data_notif()
1785 memcpy(&new_data->notif, notif, sizeof(new_data->notif)); in iwl_mvm_probe_resp_data_notif()
1789 sizeof(new_data->notif.noa_attr) - 1; in iwl_mvm_probe_resp_data_notif()
1795 if (new_data->notif.noa_attr.len_low == in iwl_mvm_probe_resp_data_notif()
[all …]
/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/net/wireless/intel/iwlwifi/mld/
H A Dd3.c48 const struct iwl_wowlan_all_rsc_tsc_v5 *notif; member
485 const struct iwl_wowlan_info_notif *notif, in iwl_mld_convert_mlo_keys() argument
488 if (!notif->num_mlo_link_keys) in iwl_mld_convert_mlo_keys()
491 wowlan_status->num_mlo_keys = notif->num_mlo_link_keys; in iwl_mld_convert_mlo_keys()
499 const struct iwl_wowlan_mlo_gtk *fw_mlo_key = &notif->mlo_gtks[i]; in iwl_mld_convert_mlo_keys()
521 struct iwl_wowlan_info_notif *notif) in iwl_mld_convert_wowlan_notif_v5() argument
524 BUILD_BUG_ON(ARRAY_SIZE(notif->gtk) != ARRAY_SIZE(notif_v5->gtk)); in iwl_mld_convert_wowlan_notif_v5()
528 struct iwl_wowlan_gtk_status *gtk = &notif->gtk[i]; in iwl_mld_convert_wowlan_notif_v5()
555 memcpy(&notif->igtk[0], &notif_v5->igtk[0], in iwl_mld_convert_wowlan_notif_v5()
563 notif->igtk[0].key_status = IWL_WOWLAN_STATUS_NEW_KEY; in iwl_mld_convert_wowlan_notif_v5()
[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 Dnotif.c73 const struct notif_struct *notif = (const void *)pkt->data; \
75 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); \
150 const struct iwl_mu_group_mgmt_notif *notif = _data; in iwl_mld_mu_mimo_iface_iterator() local
152 BUILD_BUG_ON(sizeof(notif->membership_status) != in iwl_mld_mu_mimo_iface_iterator()
154 BUILD_BUG_ON(sizeof(notif->user_position) != in iwl_mld_mu_mimo_iface_iterator()
162 (u8 *)&notif->membership_status, in iwl_mld_mu_mimo_iface_iterator()
163 (u8 *)&notif->user_position); in iwl_mld_mu_mimo_iface_iterator()
[all …]
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 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()
H A Dmcc.c281 struct iwl_mcc_chub_notif *notif = (void *)pkt->data; in iwl_mld_handle_update_mcc() local
290 notif->source_id == MCC_SOURCE_WIFI) { in iwl_mld_handle_update_mcc()
295 mcc[0] = le16_to_cpu(notif->mcc) >> 8; in iwl_mld_handle_update_mcc()
296 mcc[1] = le16_to_cpu(notif->mcc) & 0xff; in iwl_mld_handle_update_mcc()
298 src = notif->source_id; in iwl_mld_handle_update_mcc()
H A Dscan.c1995 struct iwl_umac_scan_iter_complete_notif *notif = (void *)pkt->data; in iwl_mld_handle_scan_iter_complete_notif() local
1996 u32 uid = __le32_to_cpu(notif->uid); in iwl_mld_handle_scan_iter_complete_notif()
2003 mld->scan.start_tsf = le64_to_cpu(notif->start_tsf); in iwl_mld_handle_scan_iter_complete_notif()
2007 notif->status, notif->scanned_channels); in iwl_mld_handle_scan_iter_complete_notif()
2017 le64_to_cpu(notif->start_tsf)); in iwl_mld_handle_scan_iter_complete_notif()
2030 struct iwl_umac_scan_complete *notif = (void *)pkt->data; in iwl_mld_handle_scan_start_notif() local
2031 u32 uid = le32_to_cpu(notif->uid); in iwl_mld_handle_scan_start_notif()
2054 struct iwl_umac_scan_complete *notif = (void *)pkt->data; in iwl_mld_handle_scan_complete_notif() local
2055 bool aborted = (notif->status == IWL_SCAN_OFFLOAD_ABORTED); in iwl_mld_handle_scan_complete_notif()
2056 u32 uid = __le32_to_cpu(notif->uid); in iwl_mld_handle_scan_complete_notif()
[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 …]
H A Dsurface_dtx.c169 struct ssam_event_notifier notif; member
622 struct sdtx_device *ddev = container_of(nf, struct sdtx_device, notif); in sdtx_notifier()
958 ddev->notif.base.priority = 1; in sdtx_device_init()
959 ddev->notif.base.fn = sdtx_notifier; in sdtx_device_init()
960 ddev->notif.event.reg = SSAM_EVENT_REGISTRY_SAM; in sdtx_device_init()
961 ddev->notif.event.id.target_category = SSAM_SSH_TC_BAS; in sdtx_device_init()
962 ddev->notif.event.id.instance = 0; in sdtx_device_init()
963 ddev->notif.event.mask = SSAM_EVENT_MASK_NONE; in sdtx_device_init()
964 ddev->notif.event.flags = SSAM_EVENT_SEQUENCED; in sdtx_device_init()
1018 status = ssam_notifier_register(ddev->ctrl, &ddev->notif); in sdtx_device_init()
[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/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/mailbox/
H A Driscv-sbi-mpxy-mbox.c385 struct sbi_mpxy_notification_data *notif; member
481 struct sbi_mpxy_notification_data *notif, in mpxy_mbox_peek_rpmi_data() argument
489 event = (struct rpmi_notification_event *)(notif->events_data + pos); in mpxy_mbox_peek_rpmi_data()
492 msg.notif.event_datalen = le16_to_cpu(event->event_datalen); in mpxy_mbox_peek_rpmi_data()
493 if (msg.notif.event_datalen > in mpxy_mbox_peek_rpmi_data()
496 msg.notif.event_id = event->event_id; in mpxy_mbox_peek_rpmi_data()
497 msg.notif.event_data = event->event_data; in mpxy_mbox_peek_rpmi_data()
501 pos += sizeof(*event) + msg.notif.event_datalen; in mpxy_mbox_peek_rpmi_data()
530 struct sbi_mpxy_notification_data *notif = mchan->notif; in mpxy_mbox_peek_data() local
539 rc = mpxy_get_notifications(mchan->channel_id, notif, &data_len); in mpxy_mbox_peek_data()
[all …]
/linux/drivers/net/ethernet/cisco/enic/
H A Denic_mbox.c223 struct enic_mbox_pf_link_state_notif_msg notif = {}; in enic_mbox_send_link_state() local
233 notif.link_state = cpu_to_le32(link_state); in enic_mbox_send_link_state()
235 &notif, sizeof(notif)); in enic_mbox_send_link_state()
444 struct enic_mbox_pf_link_state_notif_msg *notif = payload; in enic_mbox_vf_handle_link_state() local
446 u32 link_state = le32_to_cpu(notif->link_state); in enic_mbox_vf_handle_link_state()

12