Home
last modified time | relevance | path

Searched refs:attr (Results 26 - 50 of 7937) sorted by relevance

12345678910>>...318

/kernel/linux/linux-5.10/tools/perf/tests/
H A Dparse-events.c53 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint()
55 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint()
56 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint()
69 PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint_multi()
71 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint_multi()
73 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint_multi()
83 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_raw()
84 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->core.attr.config); in test__checkevent_raw()
93 TEST_ASSERT_VAL("wrong type", 1 == evsel->core.attr.type); in test__checkevent_numeric()
94 TEST_ASSERT_VAL("wrong config", 1 == evsel->core.attr in test__checkevent_numeric()
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/core/
H A Dsysfs.c69 struct attribute attr; member
82 struct port_attribute attr; member
89 struct attribute attr; member
91 struct attribute *attr, char *buf);
93 struct attribute *attr,
101 struct attribute *attr, char *buf) in port_attr_show()
104 container_of(attr, struct port_attribute, attr); in port_attr_show()
114 struct attribute *attr, in port_attr_store()
118 container_of(attr, struc in port_attr_store()
100 port_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) port_attr_show() argument
113 port_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) port_attr_store() argument
131 gid_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) gid_attr_show() argument
152 struct ib_port_attr attr; state_show() local
176 struct ib_port_attr attr; lid_show() local
190 struct ib_port_attr attr; lid_mask_count_show() local
203 struct ib_port_attr attr; sm_lid_show() local
216 struct ib_port_attr attr; sm_sl_show() local
229 struct ib_port_attr attr; cap_mask_show() local
242 struct ib_port_attr attr; rate_show() local
313 struct ib_port_attr attr; phys_state_show() local
379 _show_port_gid_attr( struct ib_port *p, struct port_attribute *attr, char *buf, size_t (*print)(const struct ib_gid_attr *gid_attr, char *buf)) _show_port_gid_attr() argument
398 show_port_gid(struct ib_port *p, struct port_attribute *attr, char *buf) show_port_gid() argument
427 show_port_gid_attr_ndev(struct ib_port *p, struct port_attribute *attr, char *buf) show_port_gid_attr_ndev() argument
433 show_port_gid_attr_gid_type(struct ib_port *p, struct port_attribute *attr, char *buf) show_port_gid_attr_gid_type() argument
440 show_port_pkey(struct ib_port *p, struct port_attribute *attr, char *buf) show_port_pkey() argument
473 get_perf_mad(struct ib_device *dev, int port_num, __be16 attr, void *data, int offset, size_t size) get_perf_mad() argument
517 show_pma_counter(struct ib_port *p, struct port_attribute *attr, char *buf) show_pma_counter() argument
826 show_hw_stats(struct kobject *kobj, struct attribute *attr, char *buf) show_hw_stats() argument
856 show_stats_lifespan(struct kobject *kobj, struct attribute *attr, char *buf) show_stats_lifespan() argument
883 set_stats_lifespan(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) set_stats_lifespan() argument
920 struct attribute **attr; free_hsag() local
1048 struct ib_port_attr attr; add_port() local
1227 node_type_show(struct device *device, struct device_attribute *attr, char *buf) node_type_show() argument
1258 node_guid_show(struct device *device, struct device_attribute *attr, char *buf) node_guid_show() argument
1271 node_desc_show(struct device *device, struct device_attribute *attr, char *buf) node_desc_show() argument
1279 node_desc_store(struct device *device, struct device_attribute *attr, const char *buf, size_t count) node_desc_store() argument
1299 fw_ver_show(struct device *device, struct device_attribute *attr, char *buf) fw_ver_show() argument
[all...]
/third_party/libbpf/src/
H A Dbpf.c72 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf() argument
75 return syscall(__NR_bpf, cmd, attr, size); in sys_bpf()
78 static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf_fd() argument
83 fd = sys_bpf(cmd, attr, size); in sys_bpf_fd()
87 int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts) in sys_bpf_prog_load() argument
92 fd = sys_bpf_fd(BPF_PROG_LOAD, attr, size); in sys_bpf_prog_load()
114 union bpf_attr attr; in probe_memcg_account() local
118 memset(&attr, 0, attr_sz); in probe_memcg_account()
119 attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER; in probe_memcg_account()
120 attr in probe_memcg_account()
173 union bpf_attr attr; bpf_map_create() local
241 union bpf_attr attr; bpf_prog_load() local
384 union bpf_attr attr; bpf_map_update_elem() local
400 union bpf_attr attr; bpf_map_lookup_elem() local
415 union bpf_attr attr; bpf_map_lookup_elem_flags() local
431 union bpf_attr attr; bpf_map_lookup_and_delete_elem() local
446 union bpf_attr attr; bpf_map_lookup_and_delete_elem_flags() local
462 union bpf_attr attr; bpf_map_delete_elem() local
476 union bpf_attr attr; bpf_map_delete_elem_flags() local
491 union bpf_attr attr; bpf_map_get_next_key() local
506 union bpf_attr attr; bpf_map_freeze() local
522 union bpf_attr attr; bpf_map_batch_common() local
578 union bpf_attr attr; bpf_obj_pin_opts() local
607 union bpf_attr attr; bpf_obj_get_opts() local
638 union bpf_attr attr; bpf_prog_attach_opts() local
676 union bpf_attr attr; bpf_prog_detach_opts() local
724 union bpf_attr attr; bpf_link_create() local
872 union bpf_attr attr; bpf_link_detach() local
886 union bpf_attr attr; bpf_link_update() local
911 union bpf_attr attr; bpf_iter_create() local
925 union bpf_attr attr; bpf_prog_query_opts() local
972 union bpf_attr attr; bpf_prog_test_run_opts() local
1007 union bpf_attr attr; bpf_obj_get_next_id() local
1044 union bpf_attr attr; bpf_prog_get_fd_by_id_opts() local
1067 union bpf_attr attr; bpf_map_get_fd_by_id_opts() local
1090 union bpf_attr attr; bpf_btf_get_fd_by_id_opts() local
1113 union bpf_attr attr; bpf_link_get_fd_by_id_opts() local
1135 union bpf_attr attr; bpf_obj_get_info_by_fd() local
1172 union bpf_attr attr; bpf_raw_tracepoint_open() local
1186 union bpf_attr attr; bpf_btf_load() local
1238 union bpf_attr attr; bpf_task_fd_query() local
1262 union bpf_attr attr; bpf_enable_stats() local
1276 union bpf_attr attr; bpf_prog_bind_map() local
[all...]
H A Dskel_internal.h69 long kern_sys_bpf(__u32 cmd, void *attr, __u32 attr_size);
71 static inline int skel_sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in skel_sys_bpf() argument
75 return kern_sys_bpf(cmd, attr, size); in skel_sys_bpf()
77 return syscall(__NR_bpf, cmd, attr, size); in skel_sys_bpf()
226 union bpf_attr attr; in skel_map_create() local
228 memset(&attr, 0, attr_sz); in skel_map_create()
230 attr.map_type = map_type; in skel_map_create()
231 strncpy(attr.map_name, map_name, sizeof(attr.map_name)); in skel_map_create()
232 attr in skel_map_create()
243 union bpf_attr attr; skel_map_update_elem() local
257 union bpf_attr attr; skel_map_delete_elem() local
269 union bpf_attr attr; skel_map_get_fd_by_id() local
280 union bpf_attr attr; skel_raw_tracepoint_open() local
293 union bpf_attr attr; skel_link_create() local
314 union bpf_attr attr; bpf_load_and_run() local
[all...]
/third_party/elfutils/tests/
H A Dshow-die-info.c105 Dwarf_Attribute attr; in handle() local
110 if (dwarf_attr (die, DW_AT_low_pc, &attr) == NULL in handle()
111 || dwarf_formaddr (&attr, &addr2) != 0 in handle()
114 else if (! dwarf_hasform (&attr, DW_FORM_addr)) in handle()
116 else if (dwarf_whatform (&attr) != DW_FORM_addr) in handle()
118 else if (dwarf_whatattr (&attr) != DW_AT_low_pc) in handle()
119 puts ("************* DW_AT_low_pc attr failed ************"); in handle()
123 Dwarf_Attribute attr; in handle() local
127 if (dwarf_attr (die, DW_AT_high_pc, &attr) == NULL in handle()
128 || dwarf_formaddr (&attr, in handle()
141 Dwarf_Attribute attr; handle() local
169 Dwarf_Attribute attr; handle() local
198 Dwarf_Attribute attr; handle() local
227 Dwarf_Attribute attr; handle() local
257 Dwarf_Attribute attr; handle() local
286 Dwarf_Attribute attr; handle() local
296 Dwarf_Attribute attr; handle() local
[all...]
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbpf.c72 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf() argument
75 return syscall(__NR_bpf, cmd, attr, size); in sys_bpf()
78 static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf_fd() argument
83 fd = sys_bpf(cmd, attr, size); in sys_bpf_fd()
87 int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts) in sys_bpf_prog_load() argument
92 fd = sys_bpf_fd(BPF_PROG_LOAD, attr, size); in sys_bpf_prog_load()
114 union bpf_attr attr; in probe_memcg_account() local
118 memset(&attr, 0, attr_sz); in probe_memcg_account()
119 attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER; in probe_memcg_account()
120 attr in probe_memcg_account()
173 union bpf_attr attr; bpf_map_create() local
241 union bpf_attr attr; bpf_prog_load() local
384 union bpf_attr attr; bpf_map_update_elem() local
400 union bpf_attr attr; bpf_map_lookup_elem() local
415 union bpf_attr attr; bpf_map_lookup_elem_flags() local
431 union bpf_attr attr; bpf_map_lookup_and_delete_elem() local
446 union bpf_attr attr; bpf_map_lookup_and_delete_elem_flags() local
462 union bpf_attr attr; bpf_map_delete_elem() local
476 union bpf_attr attr; bpf_map_delete_elem_flags() local
491 union bpf_attr attr; bpf_map_get_next_key() local
506 union bpf_attr attr; bpf_map_freeze() local
522 union bpf_attr attr; bpf_map_batch_common() local
578 union bpf_attr attr; bpf_obj_pin_opts() local
607 union bpf_attr attr; bpf_obj_get_opts() local
638 union bpf_attr attr; bpf_prog_attach_opts() local
676 union bpf_attr attr; bpf_prog_detach_opts() local
724 union bpf_attr attr; bpf_link_create() local
856 union bpf_attr attr; bpf_link_detach() local
870 union bpf_attr attr; bpf_link_update() local
895 union bpf_attr attr; bpf_iter_create() local
909 union bpf_attr attr; bpf_prog_query_opts() local
956 union bpf_attr attr; bpf_prog_test_run_opts() local
991 union bpf_attr attr; bpf_obj_get_next_id() local
1028 union bpf_attr attr; bpf_prog_get_fd_by_id_opts() local
1051 union bpf_attr attr; bpf_map_get_fd_by_id_opts() local
1074 union bpf_attr attr; bpf_btf_get_fd_by_id_opts() local
1097 union bpf_attr attr; bpf_link_get_fd_by_id_opts() local
1119 union bpf_attr attr; bpf_obj_get_info_by_fd() local
1156 union bpf_attr attr; bpf_raw_tracepoint_open() local
1170 union bpf_attr attr; bpf_btf_load() local
1222 union bpf_attr attr; bpf_task_fd_query() local
1246 union bpf_attr attr; bpf_enable_stats() local
1260 union bpf_attr attr; bpf_prog_bind_map() local
[all...]
H A Dskel_internal.h69 long kern_sys_bpf(__u32 cmd, void *attr, __u32 attr_size);
71 static inline int skel_sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in skel_sys_bpf() argument
75 return kern_sys_bpf(cmd, attr, size); in skel_sys_bpf()
77 return syscall(__NR_bpf, cmd, attr, size); in skel_sys_bpf()
226 union bpf_attr attr; in skel_map_create() local
228 memset(&attr, 0, attr_sz); in skel_map_create()
230 attr.map_type = map_type; in skel_map_create()
231 strncpy(attr.map_name, map_name, sizeof(attr.map_name)); in skel_map_create()
232 attr in skel_map_create()
243 union bpf_attr attr; skel_map_update_elem() local
257 union bpf_attr attr; skel_map_delete_elem() local
269 union bpf_attr attr; skel_map_get_fd_by_id() local
280 union bpf_attr attr; skel_raw_tracepoint_open() local
293 union bpf_attr attr; skel_link_create() local
314 union bpf_attr attr; bpf_load_and_run() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
H A Dwps_attr_parse.c20 static int wps_set_vendor_ext_wfa_subelem(struct wps_parse_attr *attr, in wps_set_vendor_ext_wfa_subelem() argument
32 attr->version2 = pos; in wps_set_vendor_ext_wfa_subelem()
35 attr->authorized_macs = pos; in wps_set_vendor_ext_wfa_subelem()
36 attr->authorized_macs_len = len; in wps_set_vendor_ext_wfa_subelem()
44 attr->network_key_shareable = pos; in wps_set_vendor_ext_wfa_subelem()
52 attr->request_to_enroll = pos; in wps_set_vendor_ext_wfa_subelem()
60 attr->settings_delay_time = pos; in wps_set_vendor_ext_wfa_subelem()
68 attr->registrar_configuration_methods = pos; in wps_set_vendor_ext_wfa_subelem()
77 attr->multi_ap_ext = *pos; in wps_set_vendor_ext_wfa_subelem()
79 attr in wps_set_vendor_ext_wfa_subelem()
91 wps_parse_vendor_ext_wfa(struct wps_parse_attr *attr, const u8 *pos, u16 len) wps_parse_vendor_ext_wfa() argument
111 wps_parse_vendor_ext(struct wps_parse_attr *attr, const u8 *pos, u16 len) wps_parse_vendor_ext() argument
152 wps_set_attr(struct wps_parse_attr *attr, u16 type, const u8 *pos, u16 len) wps_set_attr() argument
596 wps_parse_msg(const struct wpabuf *msg, struct wps_parse_attr *attr) wps_parse_msg() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
H A Dwps_attr_parse.c20 static int wps_set_vendor_ext_wfa_subelem(struct wps_parse_attr *attr, in wps_set_vendor_ext_wfa_subelem() argument
32 attr->version2 = pos; in wps_set_vendor_ext_wfa_subelem()
35 attr->authorized_macs = pos; in wps_set_vendor_ext_wfa_subelem()
36 attr->authorized_macs_len = len; in wps_set_vendor_ext_wfa_subelem()
44 attr->network_key_shareable = pos; in wps_set_vendor_ext_wfa_subelem()
52 attr->request_to_enroll = pos; in wps_set_vendor_ext_wfa_subelem()
60 attr->settings_delay_time = pos; in wps_set_vendor_ext_wfa_subelem()
68 attr->registrar_configuration_methods = pos; in wps_set_vendor_ext_wfa_subelem()
77 attr->multi_ap_ext = *pos; in wps_set_vendor_ext_wfa_subelem()
79 attr in wps_set_vendor_ext_wfa_subelem()
91 wps_parse_vendor_ext_wfa(struct wps_parse_attr *attr, const u8 *pos, u16 len) wps_parse_vendor_ext_wfa() argument
111 wps_parse_vendor_ext(struct wps_parse_attr *attr, const u8 *pos, u16 len) wps_parse_vendor_ext() argument
152 wps_set_attr(struct wps_parse_attr *attr, u16 type, const u8 *pos, u16 len) wps_set_attr() argument
596 wps_parse_msg(const struct wpabuf *msg, struct wps_parse_attr *attr) wps_parse_msg() argument
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dparse-events.c39 __u32 type = evsel->core.attr.type; in test_config()
40 __u64 config = evsel->core.attr.config; in test_config()
54 return (evsel->attr.config & PERF_HW_EVENT_MASK) == expected_config; in test_perf_config()
91 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint()
93 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint()
94 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint()
107 PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint_multi()
109 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint_multi()
111 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint_multi()
130 evsel->attr in test__checkevent_raw()
[all...]
/kernel/linux/linux-5.10/lib/
H A Dfault-inject.c18 int setup_fault_attr(struct fault_attr *attr, char *str) in setup_fault_attr() argument
33 attr->probability = probability; in setup_fault_attr()
34 attr->interval = interval; in setup_fault_attr()
35 atomic_set(&attr->times, times); in setup_fault_attr()
36 atomic_set(&attr->space, space); in setup_fault_attr()
42 static void fail_dump(struct fault_attr *attr) in fail_dump() argument
44 if (attr->verbose > 0 && __ratelimit(&attr->ratelimit_state)) { in fail_dump()
47 "space %d, times %d\n", attr->dname, in fail_dump()
48 attr in fail_dump()
58 fail_task(struct fault_attr *attr, struct task_struct *task) fail_task() argument
67 fail_stacktrace(struct fault_attr *attr) fail_stacktrace() argument
91 fail_stacktrace(struct fault_attr *attr) fail_stacktrace() argument
103 should_fail(struct fault_attr *attr, ssize_t size) should_fail() argument
199 fault_create_debugfs_attr(const char *name, struct dentry *parent, struct fault_attr *attr) fault_create_debugfs_attr() argument
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/hw/qib/
H A Dqib_sysfs.c53 struct ib_port_attribute *attr, char *buf) in hrtbt_enable_show()
62 struct ib_port_attribute *attr, in hrtbt_enable_store()
89 struct ib_port_attribute *attr, const char *buf, in loopback_store()
105 struct ib_port_attribute *attr, in led_override_store()
125 struct ib_port_attribute *attr, char *buf) in status_show()
156 struct ib_port_attribute *attr, char *buf) in status_str_show()
196 &ib_port_attr_loopback.attr,
197 &ib_port_attr_led_override.attr,
198 &ib_port_attr_hrtbt_enable.attr,
199 &ib_port_attr_status.attr,
52 hrtbt_enable_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) hrtbt_enable_show() argument
61 hrtbt_enable_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) hrtbt_enable_store() argument
88 loopback_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) loopback_store() argument
104 led_override_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) led_override_store() argument
124 status_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) status_show() argument
155 status_str_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) status_str_show() argument
285 qib_ccmgta_is_bin_visible(struct kobject *kobj, struct bin_attribute *attr, int n) qib_ccmgta_is_bin_visible() argument
304 struct ib_port_attribute attr; global() member
308 sl2vl_attr_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) sl2vl_attr_show() argument
372 struct ib_port_attribute attr; global() member
376 diagc_attr_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) diagc_attr_show() argument
387 diagc_attr_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) diagc_attr_store() argument
454 rc_acks_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) rc_acks_show() argument
465 rc_acks_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) rc_acks_store() argument
477 rc_qacks_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) rc_qacks_show() argument
488 rc_qacks_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) rc_qacks_store() argument
500 rc_delayed_comp_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) rc_delayed_comp_show() argument
511 rc_delayed_comp_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) rc_delayed_comp_store() argument
564 hw_rev_show(struct device *device, struct device_attribute *attr, char *buf) hw_rev_show() argument
574 hca_type_show(struct device *device, struct device_attribute *attr, char *buf) hca_type_show() argument
588 version_show(struct device *device, struct device_attribute *attr, char *buf) version_show() argument
596 boardversion_show(struct device *device, struct device_attribute *attr, char *buf) boardversion_show() argument
608 localbus_info_show(struct device *device, struct device_attribute *attr, char *buf) localbus_info_show() argument
620 nctxts_show(struct device *device, struct device_attribute *attr, char *buf) nctxts_show() argument
637 nfreectxts_show(struct device *device, struct device_attribute *attr, char *buf) nfreectxts_show() argument
649 serial_show(struct device *device, struct device_attribute *attr, char *buf) serial_show() argument
662 chip_reset_store(struct device *device, struct device_attribute *attr, const char *buf, size_t count) chip_reset_store() argument
685 tempsense_show(struct device *device, struct device_attribute *attr, char *buf) tempsense_show() argument
[all...]
/test/xts/acts/kernel_lite/process_posix/src/
H A DPthreadAttrTest.cpp36 pthread_attr_t attr; in HWTEST_F() local
40 EXPECT_EQ(pthread_attr_init(&attr), 0); in HWTEST_F()
41 EXPECT_EQ(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED), 0) << "> return errno"; in HWTEST_F()
42 EXPECT_EQ(pthread_attr_getdetachstate(&attr, &param), 0); in HWTEST_F()
45 ASSERT_EQ(pthread_create(&tid, &attr, ThreadPublic, nullptr), 0) << "> return errno"; in HWTEST_F()
46 EXPECT_EQ(pthread_attr_destroy(&attr), 0); in HWTEST_F()
50 EXPECT_EQ(pthread_attr_init(&attr), 0); in HWTEST_F()
51 EXPECT_EQ(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE), 0) << "> return errno"; in HWTEST_F()
52 EXPECT_EQ(pthread_attr_getdetachstate(&attr, &param), 0); in HWTEST_F()
55 ASSERT_EQ(pthread_create(&tid, &attr, ThreadPubli in HWTEST_F()
62 pthread_attr_t attr; ThreadPthreadAttrSetscope() local
81 pthread_attr_t attr; HWTEST_F() local
102 pthread_attr_t attr; ThreadPthreadAttrSetguardsize() local
121 pthread_attr_t attr; HWTEST_F() local
142 pthread_attr_t attr; ThreadPthreadAttrSetstacksize() local
164 pthread_attr_t attr; HWTEST_F() local
190 pthread_attr_t attr; HWTEST_F() local
203 pthread_attr_t attr; ThreadPthreadAttrSetstack() local
221 pthread_attr_t attr; HWTEST_F() local
255 pthread_attr_t attr; HWTEST_F() local
265 pthread_attr_t attr; ThreadPthreadGetattrNp() local
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/core/
H A Dsysfs.c50 struct ib_port_attribute attr; member
77 struct device_attribute attr; member
86 struct ib_port_attribute attr; member
106 struct attribute *attr, char *buf) in port_attr_show()
109 container_of(attr, struct ib_port_attribute, attr); in port_attr_show()
119 struct attribute *attr, in port_attr_store()
123 container_of(attr, struct ib_port_attribute, attr); in port_attr_store()
147 struct device_attribute *attr, cha in hw_stat_device_show()
105 port_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) port_attr_show() argument
118 port_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) port_attr_store() argument
146 hw_stat_device_show(struct device *dev, struct device_attribute *attr, char *buf) hw_stat_device_show() argument
157 hw_stat_device_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) hw_stat_device_store() argument
170 hw_stat_port_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) hw_stat_port_show() argument
182 hw_stat_port_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) hw_stat_port_store() argument
195 gid_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) gid_attr_show() argument
216 struct ib_port_attr attr; state_show() local
242 struct ib_port_attr attr; lid_show() local
255 struct ib_port_attr attr; lid_mask_count_show() local
268 struct ib_port_attr attr; sm_lid_show() local
281 struct ib_port_attr attr; sm_sl_show() local
294 struct ib_port_attr attr; cap_mask_show() local
307 struct ib_port_attr attr; rate_show() local
382 struct ib_port_attr attr; phys_state_show() local
457 _show_port_gid_attr( struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf, ssize_t (*print)(const struct ib_gid_attr *gid_attr, char *buf)) _show_port_gid_attr() argument
477 show_port_gid(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) show_port_gid() argument
506 show_port_gid_attr_ndev(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) show_port_gid_attr_ndev() argument
513 show_port_gid_attr_gid_type(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) show_port_gid_attr_gid_type() argument
521 show_port_pkey(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) show_port_pkey() argument
554 get_perf_mad(struct ib_device *dev, int port_num, __be16 attr, void *data, int offset, size_t size) get_perf_mad() argument
598 show_pma_counter(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) show_pma_counter() argument
935 struct hw_stats_device_attribute *attr; ib_setup_device_attrs() local
1035 struct hw_stats_port_attribute *attr; setup_hw_port_stats() local
1136 setup_gid_attrs(struct ib_port *port, const struct ib_port_attr *attr) setup_gid_attrs() argument
1198 setup_port(struct ib_core_device *coredev, int port_num, const struct ib_port_attr *attr) setup_port() argument
1316 node_type_show(struct device *device, struct device_attribute *attr, char *buf) node_type_show() argument
1340 node_guid_show(struct device *device, struct device_attribute *attr, char *buf) node_guid_show() argument
1354 node_desc_show(struct device *device, struct device_attribute *attr, char *buf) node_desc_show() argument
1362 node_desc_store(struct device *device, struct device_attribute *attr, const char *buf, size_t count) node_desc_store() argument
1382 fw_ver_show(struct device *device, struct device_attribute *attr, char *buf) fw_ver_show() argument
1433 struct ib_port_attr attr; ib_setup_port_attrs() local
[all...]
/kernel/linux/linux-5.10/drivers/base/
H A Dsoc.c21 static ssize_t soc_info_show(struct device *dev, struct device_attribute *attr,
26 struct soc_device_attribute *attr; member
46 struct attribute *attr, in soc_attribute_mode()
52 if ((attr == &dev_attr_machine.attr) && soc_dev->attr->machine) in soc_attribute_mode()
53 return attr->mode; in soc_attribute_mode()
54 if ((attr == &dev_attr_family.attr) && soc_dev->attr in soc_attribute_mode()
45 soc_attribute_mode(struct kobject *kobj, struct attribute *attr, int index) soc_attribute_mode() argument
67 soc_info_show(struct device *dev, struct device_attribute *attr, char *buf) soc_info_show() argument
194 soc_device_match_attr(const struct soc_device_attribute *attr, const struct soc_device_attribute *match) soc_device_match_attr() argument
[all...]
/kernel/linux/linux-6.6/drivers/base/
H A Dsoc.c22 static ssize_t soc_info_show(struct device *dev, struct device_attribute *attr,
27 struct soc_device_attribute *attr; member
48 struct attribute *attr, in soc_attribute_mode()
54 if ((attr == &dev_attr_machine.attr) && soc_dev->attr->machine) in soc_attribute_mode()
55 return attr->mode; in soc_attribute_mode()
56 if ((attr == &dev_attr_family.attr) && soc_dev->attr in soc_attribute_mode()
47 soc_attribute_mode(struct kobject *kobj, struct attribute *attr, int index) soc_attribute_mode() argument
69 soc_info_show(struct device *dev, struct device_attribute *attr, char *buf) soc_info_show() argument
211 soc_device_match_attr(const struct soc_device_attribute *attr, const struct soc_device_attribute *match) soc_device_match_attr() argument
[all...]
/kernel/linux/linux-6.6/drivers/memory/
H A Ddfl-emif.c52 struct device_attribute attr; member
58 container_of(dev_attr, struct emif_attr, attr)
61 struct device_attribute *attr, char *buf) in emif_state_show()
63 struct emif_attr *eattr = to_emif_attr(attr); in emif_state_show()
74 struct device_attribute *attr, in emif_clear_store()
77 struct emif_attr *eattr = to_emif_attr(attr); in emif_clear_store()
108 { .attr = __ATTR(inf##_index##_##_name, 0444, \
114 { .attr = __ATTR(inf##_index##_clear, 0200, \
148 &emif_attr_inf0_init_done.attr.attr,
60 emif_state_show(struct device *dev, struct device_attribute *attr, char *buf) emif_state_show() argument
73 emif_clear_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) emif_clear_store() argument
183 dfl_emif_visible(struct kobject *kobj, struct attribute *attr, int n) dfl_emif_visible() argument
[all...]
/kernel/liteos_m/testsuites/unittest/xts/cmsis/
H A Dcmsis_task_func_test.c188 osThreadAttr_t attr; in CmsisThreadGetNameFunc001() local
190 attr.name = osThreadGetName(g_puwTaskID01); in CmsisThreadGetNameFunc001()
191 ICUNIT_ASSERT_STRING_EQUAL_VOID(attr.name, "testThreadGetName", attr.name); in CmsisThreadGetNameFunc001()
236 osThreadAttr_t attr; in CmsisThreadGetStackSizeFunc001() local
238 attr.stack_size = osThreadGetStackSize(g_puwTaskID01); in CmsisThreadGetStackSizeFunc001()
239 ICUNIT_ASSERT_EQUAL_VOID(attr.stack_size, TEST_TASK_STACK_SIZE, attr.stack_size); in CmsisThreadGetStackSizeFunc001()
725 * @tc.name : thread creat operation with attr = NULL
748 osThreadAttr_t attr; variable
805 osThreadAttr_t attr; global() variable
864 osThreadAttr_t attr; global() variable
929 osThreadAttr_t attr; global() variable
959 osThreadAttr_t attr; global() variable
989 osThreadAttr_t attr; global() variable
1019 osThreadAttr_t attr; global() variable
1049 osThreadAttr_t attr; global() variable
1078 osThreadAttr_t attr; global() variable
1105 osThreadAttr_t attr; global() variable
1132 osThreadAttr_t attr; global() variable
1159 osThreadAttr_t attr; global() variable
1182 osThreadAttr_t attr; global() variable
1206 osThreadAttr_t attr; global() variable
1242 osThreadAttr_t attr; global() variable
1297 osThreadAttr_t attr; global() variable
1344 osThreadAttr_t attr; global() variable
1358 osThreadAttr_t attr; global() variable
1413 osThreadAttr_t attr; global() variable
1445 osThreadAttr_t attr; global() variable
1472 osThreadAttr_t attr; global() variable
1533 osThreadAttr_t attr; global() variable
1604 osThreadAttr_t attr; global() variable
1659 osThreadAttr_t attr; global() variable
1718 osThreadAttr_t attr; global() variable
1775 osThreadAttr_t attr; global() variable
1802 osThreadAttr_t attr; global() variable
1856 osThreadAttr_t attr; global() variable
1924 osThreadAttr_t attr; global() variable
1982 osThreadAttr_t attr; global() variable
2090 osThreadAttr_t attr; global() variable
[all...]
/kernel/linux/linux-5.10/drivers/staging/iio/meter/
H A Dade7854.c25 struct device_attribute *attr, in ade7854_read_8bit()
32 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_8bit()
42 struct device_attribute *attr, in ade7854_read_16bit()
49 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_16bit()
59 struct device_attribute *attr, in ade7854_read_24bit()
66 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_24bit()
76 struct device_attribute *attr, in ade7854_read_32bit()
81 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_32bit()
93 struct device_attribute *attr, in ade7854_write_8bit()
97 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_write_8bit()
24 ade7854_read_8bit(struct device *dev, struct device_attribute *attr, char *buf) ade7854_read_8bit() argument
41 ade7854_read_16bit(struct device *dev, struct device_attribute *attr, char *buf) ade7854_read_16bit() argument
58 ade7854_read_24bit(struct device *dev, struct device_attribute *attr, char *buf) ade7854_read_24bit() argument
75 ade7854_read_32bit(struct device *dev, struct device_attribute *attr, char *buf) ade7854_read_32bit() argument
92 ade7854_write_8bit(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) ade7854_write_8bit() argument
113 ade7854_write_16bit(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) ade7854_write_16bit() argument
134 ade7854_write_24bit(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) ade7854_write_24bit() argument
155 ade7854_write_32bit(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) ade7854_write_32bit() argument
[all...]
/test/xts/acts/kernel_lite/sched_posix/src/
H A DPthreadSchedApiTest.cpp43 pthread_attr_t attr; in HWTEST_F() local
44 ASSERT_EQ(pthread_attr_init(&attr), 0); in HWTEST_F()
47 int rt = pthread_attr_getinheritsched(&attr, &inheritsched); in HWTEST_F()
60 pthread_attr_t attr; in HWTEST_F() local
61 ASSERT_EQ(pthread_attr_init(&attr), 0); in HWTEST_F()
63 int rt = pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED); in HWTEST_F()
66 rt = pthread_attr_getinheritsched(&attr, &inheritsched); in HWTEST_F()
70 rt = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); in HWTEST_F()
73 rt = pthread_attr_getinheritsched(&attr, &inheritsched); in HWTEST_F()
85 pthread_attr_t attr; in HWTEST_F() local
103 pthread_attr_t attr; HWTEST_F() local
119 pthread_attr_t attr; HWTEST_F() local
142 pthread_attr_t attr; HWTEST_F() local
161 pthread_attr_t attr; HWTEST_F() local
177 pthread_attr_t attr; HWTEST_F() local
201 pthread_attr_t attr; HWTEST_F() local
224 pthread_attr_t attr; HWTEST_F() local
240 pthread_attr_t attr; HWTEST_F() local
283 pthread_attr_t attr; HWTEST_F() local
335 pthread_attr_t attr; HWTEST_P() local
407 pthread_attr_t attr; HWTEST_F() local
459 pthread_attr_t attr; HWTEST_F() local
511 pthread_attr_t attr; HWTEST_F() local
[all...]
/kernel/linux/linux-5.10/kernel/
H A Dfail_function.c58 struct fei_attr *attr; in fei_attr_new() local
60 attr = kzalloc(sizeof(*attr), GFP_KERNEL); in fei_attr_new()
61 if (attr) { in fei_attr_new()
62 attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL); in fei_attr_new()
63 if (!attr->kp.symbol_name) { in fei_attr_new()
64 kfree(attr); in fei_attr_new()
67 attr->kp.pre_handler = fei_kprobe_handler; in fei_attr_new()
68 attr->kp.post_handler = fei_post_handler; in fei_attr_new()
69 attr in fei_attr_new()
75 fei_attr_free(struct fei_attr *attr) fei_attr_free() argument
85 struct fei_attr *attr; fei_attr_lookup() local
97 struct fei_attr *attr; fei_attr_is_valid() local
109 struct fei_attr *attr = data; fei_retval_set() local
139 struct fei_attr *attr = data; fei_retval_get() local
155 fei_debugfs_add_attr(struct fei_attr *attr) fei_debugfs_add_attr() argument
164 fei_debugfs_remove_attr(struct fei_attr *attr) fei_debugfs_remove_attr() argument
171 struct fei_attr *attr = container_of(kp, struct fei_attr, kp); fei_kprobe_handler() local
201 struct fei_attr *attr = list_entry(v, struct fei_attr, list); fei_seq_show() local
219 fei_attr_remove(struct fei_attr *attr) fei_attr_remove() argument
229 struct fei_attr *attr, *n; fei_attr_remove_all() local
239 struct fei_attr *attr; fei_write() local
[all...]
/kernel/linux/linux-6.6/kernel/
H A Dfail_function.c58 struct fei_attr *attr; in fei_attr_new() local
60 attr = kzalloc(sizeof(*attr), GFP_KERNEL); in fei_attr_new()
61 if (attr) { in fei_attr_new()
62 attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL); in fei_attr_new()
63 if (!attr->kp.symbol_name) { in fei_attr_new()
64 kfree(attr); in fei_attr_new()
67 attr->kp.pre_handler = fei_kprobe_handler; in fei_attr_new()
68 attr->kp.post_handler = fei_post_handler; in fei_attr_new()
69 attr in fei_attr_new()
75 fei_attr_free(struct fei_attr *attr) fei_attr_free() argument
85 struct fei_attr *attr; fei_attr_lookup() local
97 struct fei_attr *attr; fei_attr_is_valid() local
109 struct fei_attr *attr = data; fei_retval_set() local
139 struct fei_attr *attr = data; fei_retval_get() local
155 fei_debugfs_add_attr(struct fei_attr *attr) fei_debugfs_add_attr() argument
164 fei_debugfs_remove_attr(struct fei_attr *attr) fei_debugfs_remove_attr() argument
171 struct fei_attr *attr = container_of(kp, struct fei_attr, kp); fei_kprobe_handler() local
201 struct fei_attr *attr = list_entry(v, struct fei_attr, list); fei_seq_show() local
219 fei_attr_remove(struct fei_attr *attr) fei_attr_remove() argument
229 struct fei_attr *attr, *n; fei_attr_remove_all() local
239 struct fei_attr *attr; fei_write() local
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
H A Dsysfs.c99 .attr = {.name = "cc_table_bin", .mode = 0444},
141 .attr = {.name = "cc_settings_bin", .mode = 0444},
147 struct attribute attr; member
171 static ssize_t cc_attr_show(struct kobject *kobj, struct attribute *attr, in cc_attr_show() argument
175 container_of(attr, struct hfi1_port_attr, attr); in cc_attr_show()
182 static ssize_t cc_attr_store(struct kobject *kobj, struct attribute *attr, in cc_attr_store() argument
186 container_of(attr, struct hfi1_port_attr, attr); in cc_attr_store()
199 &cc_prescan_attr.attr,
217 struct attribute attr; global() member
290 sc2vl_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) sc2vl_attr_show() argument
322 struct attribute attr; global() member
395 sl2sc_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) sl2sc_attr_show() argument
428 struct attribute attr; global() member
469 vl2mtu_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) vl2mtu_attr_show() argument
497 hw_rev_show(struct device *device, struct device_attribute *attr, char *buf) hw_rev_show() argument
507 board_id_show(struct device *device, struct device_attribute *attr, char *buf) board_id_show() argument
523 boardversion_show(struct device *device, struct device_attribute *attr, char *buf) boardversion_show() argument
535 nctxts_show(struct device *device, struct device_attribute *attr, char *buf) nctxts_show() argument
554 nfreectxts_show(struct device *device, struct device_attribute *attr, char *buf) nfreectxts_show() argument
566 serial_show(struct device *device, struct device_attribute *attr, char *buf) serial_show() argument
577 chip_reset_store(struct device *device, struct device_attribute *attr, const char *buf, size_t count) chip_reset_store() argument
608 tempsense_show(struct device *device, struct device_attribute *attr, char *buf) tempsense_show() argument
753 struct attribute attr; global() member
758 sde_show(struct kobject *kobj, struct attribute *attr, char *buf) sde_show() argument
771 sde_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) sde_store() argument
[all...]
/kernel/linux/linux-5.10/drivers/scsi/
H A Dscsi_transport_iscsi.c125 show_transport_handle(struct device *dev, struct device_attribute *attr, in show_transport_handle() argument
140 struct device_attribute *attr,char *buf) \
150 &dev_attr_handle.attr,
151 &dev_attr_caps.attr,
181 show_ep_handle(struct device *dev, struct device_attribute *attr, char *buf) in show_ep_handle() argument
189 &dev_attr_ep_handle.attr,
316 show_##type##_##name(struct device *dev, struct device_attribute *attr, \
437 struct attribute *attr, int i) in iscsi_iface_attr_is_visible()
444 if (attr == &dev_attr_iface_def_taskmgmt_tmo.attr) in iscsi_iface_attr_is_visible()
436 iscsi_iface_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_iface_attr_is_visible() argument
903 iscsi_flashnode_sess_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_flashnode_sess_attr_is_visible() argument
1105 iscsi_flashnode_conn_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_flashnode_conn_attr_is_visible() argument
4158 show_conn_state(struct device *dev, struct device_attribute *attr, char *buf) show_conn_state() argument
4246 iscsi_conn_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_conn_attr_is_visible() argument
4393 show_priv_session_target_state(struct device *dev, struct device_attribute *attr, char *buf) show_priv_session_target_state() argument
4406 show_priv_session_state(struct device *dev, struct device_attribute *attr, char *buf) show_priv_session_state() argument
4415 show_priv_session_creator(struct device *dev, struct device_attribute *attr, char *buf) show_priv_session_creator() argument
4424 show_priv_session_target_id(struct device *dev, struct device_attribute *attr, char *buf) show_priv_session_target_id() argument
4529 iscsi_session_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_session_attr_is_visible() argument
4675 iscsi_host_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_host_attr_is_visible() argument
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A Dscsi_transport_iscsi.c127 show_transport_handle(struct device *dev, struct device_attribute *attr, in show_transport_handle() argument
142 struct device_attribute *attr,char *buf) \
152 &dev_attr_handle.attr,
153 &dev_attr_caps.attr,
188 show_ep_handle(struct device *dev, struct device_attribute *attr, char *buf) in show_ep_handle() argument
196 &dev_attr_ep_handle.attr,
321 show_##type##_##name(struct device *dev, struct device_attribute *attr, \
442 struct attribute *attr, int i) in iscsi_iface_attr_is_visible()
449 if (attr == &dev_attr_iface_def_taskmgmt_tmo.attr) in iscsi_iface_attr_is_visible()
441 iscsi_iface_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_iface_attr_is_visible() argument
907 iscsi_flashnode_sess_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_flashnode_sess_attr_is_visible() argument
1109 iscsi_flashnode_conn_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_flashnode_conn_attr_is_visible() argument
4185 show_conn_state(struct device *dev, struct device_attribute *attr, char *buf) show_conn_state() argument
4273 iscsi_conn_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_conn_attr_is_visible() argument
4420 show_priv_session_target_state(struct device *dev, struct device_attribute *attr, char *buf) show_priv_session_target_state() argument
4433 show_priv_session_state(struct device *dev, struct device_attribute *attr, char *buf) show_priv_session_state() argument
4442 show_priv_session_creator(struct device *dev, struct device_attribute *attr, char *buf) show_priv_session_creator() argument
4451 show_priv_session_target_id(struct device *dev, struct device_attribute *attr, char *buf) show_priv_session_target_id() argument
4556 iscsi_session_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_session_attr_is_visible() argument
4702 iscsi_host_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_host_attr_is_visible() argument
[all...]

Completed in 26 milliseconds

12345678910>>...318