Lines Matching refs:noio

48 static void *dm_ima_alloc(size_t len, gfp_t flags, bool noio)  in dm_ima_alloc()  argument
53 if (noio) in dm_ima_alloc()
58 if (noio) in dm_ima_alloc()
68 char **dev_uuid, bool noio) in dm_ima_alloc_and_copy_name_uuid() argument
71 *dev_name = dm_ima_alloc(DM_NAME_LEN*2, GFP_KERNEL, noio); in dm_ima_alloc_and_copy_name_uuid()
77 *dev_uuid = dm_ima_alloc(DM_UUID_LEN*2, GFP_KERNEL, noio); in dm_ima_alloc_and_copy_name_uuid()
103 unsigned int num_targets, bool noio) in dm_ima_alloc_and_copy_device_data() argument
108 r = dm_ima_alloc_and_copy_name_uuid(md, &dev_name, &dev_uuid, noio); in dm_ima_alloc_and_copy_device_data()
112 *device_data = dm_ima_alloc(DM_IMA_DEVICE_BUF_LEN, GFP_KERNEL, noio); in dm_ima_alloc_and_copy_device_data()
132 bool noio) in dm_ima_measure_data() argument
136 if (noio) in dm_ima_measure_data()
142 if (noio) in dm_ima_measure_data()
150 bool noio) 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()
190 bool noio = false; in dm_ima_measure_on_table_load() local
198 ima_buf = dm_ima_alloc(DM_IMA_MEASUREMENT_BUF_LEN, GFP_KERNEL, noio); in dm_ima_measure_on_table_load()
202 target_metadata_buf = dm_ima_alloc(DM_IMA_TARGET_METADATA_BUF_LEN, GFP_KERNEL, noio); in dm_ima_measure_on_table_load()
206 target_data_buf = dm_ima_alloc(DM_IMA_TARGET_DATA_BUF_LEN, GFP_KERNEL, noio); in dm_ima_measure_on_table_load()
212 if (dm_ima_alloc_and_copy_device_data(table->md, &device_data_buf, num_targets, noio)) in dm_ima_measure_on_table_load()
221 digest = dm_ima_alloc(digest_size, GFP_KERNEL, noio); in dm_ima_measure_on_table_load()
273 dm_ima_measure_data(table_load_event_name, ima_buf, l, noio); in dm_ima_measure_on_table_load()
313 dm_ima_measure_data(table_load_event_name, ima_buf, l, noio); in dm_ima_measure_on_table_load()
329 digest_buf = dm_ima_alloc((digest_size*2) + hash_alg_prefix_len + 1, GFP_KERNEL, noio); in dm_ima_measure_on_table_load()
375 bool noio = true; 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()
383 r = dm_ima_alloc_and_copy_capacity_str(md, &capacity_str, noio); in dm_ima_measure_on_device_resume()
447 r = dm_ima_alloc_and_copy_name_uuid(md, &dev_name, &dev_uuid, noio); 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()
489 bool noio = true; 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()
497 r = dm_ima_alloc_and_copy_capacity_str(md, &capacity_str, noio); in dm_ima_measure_on_device_remove()
561 if (dm_ima_alloc_and_copy_name_uuid(md, &dev_name, &dev_uuid, noio)) 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()
611 bool noio = true; 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()
619 r = dm_ima_alloc_and_copy_capacity_str(md, &capacity_str, noio); in dm_ima_measure_on_table_clear()
647 if (dm_ima_alloc_and_copy_name_uuid(md, &dev_name, &dev_uuid, noio)) 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()
708 bool noio = true; in dm_ima_measure_on_device_rename() local
712 md->ima.active_table.num_targets, noio)) in dm_ima_measure_on_device_rename()
715 if (dm_ima_alloc_and_copy_name_uuid(md, &new_dev_name, &new_dev_uuid, noio)) in dm_ima_measure_on_device_rename()
718 combined_device_data = dm_ima_alloc(DM_IMA_DEVICE_BUF_LEN * 2, GFP_KERNEL, noio); in dm_ima_measure_on_device_rename()
722 r = dm_ima_alloc_and_copy_capacity_str(md, &capacity_str, noio); in dm_ima_measure_on_device_rename()
736 noio); in dm_ima_measure_on_device_rename()