Lines Matching refs:buf1
208 char *buf1, *bp; in idtoname_parse() local
216 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in idtoname_parse()
217 if (buf1 == NULL) in idtoname_parse()
223 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse()
226 memcpy(ent.authname, buf1, sizeof(ent.authname)); in idtoname_parse()
229 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
231 ent.type = strcmp(buf1, "user") == 0 ? in idtoname_parse()
235 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
237 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse()
238 if (bp == buf1) in idtoname_parse()
253 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse()
259 memcpy(ent.name, buf1, sizeof(ent.name)); in idtoname_parse()
268 kfree(buf1); in idtoname_parse()
378 char *buf1; in nametoid_parse() local
385 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in nametoid_parse()
386 if (buf1 == NULL) in nametoid_parse()
392 len = qword_get(&buf, buf1, PAGE_SIZE); in nametoid_parse()
395 memcpy(ent.authname, buf1, sizeof(ent.authname)); in nametoid_parse()
398 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in nametoid_parse()
400 ent.type = strcmp(buf1, "user") == 0 ? in nametoid_parse()
404 len = qword_get(&buf, buf1, PAGE_SIZE); in nametoid_parse()
407 memcpy(ent.name, buf1, sizeof(ent.name)); in nametoid_parse()
432 kfree(buf1); in nametoid_parse()