/Linux-v6.1/tools/testing/selftests/membarrier/ |
D | membarrier_test_impl.h | 12 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() 24 "%s test: command = %d, flags = %d. Should fail, but passed\n", in test_membarrier_cmd_fail() 25 test_name, cmd, flags); in test_membarrier_cmd_fail() 29 "%s test: flags = %d. Should return (%d: \"%s\"), but returned (%d: \"%s\").\n", in test_membarrier_cmd_fail() 30 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_cmd_fail() 35 "%s test: command = %d, flags = %d, errno = %d. Failed as expected\n", in test_membarrier_cmd_fail() 36 test_name, cmd, flags, errno); in test_membarrier_cmd_fail() [all …]
|
/Linux-v6.1/drivers/usb/phy/ |
D | phy-ulpi.c | 44 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-v6.1/lib/ |
D | test-string_helpers.c | 14 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 83 /* Copy expected result for given flags */ in test_string_unescape() 84 if (flags & strings[i].flags) { in test_string_unescape() [all …]
|
/Linux-v6.1/tools/testing/selftests/net/mptcp/ |
D | pm_netlink.sh | 76 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.2 flags subflow dev lo 77 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.3 flags signal,backup 78 check "ip netns exec $ns1 ./pm_nl_ctl get 1" "id 1 flags 10.0.1.1" "simple add/get addr" 81 "id 1 flags 10.0.1.1 82 id 2 flags subflow dev lo 10.0.1.2 83 id 3 flags signal,backup 10.0.1.3" "dump addrs" 88 "id 1 flags 10.0.1.1 89 id 3 flags signal,backup 10.0.1.3" "dump addrs after del" 94 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.4 flags signal 95 check "ip netns exec $ns1 ./pm_nl_ctl get 4" "id 4 flags signal 10.0.1.4" "id addr increment" [all …]
|
/Linux-v6.1/arch/sparc/lib/ |
D | atomic32.c | 35 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-v6.1/fs/ubifs/ |
D | ioctl.c | 20 /* Need to be kept consistent with checked flags in ioctl2ubifs() */ 25 /* Need to be kept consistent with checked flags in ubifs2ioctl() */ 30 * ubifs_set_inode_flags - set VFS inode flags. 31 * @inode: VFS inode to set flags for 33 * This function propagates flags from UBIFS inode object to VFS inode object. 37 unsigned int flags = ubifs_inode(inode)->flags; in ubifs_set_inode_flags() local 41 if (flags & UBIFS_SYNC_FL) in ubifs_set_inode_flags() 43 if (flags & UBIFS_APPEND_FL) in ubifs_set_inode_flags() 45 if (flags & UBIFS_IMMUTABLE_FL) in ubifs_set_inode_flags() 47 if (flags & UBIFS_DIRSYNC_FL) in ubifs_set_inode_flags() [all …]
|
/Linux-v6.1/drivers/crypto/qat/qat_common/ |
D | icp_qat_fw_la.h | 106 #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 …]
|
/Linux-v6.1/drivers/scsi/bfa/ |
D | bfad_bsg.c | 22 unsigned long flags; in bfad_iocmd_ioc_enable() local 24 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable() 27 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable() 35 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable() 45 unsigned long flags; in bfad_iocmd_ioc_disable() local 47 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable() 49 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable() 55 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable() 62 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable() 78 unsigned long flags; in bfad_iocmd_ioc_get_info() local [all …]
|
/Linux-v6.1/arch/parisc/kernel/ |
D | firmware.c | 176 unsigned long flags; in set_firmware_width() local 182 spin_lock_irqsave(&pdc_lock, flags); in set_firmware_width() 184 spin_unlock_irqrestore(&pdc_lock, flags); in set_firmware_width() 226 unsigned long flags; in pdc_add_valid() local 228 spin_lock_irqsave(&pdc_lock, flags); in pdc_add_valid() 230 spin_unlock_irqrestore(&pdc_lock, flags); in pdc_add_valid() 245 unsigned long flags; in pdc_instr() local 247 spin_lock_irqsave(&pdc_lock, flags); in pdc_instr() 251 spin_unlock_irqrestore(&pdc_lock, flags); in pdc_instr() 267 unsigned long flags; in pdc_chassis_info() local [all …]
|
/Linux-v6.1/drivers/gpu/drm/i915/gt/ |
D | gen8_engine_cs.c | 16 u32 *cs, flags = 0; in gen8_emit_flush_rcs() local 19 flags |= PIPE_CONTROL_CS_STALL; in gen8_emit_flush_rcs() 22 flags |= PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH; in gen8_emit_flush_rcs() 23 flags |= PIPE_CONTROL_DEPTH_CACHE_FLUSH; in gen8_emit_flush_rcs() 24 flags |= PIPE_CONTROL_DC_FLUSH_ENABLE; in gen8_emit_flush_rcs() 25 flags |= PIPE_CONTROL_FLUSH_ENABLE; in gen8_emit_flush_rcs() 29 flags |= PIPE_CONTROL_TLB_INVALIDATE; in gen8_emit_flush_rcs() 30 flags |= PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE; in gen8_emit_flush_rcs() 31 flags |= PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE; in gen8_emit_flush_rcs() 32 flags |= PIPE_CONTROL_VF_CACHE_INVALIDATE; in gen8_emit_flush_rcs() [all …]
|
/Linux-v6.1/kernel/sched/ |
D | isolation.c | 28 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-v6.1/drivers/clk/x86/ |
D | clk-cgu.c | 27 unsigned long flags; in lgm_clk_register_fixed() local 30 spin_lock_irqsave(&ctx->lock, flags); in lgm_clk_register_fixed() 33 spin_unlock_irqrestore(&ctx->lock, flags); in lgm_clk_register_fixed() 38 list->flags, list->mux_flags); in lgm_clk_register_fixed() 44 unsigned long flags; in lgm_clk_mux_get_parent() local 47 spin_lock_irqsave(&mux->lock, flags); in lgm_clk_mux_get_parent() 48 if (mux->flags & MUX_CLK_SW) in lgm_clk_mux_get_parent() 53 spin_unlock_irqrestore(&mux->lock, flags); in lgm_clk_mux_get_parent() 54 return clk_mux_val_to_index(hw, NULL, mux->flags, val); in lgm_clk_mux_get_parent() 60 unsigned long flags; in lgm_clk_mux_set_parent() local [all …]
|
/Linux-v6.1/scripts/coccinelle/locks/ |
D | flags.cocci | 2 /// Find nested lock+irqsave functions that use the same flags variables 17 expression lock1,lock2,flags; 22 spin_lock_irqsave@p1(lock1,flags) 24 read_lock_irqsave@p1(lock1,flags) 26 write_lock_irqsave@p1(lock1,flags) 28 ... when != flags 30 spin_lock_irqsave(lock1,flags) 32 read_lock_irqsave(lock1,flags) 34 write_lock_irqsave(lock1,flags) 36 spin_lock_irqsave@p2(lock2,flags) [all …]
|
/Linux-v6.1/arch/arm/mach-omap1/ |
D | mcbsp.c | 98 .flags = IORESOURCE_MEM, 103 .flags = IORESOURCE_IRQ, 108 .flags = IORESOURCE_IRQ, 113 .flags = IORESOURCE_DMA, 118 .flags = IORESOURCE_DMA, 125 .flags = IORESOURCE_MEM, 130 .flags = IORESOURCE_IRQ, 135 .flags = IORESOURCE_IRQ, 140 .flags = IORESOURCE_DMA, 145 .flags = IORESOURCE_DMA, [all …]
|
/Linux-v6.1/arch/mips/pci/ |
D | pci-ip32.c | 28 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-v6.1/include/linux/ |
D | slab.h | 23 * Flags to pass to kmem_cache_create(). 118 * Ignore user specified debugging flags. 119 * Intended for caches created for self-tests so they have only flags 120 * specified in the code and other flags are ignored. 130 /* The following flags affect the page allocator grouping pages by mobility */ 159 unsigned int align, slab_flags_t flags, 163 slab_flags_t flags, 171 * name of the structure and maybe some flags that are listed above. 195 void * __must_check krealloc(const void *objp, size_t new_size, gfp_t flags) __realloc_size(2); 361 static __always_inline enum kmalloc_cache_type kmalloc_type(gfp_t flags) in kmalloc_type() argument [all …]
|
D | clk-provider.h | 13 * flags used across common struct clk. these flags should only affect the 14 * top-level framework. custom flags for dealing with hardware specifics 295 * @flags: framework-level hints and quirks 305 unsigned long flags; member 335 * unique flags for that hardware type, a registration function and an 344 * @flags: hardware specific flags 346 * Flags: 354 unsigned long flags; member 363 const struct clk_parent_data *parent_data, unsigned long flags, 367 const char *parent_name, unsigned long flags, [all …]
|
/Linux-v6.1/include/net/ |
D | gre.h | 9 __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-v6.1/tools/testing/selftests/core/ |
D | close_range_test.c | 48 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-v6.1/drivers/clk/ |
D | clk-divider.c | 31 if (divider->flags & CLK_DIVIDER_BIG_ENDIAN) in clk_div_readl() 39 if (divider->flags & CLK_DIVIDER_BIG_ENDIAN) in clk_div_writel() 69 unsigned long flags) in _get_maxdiv() argument 71 if (flags & CLK_DIVIDER_ONE_BASED) in _get_maxdiv() 73 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_maxdiv() 92 unsigned int val, unsigned long flags, u8 width) in _get_div() argument 94 if (flags & CLK_DIVIDER_ONE_BASED) in _get_div() 96 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_div() 98 if (flags & CLK_DIVIDER_MAX_AT_ZERO) in _get_div() 117 unsigned int div, unsigned long flags, u8 width) in _get_val() argument [all …]
|
/Linux-v6.1/drivers/misc/sgi-xp/ |
D | xpc_channel.c | 33 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-v6.1/tools/testing/selftests/openat2/ |
D | openat2_test.c | 57 .arg.inner.flags = O_RDONLY, in test_openat2_struct() 61 .arg.inner.flags = O_RDONLY, in test_openat2_struct() 68 .arg.inner.flags = O_RDONLY, .size = 0, .err = -EINVAL }, in test_openat2_struct() 70 .arg.inner.flags = O_RDONLY, in test_openat2_struct() 75 .arg.inner.flags = O_RDONLY, .arg.extra1 = 0xdeadbeef, in test_openat2_struct() 78 .arg.inner.flags = O_RDONLY, .arg.extra2 = 0xfeedcafe, in test_openat2_struct() 81 .arg.inner.flags = O_RDONLY, .arg.extra3 = 0xabad1dea, in test_openat2_struct() 168 { .name = "incompatible flags (O_TMPFILE | O_PATH)", in test_openat2_flags() 169 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 170 { .name = "incompatible flags (O_TMPFILE | O_CREAT)", in test_openat2_flags() [all …]
|
/Linux-v6.1/drivers/crypto/qce/ |
D | common.c | 101 static u32 qce_auth_cfg(unsigned long flags, u32 key_size, u32 auth_size) in qce_auth_cfg() argument 105 if (IS_CCM(flags) || IS_CMAC(flags)) in qce_auth_cfg() 110 if (IS_CCM(flags) || IS_CMAC(flags)) { in qce_auth_cfg() 117 if (IS_SHA1(flags) || IS_SHA1_HMAC(flags)) in qce_auth_cfg() 119 else if (IS_SHA256(flags) || IS_SHA256_HMAC(flags)) in qce_auth_cfg() 121 else if (IS_CMAC(flags)) in qce_auth_cfg() 123 else if (IS_CCM(flags)) in qce_auth_cfg() 126 if (IS_SHA1(flags) || IS_SHA256(flags)) in qce_auth_cfg() 128 else if (IS_SHA1_HMAC(flags) || IS_SHA256_HMAC(flags)) in qce_auth_cfg() 130 else if (IS_CCM(flags)) in qce_auth_cfg() [all …]
|
/Linux-v6.1/kernel/ |
D | nsproxy.c | 67 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-v6.1/security/apparmor/ |
D | mount.c | 27 static void audit_mnt_flags(struct audit_buffer *ab, unsigned long flags) in audit_mnt_flags() argument 29 if (flags & MS_RDONLY) in audit_mnt_flags() 33 if (flags & MS_NOSUID) in audit_mnt_flags() 35 if (flags & MS_NODEV) in audit_mnt_flags() 37 if (flags & MS_NOEXEC) in audit_mnt_flags() 39 if (flags & MS_SYNCHRONOUS) in audit_mnt_flags() 41 if (flags & MS_REMOUNT) in audit_mnt_flags() 43 if (flags & MS_MANDLOCK) in audit_mnt_flags() 45 if (flags & MS_DIRSYNC) in audit_mnt_flags() 47 if (flags & MS_NOATIME) in audit_mnt_flags() [all …]
|