| /kernel/linux/linux-4.19/tools/testing/selftests/membarrier/ |
| D | membarrier_test.c | 11 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() 23 "%s test: command = %d, flags = %d. Should fail, but passed\n", in test_membarrier_cmd_fail() 24 test_name, cmd, flags); in test_membarrier_cmd_fail() 28 "%s test: flags = %d. Should return (%d: \"%s\"), but returned (%d: \"%s\").\n", in test_membarrier_cmd_fail() 29 test_name, flags, EINVAL, strerror(EINVAL), in test_membarrier_cmd_fail() 34 "%s test: command = %d, flags = %d, errno = %d. Failed as expected\n", in test_membarrier_cmd_fail() 35 test_name, cmd, flags, errno); in test_membarrier_cmd_fail() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/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 …]
|
| /kernel/linux/linux-5.10/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 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-4.19/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 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/fs/ubifs/ |
| D | ioctl.c | 19 /* Need to be kept consistent with checked flags in ioctl2ubifs() */ 24 /* Need to be kept consistent with checked flags in ubifs2ioctl() */ 29 * ubifs_set_inode_flags - set VFS inode flags. 30 * @inode: VFS inode to set flags for 32 * This function propagates flags from UBIFS inode object to VFS inode object. 36 unsigned int flags = ubifs_inode(inode)->flags; in ubifs_set_inode_flags() local 40 if (flags & UBIFS_SYNC_FL) in ubifs_set_inode_flags() 42 if (flags & UBIFS_APPEND_FL) in ubifs_set_inode_flags() 44 if (flags & UBIFS_IMMUTABLE_FL) in ubifs_set_inode_flags() 46 if (flags & UBIFS_DIRSYNC_FL) in ubifs_set_inode_flags() [all …]
|
| /kernel/linux/linux-4.19/fs/ubifs/ |
| D | ioctl.c | 31 /* Need to be kept consistent with checked flags in ioctl2ubifs() */ 37 * ubifs_set_inode_flags - set VFS inode flags. 38 * @inode: VFS inode to set flags for 40 * This function propagates flags from UBIFS inode object to VFS inode object. 44 unsigned int flags = ubifs_inode(inode)->flags; in ubifs_set_inode_flags() local 48 if (flags & UBIFS_SYNC_FL) in ubifs_set_inode_flags() 50 if (flags & UBIFS_APPEND_FL) in ubifs_set_inode_flags() 52 if (flags & UBIFS_IMMUTABLE_FL) in ubifs_set_inode_flags() 54 if (flags & UBIFS_DIRSYNC_FL) in ubifs_set_inode_flags() 56 if (flags & UBIFS_CRYPT_FL) in ubifs_set_inode_flags() [all …]
|
| /kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/ |
| D | icp_qat_fw_la.h | 103 #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-4.19/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 = %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 83 /* Copy expected result for given flags */ in test_string_unescape() 84 if (flags & strings[i].flags) { in test_string_unescape() [all …]
|
| /kernel/linux/linux-5.10/arch/nds32/mm/ |
| D | cacheflush.c | 18 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-4.19/arch/nds32/mm/ |
| D | cacheflush.c | 18 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 …]
|
| /kernel/linux/linux-4.19/drivers/scsi/bfa/ |
| D | bfad_bsg.c | 30 unsigned long flags; in bfad_iocmd_ioc_enable() local 32 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable() 35 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable() 43 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable() 53 unsigned long flags; in bfad_iocmd_ioc_disable() local 55 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable() 57 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable() 63 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable() 70 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable() 86 unsigned long flags; in bfad_iocmd_ioc_get_info() local [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/arch/parisc/kernel/ |
| D | firmware.c | 180 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 …]
|
| /kernel/linux/linux-4.19/drivers/clk/ |
| D | clk-divider.c | 55 unsigned long flags) in _get_maxdiv() argument 57 if (flags & CLK_DIVIDER_ONE_BASED) in _get_maxdiv() 59 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_maxdiv() 78 unsigned int val, unsigned long flags, u8 width) in _get_div() argument 80 if (flags & CLK_DIVIDER_ONE_BASED) in _get_div() 82 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_div() 84 if (flags & CLK_DIVIDER_MAX_AT_ZERO) in _get_div() 103 unsigned int div, unsigned long flags, u8 width) in _get_val() argument 105 if (flags & CLK_DIVIDER_ONE_BASED) in _get_val() 107 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_val() [all …]
|
| /kernel/linux/linux-4.19/scripts/coccinelle/locks/ |
| D | flags.cocci | 1 /// 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 …]
|
| /kernel/linux/linux-5.10/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 = %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 83 /* Copy expected result for given flags */ in test_string_unescape() 84 if (flags & strings[i].flags) { in test_string_unescape() [all …]
|
| /kernel/linux/linux-4.19/include/net/ |
| D | gre.h | 9 __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 …]
|
| /kernel/linux/linux-5.10/include/linux/sched/ |
| D | mm.h | 117 unsigned long flags); 151 * Applies per-task gfp context to the given allocation flags. 155 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument 157 unsigned int pflags = READ_ONCE(current->flags); in current_gfp_context() 165 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context() 167 flags &= ~__GFP_FS; in current_gfp_context() 169 return flags; in current_gfp_context() 190 * point of view. Use memalloc_noio_restore to end the scope with flags 197 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local 198 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save() [all …]
|
| /kernel/linux/linux-5.10/arch/parisc/kernel/ |
| D | firmware.c | 176 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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | rwlock.h | 33 #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 …]
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | rwlock.h | 33 #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 …]
|
| /kernel/linux/linux-5.10/drivers/crypto/qce/ |
| D | common.c | 96 static u32 qce_auth_cfg(unsigned long flags, u32 key_size) in qce_auth_cfg() argument 100 if (IS_AES(flags) && (IS_CCM(flags) || IS_CMAC(flags))) in qce_auth_cfg() 105 if (IS_CCM(flags) || IS_CMAC(flags)) { in qce_auth_cfg() 112 if (IS_SHA1(flags) || IS_SHA1_HMAC(flags)) in qce_auth_cfg() 114 else if (IS_SHA256(flags) || IS_SHA256_HMAC(flags)) in qce_auth_cfg() 116 else if (IS_CMAC(flags)) in qce_auth_cfg() 119 if (IS_SHA1(flags) || IS_SHA256(flags)) in qce_auth_cfg() 121 else if (IS_SHA1_HMAC(flags) || IS_SHA256_HMAC(flags) || in qce_auth_cfg() 122 IS_CBC(flags) || IS_CTR(flags)) in qce_auth_cfg() 124 else if (IS_AES(flags) && IS_CCM(flags)) in qce_auth_cfg() [all …]
|