Lines Matching refs:res
40 int res = 0;
46 if (res > (PAGE_SIZE - IFNAMSIZ)) {
48 if ((PAGE_SIZE - res) > 10)
49 res = PAGE_SIZE - 10;
50 res += sysfs_emit_at(buf, res, "++more++ ");
53 res += sysfs_emit_at(buf, res, "%s ", bond->dev->name);
55 if (res)
56 buf[res-1] = '\n'; /* eat the leftover space */
59 return res;
86 int rv, res = count;
102 res = rv;
114 res = -ENODEV;
123 return res;
171 int res = 0;
177 if (res > (PAGE_SIZE - IFNAMSIZ)) {
179 if ((PAGE_SIZE - res) > 10)
180 res = PAGE_SIZE - 10;
181 res += sysfs_emit_at(buf, res, "++more++ ");
184 res += sysfs_emit_at(buf, res, "%s ", slave->dev->name);
189 if (res)
190 buf[res-1] = '\n'; /* eat the leftover space */
192 return res;
291 int i, res = 0;
295 res += sysfs_emit_at(buf, res, "%pI4 ",
298 if (res)
299 buf[res-1] = '\n'; /* eat the leftover space */
301 return res;
627 int res = 0;
633 if (res > (PAGE_SIZE - IFNAMSIZ - 6)) {
635 if ((PAGE_SIZE - res) > 10)
636 res = PAGE_SIZE - 10;
637 res += sysfs_emit_at(buf, res, "++more++ ");
640 res += sysfs_emit_at(buf, res, "%s:%d ",
643 if (res)
644 buf[res-1] = '\n'; /* eat the leftover space */
648 return res;