Lines Matching refs:buf

76 static ssize_t show_version(struct device_driver *dev, char *buf)  in show_version()  argument
79 return scnprintf(buf, PAGE_SIZE, "%s", ib_ipath_version); in show_version()
82 static ssize_t show_num_units(struct device_driver *dev, char *buf) in show_num_units() argument
84 return scnprintf(buf, PAGE_SIZE, "%d\n", in show_num_units()
90 char *buf) in show_status() argument
100 ret = scnprintf(buf, PAGE_SIZE, "0x%llx\n", in show_status()
123 char *buf) in show_status_str() argument
136 *buf = '\0'; in show_status_str()
139 if (any && strlcat(buf, " ", PAGE_SIZE) >= in show_status_str()
143 if (strlcat(buf, ipath_status_str[i], in show_status_str()
151 strlcat(buf, "\n", PAGE_SIZE); in show_status_str()
153 ret = strlen(buf); in show_status_str()
161 char *buf) in show_boardversion() argument
165 return scnprintf(buf, PAGE_SIZE, "%s", dd->ipath_boardversion); in show_boardversion()
170 char *buf) in show_localbus_info() argument
174 return scnprintf(buf, PAGE_SIZE, "%s", dd->ipath_lbus_info); in show_localbus_info()
179 char *buf) in show_lmc() argument
183 return scnprintf(buf, PAGE_SIZE, "%u\n", dd->ipath_lmc); in show_lmc()
188 const char *buf, in store_lmc() argument
195 ret = ipath_parse_ushort(buf, &lmc); in store_lmc()
215 char *buf) in show_lid() argument
219 return scnprintf(buf, PAGE_SIZE, "0x%x\n", dd->ipath_lid); in show_lid()
224 const char *buf, in store_lid() argument
231 ret = ipath_parse_ushort(buf, &lid); in store_lid()
251 char *buf) in show_mlid() argument
255 return scnprintf(buf, PAGE_SIZE, "0x%x\n", dd->ipath_mlid); in show_mlid()
260 const char *buf, in store_mlid() argument
267 ret = ipath_parse_ushort(buf, &mlid); in store_mlid()
282 char *buf) in show_guid() argument
289 return scnprintf(buf, PAGE_SIZE, in show_guid()
297 const char *buf, in store_guid() argument
307 if (sscanf(buf, "%hx:%hx:%hx:%hx:%hx:%hx:%hx:%hx", in store_guid()
328 ret = strlen(buf); in store_guid()
341 char *buf) in show_nguid() argument
345 return scnprintf(buf, PAGE_SIZE, "%u\n", dd->ipath_nguid); in show_nguid()
350 char *buf) in show_nports() argument
355 return scnprintf(buf, PAGE_SIZE, "%u\n", dd->ipath_cfgports - 1); in show_nports()
360 char *buf) in show_serial() argument
364 buf[sizeof dd->ipath_serial] = '\0'; in show_serial()
365 memcpy(buf, dd->ipath_serial, sizeof dd->ipath_serial); in show_serial()
366 strcat(buf, "\n"); in show_serial()
367 return strlen(buf); in show_serial()
372 char *buf) in show_unit() argument
376 return scnprintf(buf, PAGE_SIZE, "%u\n", dd->ipath_unit); in show_unit()
381 char *buf) in show_jint_max_packets() argument
385 return scnprintf(buf, PAGE_SIZE, "%hu\n", dd->ipath_jint_max_packets); in show_jint_max_packets()
390 const char *buf, in store_jint_max_packets() argument
397 ret = ipath_parse_ushort(buf, &v); in store_jint_max_packets()
408 char *buf) in show_jint_idle_ticks() argument
412 return scnprintf(buf, PAGE_SIZE, "%hu\n", dd->ipath_jint_idle_ticks); in show_jint_idle_ticks()
417 const char *buf, in store_jint_idle_ticks() argument
424 ret = ipath_parse_ushort(buf, &v); in store_jint_idle_ticks()
436 char *buf) \
440 buf, PAGE_SIZE, "%llu\n", (unsigned long long) \
541 const char *buf, in store_reset() argument
547 if (count < 5 || memcmp(buf, "reset", 5)) { in store_reset()
570 const char *buf, in store_link_state() argument
577 ret = ipath_parse_ushort(buf, &state); in store_link_state()
596 char *buf) in show_mtu() argument
599 return scnprintf(buf, PAGE_SIZE, "%u\n", dd->ipath_ibmtu); in show_mtu()
604 const char *buf, in store_mtu() argument
612 ret = ipath_parse_ushort(buf, &mtu); in store_mtu()
629 char *buf) in show_enabled() argument
632 return scnprintf(buf, PAGE_SIZE, "%u\n", in show_enabled()
638 const char *buf, in store_enabled() argument
645 ret = ipath_parse_ushort(buf, &enable); in store_enabled()
679 const char *buf, in store_rx_pol_inv() argument
686 ret = ipath_parse_ushort(buf, &val); in store_rx_pol_inv()
705 const char *buf, in store_led_override() argument
712 ret = ipath_parse_ushort(buf, &val); in store_led_override()
722 char *buf) in show_logged_errs() argument
733 count += scnprintf(buf + count, PAGE_SIZE - count, "%d%c", in show_logged_errs()
749 char *buf) in show_hrtbt_enb() argument
756 ret = scnprintf(buf, PAGE_SIZE, "%d\n", ret); in show_hrtbt_enb()
762 const char *buf, in store_hrtbt_enb() argument
769 ret = ipath_parse_ushort(buf, &val); in store_hrtbt_enb()
802 char *buf) in show_lwid_enb() argument
809 ret = scnprintf(buf, PAGE_SIZE, "%d\n", ret); in show_lwid_enb()
815 const char *buf, in store_lwid_enb() argument
822 ret = ipath_parse_ushort(buf, &val); in store_lwid_enb()
842 char *buf) in show_lwid() argument
850 ret = scnprintf(buf, PAGE_SIZE, "%d\n", ret); in show_lwid()
859 char *buf) in show_spd_enb() argument
866 ret = scnprintf(buf, PAGE_SIZE, "%d\n", ret); in show_spd_enb()
872 const char *buf, in store_spd_enb() argument
879 ret = ipath_parse_ushort(buf, &val); in store_spd_enb()
899 char *buf) in show_spd() argument
906 ret = scnprintf(buf, PAGE_SIZE, "%d\n", ret); in show_spd()
915 char *buf) in show_rx_polinv_enb() argument
922 ret = scnprintf(buf, PAGE_SIZE, "%d\n", ret); in show_rx_polinv_enb()
928 const char *buf, in store_rx_polinv_enb() argument
935 ret = ipath_parse_ushort(buf, &val); in store_rx_polinv_enb()
956 char *buf) in show_lanerev_enb() argument
963 ret = scnprintf(buf, PAGE_SIZE, "%d\n", ret); in show_lanerev_enb()
969 const char *buf, in store_lanerev_enb() argument
976 ret = ipath_parse_ushort(buf, &val); in store_lanerev_enb()
1007 const char *buf, in store_tempsense() argument
1014 ret = ipath_parse_ushort(buf, &val); in store_tempsense()
1048 char *buf) in show_tempsense() argument
1065 ret = scnprintf(buf, PAGE_SIZE, "%d %d %02X %02X %d %d\n", in show_tempsense()