Lines Matching refs:buf1
200 char *buf1, *bp; in idtoname_parse() local
208 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in idtoname_parse()
209 if (buf1 == NULL) in idtoname_parse()
215 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse()
218 memcpy(ent.authname, buf1, sizeof(ent.authname)); in idtoname_parse()
221 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
223 ent.type = strcmp(buf1, "user") == 0 ? in idtoname_parse()
227 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
229 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse()
230 if (bp == buf1) in idtoname_parse()
245 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse()
251 memcpy(ent.name, buf1, sizeof(ent.name)); in idtoname_parse()
260 kfree(buf1); in idtoname_parse()
363 char *buf1; in nametoid_parse() local
370 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in nametoid_parse()
371 if (buf1 == NULL) in nametoid_parse()
377 len = qword_get(&buf, buf1, PAGE_SIZE); in nametoid_parse()
380 memcpy(ent.authname, buf1, sizeof(ent.authname)); in nametoid_parse()
383 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in nametoid_parse()
385 ent.type = strcmp(buf1, "user") == 0 ? in nametoid_parse()
389 len = qword_get(&buf, buf1, PAGE_SIZE); in nametoid_parse()
392 memcpy(ent.name, buf1, sizeof(ent.name)); in nametoid_parse()
417 kfree(buf1); in nametoid_parse()