/Linux-v5.4/net/bpf/ |
D | test_run.c | 76 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument 80 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish() 87 if (kattr->test.data_size_out && in bpf_test_finish() 88 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 89 copy_size = kattr->test.data_size_out; in bpf_test_finish() 108 static void *bpf_test_init(const union bpf_attr *kattr, u32 size, in bpf_test_init() argument 111 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in bpf_test_init() 128 static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) in bpf_ctx_init() argument 130 void __user *data_in = u64_to_user_ptr(kattr->test.ctx_in); in bpf_ctx_init() 131 void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out); in bpf_ctx_init() [all …]
|
/Linux-v5.4/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-v5.4/fs/ocfs2/ |
D | filecheck.c | 112 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()
|
/Linux-v5.4/lib/ |
D | kobject.c | 825 struct kobj_attribute *kattr; in kobj_attr_show() local 828 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show() 829 if (kattr->show) in kobj_attr_show() 830 ret = kattr->show(kobj, kattr, buf); in kobj_attr_show() 837 struct kobj_attribute *kattr; in kobj_attr_store() local 840 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store() 841 if (kattr->store) in kobj_attr_store() 842 ret = kattr->store(kobj, kattr, buf, count); in kobj_attr_store()
|
/Linux-v5.4/include/linux/ |
D | bpf.h | 301 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr, 743 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, 745 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, 748 const union bpf_attr *kattr, 861 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() argument 868 const union bpf_attr *kattr, in bpf_prog_test_run_skb() argument 875 const union bpf_attr *kattr, in bpf_prog_test_run_flow_dissector() argument
|
/Linux-v5.4/drivers/hid/ |
D | hid-cp2112.c | 947 struct device_attribute *kattr, const char *buf, in pstr_store() argument 952 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_store() 967 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, in pstr_store() 979 struct device_attribute *kattr, char *buf) in pstr_show() argument 983 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_show() 991 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, in pstr_show() 1000 kattr->attr.name, report.length); in pstr_show()
|
D | wacom_sys.c | 1821 struct kobj_attribute *kattr, in wacom_show_remote_mode() argument 1835 struct kobj_attribute *kattr, char *buf) \ 1837 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \
|
/Linux-v5.4/fs/ntfs/ |
D | file.c | 108 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()
|
/Linux-v5.4/kernel/sched/ |
D | core.c | 5304 struct sched_attr *kattr, in sched_attr_copy_to_user() argument 5307 unsigned int ksize = sizeof(*kattr); in sched_attr_copy_to_user() 5325 kattr->size = min(usize, ksize); in sched_attr_copy_to_user() 5327 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user() 5343 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local 5361 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4() 5363 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4() 5365 __getparam_dl(p, &kattr); in SYSCALL_DEFINE4() 5367 kattr.sched_priority = p->rt_priority; in SYSCALL_DEFINE4() 5369 kattr.sched_nice = task_nice(p); in SYSCALL_DEFINE4() [all …]
|