Lines Matching refs:oobbuf
181 ops.oobbuf = NULL; in mtdchar_read()
275 ops.oobbuf = NULL; in mtdchar_write()
373 ops.oobbuf = memdup_user(ptr, length); in mtdchar_writeoob()
374 if (IS_ERR(ops.oobbuf)) in mtdchar_writeoob()
375 return PTR_ERR(ops.oobbuf); in mtdchar_writeoob()
386 kfree(ops.oobbuf); in mtdchar_writeoob()
410 ops.oobbuf = kmalloc(length, GFP_KERNEL); in mtdchar_readoob()
411 if (!ops.oobbuf) in mtdchar_readoob()
419 else if (ops.oobretlen && copy_to_user(ptr, ops.oobbuf, in mtdchar_readoob()
423 kfree(ops.oobbuf); in mtdchar_readoob()
615 ops.oobbuf = memdup_user(usr_oob, ops.ooblen); in mtdchar_write_ioctl()
616 if (IS_ERR(ops.oobbuf)) { in mtdchar_write_ioctl()
618 return PTR_ERR(ops.oobbuf); in mtdchar_write_ioctl()
621 ops.oobbuf = NULL; in mtdchar_write_ioctl()
627 kfree(ops.oobbuf); in mtdchar_write_ioctl()