Lines Matching full:job
208 * hl_hw_queue_send_cb_no_cmpl - send a single CB (not a JOB) without completion
230 * queues module when submitting a JOB to the CPU queue in hl_hw_queue_send_cb_no_cmpl()
261 * ext_queue_schedule_job - submit a JOB to an external queue
263 * @job: pointer to the job that needs to be submitted to the queue
268 static void ext_queue_schedule_job(struct hl_cs_job *job) in ext_queue_schedule_job() argument
270 struct hl_device *hdev = job->cs->ctx->hdev; in ext_queue_schedule_job()
271 struct hl_hw_queue *q = &hdev->kernel_queues[job->hw_queue_id]; in ext_queue_schedule_job()
281 * Update the JOB ID inside the BD CTL so the device would know what in ext_queue_schedule_job()
286 cb = job->patched_cb; in ext_queue_schedule_job()
287 len = job->job_cb_size; in ext_queue_schedule_job()
310 job->contains_dma_pkt); in ext_queue_schedule_job()
312 q->shadow_queue[hl_pi_2_offset(q->pi)] = job; in ext_queue_schedule_job()
320 * int_queue_schedule_job - submit a JOB to an internal queue
322 * @job: pointer to the job that needs to be submitted to the queue
327 static void int_queue_schedule_job(struct hl_cs_job *job) in int_queue_schedule_job() argument
329 struct hl_device *hdev = job->cs->ctx->hdev; in int_queue_schedule_job()
330 struct hl_hw_queue *q = &hdev->kernel_queues[job->hw_queue_id]; in int_queue_schedule_job()
335 bd.len = cpu_to_le32(job->job_cb_size); in int_queue_schedule_job()
336 bd.ptr = cpu_to_le64((u64) (uintptr_t) job->user_cb); in int_queue_schedule_job()
349 * hw_queue_schedule_job - submit a JOB to a H/W queue
351 * @job: pointer to the job that needs to be submitted to the queue
356 static void hw_queue_schedule_job(struct hl_cs_job *job) in hw_queue_schedule_job() argument
358 struct hl_device *hdev = job->cs->ctx->hdev; in hw_queue_schedule_job()
359 struct hl_hw_queue *q = &hdev->kernel_queues[job->hw_queue_id]; in hw_queue_schedule_job()
369 offset = job->cs->sequence & (hdev->asic_prop.max_pending_cs - 1); in hw_queue_schedule_job()
373 len = job->job_cb_size; in hw_queue_schedule_job()
381 if (job->patched_cb) in hw_queue_schedule_job()
382 ptr = job->patched_cb->bus_address; in hw_queue_schedule_job()
383 else if (job->is_kernel_allocated_cb) in hw_queue_schedule_job()
384 ptr = job->user_cb->bus_address; in hw_queue_schedule_job()
386 ptr = (u64) (uintptr_t) job->user_cb; in hw_queue_schedule_job()
406 struct hl_cs_job *job; in init_signal_wait_cs() local
409 /* There is only one job in a signal/wait CS */ in init_signal_wait_cs()
410 job = list_first_entry(&cs->job_list, struct hl_cs_job, in init_signal_wait_cs()
412 q_idx = job->hw_queue_id; in init_signal_wait_cs()
425 hdev->asic_funcs->gen_signal_cb(hdev, job->patched_cb, in init_signal_wait_cs()
463 hdev->asic_funcs->gen_wait_cb(hdev, job->patched_cb, in init_signal_wait_cs()
489 struct hl_cs_job *job, *tmp; in hl_hw_queue_schedule_cs() local
564 list_for_each_entry_safe(job, tmp, &cs->job_list, cs_node) in hl_hw_queue_schedule_cs()
565 switch (job->queue_type) { in hl_hw_queue_schedule_cs()
567 ext_queue_schedule_job(job); in hl_hw_queue_schedule_cs()
570 int_queue_schedule_job(job); in hl_hw_queue_schedule_cs()
573 hw_queue_schedule_job(job); in hl_hw_queue_schedule_cs()
827 * user context. It also means that if a job was submitted by in queue_fini()
828 * the kernel driver (e.g. context creation), the job itself was in queue_fini()