Lines Matching refs:user_array
515 #define iommu_copy_struct_from_user_array(kdst, user_array, data_type, index, \ argument
518 kdst, user_array, data_type, index, sizeof(*(kdst)), \
536 struct iommu_user_data_array *user_array, in iommu_copy_struct_from_full_user_array() argument
542 if (user_array->type != data_type) in iommu_copy_struct_from_full_user_array()
544 if (!user_array->entry_num) in iommu_copy_struct_from_full_user_array()
546 if (likely(user_array->entry_len == kdst_entry_size)) { in iommu_copy_struct_from_full_user_array()
547 if (copy_from_user(kdst, user_array->uptr, in iommu_copy_struct_from_full_user_array()
548 user_array->entry_num * in iommu_copy_struct_from_full_user_array()
549 user_array->entry_len)) in iommu_copy_struct_from_full_user_array()
554 for (i = 0; i != user_array->entry_num; i++) { in iommu_copy_struct_from_full_user_array()
557 user_array->uptr + user_array->entry_len * i, in iommu_copy_struct_from_full_user_array()
558 user_array->entry_len); in iommu_copy_struct_from_full_user_array()