/include/linux/ |
D | hw_breakpoint.h | 12 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 …]
|
D | bpf-netns.h | 29 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
|
D | bpf_lirc.h | 8 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
|
D | sysfs.h | 51 #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 …]
|
D | cpu.h | 44 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 …]
|
D | fault-inject.h | 49 int setup_fault_attr(struct fault_attr *attr, char *str); 50 bool should_fail_ex(struct fault_attr *attr, ssize_t size, int flags); 51 bool should_fail(struct fault_attr *attr, ssize_t size); 56 struct dentry *parent, struct fault_attr *attr); 61 struct dentry *parent, struct fault_attr *attr) in fault_create_debugfs_attr() argument
|
D | inetdevice.h | 55 #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 …]
|
D | raid_class.h | 54 #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; \
|
D | cc_platform.h | 109 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
|
D | mbus.h | 61 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
|
D | perf_event.h | 719 struct perf_event_attr attr; member 1026 perf_event_create_kernel_counter(struct perf_event_attr *attr, 1184 struct perf_event_attr *attr = &event->attr; in event_has_any_exclude_flag() local 1186 return attr->exclude_idle || attr->exclude_user || in event_has_any_exclude_flag() 1187 attr->exclude_kernel || attr->exclude_hv || in event_has_any_exclude_flag() 1188 attr->exclude_guest || attr->exclude_host; in event_has_any_exclude_flag() 1193 return event->attr.sample_period != 0; in is_sampling_event() 1440 static inline int perf_allow_kernel(struct perf_event_attr *attr) in perf_allow_kernel() argument 1445 return security_perf_event_open(attr, PERF_SECURITY_KERNEL); in perf_allow_kernel() 1448 static inline int perf_allow_cpu(struct perf_event_attr *attr) in perf_allow_cpu() argument [all …]
|
D | netlink.h | 108 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \ argument 110 (extack)->bad_attr = (attr); \ 115 #define NL_SET_BAD_ATTR(extack, attr) NL_SET_BAD_ATTR_POLICY(extack, attr, NULL) argument 117 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \ argument 125 __extack->bad_attr = (attr); \ 130 #define NL_SET_ERR_MSG_ATTR(extack, attr, msg) \ argument 131 NL_SET_ERR_MSG_ATTR_POL(extack, attr, NULL, msg)
|
D | fsverity.h | 152 int __fsverity_prepare_setattr(struct dentry *dentry, struct iattr *attr); 214 struct iattr *attr) in __fsverity_prepare_setattr() argument 325 struct iattr *attr) in fsverity_prepare_setattr() argument 328 return __fsverity_prepare_setattr(dentry, attr); in fsverity_prepare_setattr()
|
/include/rdma/ |
D | opa_addr.h | 76 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()
|
D | uverbs_ioctl.h | 297 struct uverbs_attr_spec attr; member 494 .attr = { .type = UVERBS_ATTR_TYPE_IDRS_ARRAY, \ 510 .attr = { .type = UVERBS_ATTR_TYPE_IDR, \ 520 .attr = { .type = UVERBS_ATTR_TYPE_FD, \ 528 .attr = { .type = UVERBS_ATTR_TYPE_RAW_FD, __VA_ARGS__ } }) 533 .attr = { .type = UVERBS_ATTR_TYPE_PTR_IN, \ 540 .attr = { .type = UVERBS_ATTR_TYPE_PTR_OUT, \ 548 .attr = { .type = UVERBS_ATTR_TYPE_ENUM_IN, \ 680 const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); in uverbs_attr_get_enum_id() local 682 if (IS_ERR(attr)) in uverbs_attr_get_enum_id() [all …]
|
D | ib_cache.h | 15 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);
|
D | ib_sysfs.h | 13 struct attribute attr; member 15 struct ib_port_attribute *attr, char *buf); 17 struct ib_port_attribute *attr, const char *buf,
|
D | ib_verbs.h | 202 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() 1065 struct ib_srq_attr attr; member 2421 int (*add_gid)(const struct ib_gid_attr *attr, void **context); 2430 int (*del_gid)(const struct ib_gid_attr *attr, void **context); 2447 int (*create_ah)(struct ib_ah *ah, struct rdma_ah_init_attr *attr, 2449 int (*create_user_ah)(struct ib_ah *ah, struct rdma_ah_init_attr *attr, 2469 int (*create_cq)(struct ib_cq *cq, const struct ib_cq_init_attr *attr, [all …]
|
/include/linux/device/ |
D | class.h | 198 struct attribute attr; member 199 ssize_t (*show)(struct class *class, struct class_attribute *attr, 201 ssize_t (*store)(struct class *class, struct class_attribute *attr, 213 const struct class_attribute *attr, 216 const struct class_attribute *attr, 220 const struct class_attribute *attr) in class_create_file() argument 222 return class_create_file_ns(class, attr, NULL); in class_create_file() 226 const struct class_attribute *attr) in class_remove_file() argument 228 return class_remove_file_ns(class, attr, NULL); in class_remove_file() 233 struct class_attribute attr; member [all …]
|
/include/kvm/ |
D | arm_pmu.h | 67 struct kvm_device_attr *attr); 69 struct kvm_device_attr *attr); 71 struct kvm_device_attr *attr); 130 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_set_attr() argument 135 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_get_attr() argument 140 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_has_attr() argument
|
D | arm_arch_timer.h | 75 int kvm_arm_timer_set_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr); 76 int kvm_arm_timer_get_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr); 77 int kvm_arm_timer_has_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr);
|
/include/trace/hooks/ |
D | syscall_check.h | 25 TP_PROTO(int cmd, const union bpf_attr *attr, unsigned int size), 26 TP_ARGS(cmd, attr, size));
|
/include/net/ |
D | rtnetlink.h | 133 int attr); 136 int *prividx, int attr); 170 const struct nlattr *attr, 173 const struct nlattr *attr,
|
/include/uapi/linux/netfilter/ |
D | nfnetlink_compat.h | 35 #define NFA_TYPE(attr) ((attr)->nfa_type & 0x7fff) argument
|
/include/uapi/linux/ |
D | coda.h | 392 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
|