Lines Matching refs:number_of_resources
566 uint32_t number_of_resources, in amdgpu_bo_list_create() argument
576 if (!number_of_resources) in amdgpu_bo_list_create()
580 if (number_of_resources > UINT32_MAX / sizeof(struct drm_amdgpu_bo_list_entry)) in amdgpu_bo_list_create()
583 list = malloc(number_of_resources * sizeof(struct drm_amdgpu_bo_list_entry)); in amdgpu_bo_list_create()
595 args.in.bo_number = number_of_resources; in amdgpu_bo_list_create()
599 for (i = 0; i < number_of_resources; i++) { in amdgpu_bo_list_create()
639 uint32_t number_of_resources, in amdgpu_bo_list_update() argument
648 if (!number_of_resources) in amdgpu_bo_list_update()
652 if (number_of_resources > UINT32_MAX / sizeof(struct drm_amdgpu_bo_list_entry)) in amdgpu_bo_list_update()
655 list = malloc(number_of_resources * sizeof(struct drm_amdgpu_bo_list_entry)); in amdgpu_bo_list_update()
661 args.in.bo_number = number_of_resources; in amdgpu_bo_list_update()
665 for (i = 0; i < number_of_resources; i++) { in amdgpu_bo_list_update()