Lines Matching refs:SZ_SG_HEADER
206 #define SZ_SG_HEADER sizeof(struct sg_header)
360 if (sfp->force_packid && (count >= SZ_SG_HEADER)) {
361 old_hdr = kmalloc(SZ_SG_HEADER, GFP_KERNEL);
364 if (__copy_from_user(old_hdr, buf, SZ_SG_HEADER)) {
422 old_hdr = kmalloc(SZ_SG_HEADER, GFP_KERNEL);
428 memset(old_hdr, 0, SZ_SG_HEADER);
471 if (count >= SZ_SG_HEADER) {
472 if (__copy_to_user(buf, old_hdr, SZ_SG_HEADER)) {
476 buf += SZ_SG_HEADER;
479 if (count > SZ_SG_HEADER) {
480 if (sg_read_oxfer(srp, buf, count - SZ_SG_HEADER)) {
556 if (count < SZ_SG_HEADER)
558 if (__copy_from_user(&old_hdr, buf, SZ_SG_HEADER))
564 if (count < (SZ_SG_HEADER + 6))
571 buf += SZ_SG_HEADER;
592 mxsize -= SZ_SG_HEADER;
593 input_size -= SZ_SG_HEADER;
604 hp->dxfer_direction = (old_hdr.reply_len > SZ_SG_HEADER) ?
632 old_hdr.reply_len - (int)SZ_SG_HEADER,