Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 25 of 1641) sorted by relevance

12345678910>>...66

/arch/h8300/include/asm/
Dirqflags.h10 h8300flags flags; in arch_local_save_flags() local
12 __asm__ volatile ("stc ccr,%w0" : "=r" (flags)); in arch_local_save_flags()
13 return flags; in arch_local_save_flags()
28 h8300flags flags; in arch_local_irq_save() local
31 "orc #0xc0,ccr" : "=r" (flags)); in arch_local_irq_save()
32 return flags; in arch_local_irq_save()
35 static inline void arch_local_irq_restore(h8300flags flags) in arch_local_irq_restore() argument
37 __asm__ volatile ("ldc %w0,ccr" : : "r" (flags) : "cc"); in arch_local_irq_restore()
40 static inline int arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
42 return (flags & 0xc0) == 0xc0; in arch_irqs_disabled_flags()
[all …]
/arch/c6x/include/asm/
Dirqflags.h17 unsigned long flags; in arch_local_save_flags() local
19 asm volatile (" mvc .s2 CSR,%0\n" : "=b"(flags)); in arch_local_save_flags()
20 return flags; in arch_local_save_flags()
24 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
26 asm volatile (" mvc .s2 %0,CSR\n" : : "b"(flags) : "memory"); in arch_local_irq_restore()
32 unsigned long flags = arch_local_save_flags(); in arch_local_irq_enable() local
33 flags |= 1; in arch_local_irq_enable()
34 arch_local_irq_restore(flags); in arch_local_irq_enable()
40 unsigned long flags = arch_local_save_flags(); in arch_local_irq_disable() local
41 flags &= ~1; in arch_local_irq_disable()
[all …]
/arch/powerpc/include/asm/
Dhw_irq.h68 unsigned long flags; in irq_soft_mask_return() local
72 : "=r" (flags) in irq_soft_mask_return()
75 return flags; in irq_soft_mask_return()
113 unsigned long flags; in irq_soft_mask_set_return() local
121 : "=&r" (flags) in irq_soft_mask_set_return()
126 return flags; in irq_soft_mask_set_return()
131 unsigned long flags, tmp; in irq_soft_mask_or_return() local
135 : "=&r" (flags), "=r" (tmp) in irq_soft_mask_or_return()
141 WARN_ON((mask | flags) && !((mask | flags) & IRQS_DISABLED)); in irq_soft_mask_or_return()
144 return flags; in irq_soft_mask_or_return()
[all …]
/arch/mips/pci/
Dpci-ip32.c28 unsigned int flags = mace->pci.error; in macepci_error() local
31 if (flags & MACEPCI_ERROR_MEMORY_ADDR) in macepci_error()
33 else if (flags & MACEPCI_ERROR_CONFIG_ADDR) in macepci_error()
38 if (flags & MACEPCI_ERROR_MASTER_ABORT) { in macepci_error()
40 flags &= ~MACEPCI_ERROR_MASTER_ABORT; in macepci_error()
42 if (flags & MACEPCI_ERROR_TARGET_ABORT) { in macepci_error()
44 flags &= ~MACEPCI_ERROR_TARGET_ABORT; in macepci_error()
46 if (flags & MACEPCI_ERROR_DATA_PARITY_ERR) { in macepci_error()
48 flags &= ~MACEPCI_ERROR_DATA_PARITY_ERR; in macepci_error()
50 if (flags & MACEPCI_ERROR_RETRY_ERR) { in macepci_error()
[all …]
/arch/parisc/kernel/
Dfirmware.c175 unsigned long flags; in set_firmware_width() local
176 spin_lock_irqsave(&pdc_lock, flags); in set_firmware_width()
178 spin_unlock_irqrestore(&pdc_lock, flags); in set_firmware_width()
220 unsigned long flags; in pdc_add_valid() local
222 spin_lock_irqsave(&pdc_lock, flags); in pdc_add_valid()
224 spin_unlock_irqrestore(&pdc_lock, flags); in pdc_add_valid()
239 unsigned long flags; in pdc_instr() local
241 spin_lock_irqsave(&pdc_lock, flags); in pdc_instr()
245 spin_unlock_irqrestore(&pdc_lock, flags); in pdc_instr()
261 unsigned long flags; in pdc_chassis_info() local
[all …]
/arch/nios2/include/asm/
Dirqflags.h19 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
21 WRCTL(CTL_STATUS, flags); in arch_local_irq_restore()
26 unsigned long flags; in arch_local_irq_disable() local
28 flags = arch_local_save_flags(); in arch_local_irq_disable()
29 arch_local_irq_restore(flags & ~STATUS_PIE); in arch_local_irq_disable()
34 unsigned long flags; in arch_local_irq_enable() local
36 flags = arch_local_save_flags(); in arch_local_irq_enable()
37 arch_local_irq_restore(flags | STATUS_PIE); in arch_local_irq_enable()
40 static inline int arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
42 return (flags & STATUS_PIE) == 0; in arch_irqs_disabled_flags()
[all …]
/arch/xtensa/include/asm/
Dirqflags.h21 unsigned long flags; in arch_local_save_flags() local
22 asm volatile("rsr %0, ps" : "=a" (flags)); in arch_local_save_flags()
23 return flags; in arch_local_save_flags()
28 unsigned long flags; in arch_local_irq_save() local
38 : "=a" (flags), "=a" (tmp) :: "memory"); in arch_local_irq_save()
44 : "=&a" (flags) : "a" (LOCKLEVEL) : "memory"); in arch_local_irq_save()
48 : "=a" (flags) :: "memory"); in arch_local_irq_save()
50 return flags; in arch_local_irq_save()
60 unsigned long flags; in arch_local_irq_enable() local
61 asm volatile("rsil %0, 0" : "=a" (flags) :: "memory"); in arch_local_irq_enable()
[all …]
/arch/sparc/lib/
Datomic32.c35 unsigned long flags; \
36 spin_lock_irqsave(ATOMIC_HASH(v), flags); \
41 spin_unlock_irqrestore(ATOMIC_HASH(v), flags); \
50 unsigned long flags; \
51 spin_lock_irqsave(ATOMIC_HASH(v), flags); \
55 spin_unlock_irqrestore(ATOMIC_HASH(v), flags); \
73 unsigned long flags; in atomic_xchg() local
75 spin_lock_irqsave(ATOMIC_HASH(v), flags); in atomic_xchg()
78 spin_unlock_irqrestore(ATOMIC_HASH(v), flags); in atomic_xchg()
86 unsigned long flags; in atomic_cmpxchg() local
[all …]
/arch/arc/include/asm/
Dsmp.h110 #define atomic_ops_lock(flags) do { \ argument
111 local_irq_save(flags); \
115 #define atomic_ops_unlock(flags) do { \ argument
117 local_irq_restore(flags); \
120 #define bitops_lock(flags) do { \ argument
121 local_irq_save(flags); \
125 #define bitops_unlock(flags) do { \ argument
127 local_irq_restore(flags); \
132 #define atomic_ops_lock(flags) local_irq_save(flags) argument
133 #define atomic_ops_unlock(flags) local_irq_restore(flags) argument
[all …]
/arch/microblaze/include/asm/
Dirqflags.h19 unsigned long flags; in arch_local_irq_save() local
22 : "=r"(flags) in arch_local_irq_save()
25 return flags; in arch_local_irq_save()
52 unsigned long flags, tmp; in arch_local_irq_save() local
58 : "=r"(flags), "=r"(tmp) in arch_local_irq_save()
61 return flags; in arch_local_irq_save()
94 unsigned long flags; in arch_local_save_flags() local
97 : "=r"(flags) in arch_local_save_flags()
100 return flags; in arch_local_save_flags()
103 static inline notrace void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
[all …]
/arch/parisc/include/asm/
Dspinlock.h19 unsigned long flags) in arch_spin_lock_flags() argument
26 if (flags & PSW_SM_I) { in arch_spin_lock_flags()
75 unsigned long flags; in arch_read_lock() local
76 local_irq_save(flags); in arch_read_lock()
77 arch_spin_lock_flags(&rw->lock, flags); in arch_read_lock()
80 local_irq_restore(flags); in arch_read_lock()
87 unsigned long flags; in arch_read_unlock() local
88 local_irq_save(flags); in arch_read_unlock()
89 arch_spin_lock_flags(&rw->lock, flags); in arch_read_unlock()
92 local_irq_restore(flags); in arch_read_unlock()
[all …]
Dirqflags.h10 unsigned long flags; in arch_local_save_flags() local
11 asm volatile("ssm 0, %0" : "=r" (flags) : : "memory"); in arch_local_save_flags()
12 return flags; in arch_local_save_flags()
27 unsigned long flags; in arch_local_irq_save() local
28 asm volatile("rsm %1,%0" : "=r" (flags) : "i" (PSW_I) : "memory"); in arch_local_irq_save()
29 return flags; in arch_local_irq_save()
32 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
34 asm volatile("mtsm %0" : : "r" (flags) : "memory"); in arch_local_irq_restore()
37 static inline bool arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
39 return (flags & PSW_I) == 0; in arch_irqs_disabled_flags()
/arch/arm/mach-omap1/
Dmcbsp.c99 .flags = IORESOURCE_MEM,
104 .flags = IORESOURCE_IRQ,
109 .flags = IORESOURCE_IRQ,
114 .flags = IORESOURCE_DMA,
119 .flags = IORESOURCE_DMA,
126 .flags = IORESOURCE_MEM,
131 .flags = IORESOURCE_IRQ,
136 .flags = IORESOURCE_IRQ,
141 .flags = IORESOURCE_DMA,
146 .flags = IORESOURCE_DMA,
[all …]
/arch/nds32/mm/
Dcacheflush.c18 unsigned long line_size, flags; in flush_icache_range() local
22 local_irq_save(flags); in flush_icache_range()
24 local_irq_restore(flags); in flush_icache_range()
30 unsigned long flags; in flush_icache_page() local
32 local_irq_save(flags); in flush_icache_page()
36 local_irq_restore(flags); in flush_icache_page()
54 unsigned long flags; in update_mmu_cache() local
60 local_irq_save(flags); in update_mmu_cache()
64 local_irq_restore(flags); in update_mmu_cache()
68 if ((test_and_clear_bit(PG_dcache_dirty, &page->flags)) || in update_mmu_cache()
[all …]
/arch/mips/lib/
Dbitops.c25 unsigned long flags; in __mips_set_bit() local
29 raw_local_irq_save(flags); in __mips_set_bit()
31 raw_local_irq_restore(flags); in __mips_set_bit()
47 unsigned long flags; in __mips_clear_bit() local
51 raw_local_irq_save(flags); in __mips_clear_bit()
53 raw_local_irq_restore(flags); in __mips_clear_bit()
69 unsigned long flags; in __mips_change_bit() local
73 raw_local_irq_save(flags); in __mips_change_bit()
75 raw_local_irq_restore(flags); in __mips_change_bit()
92 unsigned long flags; in __mips_test_and_set_bit() local
[all …]
/arch/parisc/lib/
Dbitops.c23 unsigned long temp, flags; in __xchg64() local
25 _atomic_spin_lock_irqsave(ptr, flags); in __xchg64()
28 _atomic_spin_unlock_irqrestore(ptr, flags); in __xchg64()
35 unsigned long flags; in __xchg32() local
38 _atomic_spin_lock_irqsave(ptr, flags); in __xchg32()
41 _atomic_spin_unlock_irqrestore(ptr, flags); in __xchg32()
48 unsigned long flags; in __xchg8() local
51 _atomic_spin_lock_irqsave(ptr, flags); in __xchg8()
54 _atomic_spin_unlock_irqrestore(ptr, flags); in __xchg8()
61 unsigned long flags; in __cmpxchg_u64() local
[all …]
/arch/nds32/include/asm/
Dirqflags.h14 unsigned long flags; in arch_local_irq_save() local
15 flags = __nds32__mfsr(NDS32_SR_PSW) & PSW_mskGIE; in arch_local_irq_save()
17 return flags; in arch_local_irq_save()
22 unsigned long flags; in arch_local_save_flags() local
23 flags = __nds32__mfsr(NDS32_SR_PSW) & PSW_mskGIE; in arch_local_save_flags()
24 return flags; in arch_local_save_flags()
27 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
29 if(flags) in arch_local_irq_restore()
33 static inline int arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
35 return !flags; in arch_irqs_disabled_flags()
/arch/m68k/include/asm/
Dirqflags.h12 unsigned long flags; in arch_local_save_flags() local
13 asm volatile ("movew %%sr,%0" : "=d" (flags) : : "memory"); in arch_local_save_flags()
14 return flags; in arch_local_save_flags()
56 unsigned long flags = arch_local_save_flags(); in arch_local_irq_save() local
58 return flags; in arch_local_irq_save()
61 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
63 asm volatile ("movew %0,%%sr" : : "d" (flags) : "memory"); in arch_local_irq_restore()
66 static inline bool arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
70 return (flags & ~(ALLOWINT | 0x200)) != 0; in arch_irqs_disabled_flags()
72 return (flags & ~ALLOWINT) != 0; in arch_irqs_disabled_flags()
/arch/sh/include/asm/
Dcmpxchg-irq.h9 unsigned long flags, retval; in xchg_u32() local
11 local_irq_save(flags); in xchg_u32()
14 local_irq_restore(flags); in xchg_u32()
20 unsigned long flags, retval; in xchg_u16() local
22 local_irq_save(flags); in xchg_u16()
25 local_irq_restore(flags); in xchg_u16()
31 unsigned long flags, retval; in xchg_u8() local
33 local_irq_save(flags); in xchg_u8()
36 local_irq_restore(flags); in xchg_u8()
44 unsigned long flags; in __cmpxchg_u32() local
[all …]
/arch/arm/include/asm/
Dirqflags.h27 unsigned long flags; in arch_local_irq_save() local
32 : "=r" (flags) : : "memory", "cc"); in arch_local_irq_save()
33 return flags; in arch_local_irq_save()
74 unsigned long flags, temp; in arch_local_irq_save() local
80 : "=r" (flags), "=r" (temp) in arch_local_irq_save()
83 return flags; in arch_local_irq_save()
158 unsigned long flags; in arch_local_save_flags() local
161 : "=r" (flags) : : "memory", "cc"); in arch_local_save_flags()
162 return flags; in arch_local_save_flags()
169 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
[all …]
/arch/arm/mach-imx/
Dehci-imx35.c32 int mx35_initialize_usb_hw(int port, unsigned int flags) in mx35_initialize_usb_hw() argument
42 v |= (flags & MXC_EHCI_INTERFACE_MASK) << MX35_OTG_SIC_SHIFT; in mx35_initialize_usb_hw()
44 if (!(flags & MXC_EHCI_POWER_PINS_ENABLED)) in mx35_initialize_usb_hw()
47 if (flags & MXC_EHCI_PWR_PIN_ACTIVE_HIGH) in mx35_initialize_usb_hw()
50 if (!(flags & MXC_EHCI_OC_PIN_ACTIVE_LOW)) in mx35_initialize_usb_hw()
58 v |= (flags & MXC_EHCI_INTERFACE_MASK) << MX35_H1_SIC_SHIFT; in mx35_initialize_usb_hw()
60 if (!(flags & MXC_EHCI_POWER_PINS_ENABLED)) in mx35_initialize_usb_hw()
63 if (flags & MXC_EHCI_PWR_PIN_ACTIVE_HIGH) in mx35_initialize_usb_hw()
66 if (!(flags & MXC_EHCI_OC_PIN_ACTIVE_LOW)) in mx35_initialize_usb_hw()
69 if (!(flags & MXC_EHCI_TTL_ENABLED)) in mx35_initialize_usb_hw()
[all …]
/arch/mips/include/asm/
Dirqflags.h38 unsigned long flags; in arch_local_irq_save() local
53 : [flags] "=r" (flags) in arch_local_irq_save()
57 return flags; in arch_local_irq_save()
60 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
87 : [flags] "=r" (__tmp1) in arch_local_irq_restore()
88 : "0" (flags) in arch_local_irq_restore()
96 void arch_local_irq_restore(unsigned long flags);
122 unsigned long flags; in arch_local_save_flags() local
129 : [flags] "=r" (flags)); in arch_local_save_flags()
131 return flags; in arch_local_save_flags()
[all …]
/arch/sparc/include/asm/
Dirqflags_64.h20 unsigned long flags; in arch_local_save_flags() local
24 : "=r" (flags) in arch_local_save_flags()
27 return flags; in arch_local_save_flags()
30 static inline notrace void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
35 : "r" (flags) in arch_local_irq_restore()
60 static inline notrace int arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
62 return (flags > 0); in arch_irqs_disabled_flags()
72 unsigned long flags, tmp; in arch_local_irq_save() local
88 : "=r" (flags), "=r" (tmp) in arch_local_irq_save()
93 return flags; in arch_local_irq_save()
/arch/ia64/include/asm/
Dirqflags.h19 static inline void arch_maybe_save_ip(unsigned long flags) in arch_maybe_save_ip() argument
21 if (flags & IA64_PSR_I) in arch_maybe_save_ip()
25 #define arch_maybe_save_ip(flags) do {} while (0) argument
48 unsigned long flags = arch_local_save_flags(); in arch_local_irq_save() local
52 arch_maybe_save_ip(flags); in arch_local_irq_save()
53 return flags; in arch_local_irq_save()
73 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
78 ia64_intrin_local_irq_restore(flags & IA64_PSR_I); in arch_local_irq_restore()
79 arch_maybe_save_ip(old_psr & ~flags); in arch_local_irq_restore()
82 static inline bool arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
[all …]
/arch/x86/kernel/
Dsys_x86_64.c33 if (va_align.flags < 0 || !(va_align.flags & (2 - mmap_is_ia32()))) in get_align_mask()
36 if (!(current->flags & PF_RANDOMIZE)) in get_align_mask()
67 if (va_align.flags < 0) in control_va_addr_alignment()
77 va_align.flags = ALIGN_VA_32; in control_va_addr_alignment()
79 va_align.flags = ALIGN_VA_64; in control_va_addr_alignment()
81 va_align.flags = 0; in control_va_addr_alignment()
83 va_align.flags = ALIGN_VA_32 | ALIGN_VA_64; in control_va_addr_alignment()
92 unsigned long, prot, unsigned long, flags, in SYSCALL_DEFINE6() argument
100 error = ksys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); in SYSCALL_DEFINE6()
105 static void find_start_end(unsigned long addr, unsigned long flags, in find_start_end() argument
[all …]

12345678910>>...66