Home
last modified time | relevance | path

Searched refs:kattr (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/net/bpf/
Dtest_run.c435 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument
440 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish()
447 if (kattr->test.data_size_out && in bpf_test_finish()
448 copy_size > kattr->test.data_size_out) { in bpf_test_finish()
449 copy_size = kattr->test.data_size_out; in bpf_test_finish()
626 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in BTF_ID_FLAGS()
629 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in BTF_ID_FLAGS()
652 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
660 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_tracing()
717 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp() argument
[all …]
Dbpf_dummy_struct_ops.c21 dummy_ops_init_args(const union bpf_attr *kattr, unsigned int nr) in dummy_ops_init_args() argument
28 size_in = kattr->test.ctx_size_in; in dummy_ops_init_args()
36 ctx_in = u64_to_user_ptr(kattr->test.ctx_in); in dummy_ops_init_args()
77 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_struct_ops_test_run() argument
94 args = dummy_ops_init_args(kattr, btf_type_vlen(func_proto)); in bpf_struct_ops_test_run()
/linux-6.6.21/drivers/platform/x86/dell/dell-wmi-sysman/
Dsysman.c227 struct kobj_attribute *kattr; in wmi_sysman_attr_show() local
230 kattr = container_of(attr, struct kobj_attribute, attr); in wmi_sysman_attr_show()
231 if (kattr->show) in wmi_sysman_attr_show()
232 ret = kattr->show(kobj, kattr, buf); in wmi_sysman_attr_show()
239 struct kobj_attribute *kattr; in wmi_sysman_attr_store() local
242 kattr = container_of(attr, struct kobj_attribute, attr); in wmi_sysman_attr_store()
243 if (kattr->store) in wmi_sysman_attr_store()
244 ret = kattr->store(kobj, kattr, buf, count); in wmi_sysman_attr_store()
/linux-6.6.21/drivers/staging/greybus/
Daudio_manager_sysfs.c85 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-6.6.21/fs/ocfs2/
Dfilecheck.c111 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-6.6.21/fs/
Dnamespace.c4276 static unsigned int recalc_flags(struct mount_kattr *kattr, struct mount *mnt) in recalc_flags() argument
4281 flags &= ~kattr->attr_clr; in recalc_flags()
4283 flags |= kattr->attr_set; in recalc_flags()
4288 static int can_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) in can_idmap_mount() argument
4293 if (!kattr->mnt_idmap) in can_idmap_mount()
4300 if (!check_fsmapping(kattr->mnt_idmap, m->mnt_sb)) in can_idmap_mount()
4335 static inline bool mnt_allow_writers(const struct mount_kattr *kattr, in mnt_allow_writers() argument
4338 return (!(kattr->attr_set & MNT_READONLY) || in mnt_allow_writers()
4340 !kattr->mnt_idmap; in mnt_allow_writers()
4343 static int mount_setattr_prepare(struct mount_kattr *kattr, struct mount *mnt) in mount_setattr_prepare() argument
[all …]
/linux-6.6.21/lib/
Dkobject.c823 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-6.6.21/drivers/hid/
Dhid-cp2112.c947 static ssize_t pstr_store(struct device *kdev, struct device_attribute *kattr, in pstr_store() argument
965 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, in pstr_store()
976 static ssize_t pstr_show(struct device *kdev, struct device_attribute *kattr, in pstr_show() argument
987 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, in pstr_show()
996 kattr->attr.name, report.length); in pstr_show()
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); \
Dwacom_sys.c1850 struct kobj_attribute *kattr, in wacom_show_remote_mode() argument
1864 struct kobj_attribute *kattr, char *buf) \
1866 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \
/linux-6.6.21/include/linux/
Dbpf.h926 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
1681 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr,
2362 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
2364 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
2367 const union bpf_attr *kattr,
2370 const union bpf_attr *kattr,
2373 const union bpf_attr *kattr,
2376 const union bpf_attr *kattr,
2379 const union bpf_attr *kattr,
2621 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() argument
[all …]
/linux-6.6.21/fs/ntfs/
Dfile.c109 u8 *kattr; in ntfs_attr_extend_initialized() local
160 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_attr_extend_initialized()
161 memset(kattr + attr_len, 0, new_init_size - attr_len); in ntfs_attr_extend_initialized()
1543 char *kattr, *kaddr; in ntfs_commit_pages_after_write() local
1601 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_commit_pages_after_write()
1604 memcpy(kattr + pos, kaddr + pos, bytes); in ntfs_commit_pages_after_write()
1616 memcpy(kaddr, kattr, pos); in ntfs_commit_pages_after_write()
1618 memcpy(kaddr + end, kattr + end, attr_len - end); in ntfs_commit_pages_after_write()
/linux-6.6.21/kernel/sched/
Dcore.c8196 struct sched_attr *kattr, in sched_attr_copy_to_user() argument
8199 unsigned int ksize = sizeof(*kattr); in sched_attr_copy_to_user()
8217 kattr->size = min(usize, ksize); in sched_attr_copy_to_user()
8219 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user()
8235 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local
8253 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4()
8255 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4()
8256 get_params(p, &kattr); in SYSCALL_DEFINE4()
8257 kattr.sched_flags &= SCHED_FLAG_ALL; in SYSCALL_DEFINE4()
8265 kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value; in SYSCALL_DEFINE4()
[all …]
/linux-6.6.21/kernel/trace/
Dbpf_trace.c2027 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument