| /include/linux/ |
| A D | hw_breakpoint.h | 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() 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() 49 return bp->attr.bp_type; in hw_breakpoint_type() 54 return bp->attr.bp_len; in hw_breakpoint_len() [all …]
|
| A 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
|
| A D | cc_platform.h | 115 bool cc_platform_has(enum cc_attr attr); 116 void cc_platform_set(enum cc_attr attr); 117 void cc_platform_clear(enum cc_attr attr); 121 static inline bool cc_platform_has(enum cc_attr attr) { return false; } in cc_platform_has() argument 122 static inline void cc_platform_set(enum cc_attr attr) { } in cc_platform_set() argument 123 static inline void cc_platform_clear(enum cc_attr attr) { } in cc_platform_clear() argument
|
| A 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
|
| A D | cpu.h | 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, 70 struct device_attribute *attr, 73 struct device_attribute *attr, char *buf); 77 struct device_attribute *attr, char *buf); [all …]
|
| A D | fault-inject.h | 54 int setup_fault_attr(struct fault_attr *attr, char *str); 55 bool should_fail_ex(struct fault_attr *attr, ssize_t size, int flags); 56 bool should_fail(struct fault_attr *attr, ssize_t size); 65 static inline int setup_fault_attr(struct fault_attr *attr, char *str) in setup_fault_attr() argument 69 static inline bool should_fail_ex(struct fault_attr *attr, ssize_t size, int flags) in should_fail_ex() argument 73 static inline bool should_fail(struct fault_attr *attr, ssize_t size) in should_fail() argument 83 struct dentry *parent, struct fault_attr *attr); 88 struct dentry *parent, struct fault_attr *attr) in fault_create_debugfs_attr() argument 98 struct fault_attr attr; member
|
| A D | sysfs.h | 51 #define sysfs_attr_init(attr) \ argument 55 (attr)->key = &__key; \ 305 struct attribute attr; member 416 const struct attribute *attr); 556 const struct attribute *attr) in sysfs_break_active_protection() argument 566 const struct attribute *attr, in sysfs_remove_file_ns() argument 572 const struct attribute *attr) in sysfs_remove_file_self() argument 583 const struct bin_attribute *attr) in sysfs_create_bin_file() argument 699 const char *attr) in sysfs_notify() argument 769 const struct attribute *attr) in sysfs_create_file() argument [all …]
|
| A D | inetdevice.h | 55 #define IPV4_DEVCONF(cnf, attr) ((cnf).data[IPV4_DEVCONF_ ## attr - 1]) argument 56 #define IPV4_DEVCONF_RO(cnf, attr) READ_ONCE(IPV4_DEVCONF(cnf, attr)) argument 57 #define IPV4_DEVCONF_ALL(net, attr) \ argument 59 #define IPV4_DEVCONF_ALL_RO(net, attr) READ_ONCE(IPV4_DEVCONF_ALL(net, attr)) argument 80 #define IN_DEV_CONF_GET(in_dev, attr) \ argument 85 #define IN_DEV_ANDCONF(in_dev, attr) \ argument 87 IN_DEV_CONF_GET((in_dev), attr)) 90 (IPV4_DEVCONF_ALL_RO(net, attr) || \ 91 IN_DEV_CONF_GET((in_dev), attr)) 93 #define IN_DEV_ORCONF(in_dev, attr) \ argument [all …]
|
| A 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; \
|
| A 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
|
| A D | netlink.h | 143 #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 …]
|
| A D | perf_event.h | 825 struct perf_event_attr attr; member 1531 struct perf_event_attr *attr = &event->attr; in event_has_any_exclude_flag() local 1533 return attr->exclude_idle || attr->exclude_user || in event_has_any_exclude_flag() 1534 attr->exclude_kernel || attr->exclude_hv || in event_has_any_exclude_flag() 1535 attr->exclude_guest || attr->exclude_host; in event_has_any_exclude_flag() 1847 event->attr.aux_resume; in has_aux_action() 2014 struct device_attribute attr; member 2020 struct device_attribute attr; member 2027 struct device_attribute attr; member 2034 struct device_attribute attr; member [all …]
|
| A D | fsverity.h | 152 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/net/ |
| A D | netkit.h | 9 int netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 10 int netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 11 int netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog); 12 int netkit_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr); 15 static inline int netkit_prog_attach(const union bpf_attr *attr, in netkit_prog_attach() argument 21 static inline int netkit_link_attach(const union bpf_attr *attr, in netkit_link_attach() argument 27 static inline int netkit_prog_detach(const union bpf_attr *attr, in netkit_prog_detach() argument 33 static inline int netkit_prog_query(const union bpf_attr *attr, in netkit_prog_query() argument
|
| A D | tcx.h | 163 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 164 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 165 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog); 168 int tcx_prog_query(const union bpf_attr *attr, 178 static inline int tcx_prog_attach(const union bpf_attr *attr, in tcx_prog_attach() argument 184 static inline int tcx_link_attach(const union bpf_attr *attr, in tcx_link_attach() argument 190 static inline int tcx_prog_detach(const union bpf_attr *attr, in tcx_prog_detach() argument 196 static inline int tcx_prog_query(const union bpf_attr *attr, in tcx_prog_query() argument
|
| /include/rdma/ |
| A 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()
|
| A D | uverbs_ioctl.h | 686 if (IS_ERR(attr)) in uverbs_attr_get_enum_id() 698 if (IS_ERR(attr)) in uverbs_attr_get_obj() 709 if (IS_ERR(attr)) in uverbs_attr_get_uobject() 720 if (IS_ERR(attr)) in uverbs_attr_get_len() 766 if (IS_ERR(attr)) { in uverbs_attr_get_uobjs_arr() 778 return attr->ptr_attr.len <= sizeof(attr->ptr_attr.data); in uverbs_attr_ptr_is_inline() 786 if (IS_ERR(attr)) in uverbs_attr_get_alloced_ptr() 789 return uverbs_attr_ptr_is_inline(attr) ? (void *)&attr->ptr_attr.data : in uverbs_attr_get_alloced_ptr() 800 if (IS_ERR(attr)) in _uverbs_copy_from() 812 memcpy(to, &attr->ptr_attr.data, attr->ptr_attr.len); in _uverbs_copy_from() [all …]
|
| A 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); 95 void rdma_put_gid_attr(const struct ib_gid_attr *attr); 96 void rdma_hold_gid_attr(const struct ib_gid_attr *attr);
|
| A 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,
|
| A D | ib_verbs.h | 1090 struct ib_srq_attr attr; member 3554 return attr->phys_mtu; in rdma_mtu_from_attr() 4612 attr->opa.dlid = dlid; in rdma_ah_set_dlid() 4618 return attr->ib.dlid; in rdma_ah_get_dlid() 4626 attr->sl = sl; in rdma_ah_set_sl() 4631 return attr->sl; in rdma_ah_get_sl() 4673 return attr->port_num; in rdma_ah_get_port_num() 4690 attr->ah_flags = flag; in rdma_ah_set_ah_flags() 4696 return attr->ah_flags; in rdma_ah_get_ah_flags() 4702 return &attr->grh; in rdma_ah_read_grh() [all …]
|
| /include/linux/device/ |
| A D | class.h | 168 struct attribute attr; member 169 ssize_t (*show)(const struct class *class, const struct class_attribute *attr, 171 ssize_t (*store)(const struct class *class, const struct class_attribute *attr, 182 int __must_check class_create_file_ns(const struct class *class, const struct class_attribute *attr, 184 void class_remove_file_ns(const struct class *class, const struct class_attribute *attr, 188 const struct class_attribute *attr) in class_create_file() argument 190 return class_create_file_ns(class, attr, NULL); in class_create_file() 194 const struct class_attribute *attr) in class_remove_file() argument 196 class_remove_file_ns(class, attr, NULL); in class_remove_file() 201 struct class_attribute attr; member [all …]
|
| /include/net/netfilter/ |
| A D | nf_bpf_link.h | 9 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/ |
| A D | arm_pmu.h | 61 struct kvm_device_attr *attr); 63 struct kvm_device_attr *attr); 65 struct kvm_device_attr *attr); 137 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_set_attr() argument 142 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_get_attr() argument 147 struct kvm_device_attr *attr) in kvm_arm_pmu_v3_has_attr() argument
|
| A D | arm_hypercalls.h | 52 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/linux/perf/ |
| A D | arm_pmu.h | 100 struct perf_event_attr *attr); 216 #define _ATTR_CFG_GET_FLD(attr, cfg, lo, hi) \ argument 217 ((((attr)->cfg) >> lo) & GENMASK_ULL(hi - lo, 0)) 219 #define ATTR_CFG_GET_FLD(attr, name) \ argument 220 _ATTR_CFG_GET_FLD(attr, \
|