Lines Matching refs:allocationLen
2341 bit32 allocationLen = 0;
2410 allocationLen = scsiCmnd->cdb[4];
2411 allocationLen = MIN(allocationLen, scsiCmnd->expDataLength);
2412 SM_DBG1(("smsatRequestSenseCB: allocationLen in CDB %d 0x%x!!!\n", allocationLen,allocationLen));
2495 sm_memcpy(pDataBuffer, pSense, MIN(SENSE_DATA_LENGTH, allocationLen));
2496 if (SENSE_DATA_LENGTH < allocationLen)
2502 allocationLen - SENSE_DATA_LENGTH,
2525 sm_memcpy(pDataBuffer, pSense, MIN(SENSE_DATA_LENGTH, allocationLen));
2527 if (SENSE_DATA_LENGTH < allocationLen)
2533 allocationLen - SENSE_DATA_LENGTH,
2576 sm_memcpy(pDataBuffer, pSense, MIN(SENSE_DATA_LENGTH, allocationLen));
2578 if (SENSE_DATA_LENGTH < allocationLen)
2584 allocationLen - SENSE_DATA_LENGTH,
2640 sm_memcpy(pDataBuffer, pSense, MIN(SENSE_DATA_LENGTH, allocationLen));
2642 if (SENSE_DATA_LENGTH < allocationLen)
2648 allocationLen - SENSE_DATA_LENGTH,
2699 sm_memcpy(pDataBuffer, pSense, MIN(SENSE_DATA_LENGTH, allocationLen));
2701 if (SENSE_DATA_LENGTH < allocationLen)
2707 allocationLen - SENSE_DATA_LENGTH,
2743 sm_memcpy(pDataBuffer, pSense, MIN(SENSE_DATA_LENGTH, allocationLen));
2745 if (SENSE_DATA_LENGTH < allocationLen)
2751 allocationLen - SENSE_DATA_LENGTH,
2791 sm_memcpy(pDataBuffer, pSense, MIN(SENSE_DATA_LENGTH, allocationLen));
2793 if (SENSE_DATA_LENGTH < allocationLen)
2799 allocationLen - SENSE_DATA_LENGTH,
2823 sm_memcpy(pDataBuffer, pSense, MIN(SENSE_DATA_LENGTH, allocationLen));
2825 if (SENSE_DATA_LENGTH < allocationLen)
2829 SENSE_DATA_LENGTH, allocationLen, smOrgIORequest));
2833 allocationLen - SENSE_DATA_LENGTH,
2860 sm_memcpy(pDataBuffer, pSense, MIN(SENSE_DATA_LENGTH, allocationLen));
4428 bit32 allocationLen = 0;
4604 allocationLen = (scsiCmnd->cdb[7] << 8) + scsiCmnd->cdb[8];
4605 allocationLen = MIN(allocationLen, scsiCmnd->expDataLength);
4606 SM_DBG5(("smsatLogSenseCB: allocationLen in CDB %d 0x%x\n", allocationLen,allocationLen));
4746 sm_memcpy(pLogPage, LogPage, MIN(allocationLen, SELFTEST_RESULTS_LOG_PAGE_LENGTH));
4747 if (SELFTEST_RESULTS_LOG_PAGE_LENGTH < allocationLen)
4749 SM_DBG6(("smsatLogSenseCB: 1st underrun allocationLen %d len %d \n", allocationLen, SELFTEST_RESULTS_LOG_PAGE_LENGTH));
4755 allocationLen - SELFTEST_RESULTS_LOG_PAGE_LENGTH,
4917 sm_memcpy(pLogPage, LogPage, MIN(allocationLen, SELFTEST_RESULTS_LOG_PAGE_LENGTH));
4918 if (SELFTEST_RESULTS_LOG_PAGE_LENGTH < allocationLen)
4920 SM_DBG6(("smsatLogSenseCB: 2nd underrun allocationLen %d len %d \n", allocationLen, SELFTEST_RESULTS_LOG_PAGE_LENGTH));
4926 allocationLen - SELFTEST_RESULTS_LOG_PAGE_LENGTH,
4983 sm_memcpy(pLogPage, LogPage, MIN(allocationLen, INFORMATION_EXCEPTIONS_LOG_PAGE_LENGTH));
4984 if (INFORMATION_EXCEPTIONS_LOG_PAGE_LENGTH < allocationLen)
4986 SM_DBG6(("smsatLogSenseCB: 3rd underrun allocationLen %d len %d \n", allocationLen, INFORMATION_EXCEPTIONS_LOG_PAGE_LENGTH));
4992 allocationLen - INFORMATION_EXCEPTIONS_LOG_PAGE_LENGTH,
6736 bit32 allocationLen = 0;
6847 allocationLen = (scsiCmnd->cdb[6] << (8*3)) + (scsiCmnd->cdb[7] << (8*2))
6849 allocationLen = MIN(allocationLen, scsiCmnd->expDataLength);
6850 SM_DBG5(("smsatReadMediaSerialNumberCB: allocationLen in CDB %d 0x%x\n", allocationLen,allocationLen));
6865 sm_memcpy(pMediaSerialNumber, MediaSerialNumber, MIN(allocationLen, ZERO_MEDIA_SERIAL_NUMBER_LENGTH));
6866 if (ZERO_MEDIA_SERIAL_NUMBER_LENGTH < allocationLen)
6868 SM_DBG1(("smsatReadMediaSerialNumberCB: 1st underrun allocationLen %d len %d !!!\n", allocationLen, ZERO_MEDIA_SERIAL_NUMBER_LENGTH));
6874 allocationLen - ZERO_MEDIA_SERIAL_NUMBER_LENGTH,
9616 bit32 allocationLen = 0;
9806 allocationLen = ((scsiCmnd->cdb[3]) << 8) + scsiCmnd->cdb[4];
9807 allocationLen = MIN(allocationLen, scsiCmnd->expDataLength);
9921 sm_memcpy(smOrgScsiRequest->sglVirtualAddr, dataBuffer, MIN(allocationLen, lenNeeded));
9922 if (allocationLen > lenNeeded)
9924 SM_DBG6(("smsatInquiryCB reporting underrun lenNeeded=0x%x allocationLen=0x%x smIORequest=%p\n",
9925 lenNeeded, allocationLen, smOrgIORequest));
9930 allocationLen - lenNeeded,
9972 bit32 allocationLen = 0;
9984 allocationLen = ((scsiCmnd->cdb[3]) << 8) + scsiCmnd->cdb[4];
9985 allocationLen = MIN(allocationLen, scsiCmnd->expDataLength);
10100 sm_memcpy(smScsiRequest->sglVirtualAddr, dataBuffer, MIN(allocationLen, lenNeeded));
10101 if (allocationLen > lenNeeded)
10103 SM_DBG6(("smsatInquiryIntCB reporting underrun lenNeeded=0x%x allocationLen=0x%x smIORequest=%p\n",
10104 lenNeeded, allocationLen, smIORequest));
10109 allocationLen - lenNeeded,