/linux/tools/testing/selftests/riscv/vector/ |
H A D | vstate_prctl.c | 65 long flag; in TEST() local 71 flag = PR_RISCV_V_VSTATE_CTRL_ON; in TEST() 72 rc = prctl(PR_RISCV_V_SET_CONTROL, flag); in TEST() 78 long flag; in TEST() local 84 flag = PR_RISCV_V_VSTATE_CTRL_OFF; in TEST() 85 rc = prctl(PR_RISCV_V_SET_CONTROL, flag); in TEST() 94 long flag; in TEST() local 105 flag = PR_RISCV_V_VSTATE_CTRL_ON << PR_RISCV_V_VSTATE_CTRL_NEXT_SHIFT; in TEST() 107 EXPECT_EQ(0, test_and_compare_child(flag, PR_RISCV_V_VSTATE_CTRL_ON, 0, xtheadvector)); in TEST() 112 long flag; in TEST() local 130 long flag, expected; TEST() local 150 long flag, expected; TEST() local 170 long flag, expected; TEST() local 189 long flag, expected; TEST() local [all...] |
/linux/include/linux/ |
H A D | thread_info.h | 91 * flag set/clear/test wrappers 95 static inline void set_ti_thread_flag(struct thread_info *ti, int flag) in set_ti_thread_flag() argument 97 set_bit(flag, (unsigned long *)&ti->flags); in set_ti_thread_flag() 100 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) in clear_ti_thread_flag() argument 102 clear_bit(flag, (unsigned long *)&ti->flags); in clear_ti_thread_flag() 105 static inline void update_ti_thread_flag(struct thread_info *ti, int flag, in update_ti_thread_flag() argument 109 set_ti_thread_flag(ti, flag); in update_ti_thread_flag() 111 clear_ti_thread_flag(ti, flag); in update_ti_thread_flag() 114 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) in test_and_set_ti_thread_flag() argument 116 return test_and_set_bit(flag, (unsigne in test_and_set_ti_thread_flag() 119 test_and_clear_ti_thread_flag(struct thread_info * ti,int flag) test_and_clear_ti_thread_flag() argument 124 test_ti_thread_flag(struct thread_info * ti,int flag) test_ti_thread_flag() argument 138 set_thread_flag(flag) global() argument 140 clear_thread_flag(flag) global() argument 142 update_thread_flag(flag,value) global() argument 144 test_and_set_thread_flag(flag) global() argument 146 test_and_clear_thread_flag(flag) global() argument 148 test_thread_flag(flag) global() argument [all...] |
H A D | kbd_kern.h | 12 * kbd->xxx contains the VC-local things (flag settings etc..) 72 static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag) in vc_kbd_mode() argument 74 return ((kbd->modeflags >> flag) & 1); in vc_kbd_mode() 77 static inline int vc_kbd_led(struct kbd_struct * kbd, int flag) in vc_kbd_led() argument 79 return ((kbd->ledflagstate >> flag) & 1); in vc_kbd_led() 82 static inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag) in set_vc_kbd_mode() argument 84 kbd->modeflags |= 1 << flag; in set_vc_kbd_mode() 87 static inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag) in set_vc_kbd_led() argument 89 kbd->ledflagstate |= 1 << flag; in set_vc_kbd_led() 92 static inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag) in clr_vc_kbd_mode() argument 97 clr_vc_kbd_led(struct kbd_struct * kbd,int flag) clr_vc_kbd_led() argument 102 chg_vc_kbd_lock(struct kbd_struct * kbd,int flag) chg_vc_kbd_lock() argument 107 chg_vc_kbd_slock(struct kbd_struct * kbd,int flag) chg_vc_kbd_slock() argument 112 chg_vc_kbd_mode(struct kbd_struct * kbd,int flag) chg_vc_kbd_mode() argument 117 chg_vc_kbd_led(struct kbd_struct * kbd,int flag) chg_vc_kbd_led() argument [all...] |
H A D | tty_flip.h | 23 * @flag: flag value for each character 27 * marked with the supplied flag. 32 const u8 *chars, u8 flag, in tty_insert_flip_string_fixed_flag() argument 35 return __tty_insert_flip_string_flags(port, chars, &flag, false, size); in tty_insert_flip_string_fixed_flag() 42 * @flags: flag bytes 61 * @flag: flag byte 63 * Queue a single byte @ch to the tty buffering, with an optional flag. 65 static inline size_t tty_insert_flip_char(struct tty_port *port, u8 ch, u8 flag) in tty_insert_flip_char() argument [all...] |
/linux/net/mac80211/ |
H A D | debugfs.c | 437 #define FLAG(F) [IEEE80211_HW_##F] = #F macro 438 FLAG(HAS_RATE_CONTROL), 439 FLAG(RX_INCLUDES_FCS), 440 FLAG(HOST_BROADCAST_PS_BUFFERING), 441 FLAG(SIGNAL_UNSPEC), 442 FLAG(SIGNAL_DBM), 443 FLAG(NEED_DTIM_BEFORE_ASSOC), 444 FLAG(SPECTRUM_MGMT), 445 FLAG(AMPDU_AGGREGATION), 446 FLAG(SUPPORTS_P [all...] |
/linux/fs/btrfs/ |
H A D | fs.c | 137 void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_incompat() argument 145 if (!(features & flag)) { in __btrfs_set_fs_incompat() 148 if (!(features & flag)) { in __btrfs_set_fs_incompat() 149 features |= flag; in __btrfs_set_fs_incompat() 152 "setting incompat feature flag for %s (0x%llx)", in __btrfs_set_fs_incompat() 153 name, flag); in __btrfs_set_fs_incompat() 160 void __btrfs_clear_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_incompat() argument 168 if (features & flag) { in __btrfs_clear_fs_incompat() 171 if (features & flag) { in __btrfs_clear_fs_incompat() 172 features &= ~flag; in __btrfs_clear_fs_incompat() 183 __btrfs_set_fs_compat_ro(struct btrfs_fs_info * fs_info,u64 flag,const char * name) __btrfs_set_fs_compat_ro() argument 206 __btrfs_clear_fs_compat_ro(struct btrfs_fs_info * fs_info,u64 flag,const char * name) __btrfs_clear_fs_compat_ro() argument [all...] |
/linux/Documentation/netlink/specs/ |
H A D | nl80211.yaml | 215 name: sta-flag-update 270 type: flag 361 type: flag 425 type: flag 440 type: flag 447 struct: sta-flag-update 450 type: flag 456 type: flag 459 type: flag 522 type: flag [all...] |
/linux/Documentation/devicetree/bindings/mmc/ |
H A D | mmc-controller-common.yaml | 30 $ref: /schemas/types.yaml#/definitions/flag 40 $ref: /schemas/types.yaml#/definitions/flag 56 # using the GPIO_ACTIVE_LOW flag. This creates an ambiguity in the 59 # example leaving the GPIO_ACTIVE_LOW flag clear and specifying the 64 $ref: /schemas/types.yaml#/definitions/flag 69 $ref: /schemas/types.yaml#/definitions/flag 97 $ref: /schemas/types.yaml#/definitions/flag 117 $ref: /schemas/types.yaml#/definitions/flag 123 $ref: /schemas/types.yaml#/definitions/flag 128 $ref: /schemas/types.yaml#/definitions/flag [all...] |
/linux/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_cmd.h | 65 int atomisp_gdc_cac(struct atomisp_sub_device *asd, int flag, 69 int atomisp_low_light(struct atomisp_sub_device *asd, int flag, 76 int atomisp_xnr(struct atomisp_sub_device *asd, int flag, int *arg); 78 int atomisp_formats(struct atomisp_sub_device *asd, int flag, 82 int atomisp_nr(struct atomisp_sub_device *asd, int flag, 86 int atomisp_tnr(struct atomisp_sub_device *asd, int flag, 90 int atomisp_black_level(struct atomisp_sub_device *asd, int flag, 94 int atomisp_ee(struct atomisp_sub_device *asd, int flag, 98 int atomisp_gamma(struct atomisp_sub_device *asd, int flag, 102 int atomisp_ctc(struct atomisp_sub_device *asd, int flag, [all...] |
/linux/drivers/infiniband/hw/hfi1/ |
H A D | trace_iowait.h | 17 TP_PROTO(struct iowait *wait, u32 flag), 18 TP_ARGS(wait, flag), 22 __field(u32, flag) 28 __entry->flag = (1 << flag); 32 "iowait 0x%lx qp %u flags 0x%lx flag 0x%x", 36 __entry->flag 41 TP_PROTO(struct iowait *wait, u32 flag), 42 TP_ARGS(wait, flag)); 45 TP_PROTO(struct iowait *wait, u32 flag), [all...] |
/linux/drivers/isdn/mISDN/ |
H A D | layer2.c | 113 return ((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + in l2headersize() 114 (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1); in l2headersize() 120 return test_bit(FLG_LAPD, &l2->flag) ? 2 : 1; in l2addrsize() 196 if (test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { in l2down_raw() 241 if (test_bit(FLG_L1_NOTREADY, &l2->flag)) { in ph_data_confirm() 257 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm() 262 if (!test_and_set_bit(FLG_L1_NOTREADY, &l2->flag)) { in ph_data_confirm() 269 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm() 272 test_and_clear_bit(FLG_L1_NOTREADY, &l2->flag); in ph_data_confirm() 308 if (test_bit(FLG_LAPD, &l2->flag) in l2mgr() [all...] |
/linux/Documentation/litmus-tests/locking/ |
H A D | DCL-broken.litmus | 11 int flag; 15 P0(int *flag, int *data, spinlock_t *lck) 21 r0 = READ_ONCE(*flag); 24 r1 = READ_ONCE(*flag); 27 WRITE_ONCE(*flag, 1); 34 P1(int *flag, int *data, spinlock_t *lck) 40 r0 = READ_ONCE(*flag); 43 r1 = READ_ONCE(*flag); 46 WRITE_ONCE(*flag, 1); 53 locations [flag;dat [all...] |
H A D | DCL-fixed.litmus | 12 int flag; 16 P0(int *flag, int *data, spinlock_t *lck) 22 r0 = smp_load_acquire(flag); 25 r1 = READ_ONCE(*flag); 28 smp_store_release(flag, 1); 35 P1(int *flag, int *data, spinlock_t *lck) 41 r0 = smp_load_acquire(flag); 44 r1 = READ_ONCE(*flag); 47 smp_store_release(flag, 1); 54 locations [flag;dat [all...] |
/linux/tools/testing/selftests/net/ |
H A D | test_neigh.sh | 84 check_err $? "No \"extern_valid\" flag after addition" 86 log_test "$af_str \"extern_valid\" flag: Add entry" 90 # Check that an entry cannot be added with "extern_valid" flag and an 94 check_fail $? "Managed to add an entry with \"extern_valid\" flag and an invalid state" 96 log_test "$af_str \"extern_valid\" flag: Add with an invalid state" 100 # Check that entry cannot be added with both "extern_valid" flag and 101 # "use" / "managed" flag. 104 check_fail $? "Managed to add an entry with \"extern_valid\" flag and \"use\" flag" 106 log_test "$af_str \"extern_valid\" flag [all...] |
/linux/drivers/clk/bcm/ |
H A D | clk-kona.h | 29 * Utility macros for object flag management. If possible, flags 32 #define FLAG(type, flag) BCM_CLK_ ## type ## _FLAGS_ ## flag argument 33 #define FLAG_SET(obj, type, flag) ((obj)->flags |= FLAG(type, flag)) argument 34 #define FLAG_CLEAR(obj, type, flag) ((obj)->flags &= ~(FLAG(type, flag))) argument 35 FLAG_FLIP(obj,type,flag) global() argument 36 FLAG_TEST(obj,type,flag) global() argument [all...] |
/linux/include/uapi/linux/ |
H A D | tipc_netlink.h | 108 TIPC_NLA_UDP_MULTI_REMOTEIP, /* flag */ 119 TIPC_NLA_SOCK_HAS_PUBL, /* flag */ 126 TIPC_NLA_SOCK_PAD, /* flag */ 139 TIPC_NLA_LINK_BROADCAST, /* flag */ 140 TIPC_NLA_LINK_UP, /* flag */ 141 TIPC_NLA_LINK_ACTIVE, /* flag */ 165 TIPC_NLA_NODE_UP, /* flag */ 168 TIPC_NLA_NODE_KEY_MASTER, /* flag */ 182 TIPC_NLA_NET_ADDR_LEGACY, /* flag */ 202 TIPC_NLA_MON_ACTIVE, /* flag */ [all...] |
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_priv.h | 147 static inline void __flow_flag_set(struct mlx5e_tc_flow *flow, unsigned long flag) in __flow_flag_set() argument 151 set_bit(flag, &flow->flags); in __flow_flag_set() 154 #define flow_flag_set(flow, flag) __flow_flag_set(flow, MLX5E_TC_FLOW_FLAG_##flag) argument 157 unsigned long flag) in __flow_flag_test_and_set() argument 160 return test_and_set_bit(flag, &flow->flags); in __flow_flag_test_and_set() 163 #define flow_flag_test_and_set(flow, flag) \ argument 165 MLX5E_TC_FLOW_FLAG_##flag) 167 static inline void __flow_flag_clear(struct mlx5e_tc_flow *flow, unsigned long flag) in __flow_flag_clear() argument 171 clear_bit(flag, in __flow_flag_clear() 174 flow_flag_clear(flow,flag) global() argument 177 __flow_flag_test(struct mlx5e_tc_flow * flow,unsigned long flag) __flow_flag_test() argument 186 flow_flag_test(flow,flag) global() argument [all...] |
/linux/drivers/target/iscsi/ |
H A D | iscsi_target_tpg.c | 665 u32 flag) in iscsit_ta_generate_node_acls() argument 669 if ((flag != 0) && (flag != 1)) { in iscsit_ta_generate_node_acls() 670 pr_err("Illegal value %d\n", flag); in iscsit_ta_generate_node_acls() 674 a->generate_node_acls = flag; in iscsit_ta_generate_node_acls() 678 if (flag == 1 && a->cache_dynamic_acls == 0) { in iscsit_ta_generate_node_acls() 714 u32 flag) in iscsit_ta_cache_dynamic_acls() argument 718 if ((flag != 0) && (flag != 1)) { in iscsit_ta_cache_dynamic_acls() 719 pr_err("Illegal value %d\n", flag); in iscsit_ta_cache_dynamic_acls() 739 iscsit_ta_demo_mode_write_protect(struct iscsi_portal_group * tpg,u32 flag) iscsit_ta_demo_mode_write_protect() argument 757 iscsit_ta_prod_mode_write_protect(struct iscsi_portal_group * tpg,u32 flag) iscsit_ta_prod_mode_write_protect() argument 776 iscsit_ta_demo_mode_discovery(struct iscsi_portal_group * tpg,u32 flag) iscsit_ta_demo_mode_discovery() argument 812 iscsit_ta_t10_pi(struct iscsi_portal_group * tpg,u32 flag) iscsit_ta_t10_pi() argument 849 iscsit_ta_tpg_enabled_sendtargets(struct iscsi_portal_group * tpg,u32 flag) iscsit_ta_tpg_enabled_sendtargets() argument 867 iscsit_ta_login_keys_workaround(struct iscsi_portal_group * tpg,u32 flag) iscsit_ta_login_keys_workaround() argument [all...] |
/linux/tools/testing/selftests/kvm/lib/ |
H A D | test_util.c | 226 .flag = ANON_FLAGS, in vm_mem_backing_src_alias() 230 .flag = ANON_FLAGS, in vm_mem_backing_src_alias() 234 .flag = ANON_HUGE_FLAGS, in vm_mem_backing_src_alias() 238 .flag = ANON_HUGE_FLAGS | MAP_HUGE_16KB, in vm_mem_backing_src_alias() 242 .flag = ANON_HUGE_FLAGS | MAP_HUGE_64KB, in vm_mem_backing_src_alias() 246 .flag = ANON_HUGE_FLAGS | MAP_HUGE_512KB, in vm_mem_backing_src_alias() 250 .flag = ANON_HUGE_FLAGS | MAP_HUGE_1MB, in vm_mem_backing_src_alias() 254 .flag = ANON_HUGE_FLAGS | MAP_HUGE_2MB, in vm_mem_backing_src_alias() 258 .flag = ANON_HUGE_FLAGS | MAP_HUGE_8MB, in vm_mem_backing_src_alias() 262 .flag in vm_mem_backing_src_alias() 315 uint32_t flag = vm_mem_backing_src_alias(i)->flag; get_backing_src_pagesz() local 346 backing_src_help(const char * flag) backing_src_help() argument [all...] |
/linux/tools/testing/selftests/net/can/ |
H A D | test_raw_filter.c | 118 /* Ignore EFF flag in filter ID if not covered by filter mask */ 132 /* Ignore RTR flag in filter ID if not covered by filter mask */ 160 /* Receive only SFF frames when expecting no EFF flag */ 172 /* Receive only EFF frames when filter id and filter mask include EFF flag */ 184 /* Receive only SFF frames when expecting no EFF flag, ignoring RTR flag */ 196 /* Receive only EFF frames when filter id and filter mask include EFF flag, 197 * ignoring RTR flag 210 /* Receive no remote frames when filtering for no RTR flag */ 222 /* Receive no remote frames when filtering for no RTR flag, ignorin [all...] |
/linux/arch/powerpc/platforms/pasemi/ |
H A D | dma_lib.c | 370 /* pasemi_dma_alloc_flag - Allocate a flag (event) for channel synchronization 372 * Allocates a flag for use with channel synchronization (event descriptors). 373 * Returns allocated flag (0-63), < 0 on error. 391 /* pasemi_dma_free_flag - Deallocates a flag (event) 392 * @flag: Flag number to deallocate 394 * Frees up a flag so it can be reused for other purposes. 396 void pasemi_dma_free_flag(int flag) in pasemi_dma_free_flag() argument 398 BUG_ON(test_bit(flag, flags_free)); in pasemi_dma_free_flag() 399 BUG_ON(flag > in pasemi_dma_free_flag() 410 pasemi_dma_set_flag(int flag) pasemi_dma_set_flag() argument 425 pasemi_dma_clear_flag(int flag) pasemi_dma_clear_flag() argument [all...] |
/linux/Documentation/devicetree/bindings/usb/ |
H A D | usb251xb.yaml | 38 $ref: /schemas/types.yaml#/definitions/flag 81 $ref: /schemas/types.yaml#/definitions/flag 87 $ref: /schemas/types.yaml#/definitions/flag 93 $ref: /schemas/types.yaml#/definitions/flag 98 $ref: /schemas/types.yaml#/definitions/flag 104 $ref: /schemas/types.yaml#/definitions/flag 110 $ref: /schemas/types.yaml#/definitions/flag 115 $ref: /schemas/types.yaml#/definitions/flag 121 $ref: /schemas/types.yaml#/definitions/flag 127 $ref: /schemas/types.yaml#/definitions/flag [all...] |
/linux/include/linux/sched/ |
H A D | sd_flags.h | 3 * sched-domains (multiprocessor balancing) flag declarations. 14 * If a domain has this flag set, all of its children should have it set. This 15 * is usually because the flag describes some shared resource (all CPUs in that 20 * In those cases it doesn't make sense to have the flag set for a domain but 27 * downwards. If a domain has this flag set, all of its parents should have it 49 * NEEDS_GROUPS: Load balancing flag. 57 * NEEDS_GROUPS: Load balancing flag. 65 * NEEDS_GROUPS: Load balancing flag. 73 * NEEDS_GROUPS: Load balancing flag. 133 * domain has this flag se [all...] |
/linux/scripts/coccinelle/api/ |
H A D | memdup.cocci | 19 expression flag; 23 to = \(kmalloc@p\|kzalloc@p\)(strlen(from) + 1,flag); 27 expression flag,E1; 33 to = \(kmalloc@p\|kzalloc@p\)(x,flag); 36 expression from,to,size,flag; 41 - to = \(kmalloc@p\|kzalloc@p\)(size,flag); 42 + to = kmemdup(from,size,flag); 47 expression from,to,size,flag; 52 * to = \(kmalloc@p\|kzalloc@p\)(size,flag);
|
/linux/fs/f2fs/ |
H A D | node.h | 46 /* For flag in struct node_info */ 70 unsigned char flag; /* for node information bits */ member 96 /* should not copy flag here */ in copy_node_info() 103 ne->ni.flag |= BIT(type); in set_nat_flag() 105 ne->ni.flag &= ~BIT(type); in set_nat_flag() 110 return ne->ni.flag & BIT(type); in get_nat_flag() 261 unsigned flag = le32_to_cpu(rn->footer.flag); in ofs_of_node() local 262 return flag >> OFFSET_BIT_SHIFT; in ofs_of_node() 286 old_flag = le32_to_cpu(rn->footer.flag); in fill_node_footer() 413 unsigned int flag = le32_to_cpu(rn->footer.flag); set_cold_node() local 425 unsigned int flag = le32_to_cpu(rn->footer.flag); set_mark() local [all...] |