/linux/drivers/media/v4l2-core/ |
H A D | v4l2-event.c | 21 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 in v4l2_event_subscribed() 105 struct v4l2_subscribed_event *sev; __v4l2_event_queue_fh() local 207 __v4l2_event_unsubscribe(struct v4l2_subscribed_event * sev) __v4l2_event_unsubscribe() argument 227 struct v4l2_subscribed_event *sev, *found_ev; v4l2_event_subscribe() local 280 struct v4l2_subscribed_event *sev; v4l2_event_unsubscribe_all() local 303 struct v4l2_subscribed_event *sev; v4l2_event_unsubscribe() local [all...] |
H A D | v4l2-ctrls-api.c | 1276 static int v4l2_ctrl_add_event(struct v4l2_subscribed_event *sev, in v4l2_ctrl_add_event() argument 1279 struct v4l2_ctrl *ctrl = v4l2_ctrl_find(sev->fh->ctrl_handler, sev->id); in v4l2_ctrl_add_event() 1285 list_add_tail(&sev->node, &ctrl->ev_subs); in v4l2_ctrl_add_event() 1287 (sev->flags & V4L2_EVENT_SUB_FL_SEND_INITIAL)) in v4l2_ctrl_add_event() 1288 send_initial_event(sev->fh, ctrl); in v4l2_ctrl_add_event() 1293 static void v4l2_ctrl_del_event(struct v4l2_subscribed_event *sev) in v4l2_ctrl_del_event() argument 1295 struct v4l2_ctrl *ctrl = v4l2_ctrl_find(sev->fh->ctrl_handler, sev->id); in v4l2_ctrl_del_event() 1301 list_del(&sev in v4l2_ctrl_del_event() [all...] |
/linux/drivers/crypto/ccp/ |
H A D | sev-dev.c | 35 #include <asm/sev.h> 39 #include "sev-dev.h" 41 #define DEVICE_NAME "sev" 42 #define SEV_FW_FILE "amd/sev.fw" 113 static void __sev_firmware_shutdown(struct sev_device *sev, bool panic); 124 struct sev_device *sev = psp_master->sev_data; in sev_version_greater_or_equal() local 126 if (sev->api_major > maj) in sev_version_greater_or_equal() 129 if (sev->api_major == maj && sev->api_minor >= min) in sev_version_greater_or_equal() 137 struct sev_device *sev in sev_irq_handler() local 152 sev_wait_cmd_ioc(struct sev_device * sev,unsigned int * reg,unsigned int timeout) sev_wait_cmd_ioc() argument 269 struct sev_device *sev = psp_master->sev_data; sev_read_init_ex_file() local 310 struct sev_device *sev = psp_master->sev_data; sev_write_init_ex_file() local 440 struct sev_device *sev; __snp_alloc_firmware_pages() local 474 struct sev_device *sev = psp_master->sev_data; __snp_free_firmware_pages() local 801 struct sev_device *sev = psp_master->sev_data; snp_legacy_handling_needed() local 846 struct sev_device *sev; __sev_do_cmd_locked() local 1110 struct sev_device *sev; __sev_snp_init_locked() local 1219 __sev_platform_init_handle_tmr(struct sev_device * sev) __sev_platform_init_handle_tmr() argument 1240 __sev_platform_init_handle_init_ex_path(struct sev_device * sev) __sev_platform_init_handle_init_ex_path() argument 1280 struct sev_device *sev; __sev_platform_init_locked() local 1342 struct sev_device *sev; _sev_platform_init_locked() local 1379 struct sev_device *sev; __sev_platform_shutdown_locked() local 1498 struct sev_device *sev = psp_master->sev_data; sev_ioctl_do_pek_pdh_gen() local 1521 struct sev_device *sev = psp_master->sev_data; sev_ioctl_do_pek_csr() local 1598 struct sev_device *sev = psp_master->sev_data; sev_get_api_version() local 1720 struct sev_device *sev; __sev_snp_shutdown_locked() local 1807 struct sev_device *sev = psp_master->sev_data; sev_ioctl_do_pek_import() local 1962 struct sev_device *sev = psp_master->sev_data; sev_ioctl_do_pdh_export() local 2058 struct sev_device *sev = psp_master->sev_data; sev_ioctl_do_snp_platform_status() local 2117 struct sev_device *sev = psp_master->sev_data; sev_ioctl_do_snp_commit() local 2140 struct sev_device *sev = psp_master->sev_data; sev_ioctl_do_snp_set_config() local 2170 struct sev_device *sev = psp_master->sev_data; sev_ioctl_do_snp_vlek_load() local 2330 sev_misc_init(struct sev_device * sev) sev_misc_init() argument 2373 struct sev_device *sev; sev_dev_init() local 2429 __sev_firmware_shutdown(struct sev_device * sev,bool panic) __sev_firmware_shutdown() argument 2469 sev_firmware_shutdown(struct sev_device * sev) sev_firmware_shutdown() argument 2487 struct sev_device *sev = psp->sev_data; sev_dev_destroy() local 2503 struct sev_device *sev = psp_master->sev_data; snp_shutdown_on_panic() local 2531 struct sev_device *sev = psp_master->sev_data; sev_pci_init() local 2565 struct sev_device *sev = psp_master->sev_data; sev_pci_exit() local [all...] |
/linux/tools/testing/selftests/timers/ |
H A D | posix_timers.c | 263 struct sigevent sev; in check_sig_ign() local 286 memset(&sev, 0, sizeof(sev)); in check_sig_ign() 287 sev.sigev_notify = SIGEV_SIGNAL; in check_sig_ign() 288 sev.sigev_signo = SIGUSR1; in check_sig_ign() 289 sev.sigev_value.sival_ptr = &tsig; in check_sig_ign() 291 sev.sigev_notify = SIGEV_THREAD_ID; in check_sig_ign() 292 sev._sigev_un._tid = tid; in check_sig_ign() 295 if (timer_create(CLOCK_MONOTONIC, &sev, &timerid)) in check_sig_ign() 348 struct sigevent sev; in check_rearm() local 404 struct sigevent sev; check_delete() local 460 struct sigevent sev; check_sigev_none() local 498 struct sigevent sev; check_gettime() local 553 struct sigevent sev; check_overrun() local [all...] |
/linux/arch/x86/kvm/svm/ |
H A D | sev.c | 16 #include <linux/psp-sev.h> 22 #include <uapi/linux/sev-guest.h> 30 #include <asm/sev.h> 47 module_param_named(sev, sev_enabled, bool, 0444); 145 struct kvm_sev_info *sev = to_kvm_sev_info(vcpu->kvm); in sev_vcpu_has_debug_swap() local 147 return sev->vmsa_features & SVM_SEV_FEAT_DEBUG_SWAP; in sev_vcpu_has_debug_swap() 164 static int sev_misc_cg_try_charge(struct kvm_sev_info *sev) in sev_misc_cg_try_charge() argument 166 enum misc_res_type type = sev->es_active ? MISC_CG_RES_SEV_ES : MISC_CG_RES_SEV; in sev_misc_cg_try_charge() 167 return misc_cg_try_charge(type, sev->misc_cg, 1); in sev_misc_cg_try_charge() 170 static void sev_misc_cg_uncharge(struct kvm_sev_info *sev) in sev_misc_cg_uncharge() argument 176 sev_asid_new(struct kvm_sev_info * sev) sev_asid_new() argument 234 sev_asid_free(struct kvm_sev_info * sev) sev_asid_free() argument 369 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); snp_guest_req_init() local 390 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); snp_guest_req_cleanup() local 406 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); __sev_guest_init() local 552 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); sev_issue_cmd() local 559 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); sev_launch_start() local 635 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); sev_pin_memory() local 837 struct kvm_sev_info *sev = to_kvm_sev_info(vcpu->kvm); sev_es_sync_vmsa() local 1704 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); sev_receive_start() local 2152 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); snp_bind_asid() local 2162 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); snp_launch_start() local 2229 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); sev_gmem_post_populate() local 2319 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); snp_launch_update() local 2403 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); snp_launch_update_vmsa() local 2451 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); snp_launch_finish() local 2646 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); sev_mem_enc_register_region() local 2699 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); find_enc_region() local 2824 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); snp_decommission_context() local 2849 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); sev_vm_destroy() local 3962 struct kvm_sev_info *sev = to_kvm_sev_info(svm->vcpu.kvm); sev_snp_ap_creation() local 4040 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); snp_handle_guest_req() local 4137 struct kvm_sev_info *sev = to_kvm_sev_info(vcpu->kvm); sev_handle_vmgexit_msr_protocol() local 4356 struct kvm_sev_info *sev = to_kvm_sev_info(vcpu->kvm); sev_handle_vmgexit() local 4485 struct kvm_sev_info *sev = to_kvm_sev_info(svm->vcpu.kvm); sev_es_init_vmcb() local 4564 struct kvm_sev_info *sev = to_kvm_sev_info(vcpu->kvm); sev_es_vcpu_reset() local 4842 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); sev_gmem_prepare() local 4969 struct kvm_sev_info *sev; sev_decrypt_vmsa() local [all...] |
/linux/Documentation/virt/coco/ |
H A D | sev-guest.rst | 40 The guest ioctl should be issued on a file descriptor of the /dev/sev-guest 60 /* bits[63:32]: VMM error code, bits[31:0] firmware error code (see psp-sev.h) */ 70 The host ioctls are issued to a file descriptor of the /dev/sev device. 82 /* Firmware error code on failure (see psp-sev.h) */ 90 :Technology: sev-snp 105 :Technology: sev-snp 124 :Technology: sev-snp 146 :Technology: sev-snp 157 :Technology: sev-snp 168 :Technology: sev [all...] |
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_cper.c | 58 enum cper_error_severity sev) in amdgpu_cper_entry_fill_hdr() argument 68 hdr->error_severity = sev; in amdgpu_cper_entry_fill_hdr() 97 if (sev == CPER_SEV_NON_FATAL_CORRECTED) in amdgpu_cper_entry_fill_hdr() 114 enum cper_error_severity sev, in amdgpu_cper_entry_fill_section_desc() argument 125 section_desc->severity = sev; in amdgpu_cper_entry_fill_section_desc() 169 enum cper_error_severity sev, in amdgpu_cper_entry_fill_runtime_section() argument 177 poison = (sev == CPER_SEV_NON_FATAL_CORRECTED) ? false : true; in amdgpu_cper_entry_fill_runtime_section() 183 sev, RUNTIME, NONSTD_SEC_LEN, in amdgpu_cper_entry_fill_runtime_section() 363 enum cper_error_severity sev = CPER_SEV_NON_FATAL_CORRECTED; in amdgpu_cper_generate_ce_records() local 381 sev in amdgpu_cper_generate_ce_records() [all...] |
H A D | amdgpu_cper.h | 73 enum cper_error_severity sev); 81 enum cper_error_severity sev,
|
/linux/sound/core/seq/ |
H A D | seq_queue.c | 595 struct snd_seq_event sev; in queue_broadcast_event() local 597 sev = *ev; in queue_broadcast_event() 599 sev.flags = SNDRV_SEQ_TIME_STAMP_TICK|SNDRV_SEQ_TIME_MODE_ABS; in queue_broadcast_event() 600 sev.time.tick = q->timer->tick.cur_tick; in queue_broadcast_event() 601 sev.queue = q->queue; in queue_broadcast_event() 602 sev.data.queue.queue = q->queue; in queue_broadcast_event() 605 sev.source.client = SNDRV_SEQ_CLIENT_SYSTEM; in queue_broadcast_event() 606 sev.source.port = SNDRV_SEQ_PORT_SYSTEM_TIMER; in queue_broadcast_event() 607 sev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in queue_broadcast_event() 608 snd_seq_kernel_client_dispatch(SNDRV_SEQ_CLIENT_SYSTEM, &sev, atomi in queue_broadcast_event() [all...] |
/linux/arch/x86/kernel/acpi/ |
H A D | apei.c | 40 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/include/linux/ |
H A D | ras.h | 26 const u8 sev, const u8 *err, const u32 len); 33 const u8 sev, const u8 *err, const u32 len) in log_non_standard_event() argument
|
/linux/drivers/ras/ |
H A D | ras.c | 49 const char *fru_text, const u8 sev, const u8 *err, in log_non_standard_event() argument 52 trace_non_standard_event(sec_type, fru_id, fru_text, sev, err, len); in log_non_standard_event()
|
/linux/arch/arm64/kernel/ |
H A D | smp_spin_table.c | 100 sev(); in smp_spin_table_cpu_prepare() 117 sev(); in smp_spin_table_cpu_boot()
|
/linux/drivers/pci/pcie/ |
H A D | dpc.c | 193 u32 status, mask, sev, syserr, exc, log; in dpc_process_rp_pio_error() local 202 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SEVERITY, &sev); in dpc_process_rp_pio_error() 206 sev, syserr, exc); in dpc_process_rp_pio_error() 240 u32 status, mask, sev; in dpc_get_aer_uncorrect_severity() local 248 pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, &sev); in dpc_get_aer_uncorrect_severity() 249 status &= sev; in dpc_get_aer_uncorrect_severity()
|
/linux/drivers/acpi/apei/ |
H A D | ghes.c | 532 int sev, bool sync) in ghes_handle_memory_failure() argument 545 if (sev == GHES_SEV_RECOVERABLE && sec_sev == GHES_SEV_RECOVERABLE) in ghes_handle_memory_failure() 555 int sev, bool sync) in ghes_handle_arm_hw_error() argument 566 if (sev != GHES_SEV_RECOVERABLE || sec_sev != GHES_SEV_RECOVERABLE) in ghes_handle_arm_hw_error() 683 int sev) in ghes_defer_non_standard_event() argument 696 entry->error_severity = sev; in ghes_defer_non_standard_event() 873 int sev, sec_sev; in ghes_do_proc() local 881 sev = ghes_severity(estatus->error_severity); in ghes_do_proc() 894 atomic_notifier_call_chain(&ghes_report_chain, sev, mem_err); in ghes_do_proc() 896 arch_apei_report_mem_error(sev, mem_er in ghes_do_proc() 1305 int sev, rc; ghes_in_nmi_queue_one_entry() local [all...] |
/linux/drivers/s390/char/ |
H A D | tape_3590.h | 95 unsigned int sev:2; member 107 unsigned int sev:2; member
|
/linux/Documentation/security/secrets/ |
H A D | coco.rst | 37 ``KVM_SEV_LAUNCH_SECRET`` command (see [sev]_). The structure of the injected 99 See [sev-api-spec]_ for more info regarding SEV ``LAUNCH_SECRET`` operation. 101 .. [sev] Documentation/virt/kvm/x86/amd-memory-encryption.rst citation in References 103 .. [sev-api-spec] https://www.amd.com/system/files/TechDocs/55766_SEV-KM_API_Specification.pdf
|
/linux/arch/riscv/boot/dts/microchip/ |
H A D | mpfs-sev-kit.dts | 7 #include "mpfs-sev-kit-fabric.dtsi" 13 compatible = "microchip,mpfs-sev-kit", "microchip,mpfs";
|
H A D | Makefile | 6 dtb-$(CONFIG_ARCH_MICROCHIP_POLARFIRE) += mpfs-sev-kit.dtb
|
/linux/arch/arm/common/ |
H A D | vlock.S | 39 sev 99 sev
|
/linux/drivers/virt/coco/sev-guest/ |
H A D | Makefile | 2 obj-$(CONFIG_SEV_GUEST) += sev-guest.o
|
/linux/arch/x86/virt/svm/ |
H A D | Makefile | 3 obj-$(CONFIG_KVM_AMD_SEV) += sev.o
|
/linux/arch/x86/coco/sev/ |
H A D | Makefile | 3 obj-y += core.o sev-nmi.o vc-handle.o
|
/linux/drivers/virt/coco/ |
H A D | Makefile | 7 obj-$(CONFIG_SEV_GUEST) += sev-guest/
|
/linux/arch/arm/mach-bcm/ |
H A D | platsmp.c | 196 sev(); in kona_boot_secondary() 310 sev(); in bcm2836_boot_secondary()
|