Lines Matching refs:buf1
201 char *buf1, *bp; in idtoname_parse() local
209 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in idtoname_parse()
210 if (buf1 == NULL) in idtoname_parse()
216 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse()
219 memcpy(ent.authname, buf1, sizeof(ent.authname)); in idtoname_parse()
222 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
224 ent.type = strcmp(buf1, "user") == 0 ? in idtoname_parse()
228 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
230 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse()
231 if (bp == buf1) in idtoname_parse()
246 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse()
252 memcpy(ent.name, buf1, sizeof(ent.name)); in idtoname_parse()
261 kfree(buf1); in idtoname_parse()
364 char *buf1; in nametoid_parse() local
371 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in nametoid_parse()
372 if (buf1 == NULL) in nametoid_parse()
378 len = qword_get(&buf, buf1, PAGE_SIZE); in nametoid_parse()
381 memcpy(ent.authname, buf1, sizeof(ent.authname)); in nametoid_parse()
384 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in nametoid_parse()
386 ent.type = strcmp(buf1, "user") == 0 ? in nametoid_parse()
390 len = qword_get(&buf, buf1, PAGE_SIZE); in nametoid_parse()
393 memcpy(ent.name, buf1, sizeof(ent.name)); in nametoid_parse()
418 kfree(buf1); in nametoid_parse()