Lines Matching refs:user_array
500 #define iommu_copy_struct_from_user_array(kdst, user_array, data_type, index, \ argument
503 kdst, user_array, data_type, index, sizeof(*(kdst)), \
521 struct iommu_user_data_array *user_array, in iommu_copy_struct_from_full_user_array() argument
527 if (user_array->type != data_type) in iommu_copy_struct_from_full_user_array()
529 if (!user_array->entry_num) in iommu_copy_struct_from_full_user_array()
531 if (likely(user_array->entry_len == kdst_entry_size)) { in iommu_copy_struct_from_full_user_array()
532 if (copy_from_user(kdst, user_array->uptr, in iommu_copy_struct_from_full_user_array()
533 user_array->entry_num * in iommu_copy_struct_from_full_user_array()
534 user_array->entry_len)) in iommu_copy_struct_from_full_user_array()
539 for (i = 0; i != user_array->entry_num; i++) { in iommu_copy_struct_from_full_user_array()
542 user_array->uptr + user_array->entry_len * i, in iommu_copy_struct_from_full_user_array()
543 user_array->entry_len); in iommu_copy_struct_from_full_user_array()