Home
last modified time | relevance | path

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

/Linux-v4.19/net/bpf/
Dtest_run.c61 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument
65 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish()
81 static void *bpf_test_init(const union bpf_attr *kattr, u32 size, in bpf_test_init() argument
84 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in bpf_test_init()
101 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_prog_test_run_skb() argument
105 u32 size = kattr->test.data_size_in; in bpf_prog_test_run_skb()
106 u32 repeat = kattr->test.repeat; in bpf_prog_test_run_skb()
113 data = bpf_test_init(kattr, size, NET_SKB_PAD + NET_IP_ALIGN, in bpf_prog_test_run_skb()
164 ret = bpf_test_finish(kattr, uattr, skb->data, size, retval, duration); in bpf_prog_test_run_skb()
169 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_prog_test_run_xdp() argument
[all …]
/Linux-v4.19/drivers/staging/greybus/
Daudio_manager_sysfs.c85 struct kobject *kobj, 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-v4.19/fs/ocfs2/
Dfilecheck.c120 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_show() local
124 if (kattr->show) in ocfs2_filecheck_show()
125 ret = kattr->show(kobj, kattr, buf); in ocfs2_filecheck_show()
135 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_store() local
139 if (kattr->store) in ocfs2_filecheck_store()
140 ret = kattr->store(kobj, kattr, buf, count); in ocfs2_filecheck_store()
/Linux-v4.19/lib/
Dkobject.c794 struct kobj_attribute *kattr; in kobj_attr_show() local
797 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show()
798 if (kattr->show) in kobj_attr_show()
799 ret = kattr->show(kobj, kattr, buf); in kobj_attr_show()
806 struct kobj_attribute *kattr; in kobj_attr_store() local
809 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store()
810 if (kattr->store) in kobj_attr_store()
811 ret = kattr->store(kobj, kattr, buf, count); in kobj_attr_store()
/Linux-v4.19/drivers/hid/
Dhid-cp2112.c954 struct device_attribute *kattr, const char *buf, in pstr_store() argument
959 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_store()
974 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, in pstr_store()
986 struct device_attribute *kattr, char *buf) in pstr_show() argument
990 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_show()
998 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, in pstr_show()
1007 kattr->attr.name, report.length); in pstr_show()
Dwacom_sys.c1786 struct kobj_attribute *kattr, in wacom_show_remote_mode() argument
1800 struct kobj_attribute *kattr, char *buf) \
1802 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \
/Linux-v4.19/fs/ntfs/
Dfile.c122 u8 *kattr; in ntfs_attr_extend_initialized() local
173 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_attr_extend_initialized()
174 memset(kattr + attr_len, 0, new_init_size - attr_len); in ntfs_attr_extend_initialized()
1564 char *kattr, *kaddr; in ntfs_commit_pages_after_write() local
1622 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_commit_pages_after_write()
1625 memcpy(kattr + pos, kaddr + pos, bytes); in ntfs_commit_pages_after_write()
1637 memcpy(kaddr, kattr, pos); in ntfs_commit_pages_after_write()
1639 memcpy(kaddr + end, kattr + end, attr_len - end); in ntfs_commit_pages_after_write()
/Linux-v4.19/include/linux/
Dbpf.h232 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
341 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
343 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,