Lines Matching refs:flags
18 * PACA flags in paca->irq_happened.
44 * flags for paca->irq_soft_mask
67 unsigned long flags;
71 : "=r" (flags)
74 return flags;
112 unsigned long flags;
120 : "=&r" (flags)
125 return flags;
130 unsigned long flags, tmp;
134 : "=&r" (flags), "=r" (tmp)
140 WARN_ON((mask | flags) && !((mask | flags) & IRQS_DISABLED));
143 return flags;
168 static inline bool arch_irqs_disabled_flags(unsigned long flags)
170 return flags & IRQS_DISABLED;
221 #define raw_local_irq_pmu_save(flags) \
223 typecheck(unsigned long, flags); \
224 flags = irq_soft_mask_or_return(IRQS_DISABLED | \
228 #define raw_local_irq_pmu_restore(flags) \
230 typecheck(unsigned long, flags); \
231 arch_local_irq_restore(flags); \
235 #define powerpc_local_irq_pmu_save(flags) \
237 raw_local_irq_pmu_save(flags); \
238 if (!raw_irqs_disabled_flags(flags)) \
241 #define powerpc_local_irq_pmu_restore(flags) \
243 if (!raw_irqs_disabled_flags(flags)) \
245 raw_local_irq_pmu_restore(flags); \
248 #define powerpc_local_irq_pmu_save(flags) \
250 raw_local_irq_pmu_save(flags); \
252 #define powerpc_local_irq_pmu_restore(flags) \
254 raw_local_irq_pmu_restore(flags); \
273 unsigned long flags; \
275 flags = irq_soft_mask_set_return(IRQS_ALL_DISABLED); \
277 if (!arch_irqs_disabled_flags(flags)) { \
346 static inline void arch_local_irq_restore(unsigned long flags)
349 wrtee(flags);
351 mtmsr(flags);
356 unsigned long flags = arch_local_save_flags();
363 mtmsr(flags & ~MSR_EE);
365 return flags;
388 static inline bool arch_irqs_disabled_flags(unsigned long flags)
390 return (flags & MSR_EE) == 0;