Lines Matching refs:usr_data
598 const void __user *usr_data, *usr_oob; in mtdchar_write_ioctl() local
606 usr_data = (const void __user *)(uintptr_t)req.usr_data; in mtdchar_write_ioctl()
612 if (!usr_data) in mtdchar_write_ioctl()
640 while (req.len > 0 || (!usr_data && req.ooblen > 0)) { in mtdchar_write_ioctl()
667 if (copy_from_user(datbuf, usr_data, ops.len) || in mtdchar_write_ioctl()
679 usr_data += ops.retlen; in mtdchar_write_ioctl()
696 void __user *usr_data, *usr_oob; in mtdchar_read_ioctl() local
708 usr_data = (void __user *)(uintptr_t)req.usr_data; in mtdchar_read_ioctl()
714 if (!usr_data) in mtdchar_read_ioctl()
750 while (req.len > 0 || (!usr_data && req.ooblen > 0)) { in mtdchar_read_ioctl()
782 if (copy_to_user(usr_data, ops.datbuf, ops.retlen) || in mtdchar_read_ioctl()
790 usr_data += ops.retlen; in mtdchar_read_ioctl()