/linux-master/drivers/tee/optee/ |
H A D | notif.c | 25 list_for_each_entry(entry, &optee->notif.db, link) 38 if (key > optee->notif.max_key) 47 spin_lock_irqsave(&optee->notif.lock, flags); 53 if (test_bit(key, optee->notif.bitmap)) { 54 clear_bit(key, optee->notif.bitmap); 67 list_add_tail(&entry->link, &optee->notif.db); 72 spin_unlock_irqrestore(&optee->notif.lock, flags); 74 spin_lock_irqsave(&optee->notif.lock, flags); 78 spin_unlock_irqrestore(&optee->notif.lock, flags); 90 if (key > optee->notif [all...] |
H A D | Makefile | 5 optee-objs += notif.o
|
/linux-master/io_uring/ |
H A D | notif.c | 9 #include "notif.h" 12 static void io_notif_complete_tw_ext(struct io_kiocb *notif, struct io_tw_state *ts) argument 14 struct io_notif_data *nd = io_notif_to_data(notif); 15 struct io_ring_ctx *ctx = notif->ctx; 18 notif->cqe.res |= IORING_NOTIF_USAGE_ZC_COPIED; 24 io_req_task_complete(notif, ts); 31 struct io_kiocb *notif = cmd_to_io_kiocb(nd); local 34 __io_req_task_work_add(notif, IOU_F_TWQ_LAZY_WAKE); 51 void io_notif_set_extended(struct io_kiocb *notif) argument 53 struct io_notif_data *nd = io_notif_to_data(notif); 68 struct io_kiocb *notif; variable in typeref:struct:io_kiocb [all...] |
H A D | notif.h | 23 void io_notif_set_extended(struct io_kiocb *notif); 25 static inline struct io_notif_data *io_notif_to_data(struct io_kiocb *notif) argument 27 return io_kiocb_to_cmd(notif, struct io_notif_data); 30 static inline void io_notif_flush(struct io_kiocb *notif) 31 __must_hold(¬if->ctx->uring_lock) 33 struct io_notif_data *nd = io_notif_to_data(notif); 37 __io_req_task_work_add(notif, IOU_F_TWQ_LAZY_WAKE); 40 static inline int io_notif_account_mem(struct io_kiocb *notif, unsigned len) argument 42 struct io_ring_ctx *ctx = notif->ctx; 43 struct io_notif_data *nd = io_notif_to_data(notif); [all...] |
H A D | Makefile | 11 notif.o waitid.o register.o truncate.o
|
H A D | net.c | 17 #include "notif.h" 71 struct io_kiocb *notif; member in struct:io_sr_msg 1028 if (zc->notif) { 1029 io_notif_flush(zc->notif); 1030 zc->notif = NULL; 1041 struct io_kiocb *notif; local 1051 notif = zc->notif = io_alloc_notif(ctx); 1052 if (!notif) 1054 notif [all...] |
/linux-master/sound/aoa/core/ |
H A D | gpio-pmf.c | 74 struct gpio_notification *notif = local 77 mutex_lock(¬if->mutex); 78 if (notif->notify) 79 notif->notify(notif->data); 80 mutex_unlock(¬if->mutex); 124 struct gpio_notification *notif = data; local 126 schedule_delayed_work(¬if->work, 0); 134 struct gpio_notification *notif; local 142 notif [all...] |
H A D | gpio-feature.c | 212 struct gpio_notification *notif = local 215 mutex_lock(¬if->mutex); 216 if (notif->notify) 217 notif->notify(notif->data); 218 mutex_unlock(¬if->mutex); 303 struct gpio_notification *notif = data; local 305 schedule_delayed_work(¬if->work, 0); 315 struct gpio_notification *notif; local 323 notif [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | time-sync.c | 62 struct iwl_time_msmt_notify *notif = (void *)pkt->data; local 67 iwl_mvm_time_sync_find_skb(mvm, notif->peer_addr, 68 le32_to_cpu(notif->dialog_token)); 76 ts_10ns = iwl_mvm_get_64_bit(notif->t2_hi, notif->t2_lo); 81 ts_10ns = iwl_mvm_get_64_bit(notif->t3_hi, notif->t3_lo); 97 struct iwl_time_msmt_cfm_notify *notif = (void *)pkt->data; local 103 iwl_mvm_time_sync_find_skb(mvm, notif->peer_addr, 104 le32_to_cpu(notif [all...] |
H A D | time-event.c | 10 #include "fw/notif-wait.h" 219 struct iwl_time_event_notif *notif) 224 if (!notif->status) 229 if (!notif->status) 234 if (!notif->status) { 254 struct iwl_time_event_notif *notif, 277 !(trig_action_bitmap & le32_to_cpu(notif->action)) || 278 !(trig_status_bitmap & BIT(le32_to_cpu(notif->status)))) 284 le32_to_cpu(notif->action), 285 le32_to_cpu(notif 217 iwl_mvm_te_handle_notify_csa(struct iwl_mvm *mvm, struct iwl_mvm_time_event_data *te_data, struct iwl_time_event_notif *notif) argument 253 iwl_mvm_te_check_trigger(struct iwl_mvm *mvm, struct iwl_time_event_notif *notif, struct iwl_mvm_time_event_data *te_data) argument 297 iwl_mvm_te_handle_notif(struct iwl_mvm *mvm, struct iwl_mvm_time_event_data *te_data, struct iwl_time_event_notif *notif) argument 388 struct iwl_roc_notif *notif = (void *)pkt->data; local 403 iwl_mvm_aux_roc_te_handle_notif(struct iwl_mvm *mvm, struct iwl_time_event_notif *notif) argument 455 struct iwl_time_event_notif *notif = (void *)pkt->data; local 880 struct iwl_mvm_session_prot_notif *notif = (void *)pkt->data; local 1369 const u16 notif[] = { WIDE_ID(MAC_CONF_GROUP, SESSION_PROTECTION_NOTIF) }; local [all...] |
H A D | coex.c | 211 struct iwl_bt_coex_profile_notif *notif; member in struct:iwl_bt_iterator_data 428 bt_activity_grading = le32_to_cpu(data->notif->bt_activity_grading); 559 if (data->notif->wifi_loss_low_rssi == BT_OFF) 570 .notif = &mvm->last_bt_notif, 652 struct iwl_bt_coex_profile_notif *notif = (void *)pkt->data; local 655 IWL_DEBUG_COEX(mvm, "\tBT ci compliance %d\n", notif->bt_ci_compliance); 657 le32_to_cpu(notif->primary_ch_lut)); 659 le32_to_cpu(notif->secondary_ch_lut)); 661 le32_to_cpu(notif->bt_activity_grading)); 664 memcpy(&mvm->last_bt_notif, notif, sizeo [all...] |
H A D | rs-fw.c | 418 struct iwl_tlc_update_notif *notif; local 428 notif = (void *)pkt->data; 429 link_sta = rcu_dereference(mvm->fw_id_to_link_sta[notif->sta_id]); 430 sta = rcu_dereference(mvm->fw_id_to_mac_id[notif->sta_id]); 437 notif->sta_id); 445 notif->sta_id); 449 flags = le32_to_cpu(notif->flags); 455 link_sta->link_id, notif->sta_id); 467 le32_to_cpu(notif->rate)); 472 iwl_new_rate_from_v1(le32_to_cpu(notif [all...] |
H A D | rfi.c | 154 struct iwl_rfi_deactivate_notif *notif = (void *)pkt->data; local 156 IWL_INFO(mvm, "RFIm is deactivated, reason = %d\n", notif->reason);
|
/linux-master/drivers/platform/surface/ |
H A D | surface_aggregator_hub.c | 48 struct ssam_event_notifier notif; member in struct:ssam_hub 174 hub->notif.base.priority = INT_MAX; /* This notifier should run first. */ 175 hub->notif.base.fn = desc->ops.notify; 176 hub->notif.event.reg = desc->event.reg; 177 hub->notif.event.id = desc->event.id; 178 hub->notif.event.mask = desc->event.mask; 179 hub->notif.event.flags = SSAM_EVENT_SEQUENCED; 188 status = ssam_device_notifier_register(sdev, &hub->notif); 200 ssam_device_notifier_unregister(sdev, &hub->notif); 246 struct ssam_hub *hub = container_of(nf, struct ssam_hub, notif); [all...] |
H A D | surface_aggregator_tabletsw.c | 44 struct ssam_event_notifier notif; member in struct:ssam_tablet_sw 167 sw->notif.base.priority = 0; 168 sw->notif.base.fn = desc->ops.notify; 169 sw->notif.event.reg = desc->event.reg; 170 sw->notif.event.id = desc->event.id; 171 sw->notif.event.mask = desc->event.mask; 172 sw->notif.event.flags = SSAM_EVENT_SEQUENCED; 174 status = ssam_device_notifier_register(sdev, &sw->notif); 187 ssam_device_notifier_unregister(sdev, &sw->notif); 198 ssam_device_notifier_unregister(sdev, &sw->notif); [all...] |
H A D | surface_dtx.c | 169 struct ssam_event_notifier notif; member in struct:sdtx_device 623 struct sdtx_device *ddev = container_of(nf, struct sdtx_device, notif); 959 ddev->notif.base.priority = 1; 960 ddev->notif.base.fn = sdtx_notifier; 961 ddev->notif.event.reg = SSAM_EVENT_REGISTRY_SAM; 962 ddev->notif.event.id.target_category = SSAM_SSH_TC_BAS; 963 ddev->notif.event.id.instance = 0; 964 ddev->notif.event.mask = SSAM_EVENT_MASK_NONE; 965 ddev->notif.event.flags = SSAM_EVENT_SEQUENCED; 1019 status = ssam_notifier_register(ddev->ctrl, &ddev->notif); [all...] |
/linux-master/drivers/power/supply/ |
H A D | surface_charger.c | 57 struct ssam_event_notifier notif; member in struct:spwr_ac_device 108 ac = container_of(nf, struct spwr_ac_device, notif); 182 ac->notif.base.priority = 1; 183 ac->notif.base.fn = spwr_notify_ac; 184 ac->notif.event.reg = registry; 185 ac->notif.event.id.target_category = sdev->uid.category; 186 ac->notif.event.id.instance = 0; 187 ac->notif.event.mask = SSAM_EVENT_MASK_NONE; 188 ac->notif.event.flags = SSAM_EVENT_SEQUENCED; 219 return ssam_device_notifier_register(ac->sdev, &ac->notif); [all...] |
H A D | surface_battery.c | 128 struct ssam_event_notifier notif; member in struct:spwr_battery_device 345 struct spwr_battery_device *bat = container_of(nf, struct spwr_battery_device, notif); 729 bat->notif.base.priority = 1; 730 bat->notif.base.fn = spwr_notify_bat; 731 bat->notif.event.reg = registry; 732 bat->notif.event.id.target_category = sdev->uid.category; 733 bat->notif.event.id.instance = 0; /* need to register with instance 0 */ 734 bat->notif.event.mask = SSAM_EVENT_MASK_TARGET; 735 bat->notif.event.flags = SSAM_EVENT_SEQUENCED; 805 return ssam_device_notifier_register(bat->sdev, &bat->notif); [all...] |
/linux-master/drivers/hid/surface-hid/ |
H A D | surface_hid.c | 159 struct surface_hid_device *shid = container_of(nf, struct surface_hid_device, notif); 210 shid->notif.base.priority = 1; 211 shid->notif.base.fn = ssam_hid_event_fn; 212 shid->notif.event.reg = SSAM_EVENT_REGISTRY_REG(sdev->uid.target); 213 shid->notif.event.id.target_category = sdev->uid.category; 214 shid->notif.event.id.instance = sdev->uid.instance; 215 shid->notif.event.mask = SSAM_EVENT_MASK_STRICT; 216 shid->notif.event.flags = 0;
|
H A D | surface_kbd.c | 126 struct surface_hid_device *shid = container_of(nf, struct surface_hid_device, notif); 257 shid->notif.base.priority = 1; 258 shid->notif.base.fn = ssam_kbd_event_fn; 259 shid->notif.event.reg = SSAM_EVENT_REGISTRY_SAM; 260 shid->notif.event.id.target_category = shid->uid.category; 261 shid->notif.event.id.instance = shid->uid.instance; 262 shid->notif.event.mask = SSAM_EVENT_MASK_NONE; 263 shid->notif.event.flags = 0;
|
H A D | surface_hid_core.h | 66 struct ssam_event_notifier notif; member in struct:surface_hid_device
|
/linux-master/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | scan.c | 237 struct iwl_scanreq_notification *notif = (void *)pkt->data; local 239 IWL_DEBUG_SCAN(priv, "Scan request status = 0x%x\n", notif->status); 248 struct iwl_scanstart_notification *notif = (void *)pkt->data; local 250 priv->scan_start_tsf = le32_to_cpu(notif->tsf_low); 254 notif->channel, 255 notif->band ? "bg" : "a", 256 le32_to_cpu(notif->tsf_high), 257 le32_to_cpu(notif->tsf_low), 258 notif->status, notif 267 struct iwl_scanresults_notification *notif = (void *)pkt->data; local [all...] |
/linux-master/kernel/ |
H A D | seccomp.c | 212 * @notif: the struct that holds all notification related information 234 struct notification *notif; member in struct:seccomp_filter 1062 return filter->notif->next_id++; 1117 if (!match->notif) 1125 list_add_tail(&n.list, &match->notif->notifications); 1128 atomic_inc(&match->notif->requests); 1129 if (match->notif->flags & SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP) 1187 * keep track of the notif itself and make sure they match here. 1189 if (match->notif) 1403 kfree(filter->notif); [all...] |
/linux-master/drivers/net/ethernet/marvell/octeon_ep_vf/ |
H A D | octep_vf_mbox.c | 82 union octep_pfvf_mbox_word *notif; local 90 notif = (union octep_pfvf_mbox_word *)&pf_vf_data; 92 switch (notif->s.opcode) { 94 if (notif->s_link_status.status) { 106 "Received unsupported notif %d\n", notif->s.opcode);
|
/linux-master/drivers/media/pci/intel/ivsc/ |
H A D | mei_csi.c | 254 struct csi_notif notif = { 0 }; local 257 ret = mei_cldev_recv(cldev, (u8 *)¬if, sizeof(notif)); 263 switch (notif.cmd_id) { 265 if (notif.cont.cont < CSI_PRIVACY_MAX) { 266 csi->status = notif.cont.cont; 272 memcpy(&csi->cmd_response, ¬if, ret);
|