Home
last modified time | relevance | path

Searched refs:sev (Results 1 – 25 of 48) sorted by relevance

12

/Linux-v5.15/drivers/media/v4l2-core/
Dv4l2-event.c21 static unsigned int sev_pos(const struct v4l2_subscribed_event *sev, unsigned int idx) in sev_pos() argument
23 idx += sev->first; in sev_pos()
24 return idx >= sev->elems ? idx - sev->elems : idx; in sev_pos()
51 kev->sev->first = sev_pos(kev->sev, 1); in __v4l2_event_dequeue()
52 kev->sev->in_use--; in __v4l2_event_dequeue()
91 struct v4l2_subscribed_event *sev; in v4l2_event_subscribed() local
95 list_for_each_entry(sev, &fh->subscribed, list) in v4l2_event_subscribed()
96 if (sev->type == type && sev->id == id) in v4l2_event_subscribed()
97 return sev; in v4l2_event_subscribed()
105 struct v4l2_subscribed_event *sev; in __v4l2_event_queue_fh() local
[all …]
Dv4l2-ctrls-api.c1143 static int v4l2_ctrl_add_event(struct v4l2_subscribed_event *sev, in v4l2_ctrl_add_event() argument
1146 struct v4l2_ctrl *ctrl = v4l2_ctrl_find(sev->fh->ctrl_handler, sev->id); in v4l2_ctrl_add_event()
1152 list_add_tail(&sev->node, &ctrl->ev_subs); in v4l2_ctrl_add_event()
1154 (sev->flags & V4L2_EVENT_SUB_FL_SEND_INITIAL)) in v4l2_ctrl_add_event()
1155 send_initial_event(sev->fh, ctrl); in v4l2_ctrl_add_event()
1160 static void v4l2_ctrl_del_event(struct v4l2_subscribed_event *sev) in v4l2_ctrl_del_event() argument
1162 struct v4l2_ctrl *ctrl = v4l2_ctrl_find(sev->fh->ctrl_handler, sev->id); in v4l2_ctrl_del_event()
1168 list_del(&sev->node); in v4l2_ctrl_del_event()
/Linux-v5.15/drivers/crypto/ccp/
Dsev-dev.c63 struct sev_device *sev = psp_master->sev_data; in sev_version_greater_or_equal() local
65 if (sev->api_major > maj) in sev_version_greater_or_equal()
68 if (sev->api_major == maj && sev->api_minor >= min) in sev_version_greater_or_equal()
76 struct sev_device *sev = data; in sev_irq_handler() local
84 reg = ioread32(sev->io_regs + sev->vdata->cmdresp_reg); in sev_irq_handler()
86 sev->int_rcvd = 1; in sev_irq_handler()
87 wake_up(&sev->int_queue); in sev_irq_handler()
91 static int sev_wait_cmd_ioc(struct sev_device *sev, in sev_wait_cmd_ioc() argument
96 ret = wait_event_timeout(sev->int_queue, in sev_wait_cmd_ioc()
97 sev->int_rcvd, timeout * HZ); in sev_wait_cmd_ioc()
[all …]
DMakefile12 sev-dev.o \
Dsp-pci.c304 .sev = &sevv1,
311 .sev = &sevv2,
/Linux-v5.15/arch/x86/kvm/svm/
Dsev.c49 module_param_named(sev, sev_enabled, bool, 0444);
123 static int sev_asid_new(struct kvm_sev_info *sev) in sev_asid_new() argument
129 type = sev->es_active ? MISC_CG_RES_SEV_ES : MISC_CG_RES_SEV; in sev_asid_new()
130 WARN_ON(sev->misc_cg); in sev_asid_new()
131 sev->misc_cg = get_current_misc_cg(); in sev_asid_new()
132 ret = misc_cg_try_charge(type, sev->misc_cg, 1); in sev_asid_new()
134 put_misc_cg(sev->misc_cg); in sev_asid_new()
135 sev->misc_cg = NULL; in sev_asid_new()
145 min_asid = sev->es_active ? 1 : min_sev_asid; in sev_asid_new()
146 max_asid = sev->es_active ? min_sev_asid - 1 : max_sev_asid; in sev_asid_new()
[all …]
Dsvm.h229 struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info; in sev_guest() local
231 return sev->active; in sev_guest()
240 struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info; in sev_es_guest() local
242 return sev_guest(kvm) && sev->es_active; in sev_es_guest()
/Linux-v5.15/include/ras/
Dras_event.h32 u8 sev),
34 TP_ARGS(mem, err_seq, fru_id, fru_text, sev),
39 __field(u8, sev)
53 __entry->sev = sev;
70 cper_severity_str(__entry->sev),
224 const u8 sev,
228 TP_ARGS(sec_type, fru_id, fru_text, sev, err, len),
234 __field(u8, sev)
243 __entry->sev = sev;
249 __entry->sev, __entry->sec_type,
/Linux-v5.15/include/media/
Dv4l2-event.h33 struct v4l2_subscribed_event *sev; member
47 int (*add)(struct v4l2_subscribed_event *sev, unsigned int elems);
48 void (*del)(struct v4l2_subscribed_event *sev);
/Linux-v5.15/sound/core/seq/
Dseq_queue.c622 struct snd_seq_event sev; in queue_broadcast_event() local
624 sev = *ev; in queue_broadcast_event()
626 sev.flags = SNDRV_SEQ_TIME_STAMP_TICK|SNDRV_SEQ_TIME_MODE_ABS; in queue_broadcast_event()
627 sev.time.tick = q->timer->tick.cur_tick; in queue_broadcast_event()
628 sev.queue = q->queue; in queue_broadcast_event()
629 sev.data.queue.queue = q->queue; in queue_broadcast_event()
632 sev.source.client = SNDRV_SEQ_CLIENT_SYSTEM; in queue_broadcast_event()
633 sev.source.port = SNDRV_SEQ_PORT_SYSTEM_TIMER; in queue_broadcast_event()
634 sev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in queue_broadcast_event()
635 snd_seq_kernel_client_dispatch(SNDRV_SEQ_CLIENT_SYSTEM, &sev, atomic, hop); in queue_broadcast_event()
/Linux-v5.15/include/linux/
Dras.h26 const u8 sev, const u8 *err, const u32 len);
32 const u8 sev, const u8 *err, const u32 len) in log_non_standard_event() argument
/Linux-v5.15/arch/x86/kernel/acpi/
Dapei.c40 void arch_apei_report_mem_error(int sev, struct cper_sec_mem_err *mem_err) in arch_apei_report_mem_error() argument
43 apei_mce_report_mem_error(sev, mem_err); in arch_apei_report_mem_error()
/Linux-v5.15/drivers/acpi/apei/
Dghes.c464 int sev) in ghes_handle_memory_failure() argument
477 if (sev == GHES_SEV_RECOVERABLE && sec_sev == GHES_SEV_RECOVERABLE) in ghes_handle_memory_failure()
486 static bool ghes_handle_arm_hw_error(struct acpi_hest_generic_data *gdata, int sev) in ghes_handle_arm_hw_error() argument
496 if (sev != GHES_SEV_RECOVERABLE || sec_sev != GHES_SEV_RECOVERABLE) in ghes_handle_arm_hw_error()
606 int sev) in ghes_defer_non_standard_event() argument
619 entry->error_severity = sev; in ghes_defer_non_standard_event()
628 int sev, sec_sev; in ghes_do_proc() local
635 sev = ghes_severity(estatus->error_severity); in ghes_do_proc()
648 ghes_edac_report_mem_error(sev, mem_err); in ghes_do_proc()
650 arch_apei_report_mem_error(sev, mem_err); in ghes_do_proc()
[all …]
/Linux-v5.15/drivers/pci/pcie/
Ddpc.c190 u32 status, mask, sev, syserr, exc, dw0, dw1, dw2, dw3, log, prefix; in dpc_process_rp_pio_error() local
198 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SEVERITY, &sev); in dpc_process_rp_pio_error()
202 sev, syserr, exc); in dpc_process_rp_pio_error()
245 u32 status, mask, sev; in dpc_get_aer_uncorrect_severity() local
253 pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, &sev); in dpc_get_aer_uncorrect_severity()
254 status &= sev; in dpc_get_aer_uncorrect_severity()
Daer.c252 u32 status, sev; in pci_aer_clear_nonfatal_status() local
259 pci_read_config_dword(dev, aer + PCI_ERR_UNCOR_SEVER, &sev); in pci_aer_clear_nonfatal_status()
260 status &= ~sev; in pci_aer_clear_nonfatal_status()
271 u32 status, sev; in pci_aer_clear_fatal_status() local
278 pci_read_config_dword(dev, aer + PCI_ERR_UNCOR_SEVER, &sev); in pci_aer_clear_fatal_status()
279 status &= sev; in pci_aer_clear_fatal_status()
/Linux-v5.15/drivers/ras/
Dras.c18 const char *fru_text, const u8 sev, const u8 *err, in log_non_standard_event() argument
21 trace_non_standard_event(sec_type, fru_id, fru_text, sev, err, len); in log_non_standard_event()
/Linux-v5.15/arch/arm64/kernel/
Dsmp_spin_table.c100 sev(); in smp_spin_table_cpu_prepare()
117 sev(); in smp_spin_table_cpu_boot()
/Linux-v5.15/include/acpi/
Dghes.h79 void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err);
86 static inline void ghes_edac_report_mem_error(int sev, in ghes_edac_report_mem_error() argument
Dapei.h53 void arch_apei_report_mem_error(int sev, struct cper_sec_mem_err *mem_err);
/Linux-v5.15/drivers/s390/char/
Dtape_3590.h95 unsigned int sev:2; member
107 unsigned int sev:2; member
/Linux-v5.15/arch/arm/common/
Dvlock.S37 sev
97 sev
/Linux-v5.15/arch/x86/kernel/cpu/mce/
Dseverity.c41 unsigned char sev; member
53 #define MCESEV(s, m, c...) { .sev = MCE_ ## s ## _SEVERITY, .msg = m, ## c }
402 if (s->sev >= MCE_UC_SEVERITY && ctx == IN_KERNEL) { in mce_severity_intel()
406 return s->sev; in mce_severity_intel()
/Linux-v5.15/arch/arm/mach-bcm/
Dplatsmp.c196 sev(); in kona_boot_secondary()
310 sev(); in bcm2836_boot_secondary()
/Linux-v5.15/drivers/media/usb/uvc/
Duvc_ctrl.c1246 struct v4l2_subscribed_event *sev; in uvc_ctrl_send_event() local
1254 list_for_each_entry(sev, &mapping->ev_subs, node) { in uvc_ctrl_send_event()
1255 if (sev->fh != originator || in uvc_ctrl_send_event()
1256 (sev->flags & V4L2_EVENT_SUB_FL_ALLOW_FEEDBACK) || in uvc_ctrl_send_event()
1258 v4l2_event_queue_fh(sev->fh, &ev); in uvc_ctrl_send_event()
1418 static int uvc_ctrl_add_event(struct v4l2_subscribed_event *sev, unsigned elems) in uvc_ctrl_add_event() argument
1420 struct uvc_fh *handle = container_of(sev->fh, struct uvc_fh, vfh); in uvc_ctrl_add_event()
1429 ctrl = uvc_find_control(handle->chain, sev->id, &mapping); in uvc_ctrl_add_event()
1435 list_add_tail(&sev->node, &mapping->ev_subs); in uvc_ctrl_add_event()
1436 if (sev->flags & V4L2_EVENT_SUB_FL_SEND_INITIAL) { in uvc_ctrl_add_event()
[all …]
/Linux-v5.15/arch/arm/include/asm/
Dbarrier.h11 #define sev() __asm__ __volatile__ ("sev" : : : "memory") macro

12