/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-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-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-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-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-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-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 …]
|
D | atomic64.c | 47 unsigned long flags; in atomic64_read() local 51 raw_spin_lock_irqsave(lock, flags); in atomic64_read() 53 raw_spin_unlock_irqrestore(lock, flags); in atomic64_read() 60 unsigned long flags; in atomic64_set() local 63 raw_spin_lock_irqsave(lock, flags); in atomic64_set() 65 raw_spin_unlock_irqrestore(lock, flags); in atomic64_set() 72 unsigned long flags; \ 75 raw_spin_lock_irqsave(lock, flags); \ 77 raw_spin_unlock_irqrestore(lock, flags); \ 84 unsigned long flags; \ [all …]
|
/kernel/linux/linux-5.10/include/linux/sched/ |
D | mm.h | 125 unsigned long flags); 159 * Applies per-task gfp context to the given allocation 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() 198 * point of view. Use memalloc_noio_restore to end the scope with flags 205 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local 206 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/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/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/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 …]
|
D | common.h | 58 #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/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 …]
|
/kernel/linux/linux-5.10/arch/h8300/include/asm/ |
D | irqflags.h | 10 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/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
D | mcbsp.c | 99 .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/clk/ |
D | clk-divider.c | 30 if (divider->flags & CLK_DIVIDER_BIG_ENDIAN) in clk_div_readl() 38 if (divider->flags & CLK_DIVIDER_BIG_ENDIAN) in clk_div_writel() 68 unsigned long flags) in _get_maxdiv() argument 70 if (flags & CLK_DIVIDER_ONE_BASED) in _get_maxdiv() 72 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_maxdiv() 91 unsigned int val, unsigned long flags, u8 width) in _get_div() argument 93 if (flags & CLK_DIVIDER_ONE_BASED) in _get_div() 95 if (flags & CLK_DIVIDER_POWER_OF_TWO) in _get_div() 97 if (flags & CLK_DIVIDER_MAX_AT_ZERO) in _get_div() 116 unsigned int div, unsigned long flags, u8 width) in _get_val() argument [all …]
|
/kernel/linux/linux-5.10/arch/c6x/include/asm/ |
D | irqflags.h | 17 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/tools/testing/selftests/openat2/ |
D | openat2_test.c | 53 .arg.inner.flags = O_RDONLY, in test_openat2_struct() 57 .arg.inner.flags = O_RDONLY, in test_openat2_struct() 64 .arg.inner.flags = O_RDONLY, .size = 0, .err = -EINVAL }, in test_openat2_struct() 66 .arg.inner.flags = O_RDONLY, in test_openat2_struct() 71 .arg.inner.flags = O_RDONLY, .arg.extra1 = 0xdeadbeef, in test_openat2_struct() 74 .arg.inner.flags = O_RDONLY, .arg.extra2 = 0xfeedcafe, in test_openat2_struct() 77 .arg.inner.flags = O_RDONLY, .arg.extra3 = 0xabad1dea, in test_openat2_struct() 164 { .name = "incompatible flags (O_TMPFILE | O_PATH)", in test_openat2_flags() 165 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 166 { .name = "incompatible flags (O_TMPFILE | O_CREAT)", in test_openat2_flags() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/ |
D | rxe_pool.c | 18 .flags = RXE_POOL_NO_ALLOC, 23 .flags = RXE_POOL_NO_ALLOC, 28 .flags = RXE_POOL_ATOMIC | RXE_POOL_NO_ALLOC, 33 .flags = RXE_POOL_INDEX | RXE_POOL_NO_ALLOC, 41 .flags = RXE_POOL_INDEX, 48 .flags = RXE_POOL_NO_ALLOC, 55 .flags = RXE_POOL_INDEX, 62 .flags = RXE_POOL_INDEX, 70 .flags = RXE_POOL_KEY, 77 .flags = RXE_POOL_ATOMIC, [all …]
|