| /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->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 …]
|
| H A D | v4l2-ctrls-api.c | 1277 static int v4l2_ctrl_add_event(struct v4l2_subscribed_event *sev, in v4l2_ctrl_add_event() argument 1280 struct v4l2_ctrl *ctrl = v4l2_ctrl_find(sev->fh->ctrl_handler, sev->id); in v4l2_ctrl_add_event() 1286 list_add_tail(&sev->node, &ctrl->ev_subs); in v4l2_ctrl_add_event() 1288 (sev->flags & V4L2_EVENT_SUB_FL_SEND_INITIAL)) in v4l2_ctrl_add_event() 1289 send_initial_event(sev->fh, ctrl); in v4l2_ctrl_add_event() 1294 static void v4l2_ctrl_del_event(struct v4l2_subscribed_event *sev) in v4l2_ctrl_del_event() argument 1296 struct v4l2_ctrl *ctrl = v4l2_ctrl_find(sev->fh->ctrl_handler, sev->id); in v4l2_ctrl_del_event() 1302 list_del(&sev->node); in v4l2_ctrl_del_event()
|
| /linux/drivers/crypto/ccp/ |
| H A D | sev-dev.c | 130 static void __sev_firmware_shutdown(struct sev_device *sev, bool panic); 141 struct sev_device *sev = psp_master->sev_data; in sev_version_greater_or_equal() local 143 if (sev->api_major > maj) in sev_version_greater_or_equal() 146 if (sev->api_major == maj && sev->api_minor >= min) in sev_version_greater_or_equal() 154 struct sev_device *sev = data; in sev_irq_handler() local 162 reg = ioread32(sev->io_regs + sev->vdata->cmdresp_reg); in sev_irq_handler() 164 sev->int_rcvd = 1; in sev_irq_handler() 165 wake_up(&sev->int_queue); in sev_irq_handler() 169 static int sev_wait_cmd_ioc(struct sev_device *sev, in sev_wait_cmd_ioc() argument 184 *reg = ioread32(sev->io_regs + sev->vdata->cmdresp_reg); in sev_wait_cmd_ioc() [all …]
|
| H A D | sev-dev-tsm.c | 208 static struct pci_tsm *tio_pf0_probe(struct pci_dev *pdev, struct sev_device *sev) in tio_pf0_probe() argument 216 rc = pci_tsm_pf0_constructor(pdev, &dsm->tsm, sev->tsmdev); in tio_pf0_probe() 221 dsm->sev = sev; in tio_pf0_probe() 227 struct sev_device *sev = tsm_dev_to_sev(tsmdev); in dsm_probe() local 230 return tio_pf0_probe(pdev, sev); in dsm_probe() 342 void sev_tsm_init_locked(struct sev_device *sev, void *tio_status_page) in sev_tsm_init_locked() argument 348 WARN_ON(sev->tio_status); in sev_tsm_init_locked() 359 tsmdev = tsm_register(sev->dev, &sev_tsm_ops); in sev_tsm_init_locked() 375 sev->tsmdev = tsmdev; in sev_tsm_init_locked() 376 sev->tio_status = t; in sev_tsm_init_locked() [all …]
|
| H A D | Makefile | 12 sev-dev.o \ 20 ccp-$(CONFIG_CRYPTO_DEV_SP_PSP) += sev-dev-tsm.o sev-dev-tio.o
|
| H A D | sev-dev.h | 82 void sev_tsm_init_locked(struct sev_device *sev, void *tio_status_page); 83 void sev_tsm_uninit(struct sev_device *sev);
|
| /linux/tools/testing/selftests/timers/ |
| H A D | posix_timers.c | 264 struct sigevent sev; in check_sig_ign() local 287 memset(&sev, 0, sizeof(sev)); in check_sig_ign() 288 sev.sigev_notify = SIGEV_SIGNAL; in check_sig_ign() 289 sev.sigev_signo = SIGUSR1; in check_sig_ign() 290 sev.sigev_value.sival_ptr = &tsig; in check_sig_ign() 292 sev.sigev_notify = SIGEV_THREAD_ID; in check_sig_ign() 293 sev._sigev_un._tid = tid; in check_sig_ign() 296 if (timer_create(CLOCK_MONOTONIC, &sev, &timerid)) in check_sig_ign() 349 struct sigevent sev; in check_rearm() local 365 memset(&sev, 0, sizeof(sev)); in check_rearm() [all …]
|
| /linux/include/ras/ |
| H A D | ras_event.h | 31 u8 sev), 33 TP_ARGS(mem, err_seq, fru_id, fru_text, sev), 38 __field(u8, sev) 52 __entry->sev = sev; 69 cper_severity_str(__entry->sev), 185 u8 sev, 188 TP_ARGS(proc, pei_err, pei_len, ctx_err, ctx_len, oem, oem_len, sev, cpu), 202 __field(u8, sev) 229 __entry->sev [all...] |
| /linux/arch/x86/kvm/svm/ |
| H A D | sev.c | 56 module_param_named(sev, sev_enabled, bool, 0444); 162 struct kvm_sev_info *sev = to_kvm_sev_info(vcpu->kvm); in sev_vcpu_has_debug_swap() local 164 return sev->vmsa_features & SVM_SEV_FEAT_DEBUG_SWAP; in sev_vcpu_has_debug_swap() 169 struct kvm_sev_info *sev = to_kvm_sev_info(kvm); in snp_is_secure_tsc_enabled() local 171 return (sev->vmsa_features & SVM_SEV_FEAT_SECURE_TSC) && in snp_is_secure_tsc_enabled() 189 static int sev_misc_cg_try_charge(struct kvm_sev_info *sev) in sev_misc_cg_try_charge() argument 191 enum misc_res_type type = sev->es_active ? MISC_CG_RES_SEV_ES : MISC_CG_RES_SEV; in sev_misc_cg_try_charge() 192 return misc_cg_try_charge(type, sev->misc_cg, 1); in sev_misc_cg_try_charge() 195 static void sev_misc_cg_uncharge(struct kvm_sev_info *sev) in sev_misc_cg_uncharge() argument 197 enum misc_res_type type = sev->es_active ? MISC_CG_RES_SEV_ES : MISC_CG_RES_SEV; in sev_misc_cg_uncharge() [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-snp [all …]
|
| /linux/sound/core/seq/ |
| H A D | seq_queue.c | 572 struct snd_seq_event sev; in queue_broadcast_event() local 574 sev = *ev; in queue_broadcast_event() 576 sev.flags = SNDRV_SEQ_TIME_STAMP_TICK|SNDRV_SEQ_TIME_MODE_ABS; in queue_broadcast_event() 577 sev.time.tick = q->timer->tick.cur_tick; in queue_broadcast_event() 578 sev.queue = q->queue; in queue_broadcast_event() 579 sev.data.queue.queue = q->queue; in queue_broadcast_event() 582 sev.source.client = SNDRV_SEQ_CLIENT_SYSTEM; in queue_broadcast_event() 583 sev.source.port = SNDRV_SEQ_PORT_SYSTEM_TIMER; in queue_broadcast_event() 584 sev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in queue_broadcast_event() 585 snd_seq_kernel_client_dispatch(SNDRV_SEQ_CLIENT_SYSTEM, &sev, atomic, hop); in queue_broadcast_event()
|
| /linux/include/media/ |
| H A D | v4l2-event.h | 33 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/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 575 if (sev != GHES_SEV_RECOVERABLE || sec_sev != GHES_SEV_RECOVERABLE) in ghes_handle_arm_hw_error() 709 int sev) in ghes_defer_non_standard_event() argument 722 entry->error_severity = sev; in ghes_defer_non_standard_event() 860 static void ghes_log_hwerr(int sev, guid_t *sec_type) in ghes_log_hwerr() argument 862 if (sev != CPER_SEV_RECOVERABLE) in ghes_log_hwerr() 897 int sev, sec_sev; in ghes_do_proc() local 905 sev = ghes_severity(estatus->error_severity); in ghes_do_proc() [all …]
|
| /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/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/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_cper.h | 73 enum cper_error_severity sev); 81 enum cper_error_severity sev,
|
| /linux/arch/um/os-Linux/ |
| H A D | time.c | 48 struct sigevent sev = { in os_timer_create() local 55 if (timer_create(CLOCK_MONOTONIC, &sev, t) == -1) in os_timer_create()
|
| /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";
|
| /linux/arch/arm/common/ |
| H A D | vlock.S | 39 sev 99 sev
|
| /linux/Documentation/translations/zh_CN/security/secrets/ |
| H A D | coco.rst | 91 请参见 [sev-api-spec_CN]_ 以获取有关SEV ``LAUNCH_SECRET`` 操作的更多信息。 95 .. [sev-api-spec_CN] https://www.amd.com/system/files/TechDocs/55766_SEV-KM_API_Specification.pdf
|
| /linux/drivers/virt/coco/sev-guest/ |
| H A D | Makefile | 2 obj-$(CONFIG_SEV_GUEST) += sev-guest.o
|
| /linux/arch/arm/mach-bcm/ |
| H A D | platsmp.c | 196 sev(); in kona_boot_secondary() 310 sev(); in bcm2836_boot_secondary()
|
| /linux/arch/x86/coco/ |
| H A D | Makefile | 9 obj-$(CONFIG_AMD_MEM_ENCRYPT) += sev/
|
| /linux/drivers/media/usb/uvc/ |
| H A D | uvc_ctrl.c | 1883 struct v4l2_subscribed_event *sev; in uvc_ctrl_send_event() local 1891 list_for_each_entry(sev, &mapping->ev_subs, node) { in uvc_ctrl_send_event() 1892 if (sev->fh != originator || in uvc_ctrl_send_event() 1893 (sev->flags & V4L2_EVENT_SUB_FL_ALLOW_FEEDBACK) || in uvc_ctrl_send_event() 1895 v4l2_event_queue_fh(sev->fh, &ev); in uvc_ctrl_send_event() 2122 static int uvc_ctrl_add_event(struct v4l2_subscribed_event *sev, unsigned elems) in uvc_ctrl_add_event() argument 2124 struct uvc_fh *handle = container_of(sev->fh, struct uvc_fh, vfh); in uvc_ctrl_add_event() 2133 if (__uvc_query_v4l2_class(handle->chain, sev->id, 0) >= 0) { in uvc_ctrl_add_event() 2138 ctrl = uvc_find_control(handle->chain, sev->id, &mapping); in uvc_ctrl_add_event() 2144 if (sev->flags & V4L2_EVENT_SUB_FL_SEND_INITIAL) { in uvc_ctrl_add_event() [all …]
|