Searched refs:kattr (Results 1 - 12 of 12) sorted by relevance

/linux-master/net/bpf/
H A Dtest_run.c437 static int bpf_test_finish(const union bpf_attr *kattr, argument
442 void __user *data_out = u64_to_user_ptr(kattr->test.data_out);
449 if (kattr->test.data_size_out &&
450 copy_size > kattr->test.data_size_out) {
451 copy_size = kattr->test.data_size_out;
638 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, argument
641 void __user *data_in = u64_to_user_ptr(kattr->test.data_in);
664 const union bpf_attr *kattr,
672 if (kattr->test.flags || kattr
663 bpf_prog_test_run_tracing(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
728 bpf_prog_test_run_raw_tp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
786 bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) argument
817 bpf_ctx_finish(const union bpf_attr *kattr, union bpf_attr __user *uattr, const void *data, u32 size) argument
956 bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
1150 bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
1312 bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
1381 bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
1481 bpf_prog_test_run_syscall(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
1579 bpf_prog_test_run_nf(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
[all...]
H A Dbpf_dummy_struct_ops.c28 dummy_ops_init_args(const union bpf_attr *kattr, unsigned int nr) argument
35 size_in = kattr->test.ctx_size_in;
43 ctx_in = u64_to_user_ptr(kattr->test.ctx_in);
84 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, argument
108 args = dummy_ops_init_args(kattr, btf_type_vlen(func_proto));
/linux-master/drivers/staging/greybus/
H A Daudio_manager_sysfs.c85 struct kobj_attribute *kattr)
89 err = sysfs_create_file(kobj, &kattr->attr);
92 kattr->attr.name, err);
84 manager_sysfs_init_attribute(struct kobject *kobj, struct kobj_attribute *kattr) argument
/linux-master/drivers/platform/x86/dell/dell-wmi-sysman/
H A Dsysman.c227 struct kobj_attribute *kattr; local
230 kattr = container_of(attr, struct kobj_attribute, attr);
231 if (kattr->show)
232 ret = kattr->show(kobj, kattr, buf);
239 struct kobj_attribute *kattr; local
242 kattr = container_of(attr, struct kobj_attribute, attr);
243 if (kattr->store)
244 ret = kattr->store(kobj, kattr, bu
[all...]
/linux-master/fs/ocfs2/
H A Dfilecheck.c111 struct kobj_attribute *kattr = container_of(attr, local
115 if (kattr->show)
116 ret = kattr->show(kobj, kattr, buf);
126 struct kobj_attribute *kattr = container_of(attr, local
130 if (kattr->store)
131 ret = kattr->store(kobj, kattr, buf, count);
/linux-master/fs/
H A Dnamespace.c4278 static unsigned int recalc_flags(struct mount_kattr *kattr, struct mount *mnt) argument
4283 flags &= ~kattr->attr_clr;
4285 flags |= kattr->attr_set;
4290 static int can_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) argument
4295 if (!kattr->mnt_idmap)
4302 if (kattr->mnt_userns == m->mnt_sb->s_user_ns)
4330 * @kattr: the new mount attributes
4331 * @mnt: the mount to which @kattr will be applied
4333 * Check whether thew new mount attributes in @kattr allow concurrent writers.
4337 static inline bool mnt_allow_writers(const struct mount_kattr *kattr, argument
4345 mount_setattr_prepare(struct mount_kattr *kattr, struct mount *mnt) argument
4394 do_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) argument
4410 mount_setattr_commit(struct mount_kattr *kattr, struct mount *mnt) argument
4433 do_mount_setattr(struct path *path, struct mount_kattr *kattr) argument
4507 build_mount_idmapped(const struct mount_attr *attr, size_t usize, struct mount_kattr *kattr, unsigned int flags) argument
4571 build_mount_kattr(const struct mount_attr *attr, size_t usize, struct mount_kattr *kattr, unsigned int flags) argument
4638 finish_mount_kattr(struct mount_kattr *kattr) argument
4654 struct mount_kattr kattr; local
[all...]
/linux-master/lib/
H A Dkobject.c823 struct kobj_attribute *kattr; local
826 kattr = container_of(attr, struct kobj_attribute, attr);
827 if (kattr->show)
828 ret = kattr->show(kobj, kattr, buf);
835 struct kobj_attribute *kattr; local
838 kattr = container_of(attr, struct kobj_attribute, attr);
839 if (kattr->store)
840 ret = kattr->store(kobj, kattr, bu
[all...]
/linux-master/drivers/hid/
H A Dhid-cp2112.c947 static ssize_t pstr_store(struct device *kdev, struct device_attribute *kattr, argument
965 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name,
976 static ssize_t pstr_show(struct device *kdev, struct device_attribute *kattr, argument
987 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name,
996 kattr->attr.name, report.length);
1009 static ssize_t name##_store(struct device *kdev, struct device_attribute *kattr, \
1012 return pstr_store(kdev, kattr, buf, count, _report); \
1014 static ssize_t name##_show(struct device *kdev, struct device_attribute *kattr, char *buf) \
1016 return pstr_show(kdev, kattr, buf, _report); \
H A Dwacom_sys.c1857 struct kobj_attribute *kattr,
1871 struct kobj_attribute *kattr, char *buf) \
1873 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \
1856 wacom_show_remote_mode(struct kobject *kobj, struct kobj_attribute *kattr, char *buf, int index) argument
/linux-master/include/linux/
H A Dbpf.h939 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
1819 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr,
2524 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
2526 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
2529 const union bpf_attr *kattr,
2532 const union bpf_attr *kattr,
2535 const union bpf_attr *kattr,
2538 const union bpf_attr *kattr,
2541 const union bpf_attr *kattr,
2804 const union bpf_attr *kattr,
2803 bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
2810 bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
2817 bpf_prog_test_run_tracing(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
2824 bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
2831 bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
3075 bpf_prog_test_run_syscall(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument
[all...]
/linux-master/kernel/sched/
H A Dcore.c8255 struct sched_attr *kattr,
8258 unsigned int ksize = sizeof(*kattr);
8276 kattr->size = min(usize, ksize);
8278 if (copy_to_user(uattr, kattr, kattr->size))
8294 struct sched_attr kattr = { }; local
8311 kattr.sched_policy = p->policy;
8313 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK;
8314 get_params(p, &kattr);
8315 kattr
8254 sched_attr_copy_to_user(struct sched_attr __user *uattr, struct sched_attr *kattr, unsigned int usize) argument
[all...]
/linux-master/kernel/trace/
H A Dbpf_trace.c2099 const union bpf_attr *kattr,
2098 bpf_prog_test_run_tracing(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) argument

Completed in 191 milliseconds