Home
last modified time | relevance | path

Searched refs:eng_data (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/accel/habanalabs/common/
Dhabanalabs_ioctl.c814 struct engines_data eng_data; in engine_status_info() local
820 eng_data.actual_size = 0; in engine_status_info()
821 eng_data.allocated_buf_size = status_buf_size; in engine_status_info()
822 eng_data.buf = vmalloc(status_buf_size); in engine_status_info()
823 if (!eng_data.buf) in engine_status_info()
826 hdev->asic_funcs->is_device_idle(hdev, NULL, 0, &eng_data); in engine_status_info()
828 if (eng_data.actual_size > eng_data.allocated_buf_size) { in engine_status_info()
831 eng_data.actual_size, status_buf_size); in engine_status_info()
832 vfree(eng_data.buf); in engine_status_info()
836 args->user_buffer_actual_size = eng_data.actual_size; in engine_status_info()
[all …]
Ddebugfs.c574 struct engines_data eng_data; in engines_show() local
582 eng_data.actual_size = 0; in engines_show()
583 eng_data.allocated_buf_size = HL_ENGINES_DATA_MAX_SIZE; in engines_show()
584 eng_data.buf = vmalloc(eng_data.allocated_buf_size); in engines_show()
585 if (!eng_data.buf) in engines_show()
588 hdev->asic_funcs->is_device_idle(hdev, NULL, 0, &eng_data); in engines_show()
590 if (eng_data.actual_size > eng_data.allocated_buf_size) { in engines_show()
593 eng_data.actual_size, eng_data.allocated_buf_size); in engines_show()
594 vfree(eng_data.buf); in engines_show()
598 seq_write(s, eng_data.buf, eng_data.actual_size); in engines_show()
[all …]