Lines Matching refs:res

57 	int res = 0;  in bonding_show_bonds()  local
63 if (res > (PAGE_SIZE - IFNAMSIZ)) { in bonding_show_bonds()
65 if ((PAGE_SIZE - res) > 10) in bonding_show_bonds()
66 res = PAGE_SIZE - 10; in bonding_show_bonds()
67 res += sprintf(buf + res, "++more++ "); in bonding_show_bonds()
70 res += sprintf(buf + res, "%s ", bond->dev->name); in bonding_show_bonds()
72 if (res) in bonding_show_bonds()
73 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_bonds()
76 return res; in bonding_show_bonds()
103 int rv, res = count; in bonding_store_bonds() local
119 res = rv; in bonding_store_bonds()
131 res = -ENODEV; in bonding_store_bonds()
140 return res; in bonding_store_bonds()
183 int res = 0; in bonding_show_slaves() local
189 if (res > (PAGE_SIZE - IFNAMSIZ)) { in bonding_show_slaves()
191 if ((PAGE_SIZE - res) > 10) in bonding_show_slaves()
192 res = PAGE_SIZE - 10; in bonding_show_slaves()
193 res += sprintf(buf + res, "++more++ "); in bonding_show_slaves()
196 res += sprintf(buf + res, "%s ", slave->dev->name); in bonding_show_slaves()
201 if (res) in bonding_show_slaves()
202 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_slaves()
204 return res; in bonding_show_slaves()
304 int i, res = 0; in bonding_show_arp_targets() local
308 res += sprintf(buf + res, "%pI4 ", in bonding_show_arp_targets()
311 if (res) in bonding_show_arp_targets()
312 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_arp_targets()
314 return res; in bonding_show_arp_targets()
596 int res = 0; in bonding_show_queue_id() local
602 if (res > (PAGE_SIZE - IFNAMSIZ - 6)) { in bonding_show_queue_id()
604 if ((PAGE_SIZE - res) > 10) in bonding_show_queue_id()
605 res = PAGE_SIZE - 10; in bonding_show_queue_id()
606 res += sprintf(buf + res, "++more++ "); in bonding_show_queue_id()
609 res += sprintf(buf + res, "%s:%d ", in bonding_show_queue_id()
612 if (res) in bonding_show_queue_id()
613 buf[res-1] = '\n'; /* eat the leftover space */ in bonding_show_queue_id()
617 return res; in bonding_show_queue_id()