Lines Matching defs:buf
205 idtoname_parse(struct cache_detail *cd, char *buf, int buflen)
212 if (buf[buflen - 1] != '\n')
214 buf[buflen - 1]= '\0';
223 len = qword_get(&buf, buf1, PAGE_SIZE);
229 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0)
235 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0)
242 ent.h.expiry_time = get_expiry(&buf);
253 len = qword_get(&buf, buf1, PAGE_SIZE);
375 nametoid_parse(struct cache_detail *cd, char *buf, int buflen)
381 if (buf[buflen - 1] != '\n')
383 buf[buflen - 1]= '\0';
392 len = qword_get(&buf, buf1, PAGE_SIZE);
398 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0)
404 len = qword_get(&buf, buf1, PAGE_SIZE);
410 ent.h.expiry_time = get_expiry(&buf);
415 error = get_int(&buf, &ent.id);
564 char buf[11];
568 len = sprintf(buf, "%u", id);
572 p = xdr_encode_opaque(p, buf, len);
607 char buf[11];
609 if (namelen + 1 > sizeof(buf))
613 memcpy(buf, name, namelen);
614 buf[namelen] = '\0';
615 ret = kstrtouint(buf, 10, id);