Lines Matching refs:num_ibs
243 p->num_ibs++; in amdgpu_cs_parser_init()
269 p->ibs = kcalloc(p->num_ibs, sizeof(struct amdgpu_ib), GFP_KERNEL); in amdgpu_cs_parser_init()
516 for (i = 0; i < parser->num_ibs; i++) in amdgpu_cs_parser_fini()
593 if (parser->num_ibs == 0) in amdgpu_cs_ib_vm_chunk()
597 for (i = 0; i < parser->num_ibs; i++) { in amdgpu_cs_ib_vm_chunk()
631 for (i = 0, j = 0; i < parser->nchunks && j < parser->num_ibs; i++) { in amdgpu_cs_ib_fill()
702 if (!parser->num_ibs) in amdgpu_cs_ib_fill()
727 struct amdgpu_ib *ib = &parser->ibs[parser->num_ibs - 1]; in amdgpu_cs_ib_fill()
747 if (!p->num_ibs) in amdgpu_cs_dependencies()
805 for (i = 0; i < job->num_ibs; i++) in amdgpu_cs_free_job()
853 for (i = 0; i < parser.num_ibs; i++) in amdgpu_cs_ioctl()
860 if (amdgpu_enable_scheduler && parser.num_ibs) { in amdgpu_cs_ioctl()
878 job->num_ibs = parser.num_ibs; in amdgpu_cs_ioctl()
880 parser.num_ibs = 0; in amdgpu_cs_ioctl()
882 if (job->ibs[job->num_ibs - 1].user) { in amdgpu_cs_ioctl()
884 job->ibs[job->num_ibs - 1].user = &job->uf; in amdgpu_cs_ioctl()
901 job->ibs[job->num_ibs - 1].sequence = cs->out.handle; in amdgpu_cs_ioctl()
909 r = amdgpu_ib_schedule(adev, parser.num_ibs, parser.ibs, in amdgpu_cs_ioctl()
911 fence = parser.ibs[parser.num_ibs - 1].fence; in amdgpu_cs_ioctl()
913 cs->out.handle = parser.ibs[parser.num_ibs - 1].sequence; in amdgpu_cs_ioctl()