| /linux/net/bpf/ |
| H A D | test_run.c | 436 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument 441 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish() 448 if (kattr->test.data_size_out && in bpf_test_finish() 449 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 450 copy_size = kattr->test.data_size_out; in bpf_test_finish() 663 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in BTF_ID_FLAGS() 666 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in BTF_ID_FLAGS() 686 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument 694 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_tracing() 783 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp() argument [all …]
|
| /linux/drivers/staging/greybus/ |
| H A 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/fs/ocfs2/ |
| H A 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/drivers/gpu/drm/xe/ |
| H A D | xe_hw_engine_class_sysfs.c | 45 struct kobj_attribute *kattr; in xe_hw_engine_class_sysfs_attr_show() local 47 kattr = container_of(attr, struct kobj_attribute, attr); in xe_hw_engine_class_sysfs_attr_show() 48 if (kattr->show) { in xe_hw_engine_class_sysfs_attr_show() 50 return kattr->show(kobj, kattr, buf); in xe_hw_engine_class_sysfs_attr_show() 62 struct kobj_attribute *kattr; in xe_hw_engine_class_sysfs_attr_store() local 64 kattr = container_of(attr, struct kobj_attribute, attr); in xe_hw_engine_class_sysfs_attr_store() 65 if (kattr->store) { in xe_hw_engine_class_sysfs_attr_store() 67 return kattr->store(kobj, kattr, buf, count); in xe_hw_engine_class_sysfs_attr_store()
|
| H A D | xe_gt_throttle.c | 136 struct kobj_attribute *kattr = container_of(*pother, struct kobj_attribute, attr); in reasons_show() local 137 struct throttle_attribute *other_ta = kobj_attribute_to_throttle(kattr); in reasons_show()
|
| /linux/lib/ |
| H A D | kobject.c | 823 struct kobj_attribute *kattr; in kobj_attr_show() local 826 kattr = container_of_const(attr, struct kobj_attribute, attr); in kobj_attr_show() 827 if (kattr->show) in kobj_attr_show() 828 ret = kattr->show(kobj, kattr, buf); in kobj_attr_show() 829 else if (kattr->show_const) in kobj_attr_show() 830 ret = kattr->show_const(kobj, kattr, buf); in kobj_attr_show() 837 struct kobj_attribute *kattr; in kobj_attr_store() 840 kattr in kobj_attr_store() 835 struct kobj_attribute *kattr; kobj_attr_store() local [all...] |
| /linux/kernel/sched/ |
| H A D | syscalls.c | 1063 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local 1086 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4() 1088 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4() 1089 get_params(p, &kattr, flags); in SYSCALL_DEFINE4() 1090 kattr.sched_flags &= SCHED_FLAG_ALL; in SYSCALL_DEFINE4() 1098 kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value; in SYSCALL_DEFINE4() 1099 kattr.sched_util_max = p->uclamp_req[UCLAMP_MAX].value; in SYSCALL_DEFINE4() 1103 kattr.size = min(usize, sizeof(kattr)); in SYSCALL_DEFINE4() 1104 return copy_struct_to_user(uattr, usize, &kattr, sizeof(kattr), NULL); in SYSCALL_DEFINE4()
|
| /linux/include/linux/ |
| H A D | bpf.h | 1137 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr, 2267 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, 3102 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, 3104 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, 3107 const union bpf_attr *kattr, 3110 const union bpf_attr *kattr, 3113 const union bpf_attr *kattr, 3116 const union bpf_attr *kattr, 3119 const union bpf_attr *kattr, 3454 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() argument [all …]
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 1817 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
|