Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 25 of 60) sorted by relevance

123

/arch/powerpc/sysdev/xics/
Dics-native.c40 static void __iomem *ics_native_xive(struct ics_native *in, unsigned int vec) in ics_native_xive() argument
42 return in->base + 0x800 + ((vec - in->ibase) << 2); in ics_native_xive()
47 unsigned int vec = (unsigned int)irqd_to_hwirq(d); in ics_native_unmask_irq() local
52 pr_devel("ics-native: unmask virq %d [hw 0x%x]\n", d->irq, vec); in ics_native_unmask_irq()
54 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_unmask_irq()
58 out_be32(ics_native_xive(in, vec), (server << 8) | DEFAULT_PRIORITY); in ics_native_unmask_irq()
78 static void ics_native_do_mask(struct ics_native *in, unsigned int vec) in ics_native_do_mask() argument
80 out_be32(ics_native_xive(in, vec), 0xff); in ics_native_do_mask()
85 unsigned int vec = (unsigned int)irqd_to_hwirq(d); in ics_native_mask_irq() local
89 pr_devel("ics-native: mask virq %d [hw 0x%x]\n", d->irq, vec); in ics_native_mask_irq()
[all …]
Dicp-opal.c65 unsigned int vec; in icp_opal_get_irq() local
69 vec = xirr & 0x00ffffff; in icp_opal_get_irq()
70 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_get_irq()
73 irq = irq_find_mapping(xics_host, vec); in icp_opal_get_irq()
75 xics_push_cppr(vec); in icp_opal_get_irq()
80 xics_mask_unknown_vec(vec); in icp_opal_get_irq()
151 unsigned int vec; in icp_opal_flush_interrupt() local
155 vec = xirr & 0x00ffffff; in icp_opal_flush_interrupt()
156 if (vec == XICS_IRQ_SPURIOUS) in icp_opal_flush_interrupt()
158 if (vec == XICS_IPI) { in icp_opal_flush_interrupt()
[all …]
Dicp-native.c118 unsigned int vec = xirr & 0x00ffffff; in icp_native_get_irq() local
121 if (vec == XICS_IRQ_SPURIOUS) in icp_native_get_irq()
124 irq = irq_find_mapping(xics_host, vec); in icp_native_get_irq()
126 xics_push_cppr(vec); in icp_native_get_irq()
131 xics_mask_unknown_vec(vec); in icp_native_get_irq()
175 unsigned int vec = xirr & 0x00ffffff; in icp_native_flush_interrupt() local
177 if (vec == XICS_IRQ_SPURIOUS) in icp_native_flush_interrupt()
179 if (vec == XICS_IPI) { in icp_native_flush_interrupt()
186 vec); in icp_native_flush_interrupt()
187 xics_mask_unknown_vec(vec); in icp_native_flush_interrupt()
Dicp-hv.c107 unsigned int vec = xirr & 0x00ffffff; in icp_hv_get_irq() local
110 if (vec == XICS_IRQ_SPURIOUS) in icp_hv_get_irq()
113 irq = irq_find_mapping(xics_host, vec); in icp_hv_get_irq()
115 xics_push_cppr(vec); in icp_hv_get_irq()
120 xics_mask_unknown_vec(vec); in icp_hv_get_irq()
Dics-opal.c171 static void ics_opal_mask_unknown(struct ics *ics, unsigned long vec) in ics_opal_mask_unknown() argument
178 rc = opal_get_xive(vec, &server, &priority); in ics_opal_mask_unknown()
182 ics_opal_mask_real_irq(vec); in ics_opal_mask_unknown()
185 static long ics_opal_get_server(struct ics *ics, unsigned long vec) in ics_opal_get_server() argument
192 rc = opal_get_xive(vec, &server, &priority); in ics_opal_get_server()
Dics-rtas.c169 static void ics_rtas_mask_unknown(struct ics *ics, unsigned long vec) in ics_rtas_mask_unknown() argument
171 ics_rtas_mask_real_irq(vec); in ics_rtas_mask_unknown()
174 static long ics_rtas_get_server(struct ics *ics, unsigned long vec) in ics_rtas_get_server() argument
178 rc = rtas_call(ibm_get_xive, 1, 3, status, vec); in ics_rtas_get_server()
/arch/x86/kvm/
Dfpu.h9 #define __sse128_u union { sse128_t vec; u64 as_u64[2]; u32 as_u32[4]; }
10 #define sse128_lo(x) ({ __sse128_u t; t.vec = x; t.as_u64[0]; })
11 #define sse128_hi(x) ({ __sse128_u t; t.vec = x; t.as_u64[1]; })
12 #define sse128_l0(x) ({ __sse128_u t; t.vec = x; t.as_u32[0]; })
13 #define sse128_l1(x) ({ __sse128_u t; t.vec = x; t.as_u32[1]; })
14 #define sse128_l2(x) ({ __sse128_u t; t.vec = x; t.as_u32[2]; })
15 #define sse128_l3(x) ({ __sse128_u t; t.vec = x; t.as_u32[3]; })
16 #define sse128(lo, hi) ({ __sse128_u t; t.as_u64[0] = lo; t.as_u64[1] = hi; t.vec; })
Dlapic.h94 void kvm_apic_clear_irr(struct kvm_vcpu *vcpu, int vec);
136 static inline void kvm_lapic_clear_vector(int vec, void *bitmap) in kvm_lapic_clear_vector() argument
138 clear_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in kvm_lapic_clear_vector()
141 static inline void kvm_lapic_set_vector(int vec, void *bitmap) in kvm_lapic_set_vector() argument
143 set_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in kvm_lapic_set_vector()
146 static inline void kvm_lapic_set_irr(int vec, struct kvm_lapic *apic) in kvm_lapic_set_irr() argument
148 kvm_lapic_set_vector(vec, apic->regs + APIC_IRR); in kvm_lapic_set_irr()
Dlapic.c71 static inline int apic_test_vector(int vec, void *bitmap) in apic_test_vector() argument
73 return test_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in apic_test_vector()
84 static inline int __apic_test_and_set_vector(int vec, void *bitmap) in __apic_test_and_set_vector() argument
86 return __test_and_set_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in __apic_test_and_set_vector()
89 static inline int __apic_test_and_clear_vector(int vec, void *bitmap) in __apic_test_and_clear_vector() argument
91 return __test_and_clear_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in __apic_test_and_clear_vector()
399 int vec; in find_highest_vector() local
402 for (vec = MAX_APIC_VECTOR - APIC_VECTORS_PER_REG; in find_highest_vector()
403 vec >= 0; vec -= APIC_VECTORS_PER_REG) { in find_highest_vector()
404 reg = bitmap + REG_POS(vec); in find_highest_vector()
[all …]
/arch/arc/kernel/
Dtroubleshoot.c112 unsigned int vec, cause_code; in show_ecr_verbose() local
118 vec = regs->ecr_vec; in show_ecr_verbose()
122 if (vec == ECR_V_DTLB_MISS) { in show_ecr_verbose()
127 } else if (vec == ECR_V_ITLB_MISS) { in show_ecr_verbose()
129 } else if (vec == ECR_V_MACH_CHK) { in show_ecr_verbose()
133 } else if (vec == ECR_V_PROTV) { in show_ecr_verbose()
143 } else if (vec == ECR_V_INSN_ERR) { in show_ecr_verbose()
146 } else if (vec == ECR_V_MEM_ERR) { in show_ecr_verbose()
153 } else if (vec == ECR_V_MISALIGN) { in show_ecr_verbose()
156 } else if (vec == ECR_V_TRAP) { in show_ecr_verbose()
/arch/alpha/kernel/
Dsetup.c442 struct alpha_machine_vector *vec = NULL; in setup_arch() local
506 vec = get_sysvec_byname(p+9); in setup_arch()
572 if (!vec) { in setup_arch()
573 vec = get_sysvec(hwrpb->sys_type, hwrpb->sys_variation, in setup_arch()
577 if (!vec) { in setup_arch()
582 if (vec != &alpha_mv) { in setup_arch()
583 alpha_mv = *vec; in setup_arch()
851 struct alpha_machine_vector *vec; in get_sysvec() local
854 vec = NULL; in get_sysvec()
856 vec = systype_vecs[type]; in get_sysvec()
[all …]
/arch/um/os-Linux/
Dprocess.c228 char vec[2]; in os_page_mincore() local
231 ret = mincore(addr, UM_KERN_PAGE_SIZE, vec); in os_page_mincore()
239 return vec[0] & 1; in os_page_mincore()
244 char *vec; in os_mincore() local
250 vec = calloc(1, (len + UM_KERN_PAGE_SIZE - 1) / UM_KERN_PAGE_SIZE); in os_mincore()
251 if (!vec) in os_mincore()
254 ret = mincore(addr, UM_KERN_PAGE_SIZE, vec); in os_mincore()
265 if (!(vec[i] & 1)) { in os_mincore()
273 free(vec); in os_mincore()
/arch/powerpc/include/asm/
Dxics.h93 void (*mask_unknown)(struct ics *ics, unsigned long vec);
94 long (*get_server)(struct ics *ics, unsigned long vec);
113 static inline void xics_push_cppr(unsigned int vec) in xics_push_cppr() argument
120 if (vec == XICS_IPI) in xics_push_cppr()
161 extern void xics_mask_unknown_vec(unsigned int vec);
/arch/powerpc/kvm/
Dbook3s.c135 void kvmppc_inject_interrupt(struct kvm_vcpu *vcpu, int vec, u64 flags) in kvmppc_inject_interrupt() argument
137 vcpu->kvm->arch.kvm_ops->inject_interrupt(vcpu, vec, flags); in kvmppc_inject_interrupt()
140 static int kvmppc_book3s_vec2irqprio(unsigned int vec) in kvmppc_book3s_vec2irqprio() argument
144 switch (vec) { in kvmppc_book3s_vec2irqprio()
168 unsigned int vec) in kvmppc_book3s_dequeue_irqprio() argument
172 clear_bit(kvmppc_book3s_vec2irqprio(vec), in kvmppc_book3s_dequeue_irqprio()
179 void kvmppc_book3s_queue_irqprio(struct kvm_vcpu *vcpu, unsigned int vec) in kvmppc_book3s_queue_irqprio() argument
183 set_bit(kvmppc_book3s_vec2irqprio(vec), in kvmppc_book3s_queue_irqprio()
186 printk(KERN_INFO "Queueing interrupt %x\n", vec); in kvmppc_book3s_queue_irqprio()
300 int vec = 0; in kvmppc_book3s_irqprio_deliver() local
[all …]
Dbook3s_hv_builtin.c601 static void inject_interrupt(struct kvm_vcpu *vcpu, int vec, u64 srr1_flags) in inject_interrupt() argument
608 new_pc = vec; in inject_interrupt()
623 if (vec != BOOK3S_INTERRUPT_SYSTEM_RESET && in inject_interrupt()
624 vec != BOOK3S_INTERRUPT_MACHINE_CHECK && in inject_interrupt()
637 void kvmppc_inject_interrupt_hv(struct kvm_vcpu *vcpu, int vec, u64 srr1_flags) in kvmppc_inject_interrupt_hv() argument
639 inject_interrupt(vcpu, vec, srr1_flags); in kvmppc_inject_interrupt_hv()
/arch/mips/include/asm/netlogic/xlp-hal/
Dpic.h229 int sch, int vec, int dt, int db, int cpu) in nlm_9xx_pic_write_irt() argument
234 ((0 /*mc*/) << 20) | ((vec & 0x3f) << 24) | in nlm_9xx_pic_write_irt()
243 int sch, int vec, int dt, int db, int dte) in nlm_pic_write_irt() argument
248 ((sch & 0x1) << 28) | ((vec & 0x3f) << 20) | in nlm_pic_write_irt()
257 int sch, int vec, int cpu) in nlm_pic_write_irt_direct() argument
260 nlm_9xx_pic_write_irt(base, irt_num, en, nmi, sch, vec, in nlm_pic_write_irt_direct()
263 nlm_pic_write_irt(base, irt_num, en, nmi, sch, vec, 1, in nlm_pic_write_irt_direct()
/arch/m68k/kernel/
Dints.c91 void __init m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt) in m68k_setup_user_interrupt() argument
96 m68k_first_user_vec = vec; in m68k_setup_user_interrupt()
99 *user_irqvec_fixup = vec - IRQ_USER; in m68k_setup_user_interrupt()
/arch/sh/include/asm/
Dtraps_32.h58 unsigned int vec = regs->tra; \
59 (void)vec;
/arch/mips/pci/
Dmsi-xlp.c136 int vec; in xlp_msi_enable() local
138 vec = nlm_irq_msivec(d->irq); in xlp_msi_enable()
140 md->msi_enabled_mask |= 1u << vec; in xlp_msi_enable()
153 int vec; in xlp_msi_disable() local
155 vec = nlm_irq_msivec(d->irq); in xlp_msi_disable()
157 md->msi_enabled_mask &= ~(1u << vec); in xlp_msi_disable()
169 int link, vec; in xlp_msi_mask_ack() local
172 vec = nlm_irq_msivec(d->irq); in xlp_msi_mask_ack()
177 nlm_write_reg(md->lnkbase, PCIE_9XX_MSI_STATUS, 1u << vec); in xlp_msi_mask_ack()
179 nlm_write_reg(md->lnkbase, PCIE_MSI_STATUS, 1u << vec); in xlp_msi_mask_ack()
/arch/ia64/kernel/
Dirq_ia64.c417 # define IS_RESCHEDULE(vec) (vec == IA64_IPI_RESCHEDULE) argument
418 # define IS_LOCAL_TLB_FLUSH(vec) (vec == IA64_IPI_LOCAL_TLB_FLUSH) argument
420 # define IS_RESCHEDULE(vec) (0) argument
421 # define IS_LOCAL_TLB_FLUSH(vec) (0) argument
587 register_percpu_irq(ia64_vector vec, irq_handler_t handler, unsigned long flags, in register_percpu_irq() argument
592 irq = vec; in register_percpu_irq()
593 BUG_ON(bind_irq_vector(irq, vec, CPU_MASK_ALL)); in register_percpu_irq()
Dirq.h2 extern void register_percpu_irq(ia64_vector vec, irq_handler_t handler,
/arch/ia64/include/asm/
Dhw_irq.h162 local_vector_to_irq (ia64_vector vec) in local_vector_to_irq() argument
164 return __this_cpu_read(vector_irq[vec]); in local_vector_to_irq()
/arch/arm/boot/dts/
Dbcm2835-common.dtsi109 vec: vec@7e806000 { label
110 compatible = "brcm,bcm2835-vec";
/arch/sh/kernel/
Dtraps.c140 if (notify_die(DIE_TRAP, "debug trap", regs, 0, vec & 0xff, in BUILD_TRAP_HANDLER()
190 switch (notify_die(DIE_NMI, "NMI", regs, 0, vec & 0xff, SIGINT)) { in BUILD_TRAP_HANDLER()
/arch/sh/mm/
Dfault.c395 unsigned long vec; in do_page_fault() local
404 vec = lookup_exception_vector(); in do_page_fault()
418 if (kprobe_page_fault(regs, vec)) in do_page_fault()
425 if (unlikely(kprobe_page_fault(regs, vec))) in do_page_fault()

123