Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/net/bpf/
H A Dtest_run.c129 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument
133 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish()
140 if (kattr->test.data_size_out && in bpf_test_finish()
141 copy_size > kattr->test.data_size_out) { in bpf_test_finish()
142 copy_size = kattr->test.data_size_out; in bpf_test_finish()
221 static void *bpf_test_init(const union bpf_attr *kattr, u32 size, in bpf_test_init() argument
224 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in bpf_test_init()
225 u32 user_size = kattr->test.data_size_in; in bpf_test_init()
248 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
256 if (kattr->test.flags || kattr->test.cpu) in bpf_prog_test_run_tracing()
[all …]
/OK3568_Linux_fs/kernel/fs/ocfs2/
H A Dfilecheck.c112 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_show() local
116 if (kattr->show) in ocfs2_filecheck_show()
117 ret = kattr->show(kobj, kattr, buf); in ocfs2_filecheck_show()
127 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_store() local
131 if (kattr->store) in ocfs2_filecheck_store()
132 ret = kattr->store(kobj, kattr, buf, count); in ocfs2_filecheck_store()
/OK3568_Linux_fs/kernel/drivers/staging/greybus/
H A 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()
/OK3568_Linux_fs/kernel/lib/
H A Dkobject.c839 struct kobj_attribute *kattr; in kobj_attr_show() local
842 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show()
843 if (kattr->show) in kobj_attr_show()
844 ret = kattr->show(kobj, kattr, buf); in kobj_attr_show()
851 struct kobj_attribute *kattr; in kobj_attr_store() local
854 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store()
855 if (kattr->store) in kobj_attr_store()
856 ret = kattr->store(kobj, kattr, buf, count); in kobj_attr_store()
/OK3568_Linux_fs/kernel/fs/sysfs/
H A Dfile.c685 struct attribute **kattr; in sysfs_change_owner() local
691 for (kattr = ktype->default_attrs; kattr && *kattr; kattr++) { in sysfs_change_owner()
692 error = sysfs_file_change_owner(kobj, (*kattr)->name, in sysfs_change_owner()
/OK3568_Linux_fs/kernel/include/linux/
H A Dbpf.h447 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
1462 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
1464 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
1467 const union bpf_attr *kattr,
1470 const union bpf_attr *kattr,
1473 const union bpf_attr *kattr,
1476 const union bpf_attr *kattr,
1665 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() argument
1672 const union bpf_attr *kattr, in bpf_prog_test_run_skb() argument
1679 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/hid/
H A Dhid-cp2112.c953 struct device_attribute *kattr, const char *buf, in pstr_store() argument
958 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_store()
973 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, in pstr_store()
985 struct device_attribute *kattr, char *buf) in pstr_show() argument
989 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_show()
997 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, in pstr_show()
1006 kattr->attr.name, report.length); in pstr_show()
H A Dwacom_sys.c1855 struct kobj_attribute *kattr, in wacom_show_remote_mode() argument
1869 struct kobj_attribute *kattr, char *buf) \
1871 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \
/OK3568_Linux_fs/kernel/fs/ntfs/
H A Dfile.c108 u8 *kattr; in ntfs_attr_extend_initialized() local
159 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_attr_extend_initialized()
160 memset(kattr + attr_len, 0, new_init_size - attr_len); in ntfs_attr_extend_initialized()
1550 char *kattr, *kaddr; in ntfs_commit_pages_after_write() local
1608 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_commit_pages_after_write()
1611 memcpy(kattr + pos, kaddr + pos, bytes); in ntfs_commit_pages_after_write()
1623 memcpy(kaddr, kattr, pos); in ntfs_commit_pages_after_write()
1625 memcpy(kaddr + end, kattr + end, attr_len - end); in ntfs_commit_pages_after_write()
/OK3568_Linux_fs/kernel/kernel/sched/
H A Dcore.c6087 struct sched_attr *kattr, in sched_attr_copy_to_user() argument
6090 unsigned int ksize = sizeof(*kattr); in sched_attr_copy_to_user()
6108 kattr->size = min(usize, ksize); in sched_attr_copy_to_user()
6110 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user()
6126 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local
6144 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4()
6146 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4()
6147 get_params(p, &kattr); in SYSCALL_DEFINE4()
6148 kattr.sched_flags &= SCHED_FLAG_ALL; in SYSCALL_DEFINE4()
6156 kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value; in SYSCALL_DEFINE4()
[all …]
/OK3568_Linux_fs/kernel/kernel/trace/
H A Dbpf_trace.c1767 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument