Lines Matching refs:buf
53 char *buf) in bonding_show_bonds() argument
67 res += sprintf(buf + res, "++more++ "); in bonding_show_bonds()
70 res += sprintf(buf + res, "%s ", bond->dev->name); in bonding_show_bonds()
73 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_bonds()
178 struct device_attribute *attr, char *buf) in bonding_show_slaves() argument
193 res += sprintf(buf + res, "++more++ "); in bonding_show_slaves()
196 res += sprintf(buf + res, "%s ", slave->dev->name); in bonding_show_slaves()
202 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_slaves()
211 struct device_attribute *attr, char *buf) in bonding_show_mode() argument
218 return sprintf(buf, "%s %d\n", val->string, BOND_MODE(bond)); in bonding_show_mode()
226 char *buf) in bonding_show_xmit_hash() argument
233 return sprintf(buf, "%s %d\n", val->string, bond->params.xmit_policy); in bonding_show_xmit_hash()
241 char *buf) in bonding_show_arp_validate() argument
249 return sprintf(buf, "%s %d\n", val->string, bond->params.arp_validate); in bonding_show_arp_validate()
257 char *buf) in bonding_show_arp_all_targets() argument
264 return sprintf(buf, "%s %d\n", in bonding_show_arp_all_targets()
273 char *buf) in bonding_show_fail_over_mac() argument
281 return sprintf(buf, "%s %d\n", val->string, bond->params.fail_over_mac); in bonding_show_fail_over_mac()
289 char *buf) in bonding_show_arp_interval() argument
293 return sprintf(buf, "%d\n", bond->params.arp_interval); in bonding_show_arp_interval()
301 char *buf) in bonding_show_arp_targets() argument
308 res += sprintf(buf + res, "%pI4 ", in bonding_show_arp_targets()
312 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_arp_targets()
322 char *buf) in bonding_show_downdelay() argument
326 return sprintf(buf, "%d\n", bond->params.downdelay * bond->params.miimon); in bonding_show_downdelay()
333 char *buf) in bonding_show_updelay() argument
337 return sprintf(buf, "%d\n", bond->params.updelay * bond->params.miimon); in bonding_show_updelay()
346 char *buf) in bonding_show_lacp() argument
353 return sprintf(buf, "%s %d\n", val->string, bond->params.lacp_fast); in bonding_show_lacp()
360 char *buf) in bonding_show_min_links() argument
364 return sprintf(buf, "%u\n", bond->params.min_links); in bonding_show_min_links()
371 char *buf) in bonding_show_ad_select() argument
378 return sprintf(buf, "%s %d\n", val->string, bond->params.ad_select); in bonding_show_ad_select()
386 char *buf) in bonding_show_num_peer_notif() argument
389 return sprintf(buf, "%d\n", bond->params.num_peer_notif); in bonding_show_num_peer_notif()
394 const char *buf, size_t count) in bonding_store_num_peer_notif() argument
399 ret = bond_opt_tryset_rtnl(bond, BOND_OPT_NUM_PEER_NOTIF, (char *)buf); in bonding_store_num_peer_notif()
413 char *buf) in bonding_show_miimon() argument
417 return sprintf(buf, "%d\n", bond->params.miimon); in bonding_show_miimon()
425 char *buf) in bonding_show_primary() argument
434 count = sprintf(buf, "%s\n", primary->dev->name); in bonding_show_primary()
445 char *buf) in bonding_show_primary_reselect() argument
453 return sprintf(buf, "%s %d\n", in bonding_show_primary_reselect()
462 char *buf) in bonding_show_carrier() argument
466 return sprintf(buf, "%d\n", bond->params.use_carrier); in bonding_show_carrier()
475 char *buf) in bonding_show_active_slave() argument
484 count = sprintf(buf, "%s\n", slave_dev->name); in bonding_show_active_slave()
495 char *buf) in bonding_show_mii_status() argument
500 return sprintf(buf, "%s\n", active ? "up" : "down"); in bonding_show_mii_status()
507 char *buf) in bonding_show_ad_aggregator() argument
514 count = sprintf(buf, "%d\n", in bonding_show_ad_aggregator()
527 char *buf) in bonding_show_ad_num_ports() argument
534 count = sprintf(buf, "%d\n", in bonding_show_ad_num_ports()
547 char *buf) in bonding_show_ad_actor_key() argument
554 count = sprintf(buf, "%d\n", in bonding_show_ad_actor_key()
567 char *buf) in bonding_show_ad_partner_key() argument
574 count = sprintf(buf, "%d\n", in bonding_show_ad_partner_key()
587 char *buf) in bonding_show_ad_partner_mac() argument
595 count = sprintf(buf, "%pM\n", ad_info.partner_system); in bonding_show_ad_partner_mac()
605 char *buf) in bonding_show_queue_id() argument
620 res += sprintf(buf + res, "++more++ "); in bonding_show_queue_id()
623 res += sprintf(buf + res, "%s:%d ", in bonding_show_queue_id()
627 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_queue_id()
640 char *buf) in bonding_show_slaves_active() argument
644 return sprintf(buf, "%d\n", bond->params.all_slaves_active); in bonding_show_slaves_active()
652 char *buf) in bonding_show_resend_igmp() argument
656 return sprintf(buf, "%d\n", bond->params.resend_igmp); in bonding_show_resend_igmp()
664 char *buf) in bonding_show_lp_interval() argument
668 return sprintf(buf, "%d\n", bond->params.lp_interval); in bonding_show_lp_interval()
675 char *buf) in bonding_show_tlb_dynamic_lb() argument
678 return sprintf(buf, "%d\n", bond->params.tlb_dynamic_lb); in bonding_show_tlb_dynamic_lb()
685 char *buf) in bonding_show_packets_per_slave() argument
690 return sprintf(buf, "%u\n", packets_per_slave); in bonding_show_packets_per_slave()