/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...] |
/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...] |
/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/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...] |
/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/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...] |
/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-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...] |
/kernel/linux/linux-5.10/lib/ |
H A D | fault-inject.c | 18 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/tools/perf/tests/ |
H A D | parse-events.c | 39 __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-6.6/drivers/infiniband/hw/qib/ |
H A D | qib_sysfs.c | 53 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...] |
/kernel/linux/linux-5.10/drivers/base/ |
H A D | soc.c | 21 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 D | soc.c | 22 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/infiniband/core/ |
H A D | sysfs.c | 50 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-6.6/drivers/memory/ |
H A D | dfl-emif.c | 52 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...] |