/linux-6.1.9/net/bpf/ |
D | test_run.c | 413 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument 418 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish() 425 if (kattr->test.data_size_out && in bpf_test_finish() 426 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 427 copy_size = kattr->test.data_size_out; in bpf_test_finish() 765 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in BTF_ID_FLAGS() 768 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in BTF_ID_FLAGS() 791 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument 799 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_tracing() 851 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp() argument [all …]
|
D | bpf_dummy_struct_ops.c | 21 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.1.9/drivers/platform/x86/dell/dell-wmi-sysman/ |
D | sysman.c | 227 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.1.9/drivers/staging/greybus/ |
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-6.1.9/fs/ocfs2/ |
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-6.1.9/fs/ |
D | namespace.c | 3967 static unsigned int recalc_flags(struct mount_kattr *kattr, struct mount *mnt) in recalc_flags() argument 3972 flags &= ~kattr->attr_clr; in recalc_flags() 3974 flags |= kattr->attr_set; in recalc_flags() 3979 static int can_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) in can_idmap_mount() argument 3984 if (!kattr->mnt_userns) in can_idmap_mount() 3991 if (kattr->mnt_userns == fs_userns) in can_idmap_mount() 4026 static inline bool mnt_allow_writers(const struct mount_kattr *kattr, in mnt_allow_writers() argument 4029 return (!(kattr->attr_set & MNT_READONLY) || in mnt_allow_writers() 4031 !kattr->mnt_userns; in mnt_allow_writers() 4034 static int mount_setattr_prepare(struct mount_kattr *kattr, struct mount *mnt) in mount_setattr_prepare() argument [all …]
|
/linux-6.1.9/lib/ |
D | kobject.c | 807 struct kobj_attribute *kattr; in kobj_attr_show() local 810 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show() 811 if (kattr->show) in kobj_attr_show() 812 ret = kattr->show(kobj, kattr, buf); in kobj_attr_show() 819 struct kobj_attribute *kattr; in kobj_attr_store() local 822 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store() 823 if (kattr->store) in kobj_attr_store() 824 ret = kattr->store(kobj, kattr, buf, count); in kobj_attr_store()
|
/linux-6.1.9/drivers/platform/x86/ |
D | think-lmi.c | 1053 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.1.9/include/linux/ |
D | bpf.h | 705 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr, 1363 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, 1995 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, 1997 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, 2000 const union bpf_attr *kattr, 2003 const union bpf_attr *kattr, 2006 const union bpf_attr *kattr, 2009 const union bpf_attr *kattr, 2245 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() argument 2252 const union bpf_attr *kattr, in bpf_prog_test_run_skb() argument [all …]
|
/linux-6.1.9/drivers/hid/ |
D | hid-cp2112.c | 955 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()
|
D | wacom_sys.c | 1850 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.1.9/fs/ntfs/ |
D | file.c | 109 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.1.9/kernel/sched/ |
D | core.c | 8030 struct sched_attr *kattr, in sched_attr_copy_to_user() argument 8033 unsigned int ksize = sizeof(*kattr); in sched_attr_copy_to_user() 8051 kattr->size = min(usize, ksize); in sched_attr_copy_to_user() 8053 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user() 8069 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local 8087 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4() 8089 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4() 8090 get_params(p, &kattr); in SYSCALL_DEFINE4() 8091 kattr.sched_flags &= SCHED_FLAG_ALL; in SYSCALL_DEFINE4() 8099 kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value; in SYSCALL_DEFINE4() [all …]
|
/linux-6.1.9/kernel/trace/ |
D | bpf_trace.c | 1972 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
|