Home
last modified time | relevance | path

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

12345678910>>...443

/kernel/linux/linux-5.10/tools/testing/selftests/membarrier/
Dmembarrier_test_impl.h12 static int sys_membarrier(int cmd, int flags) in sys_membarrier() argument
14 return syscall(__NR_membarrier, cmd, flags); in sys_membarrier()
19 int cmd = -1, flags = 0; in test_membarrier_cmd_fail() local
22 if (sys_membarrier(cmd, flags) != -1) { in test_membarrier_cmd_fail()
25 test_name, cmd, flags); in test_membarrier_cmd_fail()
30 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_cmd_fail()
36 test_name, cmd, flags, errno); in test_membarrier_cmd_fail()
42 int cmd = MEMBARRIER_CMD_QUERY, flags = 1; in test_membarrier_flags_fail() local
45 if (sys_membarrier(cmd, flags) != -1) { in test_membarrier_flags_fail()
48 test_name, flags); in test_membarrier_flags_fail()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dfirmware.c176 unsigned long flags; in set_firmware_width() local
177 spin_lock_irqsave(&pdc_lock, flags); in set_firmware_width()
179 spin_unlock_irqrestore(&pdc_lock, flags); in set_firmware_width()
221 unsigned long flags; in pdc_add_valid() local
223 spin_lock_irqsave(&pdc_lock, flags); in pdc_add_valid()
225 spin_unlock_irqrestore(&pdc_lock, flags); in pdc_add_valid()
240 unsigned long flags; in pdc_instr() local
242 spin_lock_irqsave(&pdc_lock, flags); in pdc_instr()
246 spin_unlock_irqrestore(&pdc_lock, flags); in pdc_instr()
262 unsigned long flags; in pdc_chassis_info() local
[all …]
Dsys_parisc.c76 if (current->flags & PF_RANDOMIZE) in mmap_upper_limit()
84 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area() argument
96 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
100 if (flags & MAP_FIXED) { in arch_get_unmapped_area()
101 if ((flags & MAP_SHARED) && last_mmap && in arch_get_unmapped_area()
121 info.flags = 0; in arch_get_unmapped_area()
139 const unsigned long flags) in arch_get_unmapped_area_topdown() argument
152 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
156 if (flags & MAP_FIXED) { in arch_get_unmapped_area_topdown()
157 if ((flags & MAP_SHARED) && last_mmap && in arch_get_unmapped_area_topdown()
[all …]
/kernel/linux/linux-5.10/include/linux/sched/
Dmm.h125 unsigned long flags);
163 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument
165 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
173 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context()
175 flags &= ~__GFP_FS; in current_gfp_context()
177 return flags; in current_gfp_context()
205 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local
206 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save()
207 return flags; in memalloc_noio_save()
218 static inline void memalloc_noio_restore(unsigned int flags) in memalloc_noio_restore() argument
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dhw_irq.h67 unsigned long flags; in irq_soft_mask_return() local
71 : "=r" (flags) in irq_soft_mask_return()
74 return flags; in irq_soft_mask_return()
112 unsigned long flags; in irq_soft_mask_set_return() local
120 : "=&r" (flags) in irq_soft_mask_set_return()
125 return flags; in irq_soft_mask_set_return()
130 unsigned long flags, tmp; in irq_soft_mask_or_return() local
134 : "=&r" (flags), "=r" (tmp) in irq_soft_mask_or_return()
140 WARN_ON((mask | flags) && !((mask | flags) & IRQS_DISABLED)); in irq_soft_mask_or_return()
143 return flags; in irq_soft_mask_or_return()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
53 unsigned long flags; in update_mmu_cache() local
59 local_irq_save(flags); in update_mmu_cache()
63 local_irq_restore(flags); in update_mmu_cache()
67 if ((test_and_clear_bit(PG_dcache_dirty, &page->flags)) || in update_mmu_cache()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dirqflags.h112 if (!(atomic_read(&__work->flags) & IRQ_WORK_HARD_IRQ))\
117 if (!(atomic_read(&__work->flags) & IRQ_WORK_HARD_IRQ))\
157 #define raw_local_irq_save(flags) \ argument
159 typecheck(unsigned long, flags); \
160 flags = arch_local_irq_save(); \
162 #define raw_local_irq_restore(flags) \ argument
164 typecheck(unsigned long, flags); \
165 arch_local_irq_restore(flags); \
167 #define raw_local_save_flags(flags) \ argument
169 typecheck(unsigned long, flags); \
[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.h148 unsigned int align, slab_flags_t flags,
152 slab_flags_t flags,
318 static __always_inline enum kmalloc_cache_type kmalloc_type(gfp_t flags) in kmalloc_type() argument
325 if (likely((flags & (__GFP_DMA | __GFP_RECLAIMABLE)) == 0)) in kmalloc_type()
332 return flags & __GFP_DMA ? KMALLOC_DMA : KMALLOC_RECLAIM; in kmalloc_type()
334 return flags & __GFP_RECLAIMABLE ? KMALLOC_RECLAIM : KMALLOC_NORMAL; in kmalloc_type()
389 void *__kmalloc(size_t size, gfp_t flags) __assume_kmalloc_alignment __malloc;
390 void *kmem_cache_alloc(struct kmem_cache *, gfp_t flags) __assume_slab_alignment __malloc;
413 void *__kmalloc_node(size_t size, gfp_t flags, int node) __assume_kmalloc_alignment __malloc;
414 void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node) __assume_slab_alignment __m…
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/sound/hda/
Dintel-dsp-config.c30 u32 flags; member
45 .flags = FLAG_SOF,
52 .flags = FLAG_SOF,
63 .flags = FLAG_SOF,
77 .flags = FLAG_SOF,
84 .flags = FLAG_SST,
105 .flags = FLAG_SST,
118 .flags = FLAG_SST | FLAG_SST_ONLY_IF_DMIC,
125 .flags = FLAG_SST,
138 .flags = FLAG_SST | FLAG_SST_ONLY_IF_DMIC,
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/kernel/sched/
Dwait.c20 unsigned long flags; in add_wait_queue() local
22 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue()
23 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue()
25 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue()
31 unsigned long flags; in add_wait_queue_exclusive() local
33 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive()
34 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive()
36 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_exclusive()
42 unsigned long flags; in remove_wait_queue() local
44 spin_lock_irqsave(&wq_head->lock, flags); in remove_wait_queue()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/qce/
Dcommon.h58 #define IS_DES(flags) (flags & QCE_ALG_DES) argument
59 #define IS_3DES(flags) (flags & QCE_ALG_3DES) argument
60 #define IS_AES(flags) (flags & QCE_ALG_AES) argument
62 #define IS_SHA1(flags) (flags & QCE_HASH_SHA1) argument
63 #define IS_SHA256(flags) (flags & QCE_HASH_SHA256) argument
64 #define IS_SHA1_HMAC(flags) (flags & QCE_HASH_SHA1_HMAC) argument
65 #define IS_SHA256_HMAC(flags) (flags & QCE_HASH_SHA256_HMAC) argument
66 #define IS_CMAC(flags) (flags & QCE_HASH_AES_CMAC) argument
67 #define IS_SHA(flags) (IS_SHA1(flags) || IS_SHA256(flags)) argument
68 #define IS_SHA_HMAC(flags) \ argument
[all …]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/kernel/
Dnsproxy.c68 static struct nsproxy *create_new_namespaces(unsigned long flags, in create_new_namespaces() argument
79 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, user_ns, new_fs); in create_new_namespaces()
85 new_nsp->uts_ns = copy_utsname(flags, user_ns, tsk->nsproxy->uts_ns); in create_new_namespaces()
91 new_nsp->ipc_ns = copy_ipcs(flags, user_ns, tsk->nsproxy->ipc_ns); in create_new_namespaces()
98 copy_pid_ns(flags, user_ns, tsk->nsproxy->pid_ns_for_children); in create_new_namespaces()
104 new_nsp->cgroup_ns = copy_cgroup_ns(flags, user_ns, in create_new_namespaces()
111 new_nsp->net_ns = copy_net_ns(flags, user_ns, tsk->nsproxy->net_ns); in create_new_namespaces()
117 new_nsp->time_ns_for_children = copy_time_ns(flags, user_ns, in create_new_namespaces()
152 int copy_namespaces(unsigned long flags, struct task_struct *tsk) in copy_namespaces() argument
159 if (likely(!(flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in copy_namespaces()
[all …]
/kernel/linux/linux-5.10/include/net/
Dgre.h9 __be16 flags; member
65 static inline __be16 gre_flags_to_tnl_flags(__be16 flags) in gre_flags_to_tnl_flags() argument
69 if (flags & GRE_CSUM) in gre_flags_to_tnl_flags()
71 if (flags & GRE_ROUTING) in gre_flags_to_tnl_flags()
73 if (flags & GRE_KEY) in gre_flags_to_tnl_flags()
75 if (flags & GRE_SEQ) in gre_flags_to_tnl_flags()
77 if (flags & GRE_STRICT) in gre_flags_to_tnl_flags()
79 if (flags & GRE_REC) in gre_flags_to_tnl_flags()
81 if (flags & GRE_VERSION) in gre_flags_to_tnl_flags()
89 __be16 flags = 0; in gre_tnl_flags_to_gre_flags() local
[all …]
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
Dicp_qat_fw_la.h103 #define ICP_QAT_FW_LA_CIPH_IV_FLD_FLAG_GET(flags) \ argument
104 QAT_FIELD_GET(flags, QAT_LA_CIPH_IV_FLD_BITPOS, \
107 #define ICP_QAT_FW_LA_CIPH_AUTH_CFG_OFFSET_FLAG_GET(flags) \ argument
108 QAT_FIELD_GET(flags, QAT_LA_CIPH_AUTH_CFG_OFFSET_BITPOS, \
111 #define ICP_QAT_FW_LA_ZUC_3G_PROTO_FLAG_GET(flags) \ argument
112 QAT_FIELD_GET(flags, QAT_FW_LA_ZUC_3G_PROTO_FLAG_BITPOS, \
115 #define ICP_QAT_FW_LA_GCM_IV_LEN_FLAG_GET(flags) \ argument
116 QAT_FIELD_GET(flags, QAT_LA_GCM_IV_LEN_FLAG_BITPOS, \
119 #define ICP_QAT_FW_LA_PROTO_GET(flags) \ argument
120 QAT_FIELD_GET(flags, QAT_LA_PROTO_BITPOS, QAT_LA_PROTO_MASK)
[all …]
/kernel/linux/linux-5.10/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_FSTATUS, 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 …]

12345678910>>...443