Lines Matching defs:ubuf
2033 static int cdrom_read_cdda_old(struct cdrom_device_info *cdi, __u8 __user *ubuf,
2059 if (!access_ok(VERIFY_WRITE, ubuf, nframes * CD_FRAMESIZE_RAW)) {
2072 if (__copy_to_user(ubuf, cgc.buffer, CD_FRAMESIZE_RAW * nr)) {
2076 ubuf += CD_FRAMESIZE_RAW * nr;
2085 static int cdrom_read_cdda_bpc(struct cdrom_device_info *cdi, __u8 __user *ubuf,
2114 ret = blk_rq_map_user(q, rq, NULL, ubuf, len, GFP_KERNEL);
2151 ubuf += len;
2157 static int cdrom_read_cdda(struct cdrom_device_info *cdi, __u8 __user *ubuf,
2163 return cdrom_read_cdda_old(cdi, ubuf, lba, nframes);
2169 ret = cdrom_read_cdda_bpc(cdi, ubuf, lba, nframes);
2193 return cdrom_read_cdda_old(cdi, ubuf, lba, nframes);