Lines Matching refs:SZ_SG_HEADER
216 #define SZ_SG_HEADER sizeof(struct sg_header) macro
416 if (sfp->force_packid && (count >= SZ_SG_HEADER)) { in sg_read()
417 old_hdr = kmalloc(SZ_SG_HEADER, GFP_KERNEL); in sg_read()
420 if (__copy_from_user(old_hdr, buf, SZ_SG_HEADER)) { in sg_read()
473 old_hdr = kmalloc(SZ_SG_HEADER, GFP_KERNEL); in sg_read()
479 memset(old_hdr, 0, SZ_SG_HEADER); in sg_read()
522 if (count >= SZ_SG_HEADER) { in sg_read()
523 if (__copy_to_user(buf, old_hdr, SZ_SG_HEADER)) { in sg_read()
527 buf += SZ_SG_HEADER; in sg_read()
530 if (count > SZ_SG_HEADER) { in sg_read()
531 if (sg_read_oxfer(srp, buf, count - SZ_SG_HEADER)) { in sg_read()
607 if (count < SZ_SG_HEADER) in sg_write()
609 if (__copy_from_user(&old_hdr, buf, SZ_SG_HEADER)) in sg_write()
615 if (count < (SZ_SG_HEADER + 6)) in sg_write()
623 buf += SZ_SG_HEADER; in sg_write()
638 mxsize -= SZ_SG_HEADER; in sg_write()
639 input_size -= SZ_SG_HEADER; in sg_write()
650 hp->dxfer_direction = (old_hdr.reply_len > SZ_SG_HEADER) ? in sg_write()
680 old_hdr.reply_len - (int)SZ_SG_HEADER, in sg_write()