Lines Matching refs:SZ_SG_IO_HDR
217 #define SZ_SG_IO_HDR sizeof(sg_io_hdr_t) macro
425 if (count >= SZ_SG_IO_HDR) { in sg_read()
427 new_hdr = kmalloc(SZ_SG_IO_HDR, GFP_KERNEL); in sg_read()
433 (new_hdr, buf, SZ_SG_IO_HDR); in sg_read()
552 if (count < SZ_SG_IO_HDR) { in sg_new_read()
573 if (copy_to_user(buf, hp, SZ_SG_IO_HDR)) { in sg_new_read()
702 if (count < SZ_SG_IO_HDR) in sg_new_write()
715 if (__copy_from_user(hp, buf, SZ_SG_IO_HDR)) { in sg_new_write()
855 if (!access_ok(VERIFY_WRITE, p, SZ_SG_IO_HDR)) in sg_ioctl()
857 result = sg_new_write(sfp, filp, p, SZ_SG_IO_HDR, in sg_ioctl()
869 result = sg_new_read(sfp, p, SZ_SG_IO_HDR, srp); in sg_ioctl()