Lines Matching refs:capacity_str

149 static int dm_ima_alloc_and_copy_capacity_str(struct mapped_device *md, char **capacity_str,  in dm_ima_alloc_and_copy_capacity_str()  argument
156 *capacity_str = dm_ima_alloc(DM_IMA_DEVICE_CAPACITY_BUF_LEN, GFP_KERNEL, noio); in dm_ima_alloc_and_copy_capacity_str()
157 if (!(*capacity_str)) in dm_ima_alloc_and_copy_capacity_str()
160 scnprintf(*capacity_str, DM_IMA_DEVICE_BUF_LEN, "current_device_capacity=%llu;", in dm_ima_alloc_and_copy_capacity_str()
371 char *device_table_data, *dev_name = NULL, *dev_uuid = NULL, *capacity_str = NULL; in dm_ima_measure_on_device_resume() local
383 r = dm_ima_alloc_and_copy_capacity_str(md, &capacity_str, noio); in dm_ima_measure_on_device_resume()
458 capacity_len = strlen(capacity_str); in dm_ima_measure_on_device_resume()
459 memcpy(device_table_data + l, capacity_str, capacity_len); in dm_ima_measure_on_device_resume()
467 kfree(capacity_str); in dm_ima_measure_on_device_resume()
476 char *device_table_data, *dev_name = NULL, *dev_uuid = NULL, *capacity_str = NULL; in dm_ima_measure_on_device_remove() local
497 r = dm_ima_alloc_and_copy_capacity_str(md, &capacity_str, noio); in dm_ima_measure_on_device_remove()
575 capacity_len = strlen(capacity_str); in dm_ima_measure_on_device_remove()
576 memcpy(device_table_data + l, capacity_str, capacity_len); in dm_ima_measure_on_device_remove()
583 kfree(capacity_str); in dm_ima_measure_on_device_remove()
608 char *device_table_data = NULL, *dev_name = NULL, *dev_uuid = NULL, *capacity_str = NULL; in dm_ima_measure_on_table_clear() local
619 r = dm_ima_alloc_and_copy_capacity_str(md, &capacity_str, noio); in dm_ima_measure_on_table_clear()
656 capacity_len = strlen(capacity_str); in dm_ima_measure_on_table_clear()
657 memcpy(device_table_data + l, capacity_str, capacity_len); in dm_ima_measure_on_table_clear()
696 kfree(capacity_str); in dm_ima_measure_on_table_clear()
707 char *new_dev_name = NULL, *new_dev_uuid = NULL, *capacity_str = NULL; in dm_ima_measure_on_device_rename() local
722 r = dm_ima_alloc_and_copy_capacity_str(md, &capacity_str, noio); in dm_ima_measure_on_device_rename()
733 new_dev_name, new_dev_uuid, capacity_str); in dm_ima_measure_on_device_rename()
743 kfree(capacity_str); in dm_ima_measure_on_device_rename()