Lines Matching refs:flags
116 unsigned long flags; in irq_soft_mask_return() local
120 : "=r" (flags) in irq_soft_mask_return()
123 return flags; in irq_soft_mask_return()
160 unsigned long flags = irq_soft_mask_return(); in irq_soft_mask_set_return() local
164 return flags; in irq_soft_mask_set_return()
169 unsigned long flags = irq_soft_mask_return(); in irq_soft_mask_or_return() local
171 irq_soft_mask_set(flags | mask); in irq_soft_mask_or_return()
173 return flags; in irq_soft_mask_or_return()
198 static inline bool arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
200 return flags & IRQS_DISABLED; in arch_irqs_disabled_flags()
251 #define raw_local_irq_pmu_save(flags) \ argument
253 typecheck(unsigned long, flags); \
254 flags = irq_soft_mask_or_return(IRQS_DISABLED | \
258 #define raw_local_irq_pmu_restore(flags) \ argument
260 typecheck(unsigned long, flags); \
261 arch_local_irq_restore(flags); \
265 #define powerpc_local_irq_pmu_save(flags) \ argument
267 raw_local_irq_pmu_save(flags); \
268 if (!raw_irqs_disabled_flags(flags)) \
271 #define powerpc_local_irq_pmu_restore(flags) \ argument
273 if (!raw_irqs_disabled_flags(flags)) \
275 raw_local_irq_pmu_restore(flags); \
278 #define powerpc_local_irq_pmu_save(flags) \ argument
280 raw_local_irq_pmu_save(flags); \
282 #define powerpc_local_irq_pmu_restore(flags) \ argument
284 raw_local_irq_pmu_restore(flags); \
291 unsigned long flags; \
293 flags = irq_soft_mask_set_return(IRQS_ALL_DISABLED); \
295 if (!arch_irqs_disabled_flags(flags)) { \
406 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
409 wrtee(flags); in arch_local_irq_restore()
411 mtmsr(flags); in arch_local_irq_restore()
416 unsigned long flags = arch_local_save_flags(); in arch_local_irq_save() local
423 mtmsr(flags & ~MSR_EE); in arch_local_irq_save()
425 return flags; in arch_local_irq_save()
438 static inline bool arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
440 return (flags & MSR_EE) == 0; in arch_irqs_disabled_flags()