Home
last modified time | relevance | path

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

/linux-6.3-rc2/net/bpf/
A Dtest_run.c833 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_tracing()
895 if (kattr->test.data_in || kattr->test.data_out || in bpf_prog_test_run_raw_tp()
896 kattr->test.ctx_out || kattr->test.duration || in bpf_prog_test_run_raw_tp()
897 kattr->test.repeat || kattr->test.batch_size) in bpf_prog_test_run_raw_tp()
1128 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_skb()
1485 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_flow_dissector()
1549 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_sk_lookup()
1552 if (kattr->test.data_in || kattr->test.data_size_in || kattr->test.data_out || in bpf_prog_test_run_sk_lookup()
1649 if (kattr->test.data_in || kattr->test.data_out || in bpf_prog_test_run_syscall()
1650 kattr->test.ctx_out || kattr->test.duration || in bpf_prog_test_run_syscall()
[all …]
A 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.3-rc2/drivers/platform/x86/dell/dell-wmi-sysman/
A 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.3-rc2/drivers/staging/greybus/
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()
/linux-6.3-rc2/fs/
A Dnamespace.c3977 flags |= kattr->attr_set; in recalc_flags()
3987 if (!kattr->mnt_idmap) in can_idmap_mount()
4034 !kattr->mnt_idmap; in mnt_allow_writers()
4058 if (!kattr->recurse) in mount_setattr_prepare()
4088 if (!kattr->mnt_idmap) in do_idmap_mount()
4117 if (kattr->propagation) in mount_setattr_commit()
4119 if (!kattr->recurse) in mount_setattr_commit()
4133 if (kattr->mnt_userns) { in do_mount_setattr()
4142 if (kattr->propagation) { in do_mount_setattr()
4185 if (kattr->propagation) { in do_mount_setattr()
[all …]
/linux-6.3-rc2/fs/ocfs2/
A 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.3-rc2/lib/
A Dkobject.c815 struct kobj_attribute *kattr; in kobj_attr_show() local
818 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show()
819 if (kattr->show) in kobj_attr_show()
820 ret = kattr->show(kobj, kattr, buf); in kobj_attr_show()
827 struct kobj_attribute *kattr; in kobj_attr_store() local
830 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store()
831 if (kattr->store) in kobj_attr_store()
832 ret = kattr->store(kobj, kattr, buf, count); in kobj_attr_store()
/linux-6.3-rc2/drivers/platform/x86/
A Dthink-lmi.c1053 struct kobj_attribute *kattr; in tlmi_attr_show() local
1055 kattr = container_of(attr, struct kobj_attribute, attr); in tlmi_attr_show()
1056 if (kattr->show) in tlmi_attr_show()
1057 return kattr->show(kobj, kattr, buf); in tlmi_attr_show()
1064 struct kobj_attribute *kattr; in tlmi_attr_store() local
1066 kattr = container_of(attr, struct kobj_attribute, attr); in tlmi_attr_store()
1067 if (kattr->store) in tlmi_attr_store()
1068 return kattr->store(kobj, kattr, buf, count); in tlmi_attr_store()
/linux-6.3-rc2/include/linux/
A Dbpf.h2165 const union bpf_attr *kattr,
2168 const union bpf_attr *kattr,
2171 const union bpf_attr *kattr,
2174 const union bpf_attr *kattr,
2408 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() argument
2415 const union bpf_attr *kattr, in bpf_prog_test_run_skb() argument
2422 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
2429 const union bpf_attr *kattr, in bpf_prog_test_run_flow_dissector() argument
2436 const union bpf_attr *kattr, in bpf_prog_test_run_sk_lookup() argument
2570 const union bpf_attr *kattr,
[all …]
/linux-6.3-rc2/drivers/hid/
A Dhid-cp2112.c955 struct device_attribute *kattr, const char *buf, in pstr_store() argument
960 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_store()
975 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, in pstr_store()
987 struct device_attribute *kattr, char *buf) in pstr_show() argument
991 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_show()
999 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, in pstr_show()
1008 kattr->attr.name, report.length); in pstr_show()
A 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.3-rc2/fs/ntfs/
A 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.3-rc2/kernel/sched/
A Dcore.c8101 struct sched_attr *kattr, in sched_attr_copy_to_user() argument
8104 unsigned int ksize = sizeof(*kattr); in sched_attr_copy_to_user()
8122 kattr->size = min(usize, ksize); in sched_attr_copy_to_user()
8124 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user()
8140 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local
8158 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4()
8160 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4()
8161 get_params(p, &kattr); in SYSCALL_DEFINE4()
8162 kattr.sched_flags &= SCHED_FLAG_ALL; in SYSCALL_DEFINE4()
8170 kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value; in SYSCALL_DEFINE4()
[all …]
/linux-6.3-rc2/kernel/trace/
A Dbpf_trace.c1981 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument

Completed in 76 milliseconds