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()
399 char *buf) in bonding_show_miimon() argument
403 return sprintf(buf, "%d\n", bond->params.miimon); in bonding_show_miimon()
411 char *buf) in bonding_show_primary() argument
420 count = sprintf(buf, "%s\n", primary->dev->name); in bonding_show_primary()
431 char *buf) in bonding_show_primary_reselect() argument
439 return sprintf(buf, "%s %d\n", in bonding_show_primary_reselect()
448 char *buf) in bonding_show_carrier() argument
452 return sprintf(buf, "%d\n", bond->params.use_carrier); in bonding_show_carrier()
461 char *buf) in bonding_show_active_slave() argument
470 count = sprintf(buf, "%s\n", slave_dev->name); in bonding_show_active_slave()
481 char *buf) in bonding_show_mii_status() argument
486 return sprintf(buf, "%s\n", active ? "up" : "down"); in bonding_show_mii_status()
493 char *buf) in bonding_show_ad_aggregator() argument
500 count = sprintf(buf, "%d\n", in bonding_show_ad_aggregator()
513 char *buf) in bonding_show_ad_num_ports() argument
520 count = sprintf(buf, "%d\n", in bonding_show_ad_num_ports()
533 char *buf) in bonding_show_ad_actor_key() argument
540 count = sprintf(buf, "%d\n", in bonding_show_ad_actor_key()
553 char *buf) in bonding_show_ad_partner_key() argument
560 count = sprintf(buf, "%d\n", in bonding_show_ad_partner_key()
573 char *buf) in bonding_show_ad_partner_mac() argument
581 count = sprintf(buf, "%pM\n", ad_info.partner_system); in bonding_show_ad_partner_mac()
591 char *buf) in bonding_show_queue_id() argument
606 res += sprintf(buf + res, "++more++ "); in bonding_show_queue_id()
609 res += sprintf(buf + res, "%s:%d ", in bonding_show_queue_id()
613 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_queue_id()
626 char *buf) in bonding_show_slaves_active() argument
630 return sprintf(buf, "%d\n", bond->params.all_slaves_active); in bonding_show_slaves_active()
638 char *buf) in bonding_show_resend_igmp() argument
642 return sprintf(buf, "%d\n", bond->params.resend_igmp); in bonding_show_resend_igmp()
650 char *buf) in bonding_show_lp_interval() argument
654 return sprintf(buf, "%d\n", bond->params.lp_interval); in bonding_show_lp_interval()
661 char *buf) in bonding_show_tlb_dynamic_lb() argument
664 return sprintf(buf, "%d\n", bond->params.tlb_dynamic_lb); in bonding_show_tlb_dynamic_lb()
671 char *buf) in bonding_show_packets_per_slave() argument
676 return sprintf(buf, "%u\n", packets_per_slave); in bonding_show_packets_per_slave()
683 char *buf) in bonding_show_ad_actor_sys_prio() argument
688 return sprintf(buf, "%hu\n", bond->params.ad_actor_sys_prio); in bonding_show_ad_actor_sys_prio()
697 char *buf) in bonding_show_ad_actor_system() argument
702 return sprintf(buf, "%pM\n", bond->params.ad_actor_system); in bonding_show_ad_actor_system()
712 char *buf) in bonding_show_ad_user_port_key() argument
717 return sprintf(buf, "%hu\n", bond->params.ad_user_port_key); in bonding_show_ad_user_port_key()