| /linux/net/bpf/ |
| H A D | test_run.c | 437 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument 442 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish() 449 if (kattr->test.data_size_out && in bpf_test_finish() 450 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 451 copy_size = kattr->test.data_size_out; in bpf_test_finish() 651 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in BTF_ID_FLAGS() 654 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in BTF_ID_FLAGS() 674 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument 682 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_tracing() 747 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/drivers/platform/x86/dell/dell-wmi-sysman/ |
| H A D | sysman.c | 226 struct kobj_attribute *kattr; in wmi_sysman_attr_show() local 229 kattr = container_of(attr, struct kobj_attribute, attr); in wmi_sysman_attr_show() 230 if (kattr->show) in wmi_sysman_attr_show() 231 ret = kattr->show(kobj, kattr, buf); in wmi_sysman_attr_show() 238 struct kobj_attribute *kattr; in wmi_sysman_attr_store() local 241 kattr = container_of(attr, struct kobj_attribute, attr); in wmi_sysman_attr_store() 242 if (kattr->store) in wmi_sysman_attr_store() 243 ret = kattr->store(kobj, kattr, buf, count); in wmi_sysman_attr_store()
|
| /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/fs/ |
| H A D | namespace.c | 4746 static unsigned int recalc_flags(struct mount_kattr *kattr, struct mount *mnt) in recalc_flags() argument 4751 flags &= ~kattr->attr_clr; in recalc_flags() 4753 flags |= kattr->attr_set; in recalc_flags() 4758 static int can_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) in can_idmap_mount() argument 4763 if (!kattr->mnt_idmap) in can_idmap_mount() 4770 if (kattr->mnt_userns == m->mnt_sb->s_user_ns) in can_idmap_mount() 4777 if (!(kattr->kflags & MOUNT_KATTR_IDMAP_REPLACE) && is_idmapped_mnt(m)) in can_idmap_mount() 4808 static inline bool mnt_allow_writers(const struct mount_kattr *kattr, in mnt_allow_writers() argument 4811 return (!(kattr->attr_set & MNT_READONLY) || in mnt_allow_writers() 4813 !kattr->mnt_idmap; in mnt_allow_writers() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_hw_engine_class_sysfs.c | 45 struct kobj_attribute *kattr; in xe_hw_engine_class_sysfs_attr_show() local 47 kattr = container_of(attr, struct kobj_attribute, attr); in xe_hw_engine_class_sysfs_attr_show() 48 if (kattr->show) { in xe_hw_engine_class_sysfs_attr_show() 50 return kattr->show(kobj, kattr, buf); in xe_hw_engine_class_sysfs_attr_show() 62 struct kobj_attribute *kattr; in xe_hw_engine_class_sysfs_attr_store() local 64 kattr = container_of(attr, struct kobj_attribute, attr); in xe_hw_engine_class_sysfs_attr_store() 65 if (kattr->store) { in xe_hw_engine_class_sysfs_attr_store() 67 return kattr->store(kobj, kattr, buf, count); in xe_hw_engine_class_sysfs_attr_store()
|
| H A D | xe_gt_throttle.c | 136 struct kobj_attribute *kattr = container_of(*pother, struct kobj_attribute, attr); in reasons_show() local 137 struct throttle_attribute *other_ta = kobj_attribute_to_throttle(kattr); in reasons_show()
|
| /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/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, buf, count); in kobj_attr_store()
|
| /linux/kernel/sched/ |
| H A D | syscalls.c | 1063 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local 1080 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4() 1082 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4() 1083 get_params(p, &kattr); in SYSCALL_DEFINE4() 1084 kattr.sched_flags &= SCHED_FLAG_ALL; in SYSCALL_DEFINE4() 1092 kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value; in SYSCALL_DEFINE4() 1093 kattr.sched_util_max = p->uclamp_req[UCLAMP_MAX].value; in SYSCALL_DEFINE4() 1097 kattr.size = min(usize, sizeof(kattr)); in SYSCALL_DEFINE4() 1098 return copy_struct_to_user(uattr, usize, &kattr, sizeof(kattr), NULL); in SYSCALL_DEFINE4()
|
| /linux/drivers/hid/ |
| H A D | hid-cp2112.c | 963 static ssize_t pstr_store(struct device *kdev, struct device_attribute *kattr, in pstr_store() argument 981 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, in pstr_store() 992 static ssize_t pstr_show(struct device *kdev, struct device_attribute *kattr, in pstr_show() argument 1003 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, in pstr_show() 1012 kattr->attr.name, report.length); in pstr_show() 1025 static ssize_t name##_store(struct device *kdev, struct device_attribute *kattr, \ 1028 return pstr_store(kdev, kattr, buf, count, _report); \ 1030 static ssize_t name##_show(struct device *kdev, struct device_attribute *kattr, char *buf) \ 1032 return pstr_show(kdev, kattr, buf, _report); \
|
| H A D | wacom_sys.c | 1886 struct kobj_attribute *kattr, in wacom_show_remote_mode() argument 1900 struct kobj_attribute *kattr, char *buf) \ 1902 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \
|
| /linux/include/linux/ |
| H A D | bpf.h | 1093 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr, 2133 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, 2959 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, 2961 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, 2964 const union bpf_attr *kattr, 2967 const union bpf_attr *kattr, 2970 const union bpf_attr *kattr, 2973 const union bpf_attr *kattr, 2976 const union bpf_attr *kattr, 3256 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() argument [all …]
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 1786 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
|