Lines Matching refs:device_table_data

371 	char *device_table_data, *dev_name = NULL, *dev_uuid = NULL, *capacity_str = NULL;  in dm_ima_measure_on_device_resume()  local
379 device_table_data = dm_ima_alloc(DM_IMA_DEVICE_BUF_LEN, GFP_KERNEL, noio); in dm_ima_measure_on_device_resume()
380 if (!device_table_data) in dm_ima_measure_on_device_resume()
387 memcpy(device_table_data + l, DM_IMA_VERSION_STR, md->ima.dm_version_str_len); in dm_ima_measure_on_device_resume()
425 memcpy(device_table_data + l, md->ima.active_table.device_metadata, in dm_ima_measure_on_device_resume()
433 memcpy(device_table_data + l, active, active_len); in dm_ima_measure_on_device_resume()
436 memcpy(device_table_data + l, md->ima.active_table.hash, in dm_ima_measure_on_device_resume()
440 memcpy(device_table_data + l, ";", 1); in dm_ima_measure_on_device_resume()
451 scnprintf(device_table_data, DM_IMA_DEVICE_BUF_LEN, in dm_ima_measure_on_device_resume()
454 l = strlen(device_table_data); in dm_ima_measure_on_device_resume()
459 memcpy(device_table_data + l, capacity_str, capacity_len); in dm_ima_measure_on_device_resume()
462 dm_ima_measure_data("dm_device_resume", device_table_data, l, noio); in dm_ima_measure_on_device_resume()
468 kfree(device_table_data); 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
493 device_table_data = dm_ima_alloc(DM_IMA_DEVICE_BUF_LEN*2, GFP_KERNEL, noio); in dm_ima_measure_on_device_remove()
494 if (!device_table_data) in dm_ima_measure_on_device_remove()
499 kfree(device_table_data); in dm_ima_measure_on_device_remove()
503 memcpy(device_table_data + l, DM_IMA_VERSION_STR, md->ima.dm_version_str_len); in dm_ima_measure_on_device_remove()
507 memcpy(device_table_data + l, device_active_str, device_active_len); in dm_ima_measure_on_device_remove()
510 memcpy(device_table_data + l, md->ima.active_table.device_metadata, in dm_ima_measure_on_device_remove()
518 memcpy(device_table_data + l, device_inactive_str, device_inactive_len); in dm_ima_measure_on_device_remove()
521 memcpy(device_table_data + l, md->ima.inactive_table.device_metadata, in dm_ima_measure_on_device_remove()
529 memcpy(device_table_data + l, active_table_str, active_table_len); in dm_ima_measure_on_device_remove()
532 memcpy(device_table_data + l, md->ima.active_table.hash, in dm_ima_measure_on_device_remove()
536 memcpy(device_table_data + l, ",", 1); in dm_ima_measure_on_device_remove()
543 memcpy(device_table_data + l, inactive_table_str, inactive_table_len); in dm_ima_measure_on_device_remove()
546 memcpy(device_table_data + l, md->ima.inactive_table.hash, in dm_ima_measure_on_device_remove()
550 memcpy(device_table_data + l, ",", 1); in dm_ima_measure_on_device_remove()
564 scnprintf(device_table_data, DM_IMA_DEVICE_BUF_LEN, in dm_ima_measure_on_device_remove()
567 l = strlen(device_table_data); in dm_ima_measure_on_device_remove()
570 memcpy(device_table_data + l, remove_all_str, remove_all_len); in dm_ima_measure_on_device_remove()
572 memcpy(device_table_data + l, remove_all ? "y;" : "n;", 2); in dm_ima_measure_on_device_remove()
576 memcpy(device_table_data + l, capacity_str, capacity_len); in dm_ima_measure_on_device_remove()
579 dm_ima_measure_data("dm_device_remove", device_table_data, l, noio); in dm_ima_measure_on_device_remove()
582 kfree(device_table_data); 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
615 device_table_data = dm_ima_alloc(DM_IMA_DEVICE_BUF_LEN, GFP_KERNEL, noio); in dm_ima_measure_on_table_clear()
616 if (!device_table_data) in dm_ima_measure_on_table_clear()
623 memcpy(device_table_data + l, DM_IMA_VERSION_STR, md->ima.dm_version_str_len); in dm_ima_measure_on_table_clear()
628 memcpy(device_table_data + l, md->ima.inactive_table.device_metadata, in dm_ima_measure_on_table_clear()
632 memcpy(device_table_data + l, inactive_str, inactive_len); in dm_ima_measure_on_table_clear()
635 memcpy(device_table_data + l, md->ima.inactive_table.hash, in dm_ima_measure_on_table_clear()
640 memcpy(device_table_data + l, ";", 1); in dm_ima_measure_on_table_clear()
650 scnprintf(device_table_data, DM_IMA_DEVICE_BUF_LEN, in dm_ima_measure_on_table_clear()
653 l = strlen(device_table_data); in dm_ima_measure_on_table_clear()
657 memcpy(device_table_data + l, capacity_str, capacity_len); in dm_ima_measure_on_table_clear()
660 dm_ima_measure_data("dm_table_clear", device_table_data, l, noio); in dm_ima_measure_on_table_clear()
698 kfree(device_table_data); in dm_ima_measure_on_table_clear()