Searched refs:kattr (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/lib/
H A Dkobject.c778 struct kobj_attribute *kattr; kobj_attr_show() local
781 kattr = container_of(attr, struct kobj_attribute, attr); kobj_attr_show()
782 if (kattr->show) kobj_attr_show()
783 ret = kattr->show(kobj, kattr, buf); kobj_attr_show()
790 struct kobj_attribute *kattr; kobj_attr_store() local
793 kattr = container_of(attr, struct kobj_attribute, attr); kobj_attr_store()
794 if (kattr->store) kobj_attr_store()
795 ret = kattr->store(kobj, kattr, buf, count); kobj_attr_store()
/linux-4.4.14/drivers/hid/
H A Dhid-cp2112.c887 struct device_attribute *kattr, const char *buf, pstr_store()
892 container_of(kattr, struct cp2112_pstring_attribute, attr); pstr_store()
907 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, pstr_store()
919 struct device_attribute *kattr, char *buf) pstr_show()
923 container_of(kattr, struct cp2112_pstring_attribute, attr); pstr_show()
931 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, pstr_show()
940 kattr->attr.name, report.length); pstr_show()
886 pstr_store(struct device *kdev, struct device_attribute *kattr, const char *buf, size_t count) pstr_store() argument
918 pstr_show(struct device *kdev, struct device_attribute *kattr, char *buf) pstr_show() argument
H A Dwacom_sys.c1130 struct kobj_attribute *kattr, wacom_show_remote_mode()
1147 struct kobj_attribute *kattr, char *buf) \
1149 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \
1129 wacom_show_remote_mode(struct kobject *kobj, struct kobj_attribute *kattr, char *buf, int index) wacom_show_remote_mode() argument
/linux-4.4.14/fs/ntfs/
H A Dfile.c122 u8 *kattr; ntfs_attr_extend_initialized() local
173 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); ntfs_attr_extend_initialized()
174 memset(kattr + attr_len, 0, new_init_size - attr_len); ntfs_attr_extend_initialized()
1565 char *kattr, *kaddr; ntfs_commit_pages_after_write() local
1623 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); ntfs_commit_pages_after_write()
1626 memcpy(kattr + pos, kaddr + pos, bytes); ntfs_commit_pages_after_write()
1638 memcpy(kaddr, kattr, pos); ntfs_commit_pages_after_write()
1640 memcpy(kaddr + end, kattr + end, attr_len - end); ntfs_commit_pages_after_write()

Completed in 309 milliseconds