Lines Matching refs:buf1
203 char *buf1, *bp; in idtoname_parse() local
211 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in idtoname_parse()
212 if (buf1 == NULL) in idtoname_parse()
218 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse()
221 memcpy(ent.authname, buf1, sizeof(ent.authname)); in idtoname_parse()
224 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
226 ent.type = strcmp(buf1, "user") == 0 ? in idtoname_parse()
230 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
232 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse()
233 if (bp == buf1) in idtoname_parse()
248 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse()
254 memcpy(ent.name, buf1, sizeof(ent.name)); in idtoname_parse()
263 kfree(buf1); in idtoname_parse()
366 char *buf1; in nametoid_parse() local
373 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in nametoid_parse()
374 if (buf1 == NULL) in nametoid_parse()
380 len = qword_get(&buf, buf1, PAGE_SIZE); in nametoid_parse()
383 memcpy(ent.authname, buf1, sizeof(ent.authname)); in nametoid_parse()
386 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in nametoid_parse()
388 ent.type = strcmp(buf1, "user") == 0 ? in nametoid_parse()
392 len = qword_get(&buf, buf1, PAGE_SIZE); in nametoid_parse()
395 memcpy(ent.name, buf1, sizeof(ent.name)); in nametoid_parse()
420 kfree(buf1); in nametoid_parse()