Lines Matching refs:number_of_resources
635 uint32_t number_of_resources, in amdgpu_bo_list_create() argument
645 if (!number_of_resources) in amdgpu_bo_list_create()
649 if (number_of_resources > UINT32_MAX / sizeof(struct drm_amdgpu_bo_list_entry)) in amdgpu_bo_list_create()
652 list = malloc(number_of_resources * sizeof(struct drm_amdgpu_bo_list_entry)); in amdgpu_bo_list_create()
664 args.in.bo_number = number_of_resources; in amdgpu_bo_list_create()
668 for (i = 0; i < number_of_resources; i++) { in amdgpu_bo_list_create()
708 uint32_t number_of_resources, in amdgpu_bo_list_update() argument
717 if (!number_of_resources) in amdgpu_bo_list_update()
721 if (number_of_resources > UINT32_MAX / sizeof(struct drm_amdgpu_bo_list_entry)) in amdgpu_bo_list_update()
724 list = malloc(number_of_resources * sizeof(struct drm_amdgpu_bo_list_entry)); in amdgpu_bo_list_update()
730 args.in.bo_number = number_of_resources; in amdgpu_bo_list_update()
734 for (i = 0; i < number_of_resources; i++) { in amdgpu_bo_list_update()