kattr             947 drivers/hid/hid-cp2112.c 			  struct device_attribute *kattr, const char *buf,
kattr             952 drivers/hid/hid-cp2112.c 		container_of(kattr, struct cp2112_pstring_attribute, attr);
kattr             967 drivers/hid/hid-cp2112.c 		hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name,
kattr             979 drivers/hid/hid-cp2112.c 			 struct device_attribute *kattr, char *buf)
kattr             983 drivers/hid/hid-cp2112.c 		container_of(kattr, struct cp2112_pstring_attribute, attr);
kattr             991 drivers/hid/hid-cp2112.c 		hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name,
kattr            1000 drivers/hid/hid-cp2112.c 			kattr->attr.name, report.length);
kattr            1823 drivers/hid/wacom_sys.c 				      struct kobj_attribute *kattr,
kattr            1837 drivers/hid/wacom_sys.c 			       struct kobj_attribute *kattr, char *buf)	\
kattr            1839 drivers/hid/wacom_sys.c 	return wacom_show_remote_mode(kobj, kattr, buf, SET_ID);	\
kattr              85 drivers/staging/greybus/audio_manager_sysfs.c 					 struct kobj_attribute *kattr)
kattr              89 drivers/staging/greybus/audio_manager_sysfs.c 	err = sysfs_create_file(kobj, &kattr->attr);
kattr              92 drivers/staging/greybus/audio_manager_sysfs.c 			kattr->attr.name, err);
kattr             108 fs/ntfs/file.c 	u8 *kattr;
kattr             159 fs/ntfs/file.c 	kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset);
kattr             160 fs/ntfs/file.c 	memset(kattr + attr_len, 0, new_init_size - attr_len);
kattr            1550 fs/ntfs/file.c 	char *kattr, *kaddr;
kattr            1608 fs/ntfs/file.c 	kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset);
kattr            1611 fs/ntfs/file.c 	memcpy(kattr + pos, kaddr + pos, bytes);
kattr            1623 fs/ntfs/file.c 			memcpy(kaddr, kattr, pos);
kattr            1625 fs/ntfs/file.c 			memcpy(kaddr + end, kattr + end, attr_len - end);
kattr             112 fs/ocfs2/filecheck.c 	struct kobj_attribute *kattr = container_of(attr,
kattr             116 fs/ocfs2/filecheck.c 	if (kattr->show)
kattr             117 fs/ocfs2/filecheck.c 		ret = kattr->show(kobj, kattr, buf);
kattr             127 fs/ocfs2/filecheck.c 	struct kobj_attribute *kattr = container_of(attr,
kattr             131 fs/ocfs2/filecheck.c 	if (kattr->store)
kattr             132 fs/ocfs2/filecheck.c 		ret = kattr->store(kobj, kattr, buf, count);
kattr             301 include/linux/bpf.h 	int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
kattr             743 include/linux/bpf.h int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
kattr             745 include/linux/bpf.h int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
kattr             748 include/linux/bpf.h 				     const union bpf_attr *kattr,
kattr             861 include/linux/bpf.h 					const union bpf_attr *kattr,
kattr             868 include/linux/bpf.h 					const union bpf_attr *kattr,
kattr             875 include/linux/bpf.h 						   const union bpf_attr *kattr,
kattr            5303 kernel/sched/core.c 			struct sched_attr *kattr,
kattr            5306 kernel/sched/core.c 	unsigned int ksize = sizeof(*kattr);
kattr            5324 kernel/sched/core.c 	kattr->size = min(usize, ksize);
kattr            5326 kernel/sched/core.c 	if (copy_to_user(uattr, kattr, kattr->size))
kattr            5342 kernel/sched/core.c 	struct sched_attr kattr = { };
kattr            5360 kernel/sched/core.c 	kattr.sched_policy = p->policy;
kattr            5362 kernel/sched/core.c 		kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK;
kattr            5364 kernel/sched/core.c 		__getparam_dl(p, &kattr);
kattr            5366 kernel/sched/core.c 		kattr.sched_priority = p->rt_priority;
kattr            5368 kernel/sched/core.c 		kattr.sched_nice = task_nice(p);
kattr            5371 kernel/sched/core.c 	kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value;
kattr            5372 kernel/sched/core.c 	kattr.sched_util_max = p->uclamp_req[UCLAMP_MAX].value;
kattr            5377 kernel/sched/core.c 	return sched_attr_copy_to_user(uattr, &kattr, usize);
kattr             825 lib/kobject.c  	struct kobj_attribute *kattr;
kattr             828 lib/kobject.c  	kattr = container_of(attr, struct kobj_attribute, attr);
kattr             829 lib/kobject.c  	if (kattr->show)
kattr             830 lib/kobject.c  		ret = kattr->show(kobj, kattr, buf);
kattr             837 lib/kobject.c  	struct kobj_attribute *kattr;
kattr             840 lib/kobject.c  	kattr = container_of(attr, struct kobj_attribute, attr);
kattr             841 lib/kobject.c  	if (kattr->store)
kattr             842 lib/kobject.c  		ret = kattr->store(kobj, kattr, buf, count);
kattr              76 net/bpf/test_run.c static int bpf_test_finish(const union bpf_attr *kattr,
kattr              80 net/bpf/test_run.c 	void __user *data_out = u64_to_user_ptr(kattr->test.data_out);
kattr              87 net/bpf/test_run.c 	if (kattr->test.data_size_out &&
kattr              88 net/bpf/test_run.c 	    copy_size > kattr->test.data_size_out) {
kattr              89 net/bpf/test_run.c 		copy_size = kattr->test.data_size_out;
kattr             108 net/bpf/test_run.c static void *bpf_test_init(const union bpf_attr *kattr, u32 size,
kattr             111 net/bpf/test_run.c 	void __user *data_in = u64_to_user_ptr(kattr->test.data_in);
kattr             128 net/bpf/test_run.c static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size)
kattr             130 net/bpf/test_run.c 	void __user *data_in = u64_to_user_ptr(kattr->test.ctx_in);
kattr             131 net/bpf/test_run.c 	void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out);
kattr             132 net/bpf/test_run.c 	u32 size = kattr->test.ctx_size_in;
kattr             159 net/bpf/test_run.c static int bpf_ctx_finish(const union bpf_attr *kattr,
kattr             163 net/bpf/test_run.c 	void __user *data_out = u64_to_user_ptr(kattr->test.ctx_out);
kattr             170 net/bpf/test_run.c 	if (copy_size > kattr->test.ctx_size_out) {
kattr             171 net/bpf/test_run.c 		copy_size = kattr->test.ctx_size_out;
kattr             241 net/bpf/test_run.c int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
kattr             245 net/bpf/test_run.c 	u32 size = kattr->test.data_size_in;
kattr             246 net/bpf/test_run.c 	u32 repeat = kattr->test.repeat;
kattr             255 net/bpf/test_run.c 	data = bpf_test_init(kattr, size, NET_SKB_PAD + NET_IP_ALIGN,
kattr             260 net/bpf/test_run.c 	ctx = bpf_ctx_init(kattr, sizeof(struct __sk_buff));
kattr             330 net/bpf/test_run.c 	ret = bpf_test_finish(kattr, uattr, skb->data, size, retval, duration);
kattr             332 net/bpf/test_run.c 		ret = bpf_ctx_finish(kattr, uattr, ctx,
kattr             342 net/bpf/test_run.c int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
kattr             345 net/bpf/test_run.c 	u32 size = kattr->test.data_size_in;
kattr             346 net/bpf/test_run.c 	u32 repeat = kattr->test.repeat;
kattr             353 net/bpf/test_run.c 	if (kattr->test.ctx_in || kattr->test.ctx_out)
kattr             356 net/bpf/test_run.c 	data = bpf_test_init(kattr, size, XDP_PACKET_HEADROOM + NET_IP_ALIGN, 0);
kattr             374 net/bpf/test_run.c 	ret = bpf_test_finish(kattr, uattr, xdp.data, size, retval, duration);
kattr             397 net/bpf/test_run.c 				     const union bpf_attr *kattr,
kattr             400 net/bpf/test_run.c 	u32 size = kattr->test.data_size_in;
kattr             402 net/bpf/test_run.c 	u32 repeat = kattr->test.repeat;
kattr             419 net/bpf/test_run.c 	data = bpf_test_init(kattr, size, 0, 0);
kattr             428 net/bpf/test_run.c 	user_ctx = bpf_ctx_init(kattr, sizeof(struct bpf_flow_keys));
kattr             478 net/bpf/test_run.c 	ret = bpf_test_finish(kattr, uattr, &flow_keys, sizeof(flow_keys),
kattr             481 net/bpf/test_run.c 		ret = bpf_ctx_finish(kattr, uattr, user_ctx,