Lines Matching refs:buf

111 	ssize_t (*show)(struct pdcspath_entry *entry, char *buf);
112 ssize_t (*store)(struct pdcspath_entry *entry, const char *buf, size_t count);
234 pdcspath_hwpath_read(struct pdcspath_entry *entry, char *buf) in pdcspath_hwpath_read() argument
236 char *out = buf; in pdcspath_hwpath_read()
240 if (!entry || !buf) in pdcspath_hwpath_read()
258 return out - buf; in pdcspath_hwpath_read()
277 pdcspath_hwpath_write(struct pdcspath_entry *entry, const char *buf, size_t count) in pdcspath_hwpath_write() argument
285 if (!entry || !buf || !count) in pdcspath_hwpath_write()
290 strncpy(in, buf, count); in pdcspath_hwpath_write()
322 "hardware path: %s\n", __func__, entry->name, buf); in pdcspath_hwpath_write()
342 entry->name, buf); in pdcspath_hwpath_write()
355 pdcspath_layer_read(struct pdcspath_entry *entry, char *buf) in pdcspath_layer_read() argument
357 char *out = buf; in pdcspath_layer_read()
361 if (!entry || !buf) in pdcspath_layer_read()
377 return out - buf; in pdcspath_layer_read()
393 pdcspath_layer_write(struct pdcspath_entry *entry, const char *buf, size_t count) in pdcspath_layer_write() argument
399 if (!entry || !buf || !count) in pdcspath_layer_write()
404 strncpy(in, buf, count); in pdcspath_layer_write()
436 entry->name, buf); in pdcspath_layer_write()
448 pdcspath_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) in pdcspath_attr_show() argument
455 ret = pdcs_attr->show(entry, buf); in pdcspath_attr_show()
469 const char *buf, size_t count) in pdcspath_attr_store() argument
479 ret = pdcs_attr->store(entry, buf, count); in pdcspath_attr_store()
530 char *buf) in pdcs_size_read() argument
532 char *out = buf; in pdcs_size_read()
534 if (!buf) in pdcs_size_read()
540 return out - buf; in pdcs_size_read()
550 char *buf, int knob) in pdcs_auto_read() argument
552 char *out = buf; in pdcs_auto_read()
555 if (!buf) in pdcs_auto_read()
566 return out - buf; in pdcs_auto_read()
574 struct kobj_attribute *attr, char *buf) in pdcs_autoboot_read() argument
576 return pdcs_auto_read(kobj, attr, buf, PF_AUTOBOOT); in pdcs_autoboot_read()
584 struct kobj_attribute *attr, char *buf) in pdcs_autosearch_read() argument
586 return pdcs_auto_read(kobj, attr, buf, PF_AUTOSEARCH); in pdcs_autosearch_read()
596 struct kobj_attribute *attr, char *buf) in pdcs_timer_read() argument
598 char *out = buf; in pdcs_timer_read()
601 if (!buf) in pdcs_timer_read()
613 return out - buf; in pdcs_timer_read()
621 struct kobj_attribute *attr, char *buf) in pdcs_osid_read() argument
623 char *out = buf; in pdcs_osid_read()
625 if (!buf) in pdcs_osid_read()
631 return out - buf; in pdcs_osid_read()
641 struct kobj_attribute *attr, char *buf) in pdcs_osdep1_read() argument
643 char *out = buf; in pdcs_osdep1_read()
646 if (!buf) in pdcs_osdep1_read()
657 return out - buf; in pdcs_osdep1_read()
667 struct kobj_attribute *attr, char *buf) in pdcs_diagnostic_read() argument
669 char *out = buf; in pdcs_diagnostic_read()
672 if (!buf) in pdcs_diagnostic_read()
681 return out - buf; in pdcs_diagnostic_read()
691 struct kobj_attribute *attr, char *buf) in pdcs_fastsize_read() argument
693 char *out = buf; in pdcs_fastsize_read()
696 if (!buf) in pdcs_fastsize_read()
709 return out - buf; in pdcs_fastsize_read()
719 struct kobj_attribute *attr, char *buf) in pdcs_osdep2_read() argument
721 char *out = buf; in pdcs_osdep2_read()
731 if (!buf) in pdcs_osdep2_read()
741 return out - buf; in pdcs_osdep2_read()
755 struct kobj_attribute *attr, const char *buf, in pdcs_auto_write() argument
766 if (!buf || !count) in pdcs_auto_write()
771 strncpy(in, buf, count); in pdcs_auto_write()
828 const char *buf, size_t count) in pdcs_autoboot_write() argument
830 return pdcs_auto_write(kobj, attr, buf, count, PF_AUTOBOOT); in pdcs_autoboot_write()
844 const char *buf, size_t count) in pdcs_autosearch_write() argument
846 return pdcs_auto_write(kobj, attr, buf, count, PF_AUTOSEARCH); in pdcs_autosearch_write()
860 const char *buf, size_t count) in pdcs_osdep1_write() argument
867 if (!buf || !count) in pdcs_osdep1_write()
878 memcpy(in, buf, count); in pdcs_osdep1_write()
897 const char *buf, size_t count) in pdcs_osdep2_write() argument
906 if (!buf || !count) in pdcs_osdep2_write()
924 memcpy(in, buf+i, (count-i < 4) ? count-i : 4); in pdcs_osdep2_write()