Lines Matching refs:needed
505 size_t len, needed = 0; in list_devices() local
517 needed += sizeof(struct dm_name_list); in list_devices()
518 needed += strlen(hc->name) + 1; in list_devices()
519 needed += ALIGN_MASK; in list_devices()
527 if (len < needed || len < sizeof(nl->dev)) { in list_devices()
531 param->data_size = param->data_start + needed; in list_devices()
560 size_t *needed = needed_param; in list_version_get_needed() local
562 *needed += sizeof(struct dm_target_versions); in list_version_get_needed()
563 *needed += strlen(tt->name); in list_version_get_needed()
564 *needed += ALIGN_MASK; in list_version_get_needed()
594 size_t len, needed = 0; in list_versions() local
602 dm_target_iterate(list_version_get_needed, &needed); in list_versions()
608 if (len < needed) { in list_versions()
612 param->data_size = param->data_start + needed; in list_versions()
1398 size_t len, needed; in retrieve_deps() local
1413 needed = sizeof(*deps) + (sizeof(*deps->dev) * count); in retrieve_deps()
1414 if (len < needed) { in retrieve_deps()
1427 param->data_size = param->data_start + needed; in retrieve_deps()