/linux/net/bpf/ |
H A D | test_run.c | 448 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument 453 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish() 460 if (kattr->test.data_size_out && in bpf_test_finish() 461 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 462 copy_size = kattr->test.data_size_out; in bpf_test_finish() 657 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in BTF_ID_FLAGS() 660 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in BTF_ID_FLAGS() 680 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument 688 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_tracing() 751 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp() argument [all …]
|
H A D | bpf_dummy_struct_ops.c | 28 dummy_ops_init_args(const union bpf_attr *kattr, unsigned int nr) in dummy_ops_init_args() argument 35 size_in = kattr->test.ctx_size_in; in dummy_ops_init_args() 43 ctx_in = u64_to_user_ptr(kattr->test.ctx_in); in dummy_ops_init_args() 129 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_struct_ops_test_run() argument 153 args = dummy_ops_init_args(kattr, btf_type_vlen(func_proto)); in bpf_struct_ops_test_run()
|
/linux/fs/ocfs2/ |
H A D | filecheck.c | 111 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_show() local 115 if (kattr->show) in ocfs2_filecheck_show() 116 ret = kattr->show(kobj, kattr, buf); in ocfs2_filecheck_show() 126 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_store() local 130 if (kattr->store) in ocfs2_filecheck_store() 131 ret = kattr->store(kobj, kattr, buf, count); in ocfs2_filecheck_store()
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_hw_engine_class_sysfs.c | 572 struct kobj_attribute *kattr; in xe_hw_engine_class_sysfs_attr_show() local 575 kattr = container_of(attr, struct kobj_attribute, attr); in xe_hw_engine_class_sysfs_attr_show() 576 if (kattr->show) { in xe_hw_engine_class_sysfs_attr_show() 578 ret = kattr->show(kobj, kattr, buf); in xe_hw_engine_class_sysfs_attr_show() 591 struct kobj_attribute *kattr; in xe_hw_engine_class_sysfs_attr_store() local 594 kattr = container_of(attr, struct kobj_attribute, attr); in xe_hw_engine_class_sysfs_attr_store() 595 if (kattr->store) { in xe_hw_engine_class_sysfs_attr_store() 597 ret = kattr->store(kobj, kattr, buf, count); in xe_hw_engine_class_sysfs_attr_store()
|
/linux/drivers/staging/greybus/ |
H A D | audio_manager_sysfs.c | 85 struct kobj_attribute *kattr) in manager_sysfs_init_attribute() argument 89 err = sysfs_create_file(kobj, &kattr->attr); in manager_sysfs_init_attribute() 92 kattr->attr.name, err); in manager_sysfs_init_attribute()
|
/linux/fs/ |
H A D | namespace.c | 4487 static unsigned int recalc_flags(struct mount_kattr *kattr, struct mount *mnt) in recalc_flags() argument 4492 flags &= ~kattr->attr_clr; in recalc_flags() 4494 flags |= kattr->attr_set; in recalc_flags() 4499 static int can_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) in can_idmap_mount() argument 4504 if (!kattr->mnt_idmap) in can_idmap_mount() 4511 if (kattr->mnt_userns == m->mnt_sb->s_user_ns) in can_idmap_mount() 4550 static inline bool mnt_allow_writers(const struct mount_kattr *kattr, in mnt_allow_writers() argument 4553 return (!(kattr->attr_set & MNT_READONLY) || in mnt_allow_writers() 4555 !kattr->mnt_idmap; in mnt_allow_writers() 4558 static int mount_setattr_prepare(struct mount_kattr *kattr, struct mount *mnt) in mount_setattr_prepare() argument [all …]
|
/linux/lib/ |
H A D | kobject.c | 823 struct kobj_attribute *kattr; in kobj_attr_show() local 826 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show() 827 if (kattr->show) in kobj_attr_show() 828 ret = kattr->show(kobj, kattr, buf); in kobj_attr_show() 835 struct kobj_attribute *kattr; in kobj_attr_store() local 838 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store() 839 if (kattr->store) in kobj_attr_store() 840 ret = kattr->store(kobj, kattr, bu in kobj_attr_store() [all...] |
/linux/kernel/sched/ |
H A D | syscalls.c | 1084 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local 1101 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4() 1103 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4() 1104 get_params(p, &kattr); in SYSCALL_DEFINE4() 1105 kattr.sched_flags &= SCHED_FLAG_ALL; in SYSCALL_DEFINE4() 1113 kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value; in SYSCALL_DEFINE4() 1114 kattr.sched_util_max = p->uclamp_req[UCLAMP_MAX].value; in SYSCALL_DEFINE4() 1118 kattr.size = min(usize, sizeof(kattr)); in SYSCALL_DEFINE4() 1119 return copy_struct_to_user(uattr, usize, &kattr, sizeof(kattr), NULL); in SYSCALL_DEFINE4()
|
/linux/drivers/hid/ |
H A D | hid-cp2112.c | 948 static ssize_t pstr_store(struct device *kdev, struct device_attribute *kattr, in pstr_store() argument 966 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, in pstr_store() 977 static ssize_t pstr_show(struct device *kdev, struct device_attribute *kattr, in pstr_show() argument 988 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, in pstr_show() 997 kattr->attr.name, report.length); in pstr_show() 1010 static ssize_t name##_store(struct device *kdev, struct device_attribute *kattr, \ 1013 return pstr_store(kdev, kattr, buf, count, _report); \ 1015 static ssize_t name##_show(struct device *kdev, struct device_attribute *kattr, char *buf) \ 1017 return pstr_show(kdev, kattr, buf, _report); \
|
H A D | wacom_sys.c | 1870 struct kobj_attribute *kattr, in wacom_show_remote_mode() argument 1884 struct kobj_attribute *kattr, char *buf) \ 1886 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \
|
/linux/include/linux/ |
H A D | bpf.h | 994 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr, 1906 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, 2630 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, 2632 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, 2635 const union bpf_attr *kattr, 2638 const union bpf_attr *kattr, 2641 const union bpf_attr *kattr, 2644 const union bpf_attr *kattr, 2647 const union bpf_attr *kattr, 2919 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() argument [all …]
|
/linux/kernel/trace/ |
H A D | bpf_trace.c | 2067 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
|