Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 3009) sorted by relevance

12345678910>>...121

/linux-6.6.21/drivers/infiniband/hw/hfi1/
Dsysfs.c105 struct ib_port_attribute *attr, char *buf) in cc_prescan_show() argument
114 struct ib_port_attribute *attr, const char *buf, in cc_prescan_store() argument
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() argument
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,
197 &hfi1_sc2vl_attr_1.attr.attr,
198 &hfi1_sc2vl_attr_2.attr.attr,
[all …]
/linux-6.6.21/tools/lib/bpf/
Dbpf.c72 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf() argument
75 return syscall(__NR_bpf, cmd, attr, size); in sys_bpf()
78 static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf_fd() argument
83 fd = sys_bpf(cmd, attr, size); in sys_bpf_fd()
87 int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts) in sys_bpf_prog_load() argument
92 fd = sys_bpf_fd(BPF_PROG_LOAD, attr, size); in sys_bpf_prog_load()
114 union bpf_attr attr; in probe_memcg_account() local
118 memset(&attr, 0, attr_sz); in probe_memcg_account()
119 attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER; in probe_memcg_account()
120 attr.insns = ptr_to_u64(insns); in probe_memcg_account()
[all …]
Dskel_internal.h69 long kern_sys_bpf(__u32 cmd, void *attr, __u32 attr_size);
71 static inline int skel_sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in skel_sys_bpf() argument
75 return kern_sys_bpf(cmd, attr, size); in skel_sys_bpf()
77 return syscall(__NR_bpf, cmd, attr, size); in skel_sys_bpf()
226 union bpf_attr attr; in skel_map_create() local
228 memset(&attr, 0, attr_sz); in skel_map_create()
230 attr.map_type = map_type; in skel_map_create()
231 strncpy(attr.map_name, map_name, sizeof(attr.map_name)); in skel_map_create()
232 attr.key_size = key_size; in skel_map_create()
233 attr.value_size = value_size; in skel_map_create()
[all …]
/linux-6.6.21/drivers/infiniband/core/
Dsysfs.c50 struct ib_port_attribute attr; member
77 struct device_attribute attr; member
86 struct ib_port_attribute attr; member
106 struct attribute *attr, char *buf) in port_attr_show() argument
109 container_of(attr, struct ib_port_attribute, attr); in port_attr_show()
119 struct attribute *attr, in port_attr_store() argument
123 container_of(attr, struct ib_port_attribute, attr); in port_attr_store()
147 struct device_attribute *attr, char *buf) in hw_stat_device_show() argument
150 container_of(attr, struct hw_stats_device_attribute, attr); in hw_stat_device_show()
158 struct device_attribute *attr, in hw_stat_device_store() argument
[all …]
/linux-6.6.21/tools/arch/x86/include/asm/
Dinat.h110 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 & INAT_PFX_MASK) == INAT_PFX_REX; in inat_is_rex_prefix()
131 static inline int inat_last_prefix_id(insn_attr_t attr) in inat_last_prefix_id() argument
[all …]
/linux-6.6.21/arch/x86/include/asm/
Dinat.h110 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 & INAT_PFX_MASK) == INAT_PFX_REX; in inat_is_rex_prefix()
131 static inline int inat_last_prefix_id(insn_attr_t attr) in inat_last_prefix_id() argument
[all …]
/linux-6.6.21/drivers/scsi/
Discsi_boot_sysfs.c24 struct attribute attr; member
33 struct attribute *attr, char *buf) in iscsi_boot_show_attribute() argument
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,
97 &iscsi_boot_attr_tgt_chap.attr,
[all …]
Dscsi_transport_iscsi.c127 show_transport_handle(struct device *dev, struct device_attribute *attr, in show_transport_handle() argument
142 struct device_attribute *attr,char *buf) \
152 &dev_attr_handle.attr,
153 &dev_attr_caps.attr,
188 show_ep_handle(struct device *dev, struct device_attribute *attr, char *buf) in show_ep_handle() argument
196 &dev_attr_ep_handle.attr,
321 show_##type##_##name(struct device *dev, struct device_attribute *attr, \
442 struct attribute *attr, int i) in iscsi_iface_attr_is_visible() argument
449 if (attr == &dev_attr_iface_def_taskmgmt_tmo.attr) in iscsi_iface_attr_is_visible()
451 else if (attr == &dev_attr_iface_header_digest.attr) in iscsi_iface_attr_is_visible()
[all …]
/linux-6.6.21/fs/orangefs/
Dorangefs-sysfs.c166 struct attribute attr; member
168 struct orangefs_attribute *attr,
171 struct orangefs_attribute *attr,
177 struct attribute *attr, in orangefs_attr_show() argument
182 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_show()
189 struct attribute *attr, in orangefs_attr_store() argument
199 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_store()
211 struct orangefs_attribute *attr, char *buf) in sysfs_int_show() argument
219 if (!strcmp(attr->attr.name, "op_timeout_secs")) { in sysfs_int_show()
225 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
[all …]
/linux-6.6.21/drivers/memory/
Ddfl-emif.c52 struct device_attribute attr; member
58 container_of(dev_attr, struct emif_attr, attr)
61 struct device_attribute *attr, char *buf) in emif_state_show() argument
63 struct emif_attr *eattr = to_emif_attr(attr); in emif_state_show()
74 struct device_attribute *attr, in emif_clear_store() argument
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,
149 &emif_attr_inf0_cal_fail.attr.attr,
[all …]
/linux-6.6.21/drivers/ufs/core/
Dufs-sysfs.c38 struct device_attribute *attr, in ufs_sysfs_pm_lvl_store() argument
67 struct device_attribute *attr, char *buf) in rpm_lvl_show() argument
75 struct device_attribute *attr, const char *buf, size_t count) in rpm_lvl_store() argument
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() argument
90 struct device_attribute *attr, char *buf) in rpm_target_link_state_show() argument
99 struct device_attribute *attr, char *buf) in spm_lvl_show() argument
107 struct device_attribute *attr, const char *buf, size_t count) in spm_lvl_store() argument
109 return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, false); in spm_lvl_store()
113 struct device_attribute *attr, char *buf) in spm_target_dev_state_show() argument
[all …]
/linux-6.6.21/kernel/
Dfail_function.c58 struct fei_attr *attr; in fei_attr_new() local
60 attr = kzalloc(sizeof(*attr), GFP_KERNEL); in fei_attr_new()
61 if (attr) { in fei_attr_new()
62 attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL); in fei_attr_new()
63 if (!attr->kp.symbol_name) { in fei_attr_new()
64 kfree(attr); in fei_attr_new()
67 attr->kp.pre_handler = fei_kprobe_handler; in fei_attr_new()
68 attr->kp.post_handler = fei_post_handler; in fei_attr_new()
69 attr->retval = adjust_error_retval(addr, 0); in fei_attr_new()
70 INIT_LIST_HEAD(&attr->list); in fei_attr_new()
[all …]
/linux-6.6.21/drivers/infiniband/hw/qib/
Dqib_sysfs.c53 struct ib_port_attribute *attr, char *buf) in hrtbt_enable_show() argument
62 struct ib_port_attribute *attr, in hrtbt_enable_store() argument
89 struct ib_port_attribute *attr, const char *buf, in loopback_store() argument
105 struct ib_port_attribute *attr, in led_override_store() argument
125 struct ib_port_attribute *attr, char *buf) in status_show() argument
156 struct ib_port_attribute *attr, char *buf) in status_str_show() argument
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,
[all …]
/linux-6.6.21/tools/perf/tests/
Dparse-events.c39 __u32 type = evsel->core.attr.type; in test_config()
40 __u64 config = evsel->core.attr.config; in test_config()
54 return (evsel->attr.config & PERF_HW_EVENT_MASK) == expected_config; in test_perf_config()
91 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint()
93 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint()
94 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint()
107 PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint_multi()
109 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint_multi()
111 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint_multi()
130 evsel->attr.type == PERF_TYPE_RAW); in test__checkevent_raw()
[all …]
/linux-6.6.21/drivers/base/
Dsoc.c22 static ssize_t soc_info_show(struct device *dev, struct device_attribute *attr,
27 struct soc_device_attribute *attr; member
48 struct attribute *attr, in soc_attribute_mode() argument
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->family) in soc_attribute_mode()
57 return attr->mode; in soc_attribute_mode()
58 if ((attr == &dev_attr_revision.attr) && soc_dev->attr->revision) in soc_attribute_mode()
59 return attr->mode; in soc_attribute_mode()
60 if ((attr == &dev_attr_serial_number.attr) && soc_dev->attr->serial_number) in soc_attribute_mode()
[all …]
/linux-6.6.21/drivers/infiniband/sw/rxe/
Drxe.c43 rxe->attr.vendor_id = RXE_VENDOR_ID; in rxe_init_device_param()
44 rxe->attr.max_mr_size = RXE_MAX_MR_SIZE; in rxe_init_device_param()
45 rxe->attr.page_size_cap = RXE_PAGE_SIZE_CAP; in rxe_init_device_param()
46 rxe->attr.max_qp = RXE_MAX_QP; in rxe_init_device_param()
47 rxe->attr.max_qp_wr = RXE_MAX_QP_WR; in rxe_init_device_param()
48 rxe->attr.device_cap_flags = RXE_DEVICE_CAP_FLAGS; in rxe_init_device_param()
49 rxe->attr.kernel_cap_flags = IBK_ALLOW_USER_UNREG; in rxe_init_device_param()
50 rxe->attr.max_send_sge = RXE_MAX_SGE; in rxe_init_device_param()
51 rxe->attr.max_recv_sge = RXE_MAX_SGE; in rxe_init_device_param()
52 rxe->attr.max_sge_rd = RXE_MAX_SGE_RD; in rxe_init_device_param()
[all …]
Drxe_srq.c13 struct ib_srq_attr *attr = &init->attr; in rxe_srq_chk_init() local
15 if (attr->max_wr > rxe->attr.max_srq_wr) { in rxe_srq_chk_init()
17 attr->max_wr, rxe->attr.max_srq_wr); in rxe_srq_chk_init()
21 if (attr->max_wr <= 0) { in rxe_srq_chk_init()
22 rxe_dbg_dev(rxe, "max_wr(%d) <= 0\n", attr->max_wr); in rxe_srq_chk_init()
26 if (attr->max_wr < RXE_MIN_SRQ_WR) in rxe_srq_chk_init()
27 attr->max_wr = RXE_MIN_SRQ_WR; in rxe_srq_chk_init()
29 if (attr->max_sge > rxe->attr.max_srq_sge) { in rxe_srq_chk_init()
31 attr->max_sge, rxe->attr.max_srq_sge); in rxe_srq_chk_init()
35 if (attr->max_sge < RXE_MIN_SRQ_SGE) in rxe_srq_chk_init()
[all …]
/linux-6.6.21/lib/
Dfault-inject.c18 int setup_fault_attr(struct fault_attr *attr, char *str) in setup_fault_attr() argument
33 attr->probability = probability; in setup_fault_attr()
34 attr->interval = interval; in setup_fault_attr()
35 atomic_set(&attr->times, times); in setup_fault_attr()
36 atomic_set(&attr->space, space); in setup_fault_attr()
42 static void fail_dump(struct fault_attr *attr) in fail_dump() argument
44 if (attr->verbose > 0 && __ratelimit(&attr->ratelimit_state)) { in fail_dump()
47 "space %d, times %d\n", attr->dname, in fail_dump()
48 attr->interval, attr->probability, in fail_dump()
49 atomic_read(&attr->space), in fail_dump()
[all …]
/linux-6.6.21/drivers/hwmon/occ/
Dcommon.c230 struct device_attribute *attr, char *buf) in occ_show_temp_1() argument
237 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_1()
266 struct device_attribute *attr, char *buf) in occ_show_temp_2() argument
273 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_2()
317 struct device_attribute *attr, char *buf) in occ_show_temp_10() argument
324 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_10()
364 struct device_attribute *attr, char *buf) in occ_show_freq_1() argument
371 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_freq_1()
394 struct device_attribute *attr, char *buf) in occ_show_freq_2() argument
401 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_freq_2()
[all …]
/linux-6.6.21/drivers/hwmon/
Dnct7802.c83 struct device_attribute *attr, char *buf) in temp_type_show() argument
86 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_show()
98 struct device_attribute *attr, const char *buf, in temp_type_store() argument
102 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_store()
119 struct device_attribute *attr, char *buf) in pwm_mode_show() argument
121 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in pwm_mode_show()
139 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_show() local
144 if (!attr->index) in pwm_show()
147 ret = regmap_read(data->regmap, attr->index, &val); in pwm_show()
157 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_store() local
[all …]
Dadt7462.c781 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_min_show() local
784 if (!temp_enabled(data, attr->index)) in temp_min_show()
787 return sprintf(buf, "%d\n", 1000 * (data->temp_min[attr->index] - 64)); in temp_min_show()
794 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_min_store() local
799 if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) in temp_min_store()
806 data->temp_min[attr->index] = temp; in temp_min_store()
807 i2c_smbus_write_byte_data(client, ADT7462_TEMP_MIN_REG(attr->index), in temp_min_store()
817 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_max_show() local
820 if (!temp_enabled(data, attr->index)) in temp_max_show()
823 return sprintf(buf, "%d\n", 1000 * (data->temp_max[attr->index] - 64)); in temp_max_show()
[all …]
Demc1403.c35 static ssize_t temp_show(struct device *dev, struct device_attribute *attr, in temp_show() argument
38 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in temp_show()
49 static ssize_t bit_show(struct device *dev, struct device_attribute *attr, in bit_show() argument
52 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in bit_show()
63 static ssize_t temp_store(struct device *dev, struct device_attribute *attr, in temp_store() argument
66 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in temp_store()
80 static ssize_t bit_store(struct device *dev, struct device_attribute *attr, in bit_store() argument
83 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in bit_store()
99 struct device_attribute *attr, char *buf, in show_hyst_common() argument
102 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in show_hyst_common()
[all …]
/linux-6.6.21/fs/ntfs3/
Drecord.c38 struct ATTRIB *attr; in mi_new_attt_id() local
52 attr = NULL; in mi_new_attt_id()
55 attr = mi_enum_attr(mi, attr); in mi_new_attt_id()
56 if (!attr) { in mi_new_attt_id()
62 t16 = le16_to_cpu(attr->id); in mi_new_attt_id()
65 attr = NULL; in mi_new_attt_id()
198 struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr) in mi_enum_attr() argument
206 if (!attr) { in mi_enum_attr()
224 attr = Add2Ptr(rec, off); in mi_enum_attr()
227 off = PtrOffset(rec, attr); in mi_enum_attr()
[all …]
/linux-6.6.21/tools/testing/selftests/mount_setattr/
Dmount_setattr_test.c138 struct mount_attr *attr, size_t size) in sys_mount_setattr() argument
140 return syscall(__NR_mount_setattr, dfd, path, flags, attr, size); in sys_mount_setattr()
344 struct mount_attr attr = { in mount_setattr_thread() local
350 if (sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr))) in mount_setattr_thread()
539 struct mount_attr attr = { in TEST_F() local
550 ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", 0, &attr, sizeof(attr)), 0); in TEST_F()
575 struct mount_attr attr = { in TEST_F() local
586 ASSERT_EQ(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &attr, sizeof(attr)), 0); in TEST_F()
606 memset(&attr, 0, sizeof(attr)); in TEST_F()
607 attr.attr_clr = MOUNT_ATTR_RDONLY; in TEST_F()
[all …]
/linux-6.6.21/drivers/usb/typec/
Dpd.c37 dual_role_power_show(struct device *dev, struct device_attribute *attr, char *buf) in dual_role_power_show() argument
44 usb_suspend_supported_show(struct device *dev, struct device_attribute *attr, char *buf) in usb_suspend_supported_show() argument
51 higher_capability_show(struct device *dev, struct device_attribute *attr, char *buf) in higher_capability_show() argument
58 unconstrained_power_show(struct device *dev, struct device_attribute *attr, char *buf) in unconstrained_power_show() argument
65 usb_communication_capable_show(struct device *dev, struct device_attribute *attr, char *buf) in usb_communication_capable_show() argument
72 dual_role_data_show(struct device *dev, struct device_attribute *attr, char *buf) in dual_role_data_show() argument
80 struct device_attribute *attr, char *buf) in unchunked_extended_messages_supported_show() argument
96 fast_role_swap_current_show(struct device *dev, struct device_attribute *attr, char *buf) in fast_role_swap_current_show() argument
102 static ssize_t voltage_show(struct device *dev, struct device_attribute *attr, char *buf) in voltage_show() argument
109 static ssize_t current_show(struct device *dev, struct device_attribute *attr, char *buf) in current_show() argument
[all …]

12345678910>>...121