Lines Matching refs:flags

118 	unsigned long flags;  in irq_soft_mask_return()  local
122 : "=r" (flags) in irq_soft_mask_return()
125 return flags; in irq_soft_mask_return()
162 unsigned long flags = irq_soft_mask_return(); in irq_soft_mask_set_return() local
166 return flags; in irq_soft_mask_set_return()
171 unsigned long flags = irq_soft_mask_return(); in irq_soft_mask_or_return() local
173 irq_soft_mask_set(flags | mask); in irq_soft_mask_or_return()
175 return flags; in irq_soft_mask_or_return()
180 unsigned long flags = irq_soft_mask_return(); in irq_soft_mask_andc_return() local
182 irq_soft_mask_set(flags & ~mask); in irq_soft_mask_andc_return()
184 return flags; in irq_soft_mask_andc_return()
209 static inline bool arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
211 return flags & IRQS_DISABLED; in arch_irqs_disabled_flags()
262 #define raw_local_irq_pmu_save(flags) \ argument
264 typecheck(unsigned long, flags); \
265 flags = irq_soft_mask_or_return(IRQS_DISABLED | \
269 #define raw_local_irq_pmu_restore(flags) \ argument
271 typecheck(unsigned long, flags); \
272 arch_local_irq_restore(flags); \
276 #define powerpc_local_irq_pmu_save(flags) \ argument
278 raw_local_irq_pmu_save(flags); \
279 if (!raw_irqs_disabled_flags(flags)) \
282 #define powerpc_local_irq_pmu_restore(flags) \ argument
284 if (!raw_irqs_disabled_flags(flags)) \
286 raw_local_irq_pmu_restore(flags); \
289 #define powerpc_local_irq_pmu_save(flags) \ argument
291 raw_local_irq_pmu_save(flags); \
293 #define powerpc_local_irq_pmu_restore(flags) \ argument
295 raw_local_irq_pmu_restore(flags); \
302 unsigned long flags; \
304 flags = irq_soft_mask_set_return(IRQS_ALL_DISABLED); \
306 if (!arch_irqs_disabled_flags(flags)) { \
425 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
428 wrtee(flags); in arch_local_irq_restore()
430 mtmsr(flags); in arch_local_irq_restore()
435 unsigned long flags = arch_local_save_flags(); in arch_local_irq_save() local
442 mtmsr(flags & ~MSR_EE); in arch_local_irq_save()
444 return flags; in arch_local_irq_save()
457 static inline bool arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
459 return (flags & MSR_EE) == 0; in arch_irqs_disabled_flags()