Searched refs:user_array (Results 1 – 1 of 1) sorted by relevance
| /linux/include/linux/ |
| H A D | iommu.h | 542 #define iommu_copy_struct_from_user_array(kdst, user_array, data_type, index, \ argument 545 kdst, user_array, data_type, index, sizeof(*(kdst)), \ 563 struct iommu_user_data_array *user_array, in iommu_copy_struct_from_full_user_array() argument 569 if (user_array->type != data_type) in iommu_copy_struct_from_full_user_array() 571 if (!user_array->entry_num) in iommu_copy_struct_from_full_user_array() 573 if (likely(user_array->entry_len == kdst_entry_size)) { in iommu_copy_struct_from_full_user_array() 574 if (copy_from_user(kdst, user_array->uptr, in iommu_copy_struct_from_full_user_array() 575 user_array->entry_num * in iommu_copy_struct_from_full_user_array() 576 user_array->entry_len)) in iommu_copy_struct_from_full_user_array() 582 for (i = 0; i != user_array->entry_num; i++) { in iommu_copy_struct_from_full_user_array() [all …]
|