Lines Matching refs:oobbuf
195 ops.oobbuf = NULL; in mtdchar_read()
289 ops.oobbuf = NULL; in mtdchar_write()
389 ops.oobbuf = memdup_user(ptr, length); in mtdchar_writeoob()
390 if (IS_ERR(ops.oobbuf)) in mtdchar_writeoob()
391 return PTR_ERR(ops.oobbuf); in mtdchar_writeoob()
402 kfree(ops.oobbuf); in mtdchar_writeoob()
426 ops.oobbuf = kmalloc(length, GFP_KERNEL); in mtdchar_readoob()
427 if (!ops.oobbuf) in mtdchar_readoob()
435 else if (ops.oobretlen && copy_to_user(ptr, ops.oobbuf, in mtdchar_readoob()
439 kfree(ops.oobbuf); in mtdchar_readoob()
631 ops.oobbuf = memdup_user(usr_oob, ops.ooblen); in mtdchar_write_ioctl()
632 if (IS_ERR(ops.oobbuf)) { in mtdchar_write_ioctl()
634 return PTR_ERR(ops.oobbuf); in mtdchar_write_ioctl()
637 ops.oobbuf = NULL; in mtdchar_write_ioctl()
643 kfree(ops.oobbuf); in mtdchar_write_ioctl()