Home
last modified time | relevance | path

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

12345678910>>...296

/linux-6.6.21/tools/testing/selftests/membarrier/
Dmembarrier_test_impl.h14 static int sys_membarrier(int cmd, int flags) in sys_membarrier() argument
16 return syscall(__NR_membarrier, cmd, flags); in sys_membarrier()
21 int ret, flags = 0; in test_membarrier_get_registrations() local
31 test_name, flags, errno); in test_membarrier_get_registrations()
35 test_name, flags, ret, registrations); in test_membarrier_get_registrations()
39 test_name, flags, ret, registrations); in test_membarrier_get_registrations()
46 int cmd = -1, flags = 0; in test_membarrier_cmd_fail() local
49 if (sys_membarrier(cmd, flags) != -1) { in test_membarrier_cmd_fail()
52 test_name, cmd, flags); in test_membarrier_cmd_fail()
57 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_cmd_fail()
[all …]
/linux-6.6.21/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-6.6.21/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 = %#x\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-6.6.21/arch/parisc/kernel/
Dfirmware.c178 unsigned long flags; in set_firmware_width() local
184 spin_lock_irqsave(&pdc_lock, flags); in set_firmware_width()
186 spin_unlock_irqrestore(&pdc_lock, flags); in set_firmware_width()
228 unsigned long flags; in pdc_add_valid() local
230 spin_lock_irqsave(&pdc_lock, flags); in pdc_add_valid()
232 spin_unlock_irqrestore(&pdc_lock, flags); in pdc_add_valid()
247 unsigned long flags; in pdc_instr() local
249 spin_lock_irqsave(&pdc_lock, flags); in pdc_instr()
253 spin_unlock_irqrestore(&pdc_lock, flags); in pdc_instr()
269 unsigned long flags; in pdc_chassis_info() local
[all …]
Dsys_parisc.c91 if (current->flags & PF_RANDOMIZE) in mmap_upper_limit()
101 unsigned long flags, enum mmap_allocation_direction dir) in arch_get_unmapped_area_common() argument
113 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_common()
117 if (flags & MAP_FIXED) { in arch_get_unmapped_area_common()
122 if ((flags & MAP_SHARED) && filp && in arch_get_unmapped_area_common()
147 info.flags = VM_UNMAPPED_AREA_TOPDOWN; in arch_get_unmapped_area_common()
163 info.flags = 0; in arch_get_unmapped_area_common()
170 unsigned long len, unsigned long pgoff, unsigned long flags) in arch_get_unmapped_area() argument
173 addr, len, pgoff, flags, UP); in arch_get_unmapped_area()
178 unsigned long flags) in arch_get_unmapped_area_topdown() argument
[all …]
/linux-6.6.21/sound/hda/
Dintel-dsp-config.c31 u32 flags; member
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,
150 .flags = FLAG_SOF,
[all …]
/linux-6.6.21/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-6.6.21/arch/powerpc/include/asm/
Dhw_irq.h118 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()
[all …]
/linux-6.6.21/include/linux/sched/
Dmm.h172 #define arch_get_mmap_end(addr, len, flags) (TASK_SIZE) argument
187 unsigned long flags);
192 unsigned long flags);
196 unsigned long flags);
235 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument
237 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context()
245 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context()
247 flags &= ~__GFP_FS; in current_gfp_context()
250 flags &= ~__GFP_MOVABLE; in current_gfp_context()
252 return flags; in current_gfp_context()
[all …]
/linux-6.6.21/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 arch_atomic_xchg() local
75 spin_lock_irqsave(ATOMIC_HASH(v), flags); in arch_atomic_xchg()
78 spin_unlock_irqrestore(ATOMIC_HASH(v), flags); in arch_atomic_xchg()
86 unsigned long flags; in arch_atomic_cmpxchg() local
[all …]
/linux-6.6.21/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 add_wait_queue_priority() local
43 wq_entry->flags |= WQ_FLAG_EXCLUSIVE | WQ_FLAG_PRIORITY; in add_wait_queue_priority()
[all …]
Disolation.c28 unsigned long flags; member
35 return !!(housekeeping.flags & BIT(type)); in housekeeping_enabled()
44 if (housekeeping.flags & BIT(type)) { in housekeeping_any_cpu()
59 if (housekeeping.flags & BIT(type)) in housekeeping_cpumask()
68 if (housekeeping.flags & BIT(type)) in housekeeping_affine()
76 if (housekeeping.flags & BIT(type)) in housekeeping_test_cpu()
86 if (!housekeeping.flags) in housekeeping_init()
91 if (housekeeping.flags & HK_FLAG_TICK) in housekeeping_init()
94 for_each_set_bit(type, &housekeeping.flags, HK_TYPE_MAX) { in housekeeping_init()
109 static int __init housekeeping_setup(char *str, unsigned long flags) in housekeeping_setup() argument
[all …]
/linux-6.6.21/include/linux/
Dslab.h190 unsigned int align, slab_flags_t flags,
194 slab_flags_t flags,
226 void * __must_check krealloc(const void *objp, size_t new_size, gfp_t flags) __realloc_size(2);
400 static __always_inline enum kmalloc_cache_type kmalloc_type(gfp_t flags, unsigned long caller) in kmalloc_type() argument
406 if (likely((flags & KMALLOC_NOT_NORMAL_BITS) == 0)) in kmalloc_type()
422 if (IS_ENABLED(CONFIG_ZONE_DMA) && (flags & __GFP_DMA)) in kmalloc_type()
424 if (!IS_ENABLED(CONFIG_MEMCG_KMEM) || (flags & __GFP_RECLAIMABLE)) in kmalloc_type()
487 void *__kmalloc(size_t size, gfp_t flags) __assume_kmalloc_alignment __alloc_size(1);
499 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) __assume_slab_alignment __malloc;
512 int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p);
[all …]
Dirqflags.h176 #define raw_local_irq_save(flags) \ argument
178 typecheck(unsigned long, flags); \
179 flags = arch_local_irq_save(); \
181 #define raw_local_irq_restore(flags) \ argument
183 typecheck(unsigned long, flags); \
185 arch_local_irq_restore(flags); \
187 #define raw_local_save_flags(flags) \ argument
189 typecheck(unsigned long, flags); \
190 flags = arch_local_save_flags(); \
192 #define raw_irqs_disabled_flags(flags) \ argument
[all …]
/linux-6.6.21/tools/testing/selftests/core/
Dclose_range_test.c48 unsigned int flags) in sys_close_range() argument
50 return syscall(__NR_close_range, fd, max_fd, flags); in sys_close_range()
118 .flags = CLONE_FILES, in TEST()
207 .flags = CLONE_FILES, in TEST()
282 int flags = fcntl(open_fds[i], F_GETFD); in TEST() local
284 EXPECT_GT(flags, -1); in TEST()
285 EXPECT_EQ(flags & FD_CLOEXEC, FD_CLOEXEC); in TEST()
289 int flags = fcntl(open_fds[i], F_GETFD); in TEST() local
291 EXPECT_GT(flags, -1); in TEST()
292 EXPECT_EQ(flags & FD_CLOEXEC, 0); in TEST()
[all …]
/linux-6.6.21/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-6.6.21/kernel/
Dnsproxy.c67 static struct nsproxy *create_new_namespaces(unsigned long flags, in create_new_namespaces() argument
78 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, user_ns, new_fs); in create_new_namespaces()
84 new_nsp->uts_ns = copy_utsname(flags, user_ns, tsk->nsproxy->uts_ns); in create_new_namespaces()
90 new_nsp->ipc_ns = copy_ipcs(flags, user_ns, tsk->nsproxy->ipc_ns); in create_new_namespaces()
97 copy_pid_ns(flags, user_ns, tsk->nsproxy->pid_ns_for_children); in create_new_namespaces()
103 new_nsp->cgroup_ns = copy_cgroup_ns(flags, user_ns, in create_new_namespaces()
110 new_nsp->net_ns = copy_net_ns(flags, user_ns, tsk->nsproxy->net_ns); in create_new_namespaces()
116 new_nsp->time_ns_for_children = copy_time_ns(flags, user_ns, in create_new_namespaces()
151 int copy_namespaces(unsigned long flags, struct task_struct *tsk) in copy_namespaces() argument
157 if (likely(!(flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in copy_namespaces()
[all …]
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/
Dicp_qat_fw_la.h106 #define ICP_QAT_FW_LA_CIPH_IV_FLD_FLAG_GET(flags) \ argument
107 QAT_FIELD_GET(flags, QAT_LA_CIPH_IV_FLD_BITPOS, \
110 #define ICP_QAT_FW_LA_CIPH_AUTH_CFG_OFFSET_FLAG_GET(flags) \ argument
111 QAT_FIELD_GET(flags, QAT_LA_CIPH_AUTH_CFG_OFFSET_BITPOS, \
114 #define ICP_QAT_FW_LA_ZUC_3G_PROTO_FLAG_GET(flags) \ argument
115 QAT_FIELD_GET(flags, QAT_FW_LA_ZUC_3G_PROTO_FLAG_BITPOS, \
118 #define ICP_QAT_FW_LA_GCM_IV_LEN_FLAG_GET(flags) \ argument
119 QAT_FIELD_GET(flags, QAT_LA_GCM_IV_LEN_FLAG_BITPOS, \
122 #define ICP_QAT_FW_LA_PROTO_GET(flags) \ argument
123 QAT_FIELD_GET(flags, QAT_LA_PROTO_BITPOS, QAT_LA_PROTO_MASK)
[all …]
Dicp_qat_fw_comp.h61 #define ICP_QAT_FW_COMP_SESSION_TYPE_GET(flags) \ argument
62 QAT_FIELD_GET(flags, ICP_QAT_FW_COMP_SESSION_TYPE_BITPOS, \
65 #define ICP_QAT_FW_COMP_SESSION_TYPE_SET(flags, val) \ argument
66 QAT_FIELD_SET(flags, val, ICP_QAT_FW_COMP_SESSION_TYPE_BITPOS, \
69 #define ICP_QAT_FW_COMP_AUTO_SELECT_BEST_GET(flags) \ argument
70 QAT_FIELD_GET(flags, ICP_QAT_FW_COMP_AUTO_SELECT_BEST_BITPOS, \
73 #define ICP_QAT_FW_COMP_EN_ASB_GET(flags) \ argument
74 QAT_FIELD_GET(flags, ICP_QAT_FW_COMP_ENHANCED_AUTO_SELECT_BEST_BITPOS, \
77 #define ICP_QAT_FW_COMP_RET_UNCOMP_GET(flags) \ argument
78 QAT_FIELD_GET(flags, \
[all …]
/linux-6.6.21/drivers/crypto/qce/
Dcommon.h61 #define IS_DES(flags) (flags & QCE_ALG_DES) argument
62 #define IS_3DES(flags) (flags & QCE_ALG_3DES) argument
63 #define IS_AES(flags) (flags & QCE_ALG_AES) argument
65 #define IS_SHA1(flags) (flags & QCE_HASH_SHA1) argument
66 #define IS_SHA256(flags) (flags & QCE_HASH_SHA256) argument
67 #define IS_SHA1_HMAC(flags) (flags & QCE_HASH_SHA1_HMAC) argument
68 #define IS_SHA256_HMAC(flags) (flags & QCE_HASH_SHA256_HMAC) argument
69 #define IS_CMAC(flags) (flags & QCE_HASH_AES_CMAC) argument
70 #define IS_SHA(flags) (IS_SHA1(flags) || IS_SHA256(flags)) argument
71 #define IS_SHA_HMAC(flags) \ argument
[all …]
/linux-6.6.21/arch/arm/mach-omap1/
Dmcbsp.c97 .flags = IORESOURCE_MEM,
102 .flags = IORESOURCE_IRQ,
107 .flags = IORESOURCE_IRQ,
112 .flags = IORESOURCE_DMA,
117 .flags = IORESOURCE_DMA,
124 .flags = IORESOURCE_MEM,
129 .flags = IORESOURCE_IRQ,
134 .flags = IORESOURCE_IRQ,
139 .flags = IORESOURCE_DMA,
144 .flags = IORESOURCE_DMA,
[all …]
/linux-6.6.21/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 …]
/linux-6.6.21/drivers/rtc/
Drtc-nct3018y.c51 int err, flags; in nct3018y_set_alarm_mode() local
55 flags = i2c_smbus_read_byte_data(client, NCT3018Y_REG_CTRL); in nct3018y_set_alarm_mode()
56 if (flags < 0) { in nct3018y_set_alarm_mode()
59 return flags; in nct3018y_set_alarm_mode()
63 flags |= NCT3018Y_BIT_AIE; in nct3018y_set_alarm_mode()
65 flags &= ~NCT3018Y_BIT_AIE; in nct3018y_set_alarm_mode()
67 flags |= NCT3018Y_BIT_CIE; in nct3018y_set_alarm_mode()
68 err = i2c_smbus_write_byte_data(client, NCT3018Y_REG_CTRL, flags); in nct3018y_set_alarm_mode()
74 flags = i2c_smbus_read_byte_data(client, NCT3018Y_REG_ST); in nct3018y_set_alarm_mode()
75 if (flags < 0) { in nct3018y_set_alarm_mode()
[all …]
/linux-6.6.21/drivers/infiniband/sw/rxe/
Drxe_task.c76 unsigned long flags; in is_done() local
79 spin_lock_irqsave(&task->lock, flags); in is_done()
81 spin_unlock_irqrestore(&task->lock, flags); in is_done()
106 unsigned long flags; in do_task() local
113 spin_lock_irqsave(&task->lock, flags); in do_task()
117 spin_unlock_irqrestore(&task->lock, flags); in do_task()
120 spin_unlock_irqrestore(&task->lock, flags); in do_task()
130 spin_lock_irqsave(&task->lock, flags); in do_task()
173 spin_unlock_irqrestore(&task->lock, flags); in do_task()
214 unsigned long flags; in rxe_cleanup_task() local
[all …]
/linux-6.6.21/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_formats.c21 .flags = ROTATE_FLAG_OUTPUT
29 .flags = ROTATE_FLAG_OUTPUT
37 .flags = ROTATE_FLAG_OUTPUT
45 .flags = ROTATE_FLAG_OUTPUT
53 .flags = ROTATE_FLAG_OUTPUT
61 .flags = ROTATE_FLAG_OUTPUT
69 .flags = ROTATE_FLAG_OUTPUT
77 .flags = ROTATE_FLAG_OUTPUT
85 .flags = ROTATE_FLAG_OUTPUT
93 .flags = ROTATE_FLAG_OUTPUT
[all …]

12345678910>>...296