Lines Matching refs:unmapSupport

200 	UnmapSupport* unmapSupport)
202 unmapSupport->commandSupportFilled = false;
213 unmapSupport->commandSupportFilled = true;
214 unmapSupport->unmapSupported = vpdProvisioning.lbpu;
215 unmapSupport->ws16Supported = vpdProvisioning.lbpws;
216 unmapSupport->ws10Supported = vpdProvisioning.lbpws10;
228 UnmapSupport* unmapSupport)
230 unmapSupport->blockLimitsFilled = false;
241 unmapSupport->blockLimitsFilled = true;
242 unmapSupport->maxUnmapLbaCount = B_BENDIAN_TO_HOST_INT32(
244 unmapSupport->maxUnmapDescriptorCount = B_BENDIAN_TO_HOST_INT32(
246 unmapSupport->maxWritesameLength = B_BENDIAN_TO_HOST_INT64(
258 determine_unmap_support(const UnmapSupport* unmapSupport,
263 if (unmapSupport->commandSupportFilled)
265 " LBPWS10 = %d\n", unmapSupport->unmapSupported,
266 unmapSupport->ws16Supported, unmapSupport->ws10Supported);
269 if (unmapSupport->blockLimitsFilled)
274 unmapSupport->maxUnmapLbaCount,
275 unmapSupport->maxUnmapDescriptorCount,
276 unmapSupport->maxWritesameLength);
285 if (!unmapSupport->commandSupportFilled
286 || !unmapSupport->blockLimitsFilled)
289 if (unmapSupport->unmapSupported
290 && unmapSupport->maxUnmapLbaCount > 0
291 && unmapSupport->maxUnmapDescriptorCount > 0) {
293 *maxLbaCount = unmapSupport->maxUnmapLbaCount;
294 if (unmapSupport->maxUnmapDescriptorCount == UINT32_MAX
295 || unmapSupport->maxUnmapDescriptorCount > UNMAP_MAX_DESCRIPTORS) {
299 *maxDescriptorCount = unmapSupport->maxUnmapDescriptorCount;
303 if (*unmapCommand == TRIM_NONE && unmapSupport->ws16Supported) {
304 uint64 maxLength = unmapSupport->maxWritesameLength;
307 if (unmapSupport->maxUnmapLbaCount > 0)
308 maxLength = unmapSupport->maxUnmapLbaCount;
317 if (*unmapCommand == TRIM_NONE && unmapSupport->ws10Supported) {
318 uint64 maxLength = unmapSupport->maxWritesameLength;
321 if (unmapSupport->maxUnmapLbaCount > 0)
322 maxLength = unmapSupport->maxUnmapLbaCount;
385 UnmapSupport unmapSupport = {0};
391 &unmapSupport);
398 &unmapSupport);
403 determine_unmap_support(&unmapSupport, &unmapCommand,