/linux-4.19.296/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 84 if (flags & strings[i].flags) { in test_string_unescape() 96 if (flags == UNESCAPE_ANY) in test_string_unescape() [all …]
|
D | atomic64.c | 51 unsigned long flags; in atomic64_read() local 55 raw_spin_lock_irqsave(lock, flags); in atomic64_read() 57 raw_spin_unlock_irqrestore(lock, flags); in atomic64_read() 64 unsigned long flags; in atomic64_set() local 67 raw_spin_lock_irqsave(lock, flags); in atomic64_set() 69 raw_spin_unlock_irqrestore(lock, flags); in atomic64_set() 76 unsigned long flags; \ 79 raw_spin_lock_irqsave(lock, flags); \ 81 raw_spin_unlock_irqrestore(lock, flags); \ 88 unsigned long flags; \ [all …]
|
D | ubsan.c | 149 unsigned long *flags) in ubsan_prologue() argument 152 spin_lock_irqsave(&report_lock, *flags); in ubsan_prologue() 159 static void ubsan_epilogue(unsigned long *flags) in ubsan_epilogue() argument 164 spin_unlock_irqrestore(&report_lock, *flags); in ubsan_epilogue() 173 unsigned long flags; in handle_overflow() local 180 ubsan_prologue(&data->location, &flags); in handle_overflow() 192 ubsan_epilogue(&flags); in handle_overflow() 220 unsigned long flags; in __ubsan_handle_negate_overflow() local 226 ubsan_prologue(&data->location, &flags); in __ubsan_handle_negate_overflow() 233 ubsan_epilogue(&flags); in __ubsan_handle_negate_overflow() [all …]
|
/linux-4.19.296/include/linux/ |
D | irqflags.h | 81 #define raw_local_irq_save(flags) \ argument 83 typecheck(unsigned long, flags); \ 84 flags = arch_local_irq_save(); \ 86 #define raw_local_irq_restore(flags) \ argument 88 typecheck(unsigned long, flags); \ 89 arch_local_irq_restore(flags); \ 91 #define raw_local_save_flags(flags) \ argument 93 typecheck(unsigned long, flags); \ 94 flags = arch_local_save_flags(); \ 96 #define raw_irqs_disabled_flags(flags) \ argument [all …]
|
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 …]
|
D | slab.h | 143 unsigned int align, slab_flags_t flags, 147 slab_flags_t flags, 357 void *__kmalloc(size_t size, gfp_t flags) __assume_kmalloc_alignment __malloc; 358 void *kmem_cache_alloc(struct kmem_cache *, gfp_t flags) __assume_slab_alignment __malloc; 381 void *__kmalloc_node(size_t size, gfp_t flags, int node) __assume_kmalloc_alignment __malloc; 382 void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node) __assume_slab_alignment __m… 384 static __always_inline void *__kmalloc_node(size_t size, gfp_t flags, int node) in __kmalloc_node() argument 386 return __kmalloc(size, flags); in __kmalloc_node() 389 static __always_inline void *kmem_cache_alloc_node(struct kmem_cache *s, gfp_t flags, int node) in kmem_cache_alloc_node() argument 391 return kmem_cache_alloc(s, flags); in kmem_cache_alloc_node() [all …]
|
D | spinlock.h | 173 #define do_raw_spin_lock_flags(lock, flags) do_raw_spin_lock(lock) argument 184 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 188 do_raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long *flags) __acquires(lock) in do_raw_spin_lock_flags() argument 191 arch_spin_lock_flags(&lock->raw_lock, *flags); in do_raw_spin_lock_flags() 238 #define raw_spin_lock_irqsave(lock, flags) \ argument 240 typecheck(unsigned long, flags); \ 241 flags = _raw_spin_lock_irqsave(lock); \ 245 #define raw_spin_lock_irqsave_nested(lock, flags, subclass) \ argument 247 typecheck(unsigned long, flags); \ 248 flags = _raw_spin_lock_irqsave_nested(lock, subclass); \ [all …]
|
D | spinlock_api_up.h | 39 #define __LOCK_IRQSAVE(lock, flags) \ argument 40 do { local_irq_save(flags); __LOCK(lock); } while (0) 55 #define __UNLOCK_IRQRESTORE(lock, flags) \ argument 56 do { local_irq_restore(flags); __UNLOCK(lock); } while (0) 68 #define _raw_spin_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument 69 #define _raw_read_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument 70 #define _raw_write_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument 84 #define _raw_spin_unlock_irqrestore(lock, flags) \ argument 85 __UNLOCK_IRQRESTORE(lock, flags) 86 #define _raw_read_unlock_irqrestore(lock, flags) \ argument [all …]
|
/linux-4.19.296/include/linux/sched/ |
D | mm.h | 144 unsigned long flags); 182 static inline gfp_t current_gfp_context(gfp_t flags) in current_gfp_context() argument 188 if (unlikely(current->flags & PF_MEMALLOC_NOIO)) in current_gfp_context() 189 flags &= ~(__GFP_IO | __GFP_FS); in current_gfp_context() 190 else if (unlikely(current->flags & PF_MEMALLOC_NOFS)) in current_gfp_context() 191 flags &= ~__GFP_FS; in current_gfp_context() 192 return flags; in current_gfp_context() 220 unsigned int flags = current->flags & PF_MEMALLOC_NOIO; in memalloc_noio_save() local 221 current->flags |= PF_MEMALLOC_NOIO; in memalloc_noio_save() 222 return flags; in memalloc_noio_save() [all …]
|
/linux-4.19.296/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-4.19.296/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 …]
|
/linux-4.19.296/drivers/s390/char/ |
D | sclp.c | 180 unsigned long flags; in sclp_request_timeout() local 182 spin_lock_irqsave(&sclp_lock, flags); in sclp_request_timeout() 194 spin_unlock_irqrestore(&sclp_lock, flags); in sclp_request_timeout() 222 unsigned long flags, now; in __sclp_req_queue_remove_expired_req() local 225 spin_lock_irqsave(&sclp_lock, flags); in __sclp_req_queue_remove_expired_req() 241 spin_unlock_irqrestore(&sclp_lock, flags); in __sclp_req_queue_remove_expired_req() 252 unsigned long flags, expires_next; in sclp_req_queue_timeout() local 261 spin_lock_irqsave(&sclp_lock, flags); in sclp_req_queue_timeout() 265 spin_unlock_irqrestore(&sclp_lock, flags); in sclp_req_queue_timeout() 306 unsigned long flags; in sclp_process_queue() local [all …]
|
D | sclp_con.c | 50 unsigned long flags; in sclp_conbuf_callback() local 55 spin_lock_irqsave(&sclp_con_lock, flags); in sclp_conbuf_callback() 68 spin_unlock_irqrestore(&sclp_con_lock, flags); in sclp_conbuf_callback() 71 spin_unlock_irqrestore(&sclp_con_lock, flags); in sclp_conbuf_callback() 81 unsigned long flags; in sclp_conbuf_emit() local 84 spin_lock_irqsave(&sclp_con_lock, flags); in sclp_conbuf_emit() 95 spin_unlock_irqrestore(&sclp_con_lock, flags); in sclp_conbuf_emit() 102 spin_unlock_irqrestore(&sclp_con_lock, flags); in sclp_conbuf_emit() 110 unsigned long flags; in sclp_console_sync_queue() local 112 spin_lock_irqsave(&sclp_con_lock, flags); in sclp_console_sync_queue() [all …]
|
/linux-4.19.296/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 …]
|
/linux-4.19.296/drivers/pci/endpoint/ |
D | pci-epc-core.c | 94 unsigned long flags; in pci_epc_stop() local 99 spin_lock_irqsave(&epc->lock, flags); in pci_epc_stop() 101 spin_unlock_irqrestore(&epc->lock, flags); in pci_epc_stop() 114 unsigned long flags; in pci_epc_start() local 122 spin_lock_irqsave(&epc->lock, flags); in pci_epc_start() 124 spin_unlock_irqrestore(&epc->lock, flags); in pci_epc_start() 143 unsigned long flags; in pci_epc_raise_irq() local 151 spin_lock_irqsave(&epc->lock, flags); in pci_epc_raise_irq() 153 spin_unlock_irqrestore(&epc->lock, flags); in pci_epc_raise_irq() 169 unsigned long flags; in pci_epc_get_msi() local [all …]
|
/linux-4.19.296/drivers/char/ |
D | tlclk.c | 283 unsigned long flags; in show_current_ref() local 285 spin_lock_irqsave(&event_lock, flags); in show_current_ref() 287 spin_unlock_irqrestore(&event_lock, flags); in show_current_ref() 299 unsigned long flags; in show_telclock_version() local 301 spin_lock_irqsave(&event_lock, flags); in show_telclock_version() 303 spin_unlock_irqrestore(&event_lock, flags); in show_telclock_version() 315 unsigned long flags; in show_alarms() local 317 spin_lock_irqsave(&event_lock, flags); in show_alarms() 319 spin_unlock_irqrestore(&event_lock, flags); in show_alarms() 331 unsigned long flags; in store_received_ref_clk3a() local [all …]
|
/linux-4.19.296/fs/ubifs/ |
D | ioctl.c | 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() 110 static int setflags(struct inode *inode, int flags) in setflags() argument 127 oldflags = ubifs2ioctl(ui->flags); in setflags() 128 if ((flags ^ oldflags) & (FS_APPEND_FL | FS_IMMUTABLE_FL)) { in setflags() 135 ui->flags &= ~ioctl2ubifs(UBIFS_SUPPORTED_IOCTL_FLAGS); in setflags() [all …]
|
/linux-4.19.296/drivers/clk/bcm/ |
D | clk-ns2.c | 42 .flags = IPROC_CLK_AON | IPROC_CLK_PLL_SPLIT_STAT_CTRL, 60 .flags = IPROC_CLK_AON, 66 .flags = IPROC_CLK_AON, 72 .flags = IPROC_CLK_AON, 78 .flags = IPROC_CLK_AON, 84 .flags = IPROC_CLK_AON, 90 .flags = IPROC_CLK_AON, 105 .flags = IPROC_CLK_AON | IPROC_CLK_PLL_SPLIT_STAT_CTRL, 122 .flags = IPROC_CLK_AON, 128 .flags = IPROC_CLK_AON, [all …]
|
/linux-4.19.296/drivers/rtc/ |
D | rtc-rv8803.c | 147 int flags; in rv8803_handle_irq() local 151 flags = rv8803_read_reg(client, RV8803_FLAG); in rv8803_handle_irq() 152 if (flags <= 0) { in rv8803_handle_irq() 157 if (flags & RV8803_FLAG_V1F) in rv8803_handle_irq() 160 if (flags & RV8803_FLAG_V2F) in rv8803_handle_irq() 163 if (flags & RV8803_FLAG_TF) { in rv8803_handle_irq() 164 flags &= ~RV8803_FLAG_TF; in rv8803_handle_irq() 169 if (flags & RV8803_FLAG_AF) { in rv8803_handle_irq() 170 flags &= ~RV8803_FLAG_AF; in rv8803_handle_irq() 175 if (flags & RV8803_FLAG_UF) { in rv8803_handle_irq() [all …]
|
/linux-4.19.296/drivers/dma-buf/ |
D | dma-fence.c | 112 if (test_and_set_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)) { in dma_fence_signal_locked() 121 set_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &fence->flags); in dma_fence_signal_locked() 148 unsigned long flags; in dma_fence_signal() local 153 if (test_and_set_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)) in dma_fence_signal() 157 set_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &fence->flags); in dma_fence_signal() 160 if (test_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT, &fence->flags)) { in dma_fence_signal() 163 spin_lock_irqsave(fence->lock, flags); in dma_fence_signal() 168 spin_unlock_irqrestore(fence->lock, flags); in dma_fence_signal() 254 &fence->flags); in __dma_fence_enable_signaling() 256 if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)) in __dma_fence_enable_signaling() [all …]
|
/linux-4.19.296/fs/xfs/ |
D | kmem.c | 17 kmem_alloc(size_t size, xfs_km_flags_t flags) in kmem_alloc() argument 20 gfp_t lflags = kmem_flags_convert(flags); in kmem_alloc() 25 if (ptr || (flags & (KM_MAYFAIL|KM_NOSLEEP))) in kmem_alloc() 37 kmem_alloc_large(size_t size, xfs_km_flags_t flags) in kmem_alloc_large() argument 43 ptr = kmem_alloc(size, flags | KM_MAYFAIL); in kmem_alloc_large() 54 if (flags & KM_NOFS) in kmem_alloc_large() 57 lflags = kmem_flags_convert(flags); in kmem_alloc_large() 60 if (flags & KM_NOFS) in kmem_alloc_large() 67 kmem_realloc(const void *old, size_t newsize, xfs_km_flags_t flags) in kmem_realloc() argument 70 gfp_t lflags = kmem_flags_convert(flags); in kmem_realloc() [all …]
|
D | kmem.h | 31 kmem_flags_convert(xfs_km_flags_t flags) in kmem_flags_convert() argument 35 BUG_ON(flags & ~(KM_SLEEP|KM_NOSLEEP|KM_NOFS|KM_MAYFAIL|KM_ZERO)); in kmem_flags_convert() 37 if (flags & KM_NOSLEEP) { in kmem_flags_convert() 41 if (flags & KM_NOFS) in kmem_flags_convert() 52 if (flags & KM_MAYFAIL) in kmem_flags_convert() 55 if (flags & KM_ZERO) in kmem_flags_convert() 71 kmem_zalloc(size_t size, xfs_km_flags_t flags) in kmem_zalloc() argument 73 return kmem_alloc(size, flags | KM_ZERO); in kmem_zalloc() 77 kmem_zalloc_large(size_t size, xfs_km_flags_t flags) in kmem_zalloc_large() argument 79 return kmem_alloc_large(size, flags | KM_ZERO); in kmem_zalloc_large() [all …]
|
/linux-4.19.296/fs/jfs/ |
D | ioctl.c | 41 static long jfs_map_ext2(unsigned long flags, int from) in jfs_map_ext2() argument 48 if (jfs_map[index].ext2_flag & flags) in jfs_map_ext2() 51 if (jfs_map[index].jfs_flag & flags) in jfs_map_ext2() 64 unsigned int flags; in jfs_ioctl() local 68 flags = jfs_inode->mode2 & JFS_FL_USER_VISIBLE; in jfs_ioctl() 69 flags = jfs_map_ext2(flags, 0); in jfs_ioctl() 70 return put_user(flags, (int __user *) arg); in jfs_ioctl() 83 if (get_user(flags, (int __user *) arg)) { in jfs_ioctl() 88 flags = jfs_map_ext2(flags, 1); in jfs_ioctl() 90 flags &= ~JFS_DIRSYNC_FL; in jfs_ioctl() [all …]
|
/linux-4.19.296/drivers/dca/ |
D | dca-core.c | 98 unsigned long flags; in unregister_dca_providers() local 105 raw_spin_lock_irqsave(&dca_lock, flags); in unregister_dca_providers() 108 raw_spin_unlock_irqrestore(&dca_lock, flags); in unregister_dca_providers() 120 raw_spin_unlock_irqrestore(&dca_lock, flags); in unregister_dca_providers() 190 unsigned long flags; in dca_add_requester() local 197 raw_spin_lock_irqsave(&dca_lock, flags); in dca_add_requester() 202 raw_spin_unlock_irqrestore(&dca_lock, flags); in dca_add_requester() 209 raw_spin_unlock_irqrestore(&dca_lock, flags); in dca_add_requester() 219 raw_spin_unlock_irqrestore(&dca_lock, flags); in dca_add_requester() 226 raw_spin_lock_irqsave(&dca_lock, flags); in dca_add_requester() [all …]
|
/linux-4.19.296/drivers/pci/ |
D | setup-res.c | 42 if (!res->flags) in pci_std_update_resource() 45 if (res->flags & IORESOURCE_UNSET) in pci_std_update_resource() 53 if (res->flags & IORESOURCE_PCI_FIXED) in pci_std_update_resource() 59 if (res->flags & IORESOURCE_IO) { in pci_std_update_resource() 61 new |= res->flags & ~PCI_BASE_ADDRESS_IO_MASK; in pci_std_update_resource() 66 new |= res->flags & ~PCI_BASE_ADDRESS_MEM_MASK; in pci_std_update_resource() 78 if (!(res->flags & IORESOURCE_ROM_ENABLE)) in pci_std_update_resource() 91 disable = (res->flags & IORESOURCE_MEM_64) && !dev->mmio_always_on; in pci_std_update_resource() 106 if (res->flags & IORESOURCE_MEM_64) { in pci_std_update_resource() 135 if (res->flags & IORESOURCE_UNSET) { in pci_claim_resource() [all …]
|