Home
last modified time | relevance | path

Searched refs:SZ_SG_HEADER (Results 1 – 1 of 1) sorted by relevance

/linux-4.1.27/drivers/scsi/
Dsg.c216 #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()
[all …]