Home
last modified time | relevance | path

Searched refs:priority (Results 1 – 25 of 105) sorted by relevance

12345

/arch/mips/kvm/
Dinterrupt.c24 void kvm_mips_queue_irq(struct kvm_vcpu *vcpu, unsigned int priority) in kvm_mips_queue_irq() argument
26 set_bit(priority, &vcpu->arch.pending_exceptions); in kvm_mips_queue_irq()
29 void kvm_mips_dequeue_irq(struct kvm_vcpu *vcpu, unsigned int priority) in kvm_mips_dequeue_irq() argument
31 clear_bit(priority, &vcpu->arch.pending_exceptions); in kvm_mips_dequeue_irq()
115 int kvm_mips_irq_deliver_cb(struct kvm_vcpu *vcpu, unsigned int priority, in kvm_mips_irq_deliver_cb() argument
124 switch (priority) { in kvm_mips_irq_deliver_cb()
192 clear_bit(priority, &vcpu->arch.pending_exceptions); in kvm_mips_irq_deliver_cb()
198 int kvm_mips_irq_clear_cb(struct kvm_vcpu *vcpu, unsigned int priority, in kvm_mips_irq_clear_cb() argument
208 unsigned int priority; in kvm_mips_deliver_interrupts() local
213 priority = __ffs(*pending_clr); in kvm_mips_deliver_interrupts()
[all …]
Dinterrupt.h41 void kvm_mips_queue_irq(struct kvm_vcpu *vcpu, unsigned int priority);
42 void kvm_mips_dequeue_irq(struct kvm_vcpu *vcpu, unsigned int priority);
51 int kvm_mips_irq_deliver_cb(struct kvm_vcpu *vcpu, unsigned int priority,
53 int kvm_mips_irq_clear_cb(struct kvm_vcpu *vcpu, unsigned int priority,
/arch/powerpc/sysdev/xics/
Dics-opal.c113 int8_t priority; in ics_opal_set_affinity() local
120 rc = opal_get_xive(hw_irq, &oserver, &priority); in ics_opal_set_affinity()
139 rc = opal_set_xive(hw_irq, server, priority); in ics_opal_set_affinity()
182 int8_t priority; in ics_opal_map() local
188 rc = opal_get_xive(hw_irq, &server, &priority); in ics_opal_map()
202 int8_t priority; in ics_opal_mask_unknown() local
205 rc = opal_get_xive(vec, &server, &priority); in ics_opal_mask_unknown()
216 int8_t priority; in ics_opal_get_server() local
219 rc = opal_get_xive(vec, &server, &priority); in ics_opal_get_server()
/arch/powerpc/kvm/
Dbook3s_xive_native.c418 u32 server, u8 priority, bool masked, in kvmppc_xive_native_update_source_config() argument
427 if (state->act_server == server && state->act_priority == priority && in kvmppc_xive_native_update_source_config()
432 priority, server, masked, state->act_server, in kvmppc_xive_native_update_source_config()
437 if (priority != MASKED && !masked) { in kvmppc_xive_native_update_source_config()
438 rc = kvmppc_xive_select_target(kvm, &server, priority); in kvmppc_xive_native_update_source_config()
442 state->act_priority = priority; in kvmppc_xive_native_update_source_config()
448 priority, eisn); in kvmppc_xive_native_update_source_config()
471 u8 priority; in kvmppc_xive_native_set_source_config() local
489 priority = (kvm_cfg & KVM_XIVE_SOURCE_PRIORITY_MASK) >> in kvmppc_xive_native_set_source_config()
498 if (priority != xive_prio_from_guest(priority)) { in kvmppc_xive_native_set_source_config()
[all …]
Dbook3s_rtas.c21 u32 irq, server, priority; in kvm_rtas_set_xive() local
31 priority = be32_to_cpu(args->args[2]); in kvm_rtas_set_xive()
34 rc = kvmppc_xive_set_xive(vcpu->kvm, irq, server, priority); in kvm_rtas_set_xive()
36 rc = kvmppc_xics_set_xive(vcpu->kvm, irq, server, priority); in kvm_rtas_set_xive()
45 u32 irq, server, priority; in kvm_rtas_get_xive() local
55 server = priority = 0; in kvm_rtas_get_xive()
57 rc = kvmppc_xive_get_xive(vcpu->kvm, irq, &server, &priority); in kvm_rtas_get_xive()
59 rc = kvmppc_xics_get_xive(vcpu->kvm, irq, &server, &priority); in kvm_rtas_get_xive()
66 args->rets[2] = cpu_to_be32(priority); in kvm_rtas_get_xive()
Dtrace_booke.h195 TP_PROTO(struct kvm_vcpu *vcpu, unsigned int priority),
196 TP_ARGS(vcpu, priority),
200 __field( __u32, priority )
206 __entry->priority = priority;
212 __print_symbolic(__entry->priority, kvm_trace_symbol_irqprio),
Dbook3s_xics.c134 state->priority); in ics_check_resend()
142 u32 server, u32 priority, u32 saved_priority) in write_xive() argument
151 state->priority = priority; in write_xive()
154 if ((state->masked_pending || state->resend) && priority != MASKED) { in write_xive()
166 int kvmppc_xics_set_xive(struct kvm *kvm, u32 irq, u32 server, u32 priority) in kvmppc_xics_set_xive() argument
187 irq, server, priority, in kvmppc_xics_set_xive()
190 if (write_xive(xics, ics, state, server, priority, priority)) in kvmppc_xics_set_xive()
196 int kvmppc_xics_get_xive(struct kvm *kvm, u32 irq, u32 *server, u32 *priority) in kvmppc_xics_get_xive() argument
215 *priority = state->priority; in kvmppc_xics_get_xive()
264 write_xive(xics, ics, state, state->server, MASKED, state->priority); in kvmppc_xics_int_off()
[all …]
Dmpic.c144 int priority; member
296 int priority = -1; in IRQ_check() local
304 irq, IVPR_PRIORITY(opp->src[irq].ivpr), priority); in IRQ_check()
306 if (IVPR_PRIORITY(opp->src[irq].ivpr) > priority) { in IRQ_check()
308 priority = IVPR_PRIORITY(opp->src[irq].ivpr); in IRQ_check()
313 q->priority = priority; in IRQ_check()
329 int priority; in IRQ_local_pipe() local
365 priority = IVPR_PRIORITY(src->ivpr); in IRQ_local_pipe()
377 if (active && priority <= dst->ctpr) { in IRQ_local_pipe()
379 __func__, n_IRQ, priority, dst->ctpr, n_CPU); in IRQ_local_pipe()
[all …]
Dbook3s.c295 unsigned int priority) in kvmppc_book3s_irqprio_deliver() argument
301 switch (priority) { in kvmppc_book3s_irqprio_deliver()
357 printk(KERN_ERR "KVM: Unknown interrupt: 0x%x\n", priority); in kvmppc_book3s_irqprio_deliver()
374 static bool clear_irqprio(struct kvm_vcpu *vcpu, unsigned int priority) in clear_irqprio() argument
376 switch (priority) { in clear_irqprio()
400 unsigned int priority; in kvmppc_core_prepare_to_enter() local
406 priority = __ffs(*pending); in kvmppc_core_prepare_to_enter()
407 while (priority < BOOK3S_IRQPRIO_MAX) { in kvmppc_core_prepare_to_enter()
408 if (kvmppc_book3s_irqprio_deliver(vcpu, priority) && in kvmppc_core_prepare_to_enter()
409 clear_irqprio(vcpu, priority)) { in kvmppc_core_prepare_to_enter()
[all …]
Dbook3s_hv_rm_xics.c246 static bool icp_rm_try_to_deliver(struct kvmppc_icp *icp, u32 irq, u8 priority, in icp_rm_try_to_deliver() argument
258 success = new_state.cppr > priority && in icp_rm_try_to_deliver()
259 new_state.mfrr > priority && in icp_rm_try_to_deliver()
260 new_state.pending_pri > priority; in icp_rm_try_to_deliver()
269 new_state.pending_pri = priority; in icp_rm_try_to_deliver()
352 if (state->priority == MASKED) { in icp_rm_deliver_irq()
373 if (icp_rm_try_to_deliver(icp, new_irq, state->priority, &reject)) { in icp_rm_deliver_irq()
/arch/x86/kvm/
Di8259.c121 int priority; in get_priority() local
124 priority = 0; in get_priority()
125 while ((mask & (1 << ((priority + s->priority_add) & 7))) == 0) in get_priority()
126 priority++; in get_priority()
127 return priority; in get_priority()
135 int mask, cur_priority, priority; in pic_get_irq() local
138 priority = get_priority(s, mask); in pic_get_irq()
139 if (priority == 8) in pic_get_irq()
150 if (priority < cur_priority) in pic_get_irq()
154 return (priority + s->priority_add) & 7; in pic_get_irq()
[all …]
/arch/powerpc/platforms/powernv/
Dopal-power.c120 .priority = 0,
127 .priority = 0,
134 .priority = 0,
/arch/mips/cavium-octeon/executive/
Dcvmx-pko.c172 const uint64_t priority = 8; in __cvmx_pko_chip_init() local
175 &priority); in __cvmx_pko_chip_init()
342 const uint64_t priority[]) in cvmx_pko_config_port() argument
377 && priority[queue] == in cvmx_pko_config_port()
383 && priority[queue] != CVMX_PKO_QUEUE_STATIC_PRIORITY in cvmx_pko_config_port()
399 && priority[queue] == in cvmx_pko_config_port()
459 switch ((int)priority[queue]) { in cvmx_pko_config_port()
496 (unsigned long long)priority[queue]); in cvmx_pko_config_port()
/arch/mips/lasat/
Dsetup.c101 .priority = INT_MAX
104 .priority = INT_MIN
/arch/arm/include/asm/hardware/
Dentry-macro-iomd.S15 ldrb \irqstat, [\base, #IOMD_IRQREQB] @ get high priority first
24 ldrbeq \irqstat, [\base, #IOMD_IRQREQA] @ get low priority
/arch/mips/include/asm/octeon/
Dcvmx-pow.h1874 const uint8_t priority[]) in cvmx_pow_set_priority() argument
1881 grp_msk.s.qos0_pri = priority[0]; in cvmx_pow_set_priority()
1882 grp_msk.s.qos1_pri = priority[1]; in cvmx_pow_set_priority()
1883 grp_msk.s.qos2_pri = priority[2]; in cvmx_pow_set_priority()
1884 grp_msk.s.qos3_pri = priority[3]; in cvmx_pow_set_priority()
1885 grp_msk.s.qos4_pri = priority[4]; in cvmx_pow_set_priority()
1886 grp_msk.s.qos5_pri = priority[5]; in cvmx_pow_set_priority()
1887 grp_msk.s.qos6_pri = priority[6]; in cvmx_pow_set_priority()
1888 grp_msk.s.qos7_pri = priority[7]; in cvmx_pow_set_priority()
1896 if (priority[i] != 0xF) in cvmx_pow_set_priority()
[all …]
/arch/sh/include/asm/
Dhw_irq.h15 unsigned char priority; /* The priority */ member
/arch/mips/include/asm/
Dtraps.h32 .priority = pri \
/arch/powerpc/include/asm/
Depapr_hcalls.h137 uint32_t config, unsigned int priority, uint32_t destination) in ev_int_set_config() argument
148 r5 = priority; in ev_int_set_config()
169 uint32_t *config, unsigned int *priority, uint32_t *destination) in ev_int_get_config() argument
186 *priority = r5; in ev_int_get_config()
/arch/powerpc/sysdev/xive/
Dspapr.c252 unsigned long priority, in plpar_int_get_queue_info() argument
261 priority); in plpar_int_get_queue_info()
266 target, priority, rc); in plpar_int_get_queue_info()
283 unsigned long priority, in plpar_int_set_queue_config() argument
290 flags, target, priority, qpage, qsize); in plpar_int_set_queue_config()
294 priority, qpage, qsize); in plpar_int_set_queue_config()
299 target, priority, qpage, rc); in plpar_int_set_queue_config()
/arch/parisc/kernel/
Dpdc_chassis.c96 .priority = INT_MAX,
116 .priority = INT_MAX,
/arch/powerpc/platforms/cell/
Dinterrupt.h87 extern void iic_set_interrupt_routing(int cpu, int thread, int priority);
/arch/arm/mm/
Dproc-v7m.S120 @ Lower the priority of the SVC and PendSV exceptions
122 str r5, [r0, V7M_SCB_SHPR2] @ set SVC priority
124 str r5, [r0, V7M_SCB_SHPR3] @ set PendSV priority
/arch/x86/include/asm/
Dapicdef.h210 u32 priority : 8, member
217 u32 priority : 8, member
224 u32 priority : 8, member
/arch/mips/pnx833x/common/
Dinterrupts.c96 unsigned long priority = PNX833X_PIC_INT_PRIORITY; in pic_dispatch() local
111 PNX833X_PIC_INT_PRIORITY = priority; in pic_dispatch()

12345