Searched refs:ts_buff (Results 1 – 2 of 2) sorted by relevance
2099 struct hl_ts_buff *ts_buff = buf->private; in ts_buff_release() local2101 vfree(ts_buff->kernel_buff_address); in ts_buff_release()2102 vfree(ts_buff->user_buff_address); in ts_buff_release()2103 kfree(ts_buff); in ts_buff_release()2108 struct hl_ts_buff *ts_buff = buf->private; in hl_ts_mmap() local2111 return remap_vmalloc_range(vma, ts_buff->user_buff_address, 0); in hl_ts_mmap()2116 struct hl_ts_buff *ts_buff = NULL; in hl_ts_alloc_buf() local2123 ts_buff = kzalloc(sizeof(*ts_buff), gfp); in hl_ts_alloc_buf()2124 if (!ts_buff) in hl_ts_alloc_buf()2133 ts_buff->user_buff_address = p; in hl_ts_alloc_buf()[all …]
3225 struct hl_ts_buff *ts_buff, u64 ts_offset, in validate_and_get_ts_record() argument3230 *req_event_record = (struct hl_user_pending_interrupt *)ts_buff->kernel_buff_address + in validate_and_get_ts_record()3232 ts_cb_last = (struct hl_user_pending_interrupt *)ts_buff->kernel_buff_address + in validate_and_get_ts_record()3233 (ts_buff->kernel_buff_size / sizeof(struct hl_user_pending_interrupt)); in validate_and_get_ts_record()3276 struct hl_ts_buff *ts_buff = data->buf->private; in ts_get_and_handle_kernel_record() local3280 rc = validate_and_get_ts_record(data->buf->mmg->dev, ts_buff, data->ts_offset, in ts_get_and_handle_kernel_record()3309 (u64 *) ts_buff->user_buff_address + data->ts_offset; in ts_get_and_handle_kernel_record()