Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/accel/habanalabs/common/
Dhabanalabs_ioctl.c761 struct engines_data eng_data; in engine_status_info() local
767 eng_data.actual_size = 0; in engine_status_info()
768 eng_data.allocated_buf_size = status_buf_size; in engine_status_info()
769 eng_data.buf = vmalloc(status_buf_size); in engine_status_info()
770 if (!eng_data.buf) in engine_status_info()
773 hdev->asic_funcs->is_device_idle(hdev, NULL, 0, &eng_data); in engine_status_info()
775 if (eng_data.actual_size > eng_data.allocated_buf_size) { in engine_status_info()
778 eng_data.actual_size, status_buf_size); in engine_status_info()
779 vfree(eng_data.buf); in engine_status_info()
783 args->user_buffer_actual_size = eng_data.actual_size; in engine_status_info()
[all …]
Ddebugfs.c581 struct engines_data eng_data; in engines_show() local
589 eng_data.actual_size = 0; in engines_show()
590 eng_data.allocated_buf_size = HL_ENGINES_DATA_MAX_SIZE; in engines_show()
591 eng_data.buf = vmalloc(eng_data.allocated_buf_size); in engines_show()
592 if (!eng_data.buf) in engines_show()
595 hdev->asic_funcs->is_device_idle(hdev, NULL, 0, &eng_data); in engines_show()
597 if (eng_data.actual_size > eng_data.allocated_buf_size) { in engines_show()
600 eng_data.actual_size, eng_data.allocated_buf_size); in engines_show()
601 vfree(eng_data.buf); in engines_show()
605 seq_write(s, eng_data.buf, eng_data.actual_size); in engines_show()
[all …]