Lines Matching refs:length

345 	do { if (pos < buffer+length) pos += sprintf(pos, ## args); } while (0)
347 static int proc_info (char *buffer, char **start, off_t offset, int length, in proc_info() argument
355 return length; in proc_info()
399 else if ((pos - buffer - offset) < length) in proc_info()
402 return (length); in proc_info()
494 int length=0; in usb_stor_scsiSense10to6() local
507 &length ); in usb_stor_scsiSense10to6()
514 if ( outputBufferSize > length ) in usb_stor_scsiSense10to6()
520 outputBufferSize, length ); in usb_stor_scsiSense10to6()
522 outputBufferSize = length; in usb_stor_scsiSense10to6()
571 sgLength = sg[i].length; in usb_stor_scsiSense10to6()
599 si >= sg[sb].length || in usb_stor_scsiSense10to6()
601 di >= sg[db].length ) in usb_stor_scsiSense10to6()
612 if ( sg[db].length-1 == di ) in usb_stor_scsiSense10to6()
623 if ( sg[sb].length-1 == si ) in usb_stor_scsiSense10to6()
640 di >= sg[db].length ) in usb_stor_scsiSense10to6()
650 if ( sg[db].length-1 == di ) in usb_stor_scsiSense10to6()
673 int length=0; in usb_stor_scsiSense6to10() local
686 &length ); in usb_stor_scsiSense6to10()
693 if ( outputBufferSize > length ) in usb_stor_scsiSense6to10()
699 outputBufferSize, length ); in usb_stor_scsiSense6to10()
701 outputBufferSize = length; in usb_stor_scsiSense6to10()
740 for ( j=0; j<sg[i].length; j++ ) in usb_stor_scsiSense6to10()
753 j=sg[i].length; in usb_stor_scsiSense6to10()
761 element = length-1; in usb_stor_scsiSense6to10()
764 di=sg[db].length-1; in usb_stor_scsiSense6to10()
767 for ( j=sg[i].length-1; j>=0; j-- ) in usb_stor_scsiSense6to10()
770 if ( element == length - 1 in usb_stor_scsiSense6to10()
783 element = length-1 in usb_stor_scsiSense6to10()
803 di=sg[db].length-1; in usb_stor_scsiSense6to10()
814 si=sg[sb].length-1; in usb_stor_scsiSense6to10()
840 di=sg[db].length-1; in usb_stor_scsiSense6to10()
861 int length = 0; in usb_stor_scsiSenseParseBuffer() local
874 length += sg[i].length; in usb_stor_scsiSenseParseBuffer()
879 for ( j=0; j<sg[i].length; j++ ) in usb_stor_scsiSenseParseBuffer()
900 length = srb->request_bufflen; in usb_stor_scsiSenseParseBuffer()
902 if ( length < USB_STOR_SCSI_SENSE_10_HDRSZ ) in usb_stor_scsiSenseParseBuffer()
920 *length_p = length; in usb_stor_scsiSenseParseBuffer()