Lines Matching refs:number_of_resources
573 uint32_t number_of_resources, in amdgpu_bo_list_create() argument
583 if (!number_of_resources) in amdgpu_bo_list_create()
587 if (number_of_resources > UINT32_MAX / sizeof(struct drm_amdgpu_bo_list_entry)) in amdgpu_bo_list_create()
590 list = malloc(number_of_resources * sizeof(struct drm_amdgpu_bo_list_entry)); in amdgpu_bo_list_create()
602 args.in.bo_number = number_of_resources; in amdgpu_bo_list_create()
606 for (i = 0; i < number_of_resources; i++) { in amdgpu_bo_list_create()
646 uint32_t number_of_resources, in amdgpu_bo_list_update() argument
655 if (!number_of_resources) in amdgpu_bo_list_update()
659 if (number_of_resources > UINT32_MAX / sizeof(struct drm_amdgpu_bo_list_entry)) in amdgpu_bo_list_update()
662 list = malloc(number_of_resources * sizeof(struct drm_amdgpu_bo_list_entry)); in amdgpu_bo_list_update()
668 args.in.bo_number = number_of_resources; in amdgpu_bo_list_update()
672 for (i = 0; i < number_of_resources; i++) { in amdgpu_bo_list_update()