/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | bpf.c | 62 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf() argument 65 return syscall(__NR_bpf, cmd, attr, size); in sys_bpf() 68 static inline int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size) in sys_bpf_prog_load() argument 73 fd = sys_bpf(BPF_PROG_LOAD, attr, size); in sys_bpf_prog_load() 81 union bpf_attr attr; in bpf_create_map_xattr() local 83 memset(&attr, '\0', sizeof(attr)); in bpf_create_map_xattr() 85 attr.map_type = create_attr->map_type; in bpf_create_map_xattr() 86 attr.key_size = create_attr->key_size; in bpf_create_map_xattr() 87 attr in bpf_create_map_xattr() 161 union bpf_attr attr; bpf_create_map_in_map_node() local 221 union bpf_attr attr; bpf_load_program_xattr() local 353 union bpf_attr attr; bpf_verify_program() local 373 union bpf_attr attr; bpf_map_update_elem() local 386 union bpf_attr attr; bpf_map_lookup_elem() local 398 union bpf_attr attr; bpf_map_lookup_elem_flags() local 411 union bpf_attr attr; bpf_map_lookup_and_delete_elem() local 423 union bpf_attr attr; bpf_map_delete_elem() local 434 union bpf_attr attr; bpf_map_get_next_key() local 446 union bpf_attr attr; bpf_map_freeze() local 459 union bpf_attr attr; bpf_map_batch_common() local 514 union bpf_attr attr; bpf_obj_pin() local 525 union bpf_attr attr; bpf_obj_get() local 547 union bpf_attr attr; bpf_prog_attach_xattr() local 564 union bpf_attr attr; bpf_prog_detach() local 575 union bpf_attr attr; bpf_prog_detach2() local 590 union bpf_attr attr; bpf_link_create() local 620 union bpf_attr attr; bpf_link_detach() local 631 union bpf_attr attr; bpf_link_update() local 647 union bpf_attr attr; bpf_iter_create() local 658 union bpf_attr attr; bpf_prog_query() local 679 union bpf_attr attr; bpf_prog_test_run() local 701 union bpf_attr attr; bpf_prog_test_run_xattr() local 729 union bpf_attr attr; bpf_prog_test_run_opts() local 760 union bpf_attr attr; bpf_obj_get_next_id() local 795 union bpf_attr attr; bpf_prog_get_fd_by_id() local 805 union bpf_attr attr; bpf_map_get_fd_by_id() local 815 union bpf_attr attr; bpf_btf_get_fd_by_id() local 825 union bpf_attr attr; bpf_link_get_fd_by_id() local 835 union bpf_attr attr; bpf_obj_get_info_by_fd() local 852 union bpf_attr attr; bpf_raw_tracepoint_open() local 864 union bpf_attr attr = {}; bpf_load_btf() local 890 union bpf_attr attr = {}; bpf_task_fd_query() local 911 union bpf_attr attr; bpf_enable_stats() local 922 union bpf_attr attr; bpf_prog_bind_map() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | sysfs.c | 105 struct ib_port_attribute *attr, char *buf) in cc_prescan_show() 114 struct ib_port_attribute *attr, const char *buf, in cc_prescan_store() 130 &ib_port_attr_cc_prescan.attr, 142 struct ib_port_attribute attr; member 147 struct ib_port_attribute *attr, char *buf) in sc2vl_attr_show() 150 container_of(attr, struct hfi1_sc2vl_attr, attr); in sc2vl_attr_show() 158 .attr = __ATTR(N, 0444, sc2vl_attr_show, NULL), \ 196 &hfi1_sc2vl_attr_0.attr.attr, 104 cc_prescan_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) cc_prescan_show() argument 113 cc_prescan_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) cc_prescan_store() argument 146 sc2vl_attr_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) sc2vl_attr_show() argument 239 struct ib_port_attribute attr; global() member 243 sl2sc_attr_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) sl2sc_attr_show() argument 338 struct ib_port_attribute attr; global() member 342 vl2mtu_attr_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) vl2mtu_attr_show() argument 406 hw_rev_show(struct device *device, struct device_attribute *attr, char *buf) hw_rev_show() argument 416 board_id_show(struct device *device, struct device_attribute *attr, char *buf) board_id_show() argument 430 boardversion_show(struct device *device, struct device_attribute *attr, char *buf) boardversion_show() argument 442 nctxts_show(struct device *device, struct device_attribute *attr, char *buf) nctxts_show() argument 461 nfreectxts_show(struct device *device, struct device_attribute *attr, char *buf) nfreectxts_show() argument 473 serial_show(struct device *device, struct device_attribute *attr, char *buf) serial_show() argument 485 chip_reset_store(struct device *device, struct device_attribute *attr, const char *buf, size_t count) chip_reset_store() argument 515 tempsense_show(struct device *device, struct device_attribute *attr, char *buf) tempsense_show() argument 570 struct attribute attr; global() member 575 sde_show(struct kobject *kobj, struct attribute *attr, char *buf) sde_show() argument 588 sde_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) sde_store() argument [all...] |
/kernel/liteos_m/kal/posix/src/ |
H A D | pthread_attr.c | 39 int pthread_attr_init(pthread_attr_t *attr) in pthread_attr_init() argument 41 if (attr == NULL) { in pthread_attr_init() 45 attr->detachstate = PTHREAD_CREATE_JOINABLE; in pthread_attr_init() 46 attr->schedpolicy = SCHED_RR; in pthread_attr_init() 47 attr->schedparam.sched_priority = LOSCFG_BASE_CORE_TSK_DEFAULT_PRIO; in pthread_attr_init() 48 attr->inheritsched = PTHREAD_INHERIT_SCHED; in pthread_attr_init() 49 attr->scope = PTHREAD_SCOPE_SYSTEM; in pthread_attr_init() 50 attr->stackaddr_set = 0; in pthread_attr_init() 51 attr->stackaddr = NULL; in pthread_attr_init() 52 attr in pthread_attr_init() 58 pthread_attr_destroy(pthread_attr_t *attr) pthread_attr_destroy() argument 69 pthread_attr_setdetachstate(pthread_attr_t *attr, int detachState) pthread_attr_setdetachstate() argument 79 pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachState) pthread_attr_getdetachstate() argument 90 pthread_attr_setscope(pthread_attr_t *attr, int scope) pthread_attr_setscope() argument 108 pthread_attr_getscope(const pthread_attr_t *attr, int *scope) pthread_attr_getscope() argument 119 pthread_attr_setinheritsched(pthread_attr_t *attr, int inherit) pthread_attr_setinheritsched() argument 129 pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inherit) pthread_attr_getinheritsched() argument 140 pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy) pthread_attr_setschedpolicy() argument 150 pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy) pthread_attr_getschedpolicy() argument 161 pthread_attr_setschedparam(pthread_attr_t *attr, const struct sched_param *param) pthread_attr_setschedparam() argument 175 pthread_attr_getschedparam(const pthread_attr_t *attr, struct sched_param *param) pthread_attr_getschedparam() argument 191 pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackAddr) pthread_attr_setstackaddr() argument 203 pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackAddr) pthread_attr_getstackaddr() argument 213 pthread_attr_setstacksize(pthread_attr_t *attr, size_t stackSize) pthread_attr_setstacksize() argument 225 pthread_attr_setstack(pthread_attr_t *attr, void *stackAddr, size_t stackSize) pthread_attr_setstack() argument 238 pthread_attr_getstack(const pthread_attr_t *attr, void **stackAddr, size_t *stackSize) pthread_attr_getstack() argument 250 pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stackSize) pthread_attr_getstacksize() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
H A D | wps_validate.c | 1030 struct wps_parse_attr attr; in wps_validate_cred() local 1036 if (wps_parse_msg(&buf, &attr) < 0) { in wps_validate_cred() 1041 if (wps_validate_network_idx(attr.network_idx, 1) || in wps_validate_cred() 1042 wps_validate_ssid(attr.ssid, attr.ssid_len, 1) || in wps_validate_cred() 1043 wps_validate_auth_type(attr.auth_type, 1) || in wps_validate_cred() 1044 wps_validate_encr_type(attr.encr_type, 1) || in wps_validate_cred() 1045 wps_validate_network_key_index(attr.network_key_idx, 0) || in wps_validate_cred() 1046 wps_validate_network_key(attr.network_key, attr in wps_validate_cred() 1085 struct wps_parse_attr attr; wps_validate_beacon() local 1124 struct wps_parse_attr attr; wps_validate_beacon_probe_resp() local 1182 struct wps_parse_attr attr; wps_validate_probe_req() local 1229 struct wps_parse_attr attr; wps_validate_assoc_req() local 1258 struct wps_parse_attr attr; wps_validate_assoc_resp() local 1287 struct wps_parse_attr attr; wps_validate_m1() local 1343 struct wps_parse_attr attr; wps_validate_m2() local 1398 struct wps_parse_attr attr; wps_validate_m2d() local 1450 struct wps_parse_attr attr; wps_validate_m3() local 1486 struct wps_parse_attr attr; wps_validate_m4() local 1524 struct wps_parse_attr attr; wps_validate_m4_encr() local 1555 struct wps_parse_attr attr; wps_validate_m5() local 1591 struct wps_parse_attr attr; wps_validate_m5_encr() local 1622 struct wps_parse_attr attr; wps_validate_m6() local 1658 struct wps_parse_attr attr; wps_validate_m6_encr() local 1689 struct wps_parse_attr attr; wps_validate_m7() local 1726 struct wps_parse_attr attr; wps_validate_m7_encr() local 1764 struct wps_parse_attr attr; wps_validate_m8() local 1800 struct wps_parse_attr attr; wps_validate_m8_encr() local 1837 struct wps_parse_attr attr; wps_validate_wsc_ack() local 1871 struct wps_parse_attr attr; wps_validate_wsc_nack() local 1906 struct wps_parse_attr attr; wps_validate_wsc_done() local 1940 struct wps_parse_attr attr; wps_validate_upnp_set_selected_registrar() local [all...] |
H A D | wps_attr_parse.c | 20 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 D | wps_validate.c | 1030 struct wps_parse_attr attr; in wps_validate_cred() local 1036 if (wps_parse_msg(&buf, &attr) < 0) { in wps_validate_cred() 1041 if (wps_validate_network_idx(attr.network_idx, 1) || in wps_validate_cred() 1042 wps_validate_ssid(attr.ssid, attr.ssid_len, 1) || in wps_validate_cred() 1043 wps_validate_auth_type(attr.auth_type, 1) || in wps_validate_cred() 1044 wps_validate_encr_type(attr.encr_type, 1) || in wps_validate_cred() 1045 wps_validate_network_key_index(attr.network_key_idx, 0) || in wps_validate_cred() 1046 wps_validate_network_key(attr.network_key, attr in wps_validate_cred() 1085 struct wps_parse_attr attr; wps_validate_beacon() local 1124 struct wps_parse_attr attr; wps_validate_beacon_probe_resp() local 1182 struct wps_parse_attr attr; wps_validate_probe_req() local 1229 struct wps_parse_attr attr; wps_validate_assoc_req() local 1258 struct wps_parse_attr attr; wps_validate_assoc_resp() local 1287 struct wps_parse_attr attr; wps_validate_m1() local 1343 struct wps_parse_attr attr; wps_validate_m2() local 1398 struct wps_parse_attr attr; wps_validate_m2d() local 1450 struct wps_parse_attr attr; wps_validate_m3() local 1486 struct wps_parse_attr attr; wps_validate_m4() local 1524 struct wps_parse_attr attr; wps_validate_m4_encr() local 1555 struct wps_parse_attr attr; wps_validate_m5() local 1591 struct wps_parse_attr attr; wps_validate_m5_encr() local 1622 struct wps_parse_attr attr; wps_validate_m6() local 1658 struct wps_parse_attr attr; wps_validate_m6_encr() local 1689 struct wps_parse_attr attr; wps_validate_m7() local 1726 struct wps_parse_attr attr; wps_validate_m7_encr() local 1764 struct wps_parse_attr attr; wps_validate_m8() local 1800 struct wps_parse_attr attr; wps_validate_m8_encr() local 1837 struct wps_parse_attr attr; wps_validate_wsc_ack() local 1871 struct wps_parse_attr attr; wps_validate_wsc_nack() local 1906 struct wps_parse_attr attr; wps_validate_wsc_done() local 1940 struct wps_parse_attr attr; wps_validate_upnp_set_selected_registrar() local [all...] |
/kernel/liteos_a/compat/posix/src/ |
H A D | pthread_attr.c | 36 int pthread_attr_init(pthread_attr_t *attr) in pthread_attr_init() argument 38 if (attr == NULL) { in pthread_attr_init() 42 attr->detachstate = PTHREAD_CREATE_JOINABLE; in pthread_attr_init() 43 attr->schedpolicy = SCHED_RR; in pthread_attr_init() 44 attr->schedparam.sched_priority = LOSCFG_BASE_CORE_TSK_DEFAULT_PRIO; in pthread_attr_init() 45 attr->inheritsched = PTHREAD_INHERIT_SCHED; in pthread_attr_init() 46 attr->scope = PTHREAD_SCOPE_PROCESS; in pthread_attr_init() 47 attr->stackaddr_set = 0; in pthread_attr_init() 48 attr->stackaddr = NULL; in pthread_attr_init() 49 attr in pthread_attr_init() 59 pthread_attr_destroy(pthread_attr_t *attr) pthread_attr_destroy() argument 69 pthread_attr_setdetachstate(pthread_attr_t *attr, int detachState) pthread_attr_setdetachstate() argument 79 pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachState) pthread_attr_getdetachstate() argument 90 pthread_attr_setscope(pthread_attr_t *attr, int scope) pthread_attr_setscope() argument 108 pthread_attr_getscope(const pthread_attr_t *attr, int *scope) pthread_attr_getscope() argument 119 pthread_attr_setinheritsched(pthread_attr_t *attr, int inherit) pthread_attr_setinheritsched() argument 129 pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inherit) pthread_attr_getinheritsched() argument 140 pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy) pthread_attr_setschedpolicy() argument 150 pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy) pthread_attr_getschedpolicy() argument 161 pthread_attr_setschedparam(pthread_attr_t *attr, const struct sched_param *param) pthread_attr_setschedparam() argument 174 pthread_attr_getschedparam(const pthread_attr_t *attr, struct sched_param *param) pthread_attr_getschedparam() argument 190 pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackAddr) pthread_attr_setstackaddr() argument 202 pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackAddr) pthread_attr_getstackaddr() argument 212 pthread_attr_setstacksize(pthread_attr_t *attr, size_t stackSize) pthread_attr_setstacksize() argument 225 pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stackSize) pthread_attr_getstacksize() argument 240 pthread_attr_setaffinity_np(pthread_attr_t* attr, size_t cpusetsize, const cpu_set_t* cpuset) pthread_attr_setaffinity_np() argument 265 pthread_attr_getaffinity_np(const pthread_attr_t* attr, size_t cpusetsize, cpu_set_t* cpuset) pthread_attr_getaffinity_np() argument [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/thread/ |
H A D | pthread_attr_get.c | 30 pthread_attr_t attr; in pthread_attr_getscope_0100() local 31 pthread_attr_init(&attr); in pthread_attr_getscope_0100() 32 int rev = pthread_attr_getscope(&attr, &scope); in pthread_attr_getscope_0100() 35 pthread_attr_destroy(&attr); in pthread_attr_getscope_0100() 46 pthread_attr_t attr; in pthread_attr_getguardsize_0100() local 47 pthread_attr_init(&attr); in pthread_attr_getguardsize_0100() 48 int rev = pthread_attr_getguardsize(&attr, &size); in pthread_attr_getguardsize_0100() 50 pthread_attr_destroy(&attr); in pthread_attr_getguardsize_0100() 61 pthread_attr_t attr; in pthread_attr_getinheritsched_0100() local 64 int ret = pthread_attr_init(&attr); in pthread_attr_getinheritsched_0100() 91 pthread_attr_t attr; pthread_attr_getinheritsched_0200() local 112 pthread_barrierattr_t attr; pthread_barrierattr_getpshared_0100() local 143 pthread_condattr_t attr; pthread_condattr_getclock_0100() local 166 pthread_condattr_t attr; pthread_condattr_getpshared_0100() local 197 pthread_mutexattr_t attr; pthread_mutexattr_getprotocol_0100() local 220 pthread_mutexattr_t attr; pthread_mutexattr_gettype_0100() local 264 pthread_mutexattr_t attr; pthread_mutexattr_getpshared_0100() local 295 pthread_rwlockattr_t attr; pthread_rwlockattr_getpshared_0100() local 326 pthread_attr_t attr; pthread_attr_getdetachstate_0100() local 342 pthread_attr_t attr; pthread_attr_getschedpolicy_0100() local 362 pthread_attr_t attr; pthread_attr_getschedparam_0100() local 388 pthread_attr_t attr; pthread_attr_getstacksize_0100() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ufs/ |
H A D | ufs-sysfs.c | 36 struct device_attribute *attr, in ufs_sysfs_pm_lvl_store() 59 struct device_attribute *attr, char *buf) in rpm_lvl_show() 67 struct device_attribute *attr, const char *buf, size_t count) in rpm_lvl_store() 69 return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, true); in rpm_lvl_store() 73 struct device_attribute *attr, char *buf) in rpm_target_dev_state_show() 82 struct device_attribute *attr, char *buf) in rpm_target_link_state_show() 91 struct device_attribute *attr, char *buf) in spm_lvl_show() 99 struct device_attribute *attr, const char *buf, size_t count) in spm_lvl_store() 101 return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, false); in spm_lvl_store() 105 struct device_attribute *attr, cha in spm_target_dev_state_show() 35 ufs_sysfs_pm_lvl_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count, bool rpm) ufs_sysfs_pm_lvl_store() argument 58 rpm_lvl_show(struct device *dev, struct device_attribute *attr, char *buf) rpm_lvl_show() argument 66 rpm_lvl_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) rpm_lvl_store() argument 72 rpm_target_dev_state_show(struct device *dev, struct device_attribute *attr, char *buf) rpm_target_dev_state_show() argument 81 rpm_target_link_state_show(struct device *dev, struct device_attribute *attr, char *buf) rpm_target_link_state_show() argument 90 spm_lvl_show(struct device *dev, struct device_attribute *attr, char *buf) spm_lvl_show() argument 98 spm_lvl_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) spm_lvl_store() argument 104 spm_target_dev_state_show(struct device *dev, struct device_attribute *attr, char *buf) spm_target_dev_state_show() argument 113 spm_target_link_state_show(struct device *dev, struct device_attribute *attr, char *buf) spm_target_link_state_show() argument 146 auto_hibern8_show(struct device *dev, struct device_attribute *attr, char *buf) auto_hibern8_show() argument 164 auto_hibern8_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) auto_hibern8_store() argument 838 dyn_cap_needed_attribute_show(struct device *dev, struct device_attribute *attr, char *buf) dyn_cap_needed_attribute_show() argument [all...] |
/kernel/linux/linux-5.10/fs/orangefs/ |
H A D | orangefs-sysfs.c | 166 struct attribute attr; member 168 struct orangefs_attribute *attr, 171 struct orangefs_attribute *attr, 177 struct attribute *attr, in orangefs_attr_show() 182 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_show() 189 struct attribute *attr, in orangefs_attr_store() 199 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_store() 211 struct orangefs_attribute *attr, cha in sysfs_int_show() 176 orangefs_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) orangefs_attr_show() argument 188 orangefs_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) orangefs_attr_store() argument 210 sysfs_int_show(struct kobject *kobj, struct orangefs_attribute *attr, char *buf) sysfs_int_show() argument 280 sysfs_int_store(struct kobject *kobj, struct orangefs_attribute *attr, const char *buf, size_t count) sysfs_int_store() argument 320 sysfs_service_op_show(struct kobject *kobj, struct orangefs_attribute *attr, char *buf) sysfs_service_op_show() argument 535 sysfs_service_op_store(struct kobject *kobj, struct orangefs_attribute *attr, const char *buf, size_t count) sysfs_service_op_store() argument [all...] |
/kernel/linux/linux-6.6/fs/orangefs/ |
H A D | orangefs-sysfs.c | 166 struct attribute attr; member 168 struct orangefs_attribute *attr, 171 struct orangefs_attribute *attr, 177 struct attribute *attr, in orangefs_attr_show() 182 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_show() 189 struct attribute *attr, in orangefs_attr_store() 199 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_store() 211 struct orangefs_attribute *attr, cha in sysfs_int_show() 176 orangefs_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) orangefs_attr_show() argument 188 orangefs_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) orangefs_attr_store() argument 210 sysfs_int_show(struct kobject *kobj, struct orangefs_attribute *attr, char *buf) sysfs_int_show() argument 280 sysfs_int_store(struct kobject *kobj, struct orangefs_attribute *attr, const char *buf, size_t count) sysfs_int_store() argument 320 sysfs_service_op_show(struct kobject *kobj, struct orangefs_attribute *attr, char *buf) sysfs_service_op_show() argument 535 sysfs_service_op_store(struct kobject *kobj, struct orangefs_attribute *attr, const char *buf, size_t count) sysfs_service_op_store() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | iscsi_boot_sysfs.c | 24 struct attribute attr; member 33 struct attribute *attr, char *buf) in iscsi_boot_show_attribute() 38 container_of(attr, struct iscsi_boot_attr, attr); in iscsi_boot_show_attribute() 71 .attr = { .name = __stringify(sysfs_name), .mode = 0444 }, \ 92 &iscsi_boot_attr_tgt_index.attr, 93 &iscsi_boot_attr_tgt_flags.attr, 94 &iscsi_boot_attr_tgt_ip.attr, 95 &iscsi_boot_attr_tgt_port.attr, 96 &iscsi_boot_attr_tgt_lun.attr, 32 iscsi_boot_show_attribute(struct kobject *kobj, struct attribute *attr, char *buf) iscsi_boot_show_attribute() argument 107 iscsi_boot_tgt_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_boot_tgt_attr_is_visible() argument 190 iscsi_boot_eth_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_boot_eth_attr_is_visible() argument 265 iscsi_boot_ini_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_boot_ini_attr_is_visible() argument 314 iscsi_boot_acpitbl_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_boot_acpitbl_attr_is_visible() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | iscsi_boot_sysfs.c | 24 struct attribute attr; member 33 struct attribute *attr, char *buf) in iscsi_boot_show_attribute() 38 container_of(attr, struct iscsi_boot_attr, attr); in iscsi_boot_show_attribute() 71 .attr = { .name = __stringify(sysfs_name), .mode = 0444 }, \ 92 &iscsi_boot_attr_tgt_index.attr, 93 &iscsi_boot_attr_tgt_flags.attr, 94 &iscsi_boot_attr_tgt_ip.attr, 95 &iscsi_boot_attr_tgt_port.attr, 96 &iscsi_boot_attr_tgt_lun.attr, 32 iscsi_boot_show_attribute(struct kobject *kobj, struct attribute *attr, char *buf) iscsi_boot_show_attribute() argument 107 iscsi_boot_tgt_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_boot_tgt_attr_is_visible() argument 190 iscsi_boot_eth_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_boot_eth_attr_is_visible() argument 265 iscsi_boot_ini_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_boot_ini_attr_is_visible() argument 314 iscsi_boot_acpitbl_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) iscsi_boot_acpitbl_attr_is_visible() argument [all...] |
/kernel/liteos_m/testsuites/unittest/xts/cmsis/ |
H A D | cmsis_task_pri_func_test.c | 62 osThreadAttr_t attr; in CmsisThreadGetPriorityFunc001() local 65 attr.priority = osThreadGetPriority(g_priTaskID01); in CmsisThreadGetPriorityFunc001() 66 ICUNIT_ASSERT_EQUAL(attr.priority, g_setPriority, attr.priority); in CmsisThreadGetPriorityFunc001() 74 osThreadAttr_t attr; in CmsisThreadSetPriorityFunc001() local 79 attr.priority = osThreadGetPriority(g_priTaskID01); in CmsisThreadSetPriorityFunc001() 80 ICUNIT_ASSERT_EQUAL(attr.priority, g_setPriority, attr.priority); in CmsisThreadSetPriorityFunc001() 105 osThreadAttr_t attr; variable 107 attr 158 osThreadAttr_t attr; global() variable 185 osThreadAttr_t attr; global() variable 212 osThreadAttr_t attr; global() variable 239 osThreadAttr_t attr; global() variable 265 osThreadAttr_t attr; global() variable 289 osThreadAttr_t attr; global() variable 313 osThreadAttr_t attr; global() variable 364 osThreadAttr_t attr; global() variable 427 osThreadAttr_t attr; global() variable 478 osThreadAttr_t attr; global() variable 527 osThreadAttr_t attr; global() variable 583 osThreadAttr_t attr; global() variable 625 osThreadAttr_t attr; global() variable 680 osThreadAttr_t attr; global() variable 722 osThreadAttr_t attr; global() variable 785 osThreadAttr_t attr; global() variable 820 osThreadAttr_t attr; global() variable 862 osThreadAttr_t attr; global() variable 925 osThreadAttr_t attr; global() variable 960 osThreadAttr_t attr; global() variable 1016 osThreadAttr_t attr; global() variable [all...] |
/kernel/linux/linux-6.6/drivers/ufs/core/ |
H A D | ufs-sysfs.c | 38 struct device_attribute *attr, in ufs_sysfs_pm_lvl_store() 67 struct device_attribute *attr, char *buf) in rpm_lvl_show() 75 struct device_attribute *attr, const char *buf, size_t count) in rpm_lvl_store() 77 return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, true); in rpm_lvl_store() 81 struct device_attribute *attr, char *buf) in rpm_target_dev_state_show() 90 struct device_attribute *attr, char *buf) in rpm_target_link_state_show() 99 struct device_attribute *attr, char *buf) in spm_lvl_show() 107 struct device_attribute *attr, const char *buf, size_t count) in spm_lvl_store() 109 return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, false); in spm_lvl_store() 113 struct device_attribute *attr, cha in spm_target_dev_state_show() 37 ufs_sysfs_pm_lvl_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count, bool rpm) ufs_sysfs_pm_lvl_store() argument 66 rpm_lvl_show(struct device *dev, struct device_attribute *attr, char *buf) rpm_lvl_show() argument 74 rpm_lvl_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) rpm_lvl_store() argument 80 rpm_target_dev_state_show(struct device *dev, struct device_attribute *attr, char *buf) rpm_target_dev_state_show() argument 89 rpm_target_link_state_show(struct device *dev, struct device_attribute *attr, char *buf) rpm_target_link_state_show() argument 98 spm_lvl_show(struct device *dev, struct device_attribute *attr, char *buf) spm_lvl_show() argument 106 spm_lvl_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) spm_lvl_store() argument 112 spm_target_dev_state_show(struct device *dev, struct device_attribute *attr, char *buf) spm_target_dev_state_show() argument 121 spm_target_link_state_show(struct device *dev, struct device_attribute *attr, char *buf) spm_target_link_state_show() argument 154 auto_hibern8_show(struct device *dev, struct device_attribute *attr, char *buf) auto_hibern8_show() argument 183 auto_hibern8_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) auto_hibern8_store() argument 213 wb_on_show(struct device *dev, struct device_attribute *attr, char *buf) wb_on_show() argument 221 wb_on_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) wb_on_store() argument 258 enable_wb_buf_flush_show(struct device *dev, struct device_attribute *attr, char *buf) enable_wb_buf_flush_show() argument 267 enable_wb_buf_flush_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) enable_wb_buf_flush_store() argument 301 wb_flush_threshold_show(struct device *dev, struct device_attribute *attr, char *buf) wb_flush_threshold_show() argument 310 wb_flush_threshold_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) wb_flush_threshold_store() argument 361 clock_scaling_show(struct device *dev, struct device_attribute *attr, char *buf) clock_scaling_show() argument 369 write_booster_show(struct device *dev, struct device_attribute *attr, char *buf) write_booster_show() argument 395 monitor_enable_show(struct device *dev, struct device_attribute *attr, char *buf) monitor_enable_show() argument 403 monitor_enable_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) monitor_enable_store() argument 430 monitor_chunk_size_show(struct device *dev, struct device_attribute *attr, char *buf) monitor_chunk_size_show() argument 438 monitor_chunk_size_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) monitor_chunk_size_store() argument 456 read_total_sectors_show(struct device *dev, struct device_attribute *attr, char *buf) read_total_sectors_show() argument 464 read_total_busy_show(struct device *dev, struct device_attribute *attr, char *buf) read_total_busy_show() argument 473 read_nr_requests_show(struct device *dev, struct device_attribute *attr, char *buf) read_nr_requests_show() argument 481 read_req_latency_avg_show(struct device *dev, struct device_attribute *attr, char *buf) read_req_latency_avg_show() argument 492 read_req_latency_max_show(struct device *dev, struct device_attribute *attr, char *buf) read_req_latency_max_show() argument 502 read_req_latency_min_show(struct device *dev, struct device_attribute *attr, char *buf) read_req_latency_min_show() argument 512 read_req_latency_sum_show(struct device *dev, struct device_attribute *attr, char *buf) read_req_latency_sum_show() argument 522 write_total_sectors_show(struct device *dev, struct device_attribute *attr, char *buf) write_total_sectors_show() argument 531 write_total_busy_show(struct device *dev, struct device_attribute *attr, char *buf) write_total_busy_show() argument 540 write_nr_requests_show(struct device *dev, struct device_attribute *attr, char *buf) write_nr_requests_show() argument 548 write_req_latency_avg_show(struct device *dev, struct device_attribute *attr, char *buf) write_req_latency_avg_show() argument 559 write_req_latency_max_show(struct device *dev, struct device_attribute *attr, char *buf) write_req_latency_max_show() argument 569 write_req_latency_min_show(struct device *dev, struct device_attribute *attr, char *buf) write_req_latency_min_show() argument 579 write_req_latency_sum_show(struct device *dev, struct device_attribute *attr, char *buf) write_req_latency_sum_show() argument 1299 ufs_unit_descriptor_is_visible(struct kobject *kobj, struct attribute *attr, int n) ufs_unit_descriptor_is_visible() argument 1322 dyn_cap_needed_attribute_show(struct device *dev, struct device_attribute *attr, char *buf) dyn_cap_needed_attribute_show() argument [all...] |
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | inat.h | 110 static inline int inat_is_legacy_prefix(insn_attr_t attr) in inat_is_legacy_prefix() argument 112 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix() 113 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix() 116 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument 118 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix() 121 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument 123 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix() 126 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument 128 return (attr in inat_is_rex_prefix() 131 inat_last_prefix_id(insn_attr_t attr) inat_last_prefix_id() argument 139 inat_is_vex_prefix(insn_attr_t attr) inat_is_vex_prefix() argument 146 inat_is_evex_prefix(insn_attr_t attr) inat_is_evex_prefix() argument 151 inat_is_vex3_prefix(insn_attr_t attr) inat_is_vex3_prefix() argument 156 inat_is_escape(insn_attr_t attr) inat_is_escape() argument 161 inat_escape_id(insn_attr_t attr) inat_escape_id() argument 166 inat_is_group(insn_attr_t attr) inat_is_group() argument 171 inat_group_id(insn_attr_t attr) inat_group_id() argument 176 inat_group_common_attribute(insn_attr_t attr) inat_group_common_attribute() argument 181 inat_has_immediate(insn_attr_t attr) inat_has_immediate() argument 186 inat_immediate_size(insn_attr_t attr) inat_immediate_size() argument 191 inat_has_modrm(insn_attr_t attr) inat_has_modrm() argument 196 inat_is_force64(insn_attr_t attr) inat_is_force64() argument 201 inat_has_second_immediate(insn_attr_t attr) inat_has_second_immediate() argument 206 inat_has_moffset(insn_attr_t attr) inat_has_moffset() argument 211 inat_has_variant(insn_attr_t attr) inat_has_variant() argument 216 inat_accept_vex(insn_attr_t attr) inat_accept_vex() argument 221 inat_must_vex(insn_attr_t attr) inat_must_vex() argument 226 inat_must_evex(insn_attr_t attr) inat_must_evex() argument [all...] |
/kernel/linux/linux-5.10/tools/arch/x86/include/asm/ |
H A D | inat.h | 110 static inline int inat_is_legacy_prefix(insn_attr_t attr) in inat_is_legacy_prefix() argument 112 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix() 113 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix() 116 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument 118 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix() 121 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument 123 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix() 126 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument 128 return (attr in inat_is_rex_prefix() 131 inat_last_prefix_id(insn_attr_t attr) inat_last_prefix_id() argument 139 inat_is_vex_prefix(insn_attr_t attr) inat_is_vex_prefix() argument 146 inat_is_evex_prefix(insn_attr_t attr) inat_is_evex_prefix() argument 151 inat_is_vex3_prefix(insn_attr_t attr) inat_is_vex3_prefix() argument 156 inat_is_escape(insn_attr_t attr) inat_is_escape() argument 161 inat_escape_id(insn_attr_t attr) inat_escape_id() argument 166 inat_is_group(insn_attr_t attr) inat_is_group() argument 171 inat_group_id(insn_attr_t attr) inat_group_id() argument 176 inat_group_common_attribute(insn_attr_t attr) inat_group_common_attribute() argument 181 inat_has_immediate(insn_attr_t attr) inat_has_immediate() argument 186 inat_immediate_size(insn_attr_t attr) inat_immediate_size() argument 191 inat_has_modrm(insn_attr_t attr) inat_has_modrm() argument 196 inat_is_force64(insn_attr_t attr) inat_is_force64() argument 201 inat_has_second_immediate(insn_attr_t attr) inat_has_second_immediate() argument 206 inat_has_moffset(insn_attr_t attr) inat_has_moffset() argument 211 inat_has_variant(insn_attr_t attr) inat_has_variant() argument 216 inat_accept_vex(insn_attr_t attr) inat_accept_vex() argument 221 inat_must_vex(insn_attr_t attr) inat_must_vex() argument 226 inat_must_evex(insn_attr_t attr) inat_must_evex() argument [all...] |
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | inat.h | 110 static inline int inat_is_legacy_prefix(insn_attr_t attr) in inat_is_legacy_prefix() argument 112 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix() 113 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix() 116 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument 118 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix() 121 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument 123 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix() 126 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument 128 return (attr in inat_is_rex_prefix() 131 inat_last_prefix_id(insn_attr_t attr) inat_last_prefix_id() argument 139 inat_is_vex_prefix(insn_attr_t attr) inat_is_vex_prefix() argument 146 inat_is_evex_prefix(insn_attr_t attr) inat_is_evex_prefix() argument 151 inat_is_vex3_prefix(insn_attr_t attr) inat_is_vex3_prefix() argument 156 inat_is_escape(insn_attr_t attr) inat_is_escape() argument 161 inat_escape_id(insn_attr_t attr) inat_escape_id() argument 166 inat_is_group(insn_attr_t attr) inat_is_group() argument 171 inat_group_id(insn_attr_t attr) inat_group_id() argument 176 inat_group_common_attribute(insn_attr_t attr) inat_group_common_attribute() argument 181 inat_has_immediate(insn_attr_t attr) inat_has_immediate() argument 186 inat_immediate_size(insn_attr_t attr) inat_immediate_size() argument 191 inat_has_modrm(insn_attr_t attr) inat_has_modrm() argument 196 inat_is_force64(insn_attr_t attr) inat_is_force64() argument 201 inat_has_second_immediate(insn_attr_t attr) inat_has_second_immediate() argument 206 inat_has_moffset(insn_attr_t attr) inat_has_moffset() argument 211 inat_has_variant(insn_attr_t attr) inat_has_variant() argument 216 inat_accept_vex(insn_attr_t attr) inat_accept_vex() argument 221 inat_must_vex(insn_attr_t attr) inat_must_vex() argument 226 inat_must_evex(insn_attr_t attr) inat_must_evex() argument [all...] |
/kernel/linux/linux-6.6/tools/arch/x86/include/asm/ |
H A D | inat.h | 110 static inline int inat_is_legacy_prefix(insn_attr_t attr) in inat_is_legacy_prefix() argument 112 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix() 113 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix() 116 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument 118 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix() 121 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument 123 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix() 126 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument 128 return (attr in inat_is_rex_prefix() 131 inat_last_prefix_id(insn_attr_t attr) inat_last_prefix_id() argument 139 inat_is_vex_prefix(insn_attr_t attr) inat_is_vex_prefix() argument 146 inat_is_evex_prefix(insn_attr_t attr) inat_is_evex_prefix() argument 151 inat_is_vex3_prefix(insn_attr_t attr) inat_is_vex3_prefix() argument 156 inat_is_escape(insn_attr_t attr) inat_is_escape() argument 161 inat_escape_id(insn_attr_t attr) inat_escape_id() argument 166 inat_is_group(insn_attr_t attr) inat_is_group() argument 171 inat_group_id(insn_attr_t attr) inat_group_id() argument 176 inat_group_common_attribute(insn_attr_t attr) inat_group_common_attribute() argument 181 inat_has_immediate(insn_attr_t attr) inat_has_immediate() argument 186 inat_immediate_size(insn_attr_t attr) inat_immediate_size() argument 191 inat_has_modrm(insn_attr_t attr) inat_has_modrm() argument 196 inat_is_force64(insn_attr_t attr) inat_is_force64() argument 201 inat_has_second_immediate(insn_attr_t attr) inat_has_second_immediate() argument 206 inat_has_moffset(insn_attr_t attr) inat_has_moffset() argument 211 inat_has_variant(insn_attr_t attr) inat_has_variant() argument 216 inat_accept_vex(insn_attr_t attr) inat_accept_vex() argument 221 inat_must_vex(insn_attr_t attr) inat_must_vex() argument 226 inat_must_evex(insn_attr_t attr) inat_must_evex() argument [all...] |
/third_party/elfutils/libdw/ |
H A D | dwarf_formudata.c | 38 __libdw_formptr (Dwarf_Attribute *attr, int sec_index, in __libdw_formptr() argument 42 if (attr == NULL) in __libdw_formptr() 45 const Elf_Data *d = attr->cu->dbg->sectiondata[sec_index]; in __libdw_formptr() 49 && attr->cu->version < 5 in __libdw_formptr() 50 && attr->cu->unit_type == DW_UT_split_compile)) in __libdw_formptr() 52 skel = __libdw_find_split_unit (attr->cu); in __libdw_formptr() 64 if (attr->form == DW_FORM_sec_offset) in __libdw_formptr() 75 Elf_Data *data = attr->cu->dbg->sectiondata[cu_sec_idx (attr->cu)]; in __libdw_formptr() 76 const unsigned char *datap = attr in __libdw_formptr() 139 dwarf_formudata(Dwarf_Attribute *attr, Dwarf_Word *return_uval) dwarf_formudata() argument [all...] |
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | parse-events.c | 53 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 D | sysfs.c | 69 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 D | bpf.c | 72 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...] |
/third_party/elfutils/tests/ |
H A D | show-die-info.c | 105 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 D | bpf.c | 72 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...] |