Home
last modified time | relevance | path

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

12345

/include/linux/
Dhw_breakpoint.h22 static inline void hw_breakpoint_init(struct perf_event_attr *attr) in hw_breakpoint_init() argument
24 memset(attr, 0, sizeof(*attr)); in hw_breakpoint_init()
26 attr->type = PERF_TYPE_BREAKPOINT; in hw_breakpoint_init()
27 attr->size = sizeof(*attr); in hw_breakpoint_init()
32 attr->pinned = 1; in hw_breakpoint_init()
33 attr->sample_period = 1; in hw_breakpoint_init()
36 static inline void ptrace_breakpoint_init(struct perf_event_attr *attr) in ptrace_breakpoint_init() argument
38 hw_breakpoint_init(attr); in ptrace_breakpoint_init()
39 attr->exclude_kernel = 1; in ptrace_breakpoint_init()
44 return bp->attr.bp_addr; in hw_breakpoint_addr()
[all …]
Dbpf-netns.h29 int netns_bpf_prog_query(const union bpf_attr *attr,
31 int netns_bpf_prog_attach(const union bpf_attr *attr,
33 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype);
34 int netns_bpf_link_create(const union bpf_attr *attr,
37 static inline int netns_bpf_prog_query(const union bpf_attr *attr, in netns_bpf_prog_query() argument
43 static inline int netns_bpf_prog_attach(const union bpf_attr *attr, in netns_bpf_prog_attach() argument
49 static inline int netns_bpf_prog_detach(const union bpf_attr *attr, in netns_bpf_prog_detach() argument
55 static inline int netns_bpf_link_create(const union bpf_attr *attr, in netns_bpf_link_create() argument
Dbpf_lirc.h8 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
9 int lirc_prog_detach(const union bpf_attr *attr);
10 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr);
12 static inline int lirc_prog_attach(const union bpf_attr *attr, in lirc_prog_attach() argument
18 static inline int lirc_prog_detach(const union bpf_attr *attr) in lirc_prog_detach() argument
23 static inline int lirc_prog_query(const union bpf_attr *attr, in lirc_prog_query() argument
Dsysfs.h51 #define sysfs_attr_init(attr) \ argument
55 (attr)->key = &__key; \
58 #define sysfs_attr_init(attr) do {} while (0) argument
102 .attr = {.name = __stringify(_name), \
109 .attr = {.name = __stringify(_name), \
116 .attr = { .name = __stringify(_name), .mode = 0444 }, \
121 .attr = { .name = __stringify(_name), \
127 .attr = { .name = __stringify(_name), \
134 .attr = { .name = __stringify(_name), .mode = 0200 }, \
140 #define __ATTR_NULL { .attr = { .name = NULL } }
[all …]
Dcpu.h45 extern int cpu_add_dev_attr(struct device_attribute *attr);
46 extern void cpu_remove_dev_attr(struct device_attribute *attr);
52 struct device_attribute *attr, char *buf);
54 struct device_attribute *attr, char *buf);
56 struct device_attribute *attr, char *buf);
58 struct device_attribute *attr, char *buf);
60 struct device_attribute *attr, char *buf);
62 struct device_attribute *attr, char *buf);
64 struct device_attribute *attr,
67 struct device_attribute *attr, char *buf);
[all …]
Dfault-inject.h50 int setup_fault_attr(struct fault_attr *attr, char *str);
51 bool should_fail_ex(struct fault_attr *attr, ssize_t size, int flags);
52 bool should_fail(struct fault_attr *attr, ssize_t size);
57 struct dentry *parent, struct fault_attr *attr);
62 struct dentry *parent, struct fault_attr *attr) in fault_create_debugfs_attr() argument
72 struct fault_attr attr; member
Dinetdevice.h55 #define IPV4_DEVCONF(cnf, attr) ((cnf).data[IPV4_DEVCONF_ ## attr - 1]) argument
56 #define IPV4_DEVCONF_ALL(net, attr) \ argument
57 IPV4_DEVCONF((*(net)->ipv4.devconf_all), attr)
78 #define IN_DEV_CONF_GET(in_dev, attr) \ argument
79 ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr)
80 #define IN_DEV_CONF_SET(in_dev, attr, val) \ argument
81 ipv4_devconf_set((in_dev), IPV4_DEVCONF_ ## attr, (val))
83 #define IN_DEV_ANDCONF(in_dev, attr) \ argument
84 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr) && \
85 IN_DEV_CONF_GET((in_dev), attr))
[all …]
Draid_class.h54 #define DEFINE_RAID_ATTRIBUTE(type, attr) \ argument
56 raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \
62 rd->attr = value; \
65 raid_get_##attr(struct raid_template *r, struct device *dev) { \
71 return rd->attr; \
Dcc_platform.h109 bool cc_platform_has(enum cc_attr attr);
113 static inline bool cc_platform_has(enum cc_attr attr) { return false; } in cc_platform_has() argument
Dmbus.h61 u8 *attr);
72 u8 *target, u8 *attr) in mvebu_mbus_get_io_win_info() argument
89 int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, u8 *attr);
103 u8 *attr) in mvebu_mbus_get_dram_win_info() argument
Dnetlink.h143 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \ argument
145 (extack)->bad_attr = (attr); \
150 #define NL_SET_BAD_ATTR(extack, attr) NL_SET_BAD_ATTR_POLICY(extack, attr, NULL) argument
152 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \ argument
160 __extack->bad_attr = (attr); \
165 #define NL_SET_ERR_MSG_ATTR_POL_FMT(extack, attr, pol, fmt, args...) do { \ argument
180 __extack->bad_attr = (attr); \
184 #define NL_SET_ERR_MSG_ATTR(extack, attr, msg) \ argument
185 NL_SET_ERR_MSG_ATTR_POL(extack, attr, NULL, msg)
187 #define NL_SET_ERR_MSG_ATTR_FMT(extack, attr, msg, args...) \ argument
[all …]
Dperf_event.h732 struct perf_event_attr attr; member
1107 perf_event_create_kernel_counter(struct perf_event_attr *attr,
1123 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS; in branch_sample_no_flags()
1128 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CYCLES; in branch_sample_no_cycles()
1133 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_TYPE_SAVE; in branch_sample_type()
1138 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX; in branch_sample_hw_index()
1143 return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_PRIV_SAVE; in branch_sample_priv()
1240 if (!(event->attr.sample_type & PERF_SAMPLE_RAW)) in perf_sample_save_raw_data()
1370 struct perf_event_attr *attr = &event->attr; in event_has_any_exclude_flag() local
1372 return attr->exclude_idle || attr->exclude_user || in event_has_any_exclude_flag()
[all …]
Dfsverity.h152 int __fsverity_prepare_setattr(struct dentry *dentry, struct iattr *attr);
218 struct iattr *attr) in __fsverity_prepare_setattr() argument
315 struct iattr *attr) in fsverity_prepare_setattr() argument
318 return __fsverity_prepare_setattr(dentry, attr); in fsverity_prepare_setattr()
/include/rdma/
Dopa_addr.h76 static inline bool rdma_is_valid_unicast_lid(struct rdma_ah_attr *attr) in rdma_is_valid_unicast_lid() argument
78 if (attr->type == RDMA_AH_ATTR_TYPE_IB) { in rdma_is_valid_unicast_lid()
79 if (!rdma_ah_get_dlid(attr) || in rdma_is_valid_unicast_lid()
80 rdma_ah_get_dlid(attr) >= in rdma_is_valid_unicast_lid()
83 } else if (attr->type == RDMA_AH_ATTR_TYPE_OPA) { in rdma_is_valid_unicast_lid()
84 if (!rdma_ah_get_dlid(attr) || in rdma_is_valid_unicast_lid()
85 rdma_ah_get_dlid(attr) >= in rdma_is_valid_unicast_lid()
Duverbs_ioctl.h297 struct uverbs_attr_spec attr; member
496 .attr = { .type = UVERBS_ATTR_TYPE_IDRS_ARRAY, \
512 .attr = { .type = UVERBS_ATTR_TYPE_IDR, \
522 .attr = { .type = UVERBS_ATTR_TYPE_FD, \
530 .attr = { .type = UVERBS_ATTR_TYPE_RAW_FD, __VA_ARGS__ } })
535 .attr = { .type = UVERBS_ATTR_TYPE_PTR_IN, \
542 .attr = { .type = UVERBS_ATTR_TYPE_PTR_OUT, \
550 .attr = { .type = UVERBS_ATTR_TYPE_ENUM_IN, \
682 const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); in uverbs_attr_get_enum_id() local
684 if (IS_ERR(attr)) in uverbs_attr_get_enum_id()
[all …]
Dib_cache.h15 void *rdma_read_gid_hw_context(const struct ib_gid_attr *attr);
31 int rdma_read_gid_l2_fields(const struct ib_gid_attr *attr,
33 struct net_device *rdma_read_gid_attr_ndev_rcu(const struct ib_gid_attr *attr);
111 void rdma_put_gid_attr(const struct ib_gid_attr *attr);
112 void rdma_hold_gid_attr(const struct ib_gid_attr *attr);
Dib_sysfs.h13 struct attribute attr; member
15 struct ib_port_attribute *attr, char *buf);
17 struct ib_port_attribute *attr, const char *buf,
Dib_verbs.h202 rdma_gid_attr_network_type(const struct ib_gid_attr *attr) in rdma_gid_attr_network_type() argument
204 if (attr->gid_type == IB_GID_TYPE_IB) in rdma_gid_attr_network_type()
207 if (attr->gid_type == IB_GID_TYPE_ROCE) in rdma_gid_attr_network_type()
210 if (ipv6_addr_v4mapped((struct in6_addr *)&attr->gid)) in rdma_gid_attr_network_type()
1071 struct ib_srq_attr attr; member
2432 int (*add_gid)(const struct ib_gid_attr *attr, void **context);
2441 int (*del_gid)(const struct ib_gid_attr *attr, void **context);
2458 int (*create_ah)(struct ib_ah *ah, struct rdma_ah_init_attr *attr,
2460 int (*create_user_ah)(struct ib_ah *ah, struct rdma_ah_init_attr *attr,
2480 int (*create_cq)(struct ib_cq *cq, const struct ib_cq_init_attr *attr,
[all …]
/include/linux/device/
Dclass.h178 struct attribute attr; member
179 ssize_t (*show)(const struct class *class, const struct class_attribute *attr,
181 ssize_t (*store)(const struct class *class, const struct class_attribute *attr,
192 int __must_check class_create_file_ns(const struct class *class, const struct class_attribute *attr,
194 void class_remove_file_ns(const struct class *class, const struct class_attribute *attr,
198 const struct class_attribute *attr) in class_create_file() argument
200 return class_create_file_ns(class, attr, NULL); in class_create_file()
204 const struct class_attribute *attr) in class_remove_file() argument
206 return class_remove_file_ns(class, attr, NULL); in class_remove_file()
211 struct class_attribute attr; member
[all …]
/include/net/
Dtcx.h168 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
169 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
170 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog);
173 int tcx_prog_query(const union bpf_attr *attr,
183 static inline int tcx_prog_attach(const union bpf_attr *attr, in tcx_prog_attach() argument
189 static inline int tcx_link_attach(const union bpf_attr *attr, in tcx_link_attach() argument
195 static inline int tcx_prog_detach(const union bpf_attr *attr, in tcx_prog_detach() argument
201 static inline int tcx_prog_query(const union bpf_attr *attr, in tcx_prog_query() argument
Drtnetlink.h133 int attr);
136 int *prividx, int attr);
170 const struct nlattr *attr,
173 const struct nlattr *attr,
/include/net/netfilter/
Dnf_bpf_link.h9 int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
11 static inline int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_nf_link_attach() argument
/include/kvm/
Darm_pmu.h67 struct kvm_device_attr *attr);
69 struct kvm_device_attr *attr);
71 struct kvm_device_attr *attr);
143 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_set_attr() argument
148 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_get_attr() argument
153 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_has_attr() argument
Darm_hypercalls.h52 int kvm_vm_smccc_has_attr(struct kvm *kvm, struct kvm_device_attr *attr);
53 int kvm_vm_smccc_set_attr(struct kvm *kvm, struct kvm_device_attr *attr);
/include/trace/hooks/
Dsyscall_check.h27 TP_PROTO(int cmd, const union bpf_attr *attr, unsigned int size),
28 TP_ARGS(cmd, attr, size));

12345