Home
last modified time | relevance | path

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

1234

/include/linux/
Dhw_breakpoint.h12 static inline void hw_breakpoint_init(struct perf_event_attr *attr) in hw_breakpoint_init() argument
14 memset(attr, 0, sizeof(*attr)); in hw_breakpoint_init()
16 attr->type = PERF_TYPE_BREAKPOINT; in hw_breakpoint_init()
17 attr->size = sizeof(*attr); in hw_breakpoint_init()
22 attr->pinned = 1; in hw_breakpoint_init()
23 attr->sample_period = 1; in hw_breakpoint_init()
26 static inline void ptrace_breakpoint_init(struct perf_event_attr *attr) in ptrace_breakpoint_init() argument
28 hw_breakpoint_init(attr); in ptrace_breakpoint_init()
29 attr->exclude_kernel = 1; in ptrace_breakpoint_init()
34 return bp->attr.bp_addr; in hw_breakpoint_addr()
[all …]
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), .mode = 0200 }, \
133 #define __ATTR_NULL { .attr = { .name = NULL } }
137 .attr = {.name = __stringify(_name), .mode = _mode, \
[all …]
Dcpu.h44 extern int cpu_add_dev_attr(struct device_attribute *attr);
45 extern void cpu_remove_dev_attr(struct device_attribute *attr);
51 struct device_attribute *attr, char *buf);
53 struct device_attribute *attr, char *buf);
55 struct device_attribute *attr, char *buf);
57 struct device_attribute *attr, char *buf);
59 struct device_attribute *attr, char *buf);
61 struct device_attribute *attr, char *buf);
63 struct device_attribute *attr,
66 struct device_attribute *attr, char *buf);
[all …]
Dinetdevice.h53 #define IPV4_DEVCONF(cnf, attr) ((cnf).data[IPV4_DEVCONF_ ## attr - 1]) argument
54 #define IPV4_DEVCONF_ALL(net, attr) \ argument
55 IPV4_DEVCONF((*(net)->ipv4.devconf_all), attr)
76 #define IN_DEV_CONF_GET(in_dev, attr) \ argument
77 ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr)
78 #define IN_DEV_CONF_SET(in_dev, attr, val) \ argument
79 ipv4_devconf_set((in_dev), IPV4_DEVCONF_ ## attr, (val))
81 #define IN_DEV_ANDCONF(in_dev, attr) \ argument
82 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr) && \
83 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; \
Dfault-inject.h45 int setup_fault_attr(struct fault_attr *attr, char *str);
46 bool should_fail(struct fault_attr *attr, ssize_t size);
51 struct dentry *parent, struct fault_attr *attr);
56 struct dentry *parent, struct fault_attr *attr) in fault_create_debugfs_attr() 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
Dperf_event.h643 struct perf_event_attr attr; member
926 perf_event_create_kernel_counter(struct perf_event_attr *attr,
1067 struct perf_event_attr *attr = &event->attr; in event_has_any_exclude_flag() local
1069 return attr->exclude_idle || attr->exclude_user || in event_has_any_exclude_flag()
1070 attr->exclude_kernel || attr->exclude_hv || in event_has_any_exclude_flag()
1071 attr->exclude_guest || attr->exclude_host; in event_has_any_exclude_flag()
1076 return event->attr.sample_period != 0; in is_sampling_event()
1291 static inline int perf_allow_kernel(struct perf_event_attr *attr) in perf_allow_kernel() argument
1296 return security_perf_event_open(attr, PERF_SECURITY_KERNEL); in perf_allow_kernel()
1299 static inline int perf_allow_cpu(struct perf_event_attr *attr) in perf_allow_cpu() argument
[all …]
Dbtf.h17 int btf_new_fd(const union bpf_attr *attr);
20 const union bpf_attr *attr,
Devm.h24 extern int evm_inode_setattr(struct dentry *dentry, struct iattr *attr);
64 static inline int evm_inode_setattr(struct dentry *dentry, struct iattr *attr) in evm_inode_setattr() argument
Dbpf-cgroup.h91 int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,
99 int cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,
329 int cgroup_bpf_prog_attach(const union bpf_attr *attr,
331 int cgroup_bpf_prog_detach(const union bpf_attr *attr,
333 int cgroup_bpf_prog_query(const union bpf_attr *attr,
342 static inline int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach() argument
349 static inline int cgroup_bpf_prog_detach(const union bpf_attr *attr, in cgroup_bpf_prog_detach() argument
355 static inline int cgroup_bpf_prog_query(const union bpf_attr *attr, in cgroup_bpf_prog_query() argument
Ddevice.h49 struct attribute attr; member
434 struct attribute attr; member
448 const struct driver_attribute *attr);
450 const struct driver_attribute *attr);
745 struct attribute attr; member
746 ssize_t (*show)(struct class *class, struct class_attribute *attr,
748 ssize_t (*store)(struct class *class, struct class_attribute *attr,
760 const struct class_attribute *attr,
763 const struct class_attribute *attr,
767 const struct class_attribute *attr) in class_create_file() argument
[all …]
Dfsverity.h133 int fsverity_prepare_setattr(struct dentry *dentry, struct iattr *attr);
172 struct iattr *attr) in fsverity_prepare_setattr() argument
/include/rdma/
Dopa_addr.h118 static inline bool rdma_is_valid_unicast_lid(struct rdma_ah_attr *attr) in rdma_is_valid_unicast_lid() argument
120 if (attr->type == RDMA_AH_ATTR_TYPE_IB) { in rdma_is_valid_unicast_lid()
121 if (!rdma_ah_get_dlid(attr) || in rdma_is_valid_unicast_lid()
122 rdma_ah_get_dlid(attr) >= in rdma_is_valid_unicast_lid()
125 } else if (attr->type == RDMA_AH_ATTR_TYPE_OPA) { in rdma_is_valid_unicast_lid()
126 if (!rdma_ah_get_dlid(attr) || in rdma_is_valid_unicast_lid()
127 rdma_ah_get_dlid(attr) >= in rdma_is_valid_unicast_lid()
Duverbs_ioctl.h323 struct uverbs_attr_spec attr; member
521 .attr = { .type = UVERBS_ATTR_TYPE_IDRS_ARRAY, \
537 .attr = { .type = UVERBS_ATTR_TYPE_IDR, \
547 .attr = { .type = UVERBS_ATTR_TYPE_FD, \
555 .attr = { .type = UVERBS_ATTR_TYPE_PTR_IN, \
562 .attr = { .type = UVERBS_ATTR_TYPE_PTR_OUT, \
570 .attr = { .type = UVERBS_ATTR_TYPE_ENUM_IN, \
698 const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); in uverbs_attr_get_enum_id() local
700 if (IS_ERR(attr)) in uverbs_attr_get_enum_id()
701 return PTR_ERR(attr); in uverbs_attr_get_enum_id()
[all …]
Dib_cache.h57 int rdma_read_gid_l2_fields(const struct ib_gid_attr *attr,
59 struct net_device *rdma_read_gid_attr_ndev_rcu(const struct ib_gid_attr *attr);
137 void rdma_put_gid_attr(const struct ib_gid_attr *attr);
138 void rdma_hold_gid_attr(const struct ib_gid_attr *attr);
Dib_verbs.h220 rdma_gid_attr_network_type(const struct ib_gid_attr *attr) in rdma_gid_attr_network_type() argument
222 if (attr->gid_type == IB_GID_TYPE_IB) in rdma_gid_attr_network_type()
225 if (ipv6_addr_v4mapped((struct in6_addr *)&attr->gid)) in rdma_gid_attr_network_type()
1029 struct ib_srq_attr attr; member
2351 int (*add_gid)(const struct ib_gid_attr *attr, void **context);
2360 int (*del_gid)(const struct ib_gid_attr *attr, void **context);
2391 int (*create_cq)(struct ib_cq *cq, const struct ib_cq_init_attr *attr,
2439 const struct ib_flow_action_attrs_esp *attr,
2444 const struct ib_flow_action_attrs_esp *attr,
2458 int (*modify_wq)(struct ib_wq *wq, struct ib_wq_attr *attr,
[all …]
Drw.h69 void rdma_rw_init_qp(struct ib_device *dev, struct ib_qp_init_attr *attr);
70 int rdma_rw_init_mrs(struct ib_qp *qp, struct ib_qp_init_attr *attr);
/include/kvm/
Darm_pmu.h52 struct kvm_device_attr *attr);
54 struct kvm_device_attr *attr);
56 struct kvm_device_attr *attr);
93 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_set_attr() argument
98 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_get_attr() argument
103 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_has_attr() argument
Darm_arch_timer.h82 int kvm_arm_timer_set_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr);
83 int kvm_arm_timer_get_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr);
84 int kvm_arm_timer_has_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr);
/include/net/
Drtnetlink.h109 int attr);
112 int *prividx, int attr);
146 const struct nlattr *attr);
148 const struct nlattr *attr);
Dswitchdev.h139 const struct switchdev_attr *attr; member
160 const struct switchdev_attr *attr);
200 const struct switchdev_attr *attr,
209 const struct switchdev_attr *attr) in switchdev_port_attr_set() argument
293 const struct switchdev_attr *attr, in switchdev_handle_port_attr_set() argument
/include/uapi/linux/netfilter/
Dnfnetlink_compat.h35 #define NFA_TYPE(attr) ((attr)->nfa_type & 0x7fff) argument
/include/uapi/linux/
Dcoda.h392 struct coda_vattr attr; member
400 struct coda_vattr attr; member
442 struct coda_vattr attr; member
451 struct coda_vattr attr; member
496 struct coda_vattr attr; member
503 struct coda_vattr attr; member
523 struct coda_vattr attr; member

1234