Home
last modified time | relevance | path

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

12345678910>>...278

/Linux-v4.19/tools/testing/selftests/membarrier/
Dmembarrier_test.c11 static int sys_membarrier(int cmd, int flags) in sys_membarrier() argument
13 return syscall(__NR_membarrier, cmd, flags); in sys_membarrier()
18 int cmd = -1, flags = 0; in test_membarrier_cmd_fail() local
21 if (sys_membarrier(cmd, flags) != -1) { in test_membarrier_cmd_fail()
24 test_name, cmd, flags); in test_membarrier_cmd_fail()
29 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_cmd_fail()
35 test_name, cmd, flags, errno); in test_membarrier_cmd_fail()
41 int cmd = MEMBARRIER_CMD_QUERY, flags = 1; in test_membarrier_flags_fail() local
44 if (sys_membarrier(cmd, flags) != -1) { in test_membarrier_flags_fail()
47 test_name, flags); in test_membarrier_flags_fail()
[all …]
/Linux-v4.19/drivers/usb/phy/
Dphy-ulpi.c44 unsigned int flags = ULPI_OTG_CTRL_DP_PULLDOWN | in ulpi_set_otg_flags() local
47 if (phy->flags & ULPI_OTG_ID_PULLUP) in ulpi_set_otg_flags()
48 flags |= ULPI_OTG_CTRL_ID_PULLUP; in ulpi_set_otg_flags()
54 if (phy->flags & ULPI_OTG_DP_PULLDOWN_DIS) in ulpi_set_otg_flags()
55 flags &= ~ULPI_OTG_CTRL_DP_PULLDOWN; in ulpi_set_otg_flags()
57 if (phy->flags & ULPI_OTG_DM_PULLDOWN_DIS) in ulpi_set_otg_flags()
58 flags &= ~ULPI_OTG_CTRL_DM_PULLDOWN; in ulpi_set_otg_flags()
60 if (phy->flags & ULPI_OTG_EXTVBUSIND) in ulpi_set_otg_flags()
61 flags |= ULPI_OTG_CTRL_EXTVBUSIND; in ulpi_set_otg_flags()
63 return usb_phy_io_write(phy, flags, ULPI_OTG_CTRL); in ulpi_set_otg_flags()
[all …]
/Linux-v4.19/arch/parisc/kernel/
Dfirmware.c180 unsigned long flags; in set_firmware_width() local
181 spin_lock_irqsave(&pdc_lock, flags); in set_firmware_width()
183 spin_unlock_irqrestore(&pdc_lock, flags); in set_firmware_width()
225 unsigned long flags; in pdc_add_valid() local
227 spin_lock_irqsave(&pdc_lock, flags); in pdc_add_valid()
229 spin_unlock_irqrestore(&pdc_lock, flags); in pdc_add_valid()
244 unsigned long flags; in pdc_instr() local
246 spin_lock_irqsave(&pdc_lock, flags); in pdc_instr()
250 spin_unlock_irqrestore(&pdc_lock, flags); in pdc_instr()
266 unsigned long flags; in pdc_chassis_info() local
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/lib/
Dtest-string_helpers.c14 static __init bool test_string_check_buf(const char *name, unsigned int flags, in test_string_check_buf() argument
22 pr_warn("Test '%s' failed: flags = %u\n", name, flags); in test_string_check_buf()
37 unsigned int flags; member
44 .flags = UNESCAPE_SPACE,
49 .flags = UNESCAPE_OCTAL,
54 .flags = UNESCAPE_HEX,
59 .flags = UNESCAPE_SPECIAL,
63 static void __init test_string_unescape(const char *name, unsigned int flags, in test_string_unescape() argument
84 if (flags & strings[i].flags) { in test_string_unescape()
96 if (flags == UNESCAPE_ANY) in test_string_unescape()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/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 …]
/Linux-v4.19/include/linux/
Dirqflags.h81 #define raw_local_irq_save(flags) \ argument
83 typecheck(unsigned long, flags); \
84 flags = arch_local_irq_save(); \
86 #define raw_local_irq_restore(flags) \ argument
88 typecheck(unsigned long, flags); \
89 arch_local_irq_restore(flags); \
91 #define raw_local_save_flags(flags) \ argument
93 typecheck(unsigned long, flags); \
94 flags = arch_local_save_flags(); \
96 #define raw_irqs_disabled_flags(flags) \ argument
[all …]
Drwlock.h33 #define do_raw_read_lock_flags(lock, flags) do_raw_read_lock(lock) argument
37 #define do_raw_write_lock_flags(lock, flags) do_raw_write_lock(lock) argument
43 # define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument
47 # define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument
51 # define do_raw_read_lock_flags(lock, flags) \ argument
52 do {__acquire(lock); arch_read_lock_flags(&(lock)->raw_lock, *(flags)); } while (0)
56 # define do_raw_write_lock_flags(lock, flags) \ argument
57 do {__acquire(lock); arch_write_lock_flags(&(lock)->raw_lock, *(flags)); } while (0)
75 #define read_lock_irqsave(lock, flags) \ argument
77 typecheck(unsigned long, flags); \
[all …]
Dslab.h141 unsigned int align, slab_flags_t flags,
145 slab_flags_t flags,
355 void *__kmalloc(size_t size, gfp_t flags) __assume_kmalloc_alignment __malloc;
356 void *kmem_cache_alloc(struct kmem_cache *, gfp_t flags) __assume_slab_alignment __malloc;
379 void *__kmalloc_node(size_t size, gfp_t flags, int node) __assume_kmalloc_alignment __malloc;
380 void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node) __assume_slab_alignment __m…
382 static __always_inline void *__kmalloc_node(size_t size, gfp_t flags, int node) in __kmalloc_node() argument
384 return __kmalloc(size, flags); in __kmalloc_node()
387 static __always_inline void *kmem_cache_alloc_node(struct kmem_cache *s, gfp_t flags, int node) in kmem_cache_alloc_node() argument
389 return kmem_cache_alloc(s, flags); in kmem_cache_alloc_node()
[all …]
/Linux-v4.19/include/linux/sched/
Dmm.h115 unsigned long flags);
152 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument
158 if (unlikely(current->flags & PF_MEMALLOC_NOIO)) in current_gfp_context()
159 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context()
160 else if (unlikely(current->flags & PF_MEMALLOC_NOFS)) in current_gfp_context()
161 flags &= ~__GFP_FS; in current_gfp_context()
162 return flags; in current_gfp_context()
190 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local
191 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
192 return flags; in memalloc_noio_save()
[all …]
/Linux-v4.19/arch/c6x/include/asm/
Dirqflags.h21 unsigned long flags; in arch_local_save_flags() local
23 asm volatile (" mvc .s2 CSR,%0\n" : "=b"(flags)); in arch_local_save_flags()
24 return flags; in arch_local_save_flags()
28 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
30 asm volatile (" mvc .s2 %0,CSR\n" : : "b"(flags) : "memory"); in arch_local_irq_restore()
36 unsigned long flags = arch_local_save_flags(); in arch_local_irq_enable() local
37 flags |= 1; in arch_local_irq_enable()
38 arch_local_irq_restore(flags); in arch_local_irq_enable()
44 unsigned long flags = arch_local_save_flags(); in arch_local_irq_disable() local
45 flags &= ~1; in arch_local_irq_disable()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/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 …]
/Linux-v4.19/arch/arm/mach-omap1/
Dmcbsp.c102 .flags = IORESOURCE_MEM,
107 .flags = IORESOURCE_IRQ,
112 .flags = IORESOURCE_IRQ,
117 .flags = IORESOURCE_DMA,
122 .flags = IORESOURCE_DMA,
129 .flags = IORESOURCE_MEM,
134 .flags = IORESOURCE_IRQ,
139 .flags = IORESOURCE_IRQ,
144 .flags = IORESOURCE_DMA,
149 .flags = IORESOURCE_DMA,
[all …]
/Linux-v4.19/kernel/sched/
Dwait.c19 unsigned long flags; in add_wait_queue() local
21 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue()
22 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue()
24 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue()
30 unsigned long flags; in add_wait_queue_exclusive() local
32 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive()
33 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive()
35 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_exclusive()
41 unsigned long flags; in remove_wait_queue() local
43 spin_lock_irqsave(&wq_head->lock, flags); in remove_wait_queue()
[all …]
/Linux-v4.19/drivers/misc/sgi-xp/
Dxpc_channel.c33 if (!(ch->flags & XPC_C_OPENREQUEST) || in xpc_process_connect()
34 !(ch->flags & XPC_C_ROPENREQUEST)) { in xpc_process_connect()
38 DBUG_ON(!(ch->flags & XPC_C_CONNECTING)); in xpc_process_connect()
40 if (!(ch->flags & XPC_C_SETUP)) { in xpc_process_connect()
48 ch->flags |= XPC_C_SETUP; in xpc_process_connect()
50 if (ch->flags & XPC_C_DISCONNECTING) in xpc_process_connect()
54 if (!(ch->flags & XPC_C_OPENREPLY)) { in xpc_process_connect()
55 ch->flags |= XPC_C_OPENREPLY; in xpc_process_connect()
59 if (!(ch->flags & XPC_C_ROPENREPLY)) in xpc_process_connect()
62 if (!(ch->flags & XPC_C_OPENCOMPLETE)) { in xpc_process_connect()
[all …]
/Linux-v4.19/drivers/crypto/qce/
Dcommon.h62 #define IS_DES(flags) (flags & QCE_ALG_DES) argument
63 #define IS_3DES(flags) (flags & QCE_ALG_3DES) argument
64 #define IS_AES(flags) (flags & QCE_ALG_AES) argument
66 #define IS_SHA1(flags) (flags & QCE_HASH_SHA1) argument
67 #define IS_SHA256(flags) (flags & QCE_HASH_SHA256) argument
68 #define IS_SHA1_HMAC(flags) (flags & QCE_HASH_SHA1_HMAC) argument
69 #define IS_SHA256_HMAC(flags) (flags & QCE_HASH_SHA256_HMAC) argument
70 #define IS_CMAC(flags) (flags & QCE_HASH_AES_CMAC) argument
71 #define IS_SHA(flags) (IS_SHA1(flags) || IS_SHA256(flags)) argument
72 #define IS_SHA_HMAC(flags) \ argument
[all …]
Dcommon.c56 static u32 qce_encr_cfg(unsigned long flags, u32 aes_key_size) in qce_encr_cfg() argument
60 if (IS_AES(flags)) { in qce_encr_cfg()
67 if (IS_AES(flags)) in qce_encr_cfg()
69 else if (IS_DES(flags) || IS_3DES(flags)) in qce_encr_cfg()
72 if (IS_DES(flags)) in qce_encr_cfg()
75 if (IS_3DES(flags)) in qce_encr_cfg()
78 switch (flags & QCE_MODE_MASK) { in qce_encr_cfg()
102 static u32 qce_auth_cfg(unsigned long flags, u32 key_size) in qce_auth_cfg() argument
106 if (IS_AES(flags) && (IS_CCM(flags) || IS_CMAC(flags))) in qce_auth_cfg()
111 if (IS_CCM(flags) || IS_CMAC(flags)) { in qce_auth_cfg()
[all …]
/Linux-v4.19/tools/include/linux/
Dirqflags.h20 #define raw_local_irq_save(flags) ((flags) = 0) argument
21 #define raw_local_irq_restore(flags) ((void)(flags)) argument
22 #define raw_local_save_flags(flags) ((flags) = 0) argument
23 #define raw_irqs_disabled_flags(flags) ((void)(flags)) argument
29 #define local_irq_save(flags) ((flags) = 0) argument
30 #define local_irq_restore(flags) ((void)(flags)) argument
31 #define local_save_flags(flags) ((flags) = 0) argument
33 #define irqs_disabled_flags(flags) ((void)(flags), 0) argument
/Linux-v4.19/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()
71 unsigned long flags; in arch_read_lock() local
72 local_irq_save(flags); in arch_read_lock()
73 arch_spin_lock_flags(&rw->lock, flags); in arch_read_lock()
76 local_irq_restore(flags); in arch_read_lock()
83 unsigned long flags; in arch_read_unlock() local
84 local_irq_save(flags); in arch_read_unlock()
85 arch_spin_lock_flags(&rw->lock, flags); in arch_read_unlock()
88 local_irq_restore(flags); in arch_read_unlock()
[all …]
/Linux-v4.19/include/net/
Dgre.h9 __be16 flags; member
56 static inline __be16 gre_flags_to_tnl_flags(__be16 flags) in gre_flags_to_tnl_flags() argument
60 if (flags & GRE_CSUM) in gre_flags_to_tnl_flags()
62 if (flags & GRE_ROUTING) in gre_flags_to_tnl_flags()
64 if (flags & GRE_KEY) in gre_flags_to_tnl_flags()
66 if (flags & GRE_SEQ) in gre_flags_to_tnl_flags()
68 if (flags & GRE_STRICT) in gre_flags_to_tnl_flags()
70 if (flags & GRE_REC) in gre_flags_to_tnl_flags()
72 if (flags & GRE_VERSION) in gre_flags_to_tnl_flags()
80 __be16 flags = 0; in gre_tnl_flags_to_gre_flags() local
[all …]
/Linux-v4.19/arch/nios2/include/asm/
Dirqflags.h32 static inline void arch_local_irq_restore(unsigned long flags) in arch_local_irq_restore() argument
34 WRCTL(CTL_STATUS, flags); in arch_local_irq_restore()
39 unsigned long flags; in arch_local_irq_disable() local
41 flags = arch_local_save_flags(); in arch_local_irq_disable()
42 arch_local_irq_restore(flags & ~STATUS_PIE); in arch_local_irq_disable()
47 unsigned long flags; in arch_local_irq_enable() local
49 flags = arch_local_save_flags(); in arch_local_irq_enable()
50 arch_local_irq_restore(flags | STATUS_PIE); in arch_local_irq_enable()
53 static inline int arch_irqs_disabled_flags(unsigned long flags) in arch_irqs_disabled_flags() argument
55 return (flags & STATUS_PIE) == 0; in arch_irqs_disabled_flags()
[all …]
/Linux-v4.19/drivers/crypto/qat/qat_common/
Dicp_qat_fw_la.h147 #define ICP_QAT_FW_LA_CIPH_IV_FLD_FLAG_GET(flags) \ argument
148 QAT_FIELD_GET(flags, QAT_LA_CIPH_IV_FLD_BITPOS, \
151 #define ICP_QAT_FW_LA_CIPH_AUTH_CFG_OFFSET_FLAG_GET(flags) \ argument
152 QAT_FIELD_GET(flags, QAT_LA_CIPH_AUTH_CFG_OFFSET_BITPOS, \
155 #define ICP_QAT_FW_LA_ZUC_3G_PROTO_FLAG_GET(flags) \ argument
156 QAT_FIELD_GET(flags, QAT_FW_LA_ZUC_3G_PROTO_FLAG_BITPOS, \
159 #define ICP_QAT_FW_LA_GCM_IV_LEN_FLAG_GET(flags) \ argument
160 QAT_FIELD_GET(flags, QAT_LA_GCM_IV_LEN_FLAG_BITPOS, \
163 #define ICP_QAT_FW_LA_PROTO_GET(flags) \ argument
164 QAT_FIELD_GET(flags, QAT_LA_PROTO_BITPOS, QAT_LA_PROTO_MASK)
[all …]
/Linux-v4.19/scripts/coccinelle/locks/
Dflags.cocci1 /// Find nested lock+irqsave functions that use the same flags variables
16 expression lock1,lock2,flags;
21 spin_lock_irqsave@p1(lock1,flags)
23 read_lock_irqsave@p1(lock1,flags)
25 write_lock_irqsave@p1(lock1,flags)
27 ... when != flags
29 spin_lock_irqsave(lock1,flags)
31 read_lock_irqsave(lock1,flags)
33 write_lock_irqsave(lock1,flags)
35 spin_lock_irqsave@p2(lock2,flags)
[all …]

12345678910>>...278