Lines Matching refs:oobbuf
191 ops.oobbuf = NULL; in mtdchar_read()
285 ops.oobbuf = NULL; in mtdchar_write()
394 ops.oobbuf = memdup_user(ptr, length); in mtdchar_writeoob()
395 if (IS_ERR(ops.oobbuf)) in mtdchar_writeoob()
396 return PTR_ERR(ops.oobbuf); in mtdchar_writeoob()
407 kfree(ops.oobbuf); in mtdchar_writeoob()
434 ops.oobbuf = kmalloc(length, GFP_KERNEL); in mtdchar_readoob()
435 if (!ops.oobbuf) in mtdchar_readoob()
443 else if (ops.oobretlen && copy_to_user(ptr, ops.oobbuf, in mtdchar_readoob()
447 kfree(ops.oobbuf); in mtdchar_readoob()
569 ops.oobbuf = memdup_user(usr_oob, ops.ooblen); in mtdchar_write_ioctl()
570 if (IS_ERR(ops.oobbuf)) { in mtdchar_write_ioctl()
572 return PTR_ERR(ops.oobbuf); in mtdchar_write_ioctl()
575 ops.oobbuf = NULL; in mtdchar_write_ioctl()
581 kfree(ops.oobbuf); in mtdchar_write_ioctl()