Lines Matching defs:hdev

17  * @hdev:             pointer to device structure
22 struct hl_device *hdev;
62 struct hl_device *hdev = eqe_work->hdev;
64 hdev->asic_funcs->handle_eqe(hdev, &eqe_work->eq_entry);
79 struct hl_device *hdev = cq->hdev;
86 if (hdev->disabled) {
87 dev_dbg(hdev->dev,
118 queue = &hdev->kernel_queues[cq->hw_queue_id];
120 if ((shadow_index_valid) && (!hdev->disabled)) {
122 queue_work(hdev->cq_wq[cq->cq_idx], &job->finish_work);
150 struct hl_device *hdev = eq->hdev;
173 if (hdev->disabled) {
174 dev_warn(hdev->dev,
183 handle_eqe_work->hdev = hdev;
188 queue_work(hdev->eq_wq, &handle_eqe_work->eq_work);
198 hdev->asic_funcs->update_eq_ci(hdev, eq->ci);
207 * @hdev: pointer to device structure
214 int hl_cq_init(struct hl_device *hdev, struct hl_cq *q, u32 hw_queue_id)
218 p = hdev->asic_funcs->asic_dma_alloc_coherent(hdev, HL_CQ_SIZE_IN_BYTES,
223 q->hdev = hdev;
237 * @hdev: pointer to device structure
242 void hl_cq_fini(struct hl_device *hdev, struct hl_cq *q)
244 hdev->asic_funcs->asic_dma_free_coherent(hdev, HL_CQ_SIZE_IN_BYTES,
249 void hl_cq_reset(struct hl_device *hdev, struct hl_cq *q)
269 * @hdev: pointer to device structure
275 int hl_eq_init(struct hl_device *hdev, struct hl_eq *q)
279 p = hdev->asic_funcs->cpu_accessible_dma_pool_alloc(hdev,
285 q->hdev = hdev;
295 * @hdev: pointer to device structure
300 void hl_eq_fini(struct hl_device *hdev, struct hl_eq *q)
302 flush_workqueue(hdev->eq_wq);
304 hdev->asic_funcs->cpu_accessible_dma_pool_free(hdev,
309 void hl_eq_reset(struct hl_device *hdev, struct hl_eq *q)