| /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/include/asm/ |
| H A D | idtentry.h | 34 #define DECLARE_IDTENTRY(vector, func) \ argument 86 #define DECLARE_IDTENTRY_ERRORCODE(vector, func) \ argument 124 #define DECLARE_IDTENTRY_RAW(vector, func) \ argument 125 DECLARE_IDTENTRY(vector, func) 163 #define DECLARE_IDTENTRY_RAW_ERRORCODE(vector, func) \ argument 164 DECLARE_IDTENTRY_ERRORCODE(vector, func) 191 #define DECLARE_IDTENTRY_IRQ(vector, func) \ argument 192 DECLARE_IDTENTRY_ERRORCODE(vector, func) 207 static void __##func(struct pt_regs *regs, u32 vector); \ 213 u32 vector = (u32)(u8)error_code; \ [all …]
|
| H A D | apic.h | 165 extern int setup_APIC_eilvt(u8 lvt_off, u8 vector, u8 msg_type, u8 mask); 173 extern void apic_send_IPI_allbutself(unsigned int vector); 281 void (*send_IPI)(int cpu, int vector); 282 void (*send_IPI_mask)(const struct cpumask *mask, int vector); 284 void (*send_IPI_allbutself)(int vector); 285 void (*send_IPI_all)(int vector); 286 void (*send_IPI_self)(int vector); 318 void (*update_vector)(unsigned int cpu, unsigned int vector, bool set); 328 void (*send_IPI)(int cpu, int vector); 329 void (*send_IPI_mask)(const struct cpumask *mask, int 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 | ipi.c | 52 void apic_send_IPI_allbutself(unsigned int vector) in apic_send_IPI_allbutself() argument 58 __apic_send_IPI_allbutself(vector); in apic_send_IPI_allbutself() 60 __apic_send_IPI_mask_allbutself(cpu_online_mask, vector); in apic_send_IPI_allbutself() 153 static void __default_send_IPI_shortcut(unsigned int shortcut, int vector) in __default_send_IPI_shortcut() argument 161 if (unlikely(vector == NMI_VECTOR)) in __default_send_IPI_shortcut() 167 native_apic_mem_write(APIC_ICR, __prepare_ICR(shortcut, vector, 0)); in __default_send_IPI_shortcut() 174 void __default_send_IPI_dest_field(unsigned int dest_mask, int vector, in __default_send_IPI_dest_field() argument 178 if (unlikely(vector == NMI_VECTOR)) in __default_send_IPI_dest_field() 186 native_apic_mem_write(APIC_ICR, __prepare_ICR(0, vector, dest_mode)); in __default_send_IPI_dest_field() 189 void default_send_IPI_single_phys(int cpu, int vector) in default_send_IPI_single_phys() argument [all …]
|
| 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 …]
|
| H A D | apic_numachip.c | 69 static void numachip_send_IPI_one(int cpu, int vector) in numachip_send_IPI_one() argument 82 __default_send_IPI_dest_field(apicid, vector, in numachip_send_IPI_one() 90 dmode = (vector == NMI_VECTOR) ? APIC_DM_NMI : APIC_DM_FIXED; in numachip_send_IPI_one() 91 numachip_apic_icr_write(apicid, dmode | vector); in numachip_send_IPI_one() 94 static void numachip_send_IPI_mask(const struct cpumask *mask, int vector) in numachip_send_IPI_mask() argument 99 numachip_send_IPI_one(cpu, vector); in numachip_send_IPI_mask() 103 int vector) in numachip_send_IPI_mask_allbutself() argument 110 numachip_send_IPI_one(cpu, vector); in numachip_send_IPI_mask_allbutself() 114 static void numachip_send_IPI_allbutself(int vector) in numachip_send_IPI_allbutself() argument 121 numachip_send_IPI_one(cpu, vector); in numachip_send_IPI_allbutself() [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 | 31 regs->fred_ss.type, regs->fred_ss.vector, error_code, 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 148 for (vector = 0; vector < FIRST_EXTERNAL_VECTOR; vector++) in fred_complete_exception_setup() 149 set_bit(vector, system_vectors); in fred_complete_exception_setup() 151 for (vector = 0; vector < NR_SYSTEM_VECTORS; vector++) { in fred_complete_exception_setup() [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/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_irq.c | 22 static int __fbnic_fw_enable_mbx(struct fbnic_dev *fbd, int vector) in __fbnic_fw_enable_mbx() argument 35 enable_irq(vector); in __fbnic_fw_enable_mbx() 53 int vector, err; in fbnic_fw_request_mbx() local 57 vector = pci_irq_vector(pdev, FBNIC_FW_MSIX_ENTRY); in fbnic_fw_request_mbx() 58 if (vector < 0) in fbnic_fw_request_mbx() 59 return vector; in fbnic_fw_request_mbx() 62 err = request_threaded_irq(vector, NULL, &fbnic_fw_msix_intr, in fbnic_fw_request_mbx() 69 err = __fbnic_fw_enable_mbx(fbd, vector); in fbnic_fw_request_mbx() 71 free_irq(vector, fbd); in fbnic_fw_request_mbx() 73 fbd->fw_msix_vector = vector; in fbnic_fw_request_mbx() [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()
|
| /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/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_cq.c | 66 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_create_cq() 106 cq->vector)) { in mlx4_en_activate_cq() 107 cq->vector = cpumask_first(priv->rx_ring[cq->ring]->affinity_mask); in mlx4_en_activate_cq() 110 &cq->vector); in mlx4_en_activate_cq() 113 cq->vector); in mlx4_en_activate_cq() 119 irq = mlx4_eq_get_irq(mdev->dev, cq->vector); in mlx4_en_activate_cq() 128 cq->vector = rx_cq->vector; in mlx4_en_activate_cq() 129 irq = mlx4_eq_get_irq(mdev->dev, cq->vector); in mlx4_en_activate_cq() 142 cq->vector, 0, timestamp_en, &cq->wqres.buf, false); in mlx4_en_activate_cq() 175 mlx4_release_eq(mdev->dev, cq->vector); in mlx4_en_activate_cq() [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
|