Lines Matching refs:oobbuf
173 ops.oobbuf = NULL; in mtdchar_read()
267 ops.oobbuf = NULL; in mtdchar_write()
365 ops.oobbuf = memdup_user(ptr, length); in mtdchar_writeoob()
366 if (IS_ERR(ops.oobbuf)) in mtdchar_writeoob()
367 return PTR_ERR(ops.oobbuf); in mtdchar_writeoob()
378 kfree(ops.oobbuf); in mtdchar_writeoob()
402 ops.oobbuf = kmalloc(length, GFP_KERNEL); in mtdchar_readoob()
403 if (!ops.oobbuf) in mtdchar_readoob()
411 else if (ops.oobretlen && copy_to_user(ptr, ops.oobbuf, in mtdchar_readoob()
415 kfree(ops.oobbuf); in mtdchar_readoob()
607 ops.oobbuf = memdup_user(usr_oob, ops.ooblen); in mtdchar_write_ioctl()
608 if (IS_ERR(ops.oobbuf)) { in mtdchar_write_ioctl()
610 return PTR_ERR(ops.oobbuf); in mtdchar_write_ioctl()
613 ops.oobbuf = NULL; in mtdchar_write_ioctl()
619 kfree(ops.oobbuf); in mtdchar_write_ioctl()