Lines Matching defs:hdev
175 * @hdev: pointer to the device
182 const char *hl_state_dump_get_sync_name(struct hl_device *hdev, u32 sync_id)
184 struct hl_state_dump_specs *sds = &hdev->state_dump_specs;
198 * @hdev: pointer to the device
205 const char *hl_state_dump_get_monitor_name(struct hl_device *hdev,
208 struct hl_state_dump_specs *sds = &hdev->state_dump_specs;
260 * @hdev: pointer to the device
265 static u32 *hl_state_dump_read_sync_objects(struct hl_device *hdev, u32 index)
267 struct hl_state_dump_specs *sds = &hdev->state_dump_specs;
299 * @hdev: pointer to the device
309 hl_state_dump_print_syncs_single_block(struct hl_device *hdev, u32 index,
313 struct hl_state_dump_specs *sds = &hdev->state_dump_specs;
326 sync_objects = hl_state_dump_read_sync_objects(hdev, index);
346 sync_name = hl_state_dump_get_sync_name(hdev, i);
386 * @hdev: pointer to the device
393 static int hl_state_dump_print_syncs(struct hl_device *hdev,
398 struct hl_state_dump_specs *sds = &hdev->state_dump_specs;
407 rc = sds->funcs.gen_sync_to_engine_map(hdev, map);
418 hdev, index, buf, size, offset, map);
425 hdev, index, buf, size, offset, map);
442 * @hdev: pointer to the device
449 hl_state_dump_alloc_read_sm_block_monitors(struct hl_device *hdev, u32 index)
451 struct hl_state_dump_specs *sds = &hdev->state_dump_specs;
502 * @hdev: pointer to the device
510 static int hl_state_dump_print_monitors_single_block(struct hl_device *hdev,
515 struct hl_state_dump_specs *sds = &hdev->state_dump_specs;
527 monitors = hl_state_dump_alloc_read_sm_block_monitors(hdev, index);
538 rc = sds->funcs.print_single_monitor(buf, size, offset, hdev,
554 * @hdev: pointer to the device
561 static int hl_state_dump_print_monitors(struct hl_device *hdev,
565 struct hl_state_dump_specs *sds = &hdev->state_dump_specs;
577 hdev, index, buf, size, offset);
584 hdev, index, buf, size, offset);
597 * @hdev: pointer to the device
604 hl_state_dump_print_engine_fences(struct hl_device *hdev,
608 struct hl_state_dump_specs *sds = &hdev->state_dump_specs;
633 hdev,
648 * @hdev: pointer to the device
653 static int hl_state_dump_print_fences(struct hl_device *hdev, char **buf,
662 rc = hl_state_dump_print_engine_fences(hdev, ENGINE_TPC, buf, size, offset);
666 rc = hl_state_dump_print_engine_fences(hdev, ENGINE_MME, buf, size, offset);
670 rc = hl_state_dump_print_engine_fences(hdev, ENGINE_DMA, buf, size, offset);
680 * @hdev: pointer to device structure
682 int hl_state_dump(struct hl_device *hdev)
694 rc = hl_state_dump_print_syncs(hdev, &buf, &size, &offset);
700 rc = hl_state_dump_print_monitors(hdev, &buf, &size, &offset);
706 rc = hl_state_dump_print_fences(hdev, &buf, &size, &offset);
712 hl_debugfs_set_state_dump(hdev, buf, size);