Lines Matching refs:len

361                                  unsigned char *buffer, unsigned len) {  in do_scsi_page0_inquiry()  argument
364 memzero(buffer, len); in do_scsi_page0_inquiry()
365 retval = scsi_inquiry(dev_scsi, fd, 1, 0x0, buffer, len); in do_scsi_page0_inquiry()
373 if (buffer[3] > len) { in do_scsi_page0_inquiry()
428 int i, j, s, len; in check_fill_0x83_id() local
459 len = page_83[3]; in check_fill_0x83_id()
464 len *= 2; in check_fill_0x83_id()
469 len += 2; in check_fill_0x83_id()
471 len += VENDOR_LENGTH + MODEL_LENGTH; in check_fill_0x83_id()
473 if (max_len < len) { in check_fill_0x83_id()
475 dev_scsi->kernel, max_len, len); in check_fill_0x83_id()
552 char *serial, char *serial_short, int len, in do_scsi_page83_inquiry() argument
604 serial, serial_short, len); in do_scsi_page83_inquiry()
620 serial, serial_short, len, in do_scsi_page83_inquiry()
640 char *serial, char *serial_short, int len) { in do_scsi_page83_prespc3_inquiry() argument
704 int len; in do_scsi_page80_inquiry() local
717 len = 1 + VENDOR_LENGTH + MODEL_LENGTH + buf[3]; in do_scsi_page80_inquiry()
718 if (max_len < len) { in do_scsi_page80_inquiry()
720 dev_scsi->kernel, max_len, len); in do_scsi_page80_inquiry()
727 len = buf[3]; in do_scsi_page80_inquiry()
734 for (i = 4; i < len + 4; i++, ser_ind++) in do_scsi_page80_inquiry()
738 memcpy(serial_short, buf + 4, len); in do_scsi_page80_inquiry()
739 serial_short[len] = '\0'; in do_scsi_page80_inquiry()
784 int page_code, int len) { in scsi_get_serial() argument
791 memzero(dev_scsi->serial, len); in scsi_get_serial()
807 … if (do_scsi_page80_inquiry(dev_scsi, fd, dev_scsi->serial, dev_scsi->serial_short, len)) { in scsi_get_serial()
815 …csi_page83_inquiry(dev_scsi, fd, dev_scsi->serial, dev_scsi->serial_short, len, dev_scsi->unit_ser… in scsi_get_serial()
823 …tval = do_scsi_page83_prespc3_inquiry(dev_scsi, fd, dev_scsi->serial, dev_scsi->serial_short, len); in scsi_get_serial()
831 …csi_page83_inquiry(dev_scsi, fd, dev_scsi->serial, dev_scsi->serial_short, len, dev_scsi->unit_ser… in scsi_get_serial()
870 …dev_scsi->serial, dev_scsi->serial_short, len, dev_scsi->unit_serial_number, dev_scsi->wwn, dev_sc… in scsi_get_serial()
881 … dev_scsi->serial, dev_scsi->serial_short, len)) { in scsi_get_serial()