Lines Matching refs:buf

20 				struct device_attribute *attr, char *buf)
26 return sysfs_emit(buf, "DOWN\n");
29 return sysfs_emit(buf, "UP (LAN %s)\n",
32 return sysfs_emit(buf, "SOFTSETUP\n");
34 return sysfs_emit(buf, "UNKNOWN\n");
41 struct device_attribute *attr, char *buf)
45 return sysfs_emit(buf, "%02X\n", card->info.chpid);
51 struct device_attribute *attr, char *buf)
55 return sysfs_emit(buf, "%s\n", netdev_name(card->dev));
61 struct device_attribute *attr, char *buf)
65 return sysfs_emit(buf, "%s\n", qeth_get_cardname_short(card));
85 struct device_attribute *attr, char *buf)
89 return sysfs_emit(buf, "%s\n", qeth_get_bufsize_str(card));
95 struct device_attribute *attr, char *buf)
99 return sysfs_emit(buf, "%i\n", card->dev->dev_port);
103 struct device_attribute *attr, const char *buf, size_t count)
109 rc = kstrtouint(buf, 16, &portno);
135 struct device_attribute *attr, char *buf)
137 return sysfs_emit(buf, "no portname required\n");
141 struct device_attribute *attr, const char *buf, size_t count)
154 struct device_attribute *attr, char *buf)
160 return sysfs_emit(buf, "%s\n", "by precedence");
162 return sysfs_emit(buf, "%s\n", "by type of service");
164 return sysfs_emit(buf, "%s\n", "by skb-priority");
166 return sysfs_emit(buf, "%s\n", "by VLAN headers");
168 return sysfs_emit(buf, "always queue %i\n",
171 return sysfs_emit(buf, "disabled\n");
176 struct device_attribute *attr, const char *buf, size_t count)
199 if (sysfs_streq(buf, "prio_queueing_prec")) {
202 } else if (sysfs_streq(buf, "prio_queueing_skb")) {
205 } else if (sysfs_streq(buf, "prio_queueing_tos")) {
208 } else if (sysfs_streq(buf, "prio_queueing_vlan")) {
215 } else if (sysfs_streq(buf, "no_prio_queueing:0")) {
218 } else if (sysfs_streq(buf, "no_prio_queueing:1")) {
221 } else if (sysfs_streq(buf, "no_prio_queueing:2")) {
224 } else if (sysfs_streq(buf, "no_prio_queueing:3")) {
227 } else if (sysfs_streq(buf, "no_prio_queueing")) {
241 struct device_attribute *attr, char *buf)
245 return sysfs_emit(buf, "%i\n", card->qdio.in_buf_pool.buf_count);
249 struct device_attribute *attr, const char *buf, size_t count)
255 rc = kstrtouint(buf, 10, &cnt);
277 struct device_attribute *attr, const char *buf, size_t count)
283 rc = kstrtobool(buf, &reset);
299 struct device_attribute *attr, char *buf)
301 return sysfs_emit(buf, "1\n");
305 struct device_attribute *attr, const char *buf, size_t count)
313 rc = kstrtobool(buf, &reset);
334 struct device_attribute *attr, char *buf)
338 return sysfs_emit(buf, "%i\n", card->options.layer);
342 struct device_attribute *attr, const char *buf, size_t count)
350 rc = kstrtouint(buf, 16, &input);
407 struct device_attribute *attr, char *buf)
413 return sysfs_emit(buf, "%s\n", ATTR_QETH_ISOLATION_NONE);
415 return sysfs_emit(buf, "%s\n", ATTR_QETH_ISOLATION_FWD);
417 return sysfs_emit(buf, "%s\n", ATTR_QETH_ISOLATION_DROP);
419 return sysfs_emit(buf, "%s\n", "N/A");
424 struct device_attribute *attr, const char *buf, size_t count)
439 if (sysfs_streq(buf, ATTR_QETH_ISOLATION_NONE)) {
441 } else if (sysfs_streq(buf, ATTR_QETH_ISOLATION_FWD)) {
443 } else if (sysfs_streq(buf, ATTR_QETH_ISOLATION_DROP)) {
466 struct device_attribute *attr, char *buf)
473 return sysfs_emit(buf, "n/a\n");
480 rc = sysfs_emit(buf, "unknown");
483 rc = sysfs_emit(buf,
487 rc += sysfs_emit_at(buf, rc,
491 rc += sysfs_emit_at(buf, rc, "\n");
500 struct device_attribute *attr, char *buf)
505 return sysfs_emit(buf, "arm\n");
507 return sysfs_emit(buf, "disarm\n");
511 struct device_attribute *attr, const char *buf, size_t count)
521 if (sysfs_streq(buf, "arm") && !card->info.hwtrap) {
532 } else if (sysfs_streq(buf, "disarm") && card->info.hwtrap) {
539 } else if (sysfs_streq(buf, "trap") && state && card->info.hwtrap)
552 const char *buf, size_t count, int *value, int max_value)
557 rc = kstrtouint(buf, 10, &input);
574 struct device_attribute *attr, char *buf)
578 return sysfs_emit(buf, "%i\n", card->info.blkt.time_total);
582 struct device_attribute *attr, const char *buf, size_t count)
586 return qeth_dev_blkt_store(card, buf, count,
594 struct device_attribute *attr, char *buf)
598 return sysfs_emit(buf, "%i\n", card->info.blkt.inter_packet);
602 struct device_attribute *attr, const char *buf, size_t count)
606 return qeth_dev_blkt_store(card, buf, count,
614 struct device_attribute *attr, char *buf)
618 return sysfs_emit(buf, "%i\n", card->info.blkt.inter_packet_jumbo);
622 struct device_attribute *attr, const char *buf, size_t count)
626 return qeth_dev_blkt_store(card, buf, count,