Home
last modified time | relevance | path

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

/linux/net/bpf/
A Dtest_run.c286 if (kattr->test.flags || kattr->test.cpu) in bpf_prog_test_run_tracing()
348 if (kattr->test.data_in || kattr->test.data_out || in bpf_prog_test_run_raw_tp()
349 kattr->test.ctx_out || kattr->test.duration || in bpf_prog_test_run_raw_tp()
350 kattr->test.repeat) in bpf_prog_test_run_raw_tp()
581 if (kattr->test.flags || kattr->test.cpu) in bpf_prog_test_run_skb()
873 if (kattr->test.flags || kattr->test.cpu) in bpf_prog_test_run_flow_dissector()
940 if (kattr->test.flags || kattr->test.cpu) in bpf_prog_test_run_sk_lookup()
943 if (kattr->test.data_in || kattr->test.data_size_in || kattr->test.data_out || in bpf_prog_test_run_sk_lookup()
1040 if (kattr->test.data_in || kattr->test.data_out || in bpf_prog_test_run_syscall()
1041 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()
75 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_struct_ops_test_run() argument
91 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/
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/fs/ocfs2/
A Dfilecheck.c110 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_show() local
114 if (kattr->show) in ocfs2_filecheck_show()
115 ret = kattr->show(kobj, kattr, buf); in ocfs2_filecheck_show()
125 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_store() local
129 if (kattr->store) in ocfs2_filecheck_store()
130 ret = kattr->store(kobj, kattr, buf, count); in ocfs2_filecheck_store()
/linux/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/fs/
A Dnamespace.c3920 flags &= ~kattr->attr_clr; in recalc_flags()
3922 flags |= kattr->attr_set; in recalc_flags()
3931 if (!kattr->mnt_userns) in can_idmap_mount()
4007 if (!kattr->mnt_userns) in do_idmap_mount()
4025 do_idmap_mount(kattr, m); in mount_setattr_commit()
4062 if (kattr->propagation) { in do_mount_setattr()
4089 if (kattr->propagation) { in do_mount_setattr()
4165 *kattr = (struct mount_kattr) { in build_mount_kattr()
4223 kattr->mnt_userns = NULL; in finish_mount_kattr()
4233 struct mount_kattr kattr; in SYSCALL_DEFINE5() local
[all …]
/linux/lib/
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()
/linux/drivers/platform/x86/
A Dthink-lmi.c618 struct kobj_attribute *kattr; in tlmi_attr_show() local
620 kattr = container_of(attr, struct kobj_attribute, attr); in tlmi_attr_show()
621 if (kattr->show) in tlmi_attr_show()
622 return kattr->show(kobj, kattr, buf); in tlmi_attr_show()
629 struct kobj_attribute *kattr; in tlmi_attr_store() local
631 kattr = container_of(attr, struct kobj_attribute, attr); in tlmi_attr_store()
632 if (kattr->store) in tlmi_attr_store()
633 return kattr->store(kobj, kattr, buf, count); in tlmi_attr_store()
/linux/fs/sysfs/
A Dfile.c706 struct attribute **kattr; in sysfs_change_owner() local
712 for (kattr = ktype->default_attrs; kattr && *kattr; kattr++) { in sysfs_change_owner()
713 error = sysfs_file_change_owner(kobj, (*kattr)->name, in sysfs_change_owner()
/linux/include/linux/
A Dbpf.h1653 const union bpf_attr *kattr,
1656 const union bpf_attr *kattr,
1659 const union bpf_attr *kattr,
1662 const union bpf_attr *kattr,
1874 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() argument
1881 const union bpf_attr *kattr, in bpf_prog_test_run_skb() argument
1888 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
1895 const union bpf_attr *kattr, in bpf_prog_test_run_flow_dissector() argument
1902 const union bpf_attr *kattr, in bpf_prog_test_run_sk_lookup() argument
2002 const union bpf_attr *kattr,
[all …]
/linux/drivers/hid/
A Dhid-cp2112.c950 struct device_attribute *kattr, const char *buf, in pstr_store() argument
955 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_store()
970 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, in pstr_store()
982 struct device_attribute *kattr, char *buf) in pstr_show() argument
986 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_show()
994 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, in pstr_show()
1003 kattr->attr.name, report.length); in pstr_show()
A Dwacom_sys.c1852 struct kobj_attribute *kattr, in wacom_show_remote_mode() argument
1866 struct kobj_attribute *kattr, char *buf) \
1868 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \
/linux/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()
1548 char *kattr, *kaddr; in ntfs_commit_pages_after_write() local
1606 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_commit_pages_after_write()
1609 memcpy(kattr + pos, kaddr + pos, bytes); in ntfs_commit_pages_after_write()
1621 memcpy(kaddr, kattr, pos); in ntfs_commit_pages_after_write()
1623 memcpy(kaddr + end, kattr + end, attr_len - end); in ntfs_commit_pages_after_write()
/linux/kernel/sched/
A Dcore.c7806 struct sched_attr *kattr, in sched_attr_copy_to_user() argument
7809 unsigned int ksize = sizeof(*kattr); in sched_attr_copy_to_user()
7827 kattr->size = min(usize, ksize); in sched_attr_copy_to_user()
7829 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user()
7845 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local
7863 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4()
7865 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4()
7866 get_params(p, &kattr); in SYSCALL_DEFINE4()
7867 kattr.sched_flags &= SCHED_FLAG_ALL; in SYSCALL_DEFINE4()
7875 kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value; in SYSCALL_DEFINE4()
[all …]
/linux/kernel/trace/
A Dbpf_trace.c1659 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument

Completed in 65 milliseconds