Home
last modified time | relevance | path

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

12345678910>>...86

/linux/drivers/infiniband/hw/hfi1/
H A 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/tools/arch/x86/include/asm/
H A Dinat.h121 static inline int inat_is_legacy_prefix(insn_attr_t attr) in inat_is_legacy_prefix() argument
123 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix()
124 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix()
127 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument
129 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix()
132 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument
134 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix()
137 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument
139 return (attr & INAT_PFX_MASK) == INAT_PFX_REX; in inat_is_rex_prefix()
142 static inline int inat_is_rex2_prefix(insn_attr_t attr) in inat_is_rex2_prefix() argument
[all …]
/linux/arch/x86/include/asm/
H A Dinat.h121 static inline int inat_is_legacy_prefix(insn_attr_t attr) in inat_is_legacy_prefix() argument
123 attr &= INAT_PFX_MASK; in inat_is_legacy_prefix()
124 return attr && attr <= INAT_LGCPFX_MAX; in inat_is_legacy_prefix()
127 static inline int inat_is_address_size_prefix(insn_attr_t attr) in inat_is_address_size_prefix() argument
129 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; in inat_is_address_size_prefix()
132 static inline int inat_is_operand_size_prefix(insn_attr_t attr) in inat_is_operand_size_prefix() argument
134 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; in inat_is_operand_size_prefix()
137 static inline int inat_is_rex_prefix(insn_attr_t attr) in inat_is_rex_prefix() argument
139 return (attr & INAT_PFX_MASK) == INAT_PFX_REX; in inat_is_rex_prefix()
142 static inline int inat_is_rex2_prefix(insn_attr_t attr) in inat_is_rex2_prefix() argument
[all …]
/linux/drivers/infiniband/core/
H A Dsysfs.c50 struct ib_port_attribute attr; member
77 struct device_attribute attr; member
86 struct ib_port_attribute attr; member
106 struct attribute *attr, char *buf) in port_attr_show() 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/drivers/gpu/drm/xe/
H A Dxe_gt_throttle.c65 struct kobj_attribute attr; member
79 static struct throttle_attribute *kobj_attribute_to_throttle(struct kobj_attribute *attr) in kobj_attribute_to_throttle() argument
81 return container_of(attr, struct throttle_attribute, attr); in kobj_attribute_to_throttle()
110 struct kobj_attribute *attr, char *buff) in reason_show() argument
112 struct throttle_attribute *ta = kobj_attribute_to_throttle(attr); in reason_show()
121 struct kobj_attribute *attr, char *buff) in reasons_show() argument
136 struct kobj_attribute *kattr = container_of(*pother, struct kobj_attribute, attr); in reasons_show()
158 .attr = __ATTR(name, 0444, reason_show, NULL), \
164 .attr = __ATTR(name, 0444, _show, NULL), \
180 &attr_reasons.attr.attr,
[all …]
/linux/drivers/scsi/
H A 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 …]
H A Dscsi_transport_iscsi.c127 show_transport_handle(struct device *dev, struct device_attribute *attr, in show_transport_handle() argument
142 struct device_attribute *attr,char *buf) \
152 &dev_attr_handle.attr,
153 &dev_attr_caps.attr,
188 show_ep_handle(struct device *dev, struct device_attribute *attr, char *buf) in show_ep_handle() argument
196 &dev_attr_ep_handle.attr,
321 show_##type##_##name(struct device *dev, struct device_attribute *attr, \
442 struct attribute *attr, int i) in iscsi_iface_attr_is_visible() 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/fs/orangefs/
H A 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()
224 } else if (!strcmp(attr->attr.name, in sysfs_int_show()
[all …]
/linux/drivers/memory/
H A Ddfl-emif.c52 struct device_attribute attr; member
58 container_of(dev_attr, struct emif_attr, attr)
61 struct device_attribute *attr, char *buf) in emif_state_show() 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/tools/net/ynl/lib/
H A Dynl-priv.h190 static inline unsigned int ynl_attr_type(const struct nlattr *attr) in ynl_attr_type() argument
192 return attr->nla_type & NLA_TYPE_MASK; in ynl_attr_type()
195 static inline unsigned int ynl_attr_data_len(const struct nlattr *attr) in ynl_attr_data_len() argument
197 return attr->nla_len - NLA_HDRLEN; in ynl_attr_data_len()
200 static inline void *ynl_attr_data(const struct nlattr *attr) in ynl_attr_data() argument
202 return (unsigned char *)attr + NLA_HDRLEN; in ynl_attr_data()
205 static inline void *ynl_attr_data_end(const struct nlattr *attr) in ynl_attr_data_end() argument
207 return (char *)ynl_attr_data(attr) + ynl_attr_data_len(attr); in ynl_attr_data_end()
210 #define ynl_attr_for_each(attr, nlh, fixed_hdr_sz) \ argument
211 for ((attr) = ynl_attr_first(nlh, (nlh)->nlmsg_len, \
[all …]
/linux/kernel/
H A Dfail_function.c58 struct fei_attr *attr; in fei_attr_new() local
60 attr = kzalloc_obj(*attr); 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/tools/lib/bpf/
H A Dskel_internal.h75 long kern_sys_bpf(__u32 cmd, void *attr, __u32 attr_size);
77 static inline int skel_sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in skel_sys_bpf() argument
81 return kern_sys_bpf(cmd, attr, size); in skel_sys_bpf()
83 return syscall(__NR_bpf, cmd, attr, size); in skel_sys_bpf()
254 union bpf_attr attr; in skel_map_create() local
256 memset(&attr, 0, attr_sz); in skel_map_create()
258 attr.map_type = map_type; in skel_map_create()
259 attr.excl_prog_hash = (unsigned long) excl_prog_hash; in skel_map_create()
260 attr.excl_prog_hash_size = excl_prog_hash_sz; in skel_map_create()
263 if (strscpy(attr.map_name, map_name) < 0) in skel_map_create()
[all …]
/linux/drivers/infiniband/hw/bng_re/
H A Dbng_sp.c43 struct bng_re_dev_attr *attr = rcfw->res->dattr; in bng_re_get_dev_attr() local
70 attr->max_qp = le32_to_cpu(sb->max_qp); in bng_re_get_dev_attr()
72 attr->max_qp += 1; in bng_re_get_dev_attr()
73 attr->max_qp_rd_atom = in bng_re_get_dev_attr()
76 attr->max_qp_init_rd_atom = in bng_re_get_dev_attr()
79 attr->max_qp_wqes = le16_to_cpu(sb->max_qp_wr) - 1; in bng_re_get_dev_attr()
82 attr->max_qp_wqes = min_t(u32, attr->max_qp_wqes, BNG_VAR_MAX_WQE - 1); in bng_re_get_dev_attr()
84 attr->max_qp_sges = min_t(u32, sb->max_sge_var_wqe, BNG_VAR_MAX_SGE); in bng_re_get_dev_attr()
85 attr->max_cq = le32_to_cpu(sb->max_cq); in bng_re_get_dev_attr()
86 attr->max_cq_wqes = le32_to_cpu(sb->max_cqe); in bng_re_get_dev_attr()
[all …]
/linux/fs/ntfs3/
H A Drecord.c38 struct ATTRIB *attr; in mi_new_attt_id() local
52 attr = NULL; in mi_new_attt_id()
55 attr = mi_enum_attr(ni, 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()
199 struct ATTRIB *attr) in mi_enum_attr() argument
207 if (!attr) { in mi_enum_attr()
225 attr = Add2Ptr(rec, off); in mi_enum_attr()
231 off = PtrOffset(rec, attr); in mi_enum_attr()
[all …]
/linux/drivers/hwmon/
H A 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 …]
/linux/drivers/usb/typec/
H A 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
87 peak_current_show(struct device *dev, struct device_attribute *attr, char *buf) in peak_current_show() argument
94 fast_role_swap_current_show(struct device *dev, struct device_attribute *attr, char *buf) in fast_role_swap_current_show() argument
100 static ssize_t voltage_show(struct device *dev, struct device_attribute *attr, char *buf) in voltage_show() argument
[all …]
/linux/tools/perf/tests/
H A Dparse-events.c79 return (evsel->core.attr.config & PERF_HW_EVENT_MASK) == expected_config; in test_hw_config()
114 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type, evsel); in test__checkevent_tracepoint()
116 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type, evsel); in test__checkevent_tracepoint()
117 TEST_ASSERT_EVSEL("wrong sample_period", 1 == evsel->core.attr.sample_period, evsel); in test__checkevent_tracepoint()
130 PERF_TYPE_TRACEPOINT == evsel->core.attr.type, in test__checkevent_tracepoint_multi()
133 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type, in test__checkevent_tracepoint_multi()
136 1 == evsel->core.attr.sample_period, in test__checkevent_tracepoint_multi()
155 evsel->core.attr.type == PERF_TYPE_RAW, in test__checkevent_raw()
167 if (pmu->type == evsel->core.attr.type) { in test__checkevent_raw()
186 TEST_ASSERT_EVSEL("wrong type", 1 == evsel->core.attr in test__checkevent_numeric()
[all...]
H A Dbp_account.c43 static int __event(bool is_x, void *addr, struct perf_event_attr *attr) in __event() argument
47 memset(attr, 0, sizeof(struct perf_event_attr)); in __event()
48 attr->type = PERF_TYPE_BREAKPOINT; in __event()
49 attr->size = sizeof(struct perf_event_attr); in __event()
51 attr->config = 0; in __event()
52 attr->bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
53 attr->bp_addr = (unsigned long) addr; in __event()
54 attr->bp_len = is_x ? default_breakpoint_len() : sizeof(long); in __event()
56 attr->sample_period = 1; in __event()
57 attr->sample_type = PERF_SAMPLE_IP; in __event()
[all …]
/linux/drivers/nvme/host/
H A Dsysfs.c15 struct device_attribute *attr, const char *buf, in nvme_sysfs_reset() argument
29 struct device_attribute *attr, const char *buf, in nvme_sysfs_rescan() argument
40 struct device_attribute *attr, char *buf) in nvme_adm_passthru_err_log_enabled_show() argument
49 struct device_attribute *attr, const char *buf, size_t count) in nvme_adm_passthru_err_log_enabled_store() argument
74 struct device_attribute *attr, char *buf) in nvme_io_passthru_err_log_enabled_show() argument
82 struct device_attribute *attr, const char *buf, size_t count) in nvme_io_passthru_err_log_enabled_store() argument
104 static ssize_t wwid_show(struct device *dev, struct device_attribute *attr, in wwid_show() argument
135 static ssize_t nguid_show(struct device *dev, struct device_attribute *attr, in nguid_show() argument
142 static ssize_t uuid_show(struct device *dev, struct device_attribute *attr, in uuid_show() argument
159 static ssize_t eui_show(struct device *dev, struct device_attribute *attr, in eui_show() argument
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dobj_name.c25 union bpf_attr attr; in test_obj_name() local
30 ncopy = name_len < sizeof(attr.prog_name) ? in test_obj_name()
31 name_len : sizeof(attr.prog_name); in test_obj_name()
32 bzero(&attr, sizeof(attr)); in test_obj_name()
33 attr.prog_type = BPF_PROG_TYPE_SCHED_CLS; in test_obj_name()
34 attr.insn_cnt = 2; in test_obj_name()
35 attr.insns = ptr_to_u64(prog); in test_obj_name()
36 attr.license = ptr_to_u64(""); in test_obj_name()
37 memcpy(attr.prog_name, tests[i].name, ncopy); in test_obj_name()
39 fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in test_obj_name()
[all …]
/linux/drivers/soundwire/
H A Dsysfs_slave.c70 struct device_attribute *attr, \
95 struct device_attribute *attr, char *buf) in modalias_show() argument
104 &dev_attr_modalias.attr,
113 &dev_attr_mipi_revision.attr,
114 &dev_attr_wake_capable.attr,
115 &dev_attr_test_mode_capable.attr,
116 &dev_attr_clk_stop_mode1.attr,
117 &dev_attr_simple_clk_stop_capable.attr,
118 &dev_attr_clk_stop_timeout.attr,
119 &dev_attr_ch_prep_timeout.attr,
[all …]
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_tlv.c38 u32 *attr; in fm10k_tlv_attr_put_null_string() local
44 attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; in fm10k_tlv_attr_put_null_string()
50 attr[len / 4] = attr_data; in fm10k_tlv_attr_put_null_string()
62 attr[(len + 3) / 4] = attr_data; in fm10k_tlv_attr_put_null_string()
66 attr[0] = len | attr_id; in fm10k_tlv_attr_put_null_string()
84 static s32 fm10k_tlv_attr_get_null_string(u32 *attr, unsigned char *string) in fm10k_tlv_attr_get_null_string() argument
89 if (!string || !attr) in fm10k_tlv_attr_get_null_string()
92 len = *attr >> FM10K_TLV_LEN_SHIFT; in fm10k_tlv_attr_get_null_string()
93 attr++; in fm10k_tlv_attr_get_null_string()
96 string[len] = (u8)(attr[len / 4] >> (8 * (len % 4))); in fm10k_tlv_attr_get_null_string()
[all …]
/linux/net/core/
H A Dselftests.c20 struct net_packet_attrs *attr) in net_test_get_skb() argument
30 size = attr->size + NET_TEST_PKT_SIZE; in net_test_get_skb()
32 if (attr->tcp) in net_test_get_skb()
37 if (attr->max_size && attr->max_size > size) in net_test_get_skb()
38 size = attr->max_size; in net_test_get_skb()
53 if (attr->tcp) in net_test_get_skb()
60 if (attr->src) in net_test_get_skb()
61 ether_addr_copy(ehdr->h_source, attr->src); in net_test_get_skb()
62 if (attr->dst) in net_test_get_skb()
63 ether_addr_copy(ehdr->h_dest, attr->dst); in net_test_get_skb()
[all …]
/linux/fs/
H A Dattr.c162 struct iattr *attr) in setattr_prepare() argument
165 unsigned int ia_valid = attr->ia_valid; in setattr_prepare()
182 error = inode_newsize_ok(inode, attr->ia_size); in setattr_prepare()
193 !chown_ok(idmap, inode, attr->ia_vfsuid)) in setattr_prepare()
198 !chgrp_ok(idmap, inode, attr->ia_vfsgid)) in setattr_prepare()
209 vfsgid = attr->ia_vfsgid; in setattr_prepare()
215 attr->ia_mode &= ~S_ISGID; in setattr_prepare()
294 static void setattr_copy_mgtime(struct inode *inode, const struct iattr *attr) in setattr_copy_mgtime() argument
296 unsigned int ia_valid = attr->ia_valid; in setattr_copy_mgtime()
300 now = inode_set_ctime_deleg(inode, attr->ia_ctime); in setattr_copy_mgtime()
[all …]
/linux/drivers/dma/idxd/
H A Dsysfs.c21 struct device_attribute *attr, char *buf) in engine_group_id_show() argument
32 struct device_attribute *attr, in engine_group_id_store() argument
74 &dev_attr_engine_group.attr,
116 struct device_attribute *attr, in group_read_buffers_reserved_show() argument
125 struct device_attribute *attr, in group_tokens_reserved_show() argument
129 return group_read_buffers_reserved_show(dev, attr, buf); in group_tokens_reserved_show()
133 struct device_attribute *attr, in group_read_buffers_reserved_store() argument
166 struct device_attribute *attr, in group_tokens_reserved_store() argument
170 return group_read_buffers_reserved_store(dev, attr, buf, count); in group_tokens_reserved_store()
182 struct device_attribute *attr, in group_read_buffers_allowed_show() argument
[all …]

12345678910>>...86