| /linux/drivers/gpu/drm/amd/display/dc/basics/ |
| H A D | vector.c | 30 struct vector *vector, in dal_vector_construct() argument 35 vector->container = NULL; in dal_vector_construct() 43 vector->container = kcalloc(capacity, struct_size, GFP_KERNEL); in dal_vector_construct() 44 if (vector->container == NULL) in dal_vector_construct() 46 vector->capacity = capacity; in dal_vector_construct() 47 vector->struct_size = struct_size; in dal_vector_construct() 48 vector->count = 0; in dal_vector_construct() 49 vector->ctx = ctx; in dal_vector_construct() 53 static bool dal_vector_presized_costruct(struct vector *vector, in dal_vector_presized_costruct() argument 61 vector->container = NULL; in dal_vector_presized_costruct() [all …]
|
| /linux/drivers/gpu/drm/amd/display/include/ |
| H A D | vector.h | 29 struct vector { struct 38 struct vector *vector, argument 43 struct vector *dal_vector_create( 50 struct vector *dal_vector_presized_create( 57 struct vector *vector); 60 struct vector **vector); 63 const struct vector *vector); 73 struct vector *vector, 78 struct vector *vector, 83 const struct vector *vector, [all …]
|
| /linux/arch/x86/hyperv/ |
| H A D | hv_apic.c | 56 void hv_enable_coco_interrupt(unsigned int cpu, unsigned int vector, bool set) in hv_enable_coco_interrupt() argument 58 apic_update_vector(cpu, vector, set); in hv_enable_coco_interrupt() 112 static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector, in __send_ipi_mask_ex() argument 129 ipi_arg->vector = vector; in __send_ipi_mask_ex() 167 static bool __send_ipi_mask(const struct cpumask *mask, int vector, in __send_ipi_mask() argument 175 trace_hyperv_send_ipi_mask(mask, vector); in __send_ipi_mask() 194 if (vector < HV_IPI_LOW_VECTOR || vector > HV_IPI_HIGH_VECTOR) in __send_ipi_mask() 210 ipi_arg.vector = vector; in __send_ipi_mask() 230 status = hv_do_fast_hypercall16(HVCALL_SEND_IPI, ipi_arg.vector, in __send_ipi_mask() 235 return __send_ipi_mask_ex(mask, vector, exclude_self); in __send_ipi_mask() [all …]
|
| /linux/arch/x86/include/asm/trace/ |
| H A D | irq_vectors.h | 14 TP_PROTO(int vector), 16 TP_ARGS(vector), 19 __field( int, vector ) 23 __entry->vector = vector; 26 TP_printk("vector=%d", __entry->vector) ); 30 TP_PROTO(int vector), \ 31 TP_ARGS(vector), NULL, NULL); \ 33 TP_PROTO(int vector), \ 34 TP_ARGS(vector), NULL, NULL); 127 TP_PROTO(unsigned int irq, unsigned int vector, [all …]
|
| H A D | hyperv.h | 61 int vector), 62 TP_ARGS(cpus, vector), 65 __field(int, vector) 68 __entry->vector = vector; 71 __entry->ncpus, __entry->vector) 76 int vector), 77 TP_ARGS(cpu, vector), 80 __field(int, vector) 83 __entry->vector = vector; 86 __entry->cpu, __entry->vector)
|
| /linux/arch/x86/kernel/apic/ |
| H A D | x2apic_savic.c | 37 unsigned int vector, bool set) in update_vector() argument 42 apic_set_vector(vector, bitmap); in update_vector() 44 apic_clear_vector(vector, bitmap); in update_vector() 131 static inline void self_ipi_reg_write(unsigned int vector) in self_ipi_reg_write() argument 133 native_apic_msr_write(APIC_SELF_IPI, vector); in self_ipi_reg_write() 136 static void send_ipi_dest(unsigned int cpu, unsigned int vector, bool nmi) in send_ipi_dest() argument 141 update_vector(cpu, APIC_IRR, vector, true); in send_ipi_dest() 144 static void send_ipi_allbut(unsigned int vector, bool nmi) in send_ipi_allbut() argument 155 send_ipi_dest(cpu, vector, nmi); in send_ipi_allbut() 159 static inline void self_ipi(unsigned int vector, bool nmi) in self_ipi() argument [all …]
|
| H A D | vector.c | 28 unsigned int vector; member 128 static void apic_update_irq_cfg(struct irq_data *irqd, unsigned int vector, in apic_update_irq_cfg() argument 135 apicd->hw_irq_cfg.vector = vector; in apic_update_irq_cfg() 138 apic_update_vector(cpu, vector, true); in apic_update_irq_cfg() 141 trace_vector_config(irqd->irq, vector, cpu, apicd->hw_irq_cfg.dest_apicid); in apic_update_irq_cfg() 144 static void apic_free_vector(unsigned int cpu, unsigned int vector, bool managed) in apic_free_vector() argument 146 apic_update_vector(cpu, vector, false); in apic_free_vector() 147 irq_matrix_free(vector_matrix, cpu, vector, managed); in apic_free_vector() 158 trace_vector_update(irqd->irq, newvec, newcpu, apicd->vector, in chip_data_update() 168 if (!apicd->vector || apicd->vector == MANAGED_IRQ_SHUTDOWN_VECTOR) in chip_data_update() [all …]
|
| /linux/drivers/net/wireless/ti/wl12xx/ |
| H A D | event.c | 37 u32 vector; in wl12xx_process_mailbox_events() local 40 vector = le32_to_cpu(mbox->events_vector); in wl12xx_process_mailbox_events() 41 vector &= ~(le32_to_cpu(mbox->events_mask)); in wl12xx_process_mailbox_events() 43 wl1271_debug(DEBUG_EVENT, "MBOX vector: 0x%x", vector); in wl12xx_process_mailbox_events() 45 if (vector & SCAN_COMPLETE_EVENT_ID) { in wl12xx_process_mailbox_events() 53 if (vector & PERIODIC_SCAN_REPORT_EVENT_ID) { in wl12xx_process_mailbox_events() 61 if (vector & PERIODIC_SCAN_COMPLETE_EVENT_ID) in wl12xx_process_mailbox_events() 64 if (vector & SOFT_GEMINI_SENSE_EVENT_ID) in wl12xx_process_mailbox_events() 68 if (vector & BSS_LOSE_EVENT_ID) in wl12xx_process_mailbox_events() 71 if (vector & RSSI_SNR_TRIGGER_0_EVENT_ID) in wl12xx_process_mailbox_events() [all …]
|
| /linux/arch/x86/entry/ |
| H A D | entry_fred.c | 17 /* FRED EVENT_TYPE_OTHER vector numbers */ 30 "vector %u error 0x%lx aux 0x%lx at %04x:%016lx\n", in fred_bad_type() 31 regs->fred_ss.type, regs->fred_ss.vector, error_code, in fred_bad_type() 40 "vector %u error 0x%lx aux 0x%lx at %04x:%016lx\n", in fred_bad_type() 41 regs->fred_ss.type, regs->fred_ss.vector, error_code, in fred_bad_type() 56 switch (regs->fred_ss.vector) { in fred_intx() 81 if (likely(regs->fred_ss.vector == FRED_SYSCALL && regs->fred_ss.l)) { in fred_other() 87 likely(regs->fred_ss.vector == FRED_SYSENTER && !regs->fred_ss.l)) { in fred_other() 141 spurious_interrupt(regs, regs->fred_ss.vector); in fred_handle_spurious_interrupt() 146 unsigned int vector; in fred_complete_exception_setup() local 162 unsigned int vector = regs->fred_ss.vector; fred_extint() local [all...] |
| /linux/drivers/net/wireless/ti/wl18xx/ |
| H A D | event.c | 119 u32 vector; in wl18xx_process_mailbox_events() local 121 vector = le32_to_cpu(mbox->events_vector); in wl18xx_process_mailbox_events() 122 wl1271_debug(DEBUG_EVENT, "MBOX vector: 0x%x", vector); in wl18xx_process_mailbox_events() 124 if (vector & SCAN_COMPLETE_EVENT_ID) { in wl18xx_process_mailbox_events() 132 if (vector & TIME_SYNC_EVENT_ID) in wl18xx_process_mailbox_events() 139 if (vector & RADAR_DETECTED_EVENT_ID) { in wl18xx_process_mailbox_events() 148 if (vector & PERIODIC_SCAN_REPORT_EVENT_ID) { in wl18xx_process_mailbox_events() 156 if (vector & PERIODIC_SCAN_COMPLETE_EVENT_ID) in wl18xx_process_mailbox_events() 159 if (vector & RSSI_SNR_TRIGGER_0_EVENT_ID) in wl18xx_process_mailbox_events() 162 if (vector & BA_SESSION_RX_CONSTRAINT_EVENT_ID) in wl18xx_process_mailbox_events() [all …]
|
| /linux/arch/riscv/kvm/ |
| H A D | vcpu_vector.c | 26 cntx->vector.vlenb = riscv_v_vsize / 32; in kvm_riscv_vcpu_vector_reset() 30 WARN_ON(!cntx->vector.datap); in kvm_riscv_vcpu_vector_reset() 31 memset(cntx->vector.datap, 0, riscv_v_vsize); in kvm_riscv_vcpu_vector_reset() 78 vcpu->arch.guest_context.vector.datap = kzalloc(riscv_v_vsize, GFP_KERNEL); in kvm_riscv_vcpu_alloc_vector_context() 79 if (!vcpu->arch.guest_context.vector.datap) in kvm_riscv_vcpu_alloc_vector_context() 82 vcpu->arch.host_context.vector.datap = kzalloc(riscv_v_vsize, GFP_KERNEL); in kvm_riscv_vcpu_alloc_vector_context() 83 if (!vcpu->arch.host_context.vector.datap) in kvm_riscv_vcpu_alloc_vector_context() 91 kfree(vcpu->arch.guest_context.vector.datap); in kvm_riscv_vcpu_free_vector_context() 92 kfree(vcpu->arch.host_context.vector.datap); in kvm_riscv_vcpu_free_vector_context() 109 *reg_addr = &cntx->vector.vstart; in kvm_riscv_vcpu_vreg_addr() [all …]
|
| /linux/drivers/vfio/cdx/ |
| H A D | intr.c | 58 int vector, int fd) in vfio_cdx_msi_set_vector_signal() argument 63 if (vector < 0 || vector >= vdev->msi_count) in vfio_cdx_msi_set_vector_signal() 66 irq_no = vdev->cdx_irqs[vector].irq_no; in vfio_cdx_msi_set_vector_signal() 68 if (vdev->cdx_irqs[vector].trigger) { in vfio_cdx_msi_set_vector_signal() 69 free_irq(irq_no, vdev->cdx_irqs[vector].trigger); in vfio_cdx_msi_set_vector_signal() 70 kfree(vdev->cdx_irqs[vector].name); in vfio_cdx_msi_set_vector_signal() 71 eventfd_ctx_put(vdev->cdx_irqs[vector].trigger); in vfio_cdx_msi_set_vector_signal() 72 vdev->cdx_irqs[vector].trigger = NULL; in vfio_cdx_msi_set_vector_signal() 78 vdev->cdx_irqs[vector].name = kasprintf(GFP_KERNEL, "vfio-msi[%d](%s)", in vfio_cdx_msi_set_vector_signal() 79 vector, dev_name(vdev->vdev.dev)); in vfio_cdx_msi_set_vector_signal() [all …]
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | xcr0_cpuid_test.c | 53 int i, vector; in guest_code() local 82 vector = xsetbv_safe(0, XFEATURE_MASK_FP); in guest_code() 83 __GUEST_ASSERT(!vector, in guest_code() 85 ex_str(vector)); in guest_code() 87 vector = xsetbv_safe(0, supported_xcr0); in guest_code() 88 __GUEST_ASSERT(!vector, in guest_code() 90 supported_xcr0, ex_str(vector)); in guest_code() 96 vector = xsetbv_safe(0, supported_xcr0 | BIT_ULL(i)); in guest_code() 97 __GUEST_ASSERT(vector == GP_VECTOR, in guest_code() 99 BIT_ULL(i), supported_xcr0, ex_str(vector)); in guest_code()
|
| H A D | monitor_mwait_test.c | 26 #define GUEST_ASSERT_MONITOR_MWAIT(insn, testcase, vector) \ argument 32 __GUEST_ASSERT((vector) == UD_VECTOR, \ 34 testcase, ex_str(vector)); \ 36 __GUEST_ASSERT(!(vector), \ 38 testcase, ex_str(vector)); \ 44 u8 vector; in guest_monitor_wait() local 59 vector = kvm_asm_safe("monitor", "a"(guest_monitor_wait), "c"(0), "d"(0)); in guest_monitor_wait() 60 GUEST_ASSERT_MONITOR_MWAIT("MONITOR", testcase, vector); in guest_monitor_wait() 62 vector = kvm_asm_safe("mwait", "a"(guest_monitor_wait), "c"(0), "d"(0)); in guest_monitor_wait() 63 GUEST_ASSERT_MONITOR_MWAIT("MWAIT", testcase, vector); in guest_monitor_wait()
|
| H A D | nested_exceptions_test.c | 74 static void svm_run_l2(struct svm_test_data *svm, void *l2_code, int vector, in svm_run_l2() argument 83 if (vector == FAKE_TRIPLE_FAULT_VECTOR) in svm_run_l2() 86 GUEST_ASSERT_EQ(ctrl->exit_code, (SVM_EXIT_EXCP_BASE + vector)); in svm_run_l2() 114 static void vmx_run_l2(void *l2_code, int vector, uint32_t error_code) in vmx_run_l2() argument 118 GUEST_ASSERT_EQ(vector == SS_VECTOR ? vmlaunch() : vmresume(), 0); in vmx_run_l2() 120 if (vector == FAKE_TRIPLE_FAULT_VECTOR) in vmx_run_l2() 124 GUEST_ASSERT_EQ((vmreadz(VM_EXIT_INTR_INFO) & 0xff), vector); in vmx_run_l2() 167 static void assert_ucall_vector(struct kvm_vcpu *vcpu, int vector) in assert_ucall_vector() argument 175 TEST_ASSERT(vector == uc.args[1], in assert_ucall_vector() 176 "Expected L2 to ask for %d, got %ld", vector, uc.args[1]); in assert_ucall_vector() [all …]
|
| H A D | pmu_counters_test.c | 366 #define GUEST_ASSERT_PMC_MSR_ACCESS(insn, msr, expect_gp, vector) \ argument 367 __GUEST_ASSERT(expect_gp ? vector == GP_VECTOR : !vector, \ 369 expect_gp ? "#GP" : "no fault", msr, ex_str(vector)) \ 379 uint8_t vector; in guest_test_rdpmc() local 382 vector = rdpmc_safe(rdpmc_idx, &val); in guest_test_rdpmc() 383 GUEST_ASSERT_PMC_MSR_ACCESS(RDPMC, rdpmc_idx, !expect_success, vector); in guest_test_rdpmc() 390 vector = rdpmc_safe_fep(rdpmc_idx, &val); in guest_test_rdpmc() 391 GUEST_ASSERT_PMC_MSR_ACCESS(RDPMC, rdpmc_idx, !expect_success, vector); in guest_test_rdpmc() 425 uint8_t vector; in guest_rd_wr_counters() local 428 vector = wrmsr_safe(msr, test_val); in guest_rd_wr_counters() [all …]
|
| /linux/arch/x86/xen/ |
| H A D | smp.c | 145 int vector) in __xen_send_IPI_mask() argument 150 xen_send_IPI_one(cpu, vector); in __xen_send_IPI_mask() 174 static inline int xen_map_vector(int vector) in xen_map_vector() argument 178 switch (vector) { in xen_map_vector() 200 vector); in xen_map_vector() 207 int vector) in xen_send_IPI_mask() argument 209 int xen_vector = xen_map_vector(vector); in xen_send_IPI_mask() 215 void xen_send_IPI_all(int vector) in xen_send_IPI_all() argument 217 int xen_vector = xen_map_vector(vector); in xen_send_IPI_all() 223 void xen_send_IPI_self(int vector) in xen_send_IPI_self() argument [all …]
|
| /linux/drivers/crypto/marvell/octeontx2/ |
| H A D | otx2_cptpf_main.c | 50 int vector; in cptpf_disable_vfpf_mbox_intr() local 61 vector = pci_irq_vector(cptpf->pdev, RVU_PF_INT_VEC_VFPF_MBOX0); in cptpf_disable_vfpf_mbox_intr() 62 free_irq(vector, cptpf); in cptpf_disable_vfpf_mbox_intr() 67 vector = pci_irq_vector(cptpf->pdev, RVU_PF_INT_VEC_VFPF_MBOX1); in cptpf_disable_vfpf_mbox_intr() 68 free_irq(vector, cptpf); in cptpf_disable_vfpf_mbox_intr() 106 int vector; in cptpf_disable_vf_flr_me_intrs() local 111 vector = pci_irq_vector(cptpf->pdev, RVU_PF_INT_VEC_VFFLR0); in cptpf_disable_vf_flr_me_intrs() 112 free_irq(vector, cptpf); in cptpf_disable_vf_flr_me_intrs() 117 vector = pci_irq_vector(cptpf->pdev, RVU_PF_INT_VEC_VFME0); in cptpf_disable_vf_flr_me_intrs() 118 free_irq(vector, cptpf); in cptpf_disable_vf_flr_me_intrs() [all …]
|
| /linux/Documentation/arch/arm64/ |
| H A D | sme.rst | 21 * PSTATE.SM, PSTATE.ZA, the streaming mode vector length, the ZA and (when 24 * The presence of SME is reported to userspace via HWCAP2_SME in the aux vector 30 aux vector AT_HWCAP2 entry. Presence of this flag implies the presence of 78 SME defines a second vector length similar to the SVE vector length which 81 mode SVE vector. 99 * All other SME state of a thread, including the currently configured vector 100 length, the state of the PR_SME_VL_INHERIT flag, and the deferred vector 117 the thread's vector length (in za_context.vl). 157 * The vector length cannot be changed via signal return. If za_context.vl in 158 the signal frame does not match the current vector length, the signal return [all …]
|
| /linux/include/trace/events/ |
| H A D | osnoise.h | 135 TP_PROTO(int vector, u64 start, u64 duration), 137 TP_ARGS(vector, start, duration), 142 __field( int, vector ) 146 __entry->vector = vector; 152 show_softirq_name(__entry->vector), 153 __entry->vector, 161 TP_PROTO(int vector, const char *desc, u64 start, u64 duration), 163 TP_ARGS(vector, desc, start, duration), 169 __field( int, vector ) 175 __entry->vector = vector; [all …]
|
| /linux/arch/sh/kernel/cpu/sh2a/ |
| H A D | ex.S | 61 vector = 0 define 63 .long exception_entry0 + vector * 6 64 vector = vector + 1 define 66 vector = 0 define 68 .long exception_entry1 + vector * 6 69 vector = vector + 1 define
|
| /linux/arch/x86/kernel/ |
| H A D | irq.c | 267 static struct irq_desc *reevaluate_vector(int vector) in reevaluate_vector() argument 269 struct irq_desc *desc = __this_cpu_read(vector_irq[vector]); in reevaluate_vector() 275 pr_emerg_ratelimited("No irq handler for %d.%u\n", smp_processor_id(), vector); in reevaluate_vector() 277 __this_cpu_write(vector_irq[vector], VECTOR_UNUSED); in reevaluate_vector() 281 static __always_inline bool call_irq_handler(int vector, struct pt_regs *regs) in call_irq_handler() argument 283 struct irq_desc *desc = __this_cpu_read(vector_irq[vector]); in call_irq_handler() 312 desc = reevaluate_vector(vector); in call_irq_handler() 333 if (unlikely(!call_irq_handler(vector, regs))) in DEFINE_IDTENTRY_IRQ() 522 unsigned int vector; in fixup_irqs() local 545 for (vector = FIRST_EXTERNAL_VECTOR; vector < NR_VECTORS; vector++) { in fixup_irqs() [all …]
|
| /linux/drivers/s390/cio/ |
| H A D | airq.c | 145 iv->vector = dma_pool_zalloc(airq_iv_cache, GFP_KERNEL, in airq_iv_create() 147 if (!iv->vector) in airq_iv_create() 150 iv->vector = vec; in airq_iv_create() 152 iv->vector = cio_dma_zalloc(size); in airq_iv_create() 153 if (!iv->vector) in airq_iv_create() 188 if (iv->flags & AIRQ_IV_CACHELINE && iv->vector) in airq_iv_create() 189 dma_pool_free(airq_iv_cache, iv->vector, iv->vector_dma); in airq_iv_create() 191 cio_dma_free(iv->vector, size); in airq_iv_create() 208 dma_pool_free(airq_iv_cache, iv->vector, iv->vector_dma); in airq_iv_release() 210 cio_dma_free(iv->vector, iv_size(iv->bits)); in airq_iv_release() [all …]
|
| /linux/drivers/net/wireless/ti/wl1251/ |
| H A D | event.c | 86 u32 vector; in wl1251_event_process() local 90 vector = mbox->events_vector & ~(mbox->events_mask); in wl1251_event_process() 91 wl1251_debug(DEBUG_EVENT, "vector: 0x%x", vector); in wl1251_event_process() 93 if (vector & SCAN_COMPLETE_EVENT_ID) { in wl1251_event_process() 99 if (vector & BSS_LOSE_EVENT_ID) { in wl1251_event_process() 110 if (vector & PS_REPORT_EVENT_ID) { in wl1251_event_process() 117 if (vector & SYNCHRONIZATION_TIMEOUT_EVENT_ID) { in wl1251_event_process() 125 if (vector & REGAINED_BSS_EVENT_ID) { in wl1251_event_process() 134 if (vector & ROAMING_TRIGGER_LOW_RSSI_EVENT_ID) { in wl1251_event_process() 142 if (vector & ROAMING_TRIGGER_REGAINED_RSSI_EVENT_ID) { in wl1251_event_process()
|
| /linux/arch/x86/kvm/ |
| H A D | irq.c | 49 int vector = vcpu->arch.pending_external_vector; in get_userspace_extint() local 52 return vector; in get_userspace_extint() 158 int vector = kvm_cpu_get_extint(v); in kvm_cpu_get_interrupt() local 159 if (vector != -1) in kvm_cpu_get_interrupt() 160 return vector; /* PIC */ in kvm_cpu_get_interrupt() 162 vector = kvm_apic_has_interrupt(v); /* APIC */ in kvm_cpu_get_interrupt() 163 if (vector != -1) in kvm_cpu_get_interrupt() 164 kvm_apic_ack_interrupt(v, vector); in kvm_cpu_get_interrupt() 166 return vector; in kvm_cpu_get_interrupt() 210 irq->vector = msg.arch_data.vector; in kvm_msi_to_lapic_irq() [all …]
|