Home
last modified time | relevance | path

Searched refs:hw_sob (Results 1 – 5 of 5) sorted by relevance

/drivers/misc/habanalabs/common/
Dhw_queue.c407 struct hl_hw_sob *hw_sob; in init_signal_cs() local
413 hw_sob = &prop->hw_sob[prop->curr_sob_offset]; in init_signal_cs()
415 cs_cmpl->hw_sob = hw_sob; in init_signal_cs()
420 cs_cmpl->hw_sob->sob_id, cs_cmpl->sob_val, q_idx, in init_signal_cs()
427 cs_cmpl->hw_sob->sob_id, 0, true); in init_signal_cs()
429 rc = hl_cs_signal_sob_wraparound_handler(hdev, q_idx, &hw_sob, 1, in init_signal_cs()
442 cs_cmpl->hw_sob = handle->hw_sob; in hl_hw_queue_encaps_sig_set_sob_info()
488 cs_cmpl->hw_sob = signal_cs_cmpl->hw_sob; in init_wait_cs()
511 kref_get(&cs_cmpl->hw_sob->kref); in init_wait_cs()
517 cs_cmpl->hw_sob->sob_id, cs_cmpl->sob_val, in init_wait_cs()
[all …]
Dcommand_submission.c37 struct hl_hw_sob *hw_sob = container_of(ref, struct hl_hw_sob, in hl_sob_reset() local
39 struct hl_device *hdev = hw_sob->hdev; in hl_sob_reset()
41 dev_dbg(hdev->dev, "reset sob id %u\n", hw_sob->sob_id); in hl_sob_reset()
43 hdev->asic_funcs->reset_sob(hdev, hw_sob); in hl_sob_reset()
45 hw_sob->need_reset = false; in hl_sob_reset()
50 struct hl_hw_sob *hw_sob = container_of(ref, struct hl_hw_sob, in hl_sob_reset_error() local
52 struct hl_device *hdev = hw_sob->hdev; in hl_sob_reset_error()
56 hw_sob->q_idx, hw_sob->sob_id); in hl_sob_reset_error()
59 void hw_sob_put(struct hl_hw_sob *hw_sob) in hw_sob_put() argument
61 if (hw_sob) in hw_sob_put()
[all …]
Dhabanalabs.h632 struct hl_hw_sob *hw_sob; member
740 struct hl_hw_sob hw_sob[HL_RSVD_SOBS]; member
2624 struct hl_hw_sob *hw_sob; member
2961 void hw_sob_get(struct hl_hw_sob *hw_sob);
2962 void hw_sob_put(struct hl_hw_sob *hw_sob);
2969 struct hl_hw_sob **hw_sob, u32 count, bool encaps_sig);
Dcontext.c37 hw_sob_put(handle->hw_sob); in hl_encaps_handle_do_release_sob()
/drivers/misc/habanalabs/gaudi/
Dgaudi.c1238 cs_cmpl->hw_sob->sob_id, in gaudi_collective_slave_init_job()
1244 wait_prop.sob_base = cs_cmpl->hw_sob->sob_id; in gaudi_collective_slave_init_job()
1253 cs_cmpl->hw_sob->sob_id, cs_cmpl->sob_val, in gaudi_collective_slave_init_job()
1289 cs_cmpl->hw_sob = signal_cs_cmpl->hw_sob; in gaudi_collective_wait_init_cs()
1312 kref_get(&cs_cmpl->hw_sob->kref); in gaudi_collective_wait_init_cs()
9061 struct hl_hw_sob *hw_sob = (struct hl_hw_sob *) data; in gaudi_reset_sob() local
9063 dev_dbg(hdev->dev, "reset SOB, q_idx: %d, sob_id: %d\n", hw_sob->q_idx, in gaudi_reset_sob()
9064 hw_sob->sob_id); in gaudi_reset_sob()
9067 hw_sob->sob_id * 4, 0); in gaudi_reset_sob()
9069 kref_init(&hw_sob->kref); in gaudi_reset_sob()