Lines Matching refs:decoder
48 struct cs_etm_decoder *decoder = (struct cs_etm_decoder *) context; in cs_etm_decoder__mem_access() local
50 return decoder->mem_access(decoder->data, trace_chan_id, in cs_etm_decoder__mem_access()
54 int cs_etm_decoder__add_mem_access_cb(struct cs_etm_decoder *decoder, in cs_etm_decoder__add_mem_access_cb() argument
58 decoder->mem_access = cb_func; in cs_etm_decoder__add_mem_access_cb()
60 if (ocsd_dt_add_callback_trcid_mem_acc(decoder->dcd_tree, start, end, in cs_etm_decoder__add_mem_access_cb()
63 decoder)) in cs_etm_decoder__add_mem_access_cb()
69 int cs_etm_decoder__reset(struct cs_etm_decoder *decoder) in cs_etm_decoder__reset() argument
73 decoder->prev_return = OCSD_RESP_CONT; in cs_etm_decoder__reset()
75 dp_ret = ocsd_dt_process_data(decoder->dcd_tree, OCSD_OP_RESET, in cs_etm_decoder__reset()
152 struct cs_etm_decoder *decoder) in cs_etm_decoder__init_def_logger_printing() argument
159 decoder->packet_printer = d_params->packet_printer; in cs_etm_decoder__init_def_logger_printing()
178 ret = ocsd_def_errlog_set_strprint_cb(decoder->dcd_tree, in cs_etm_decoder__init_def_logger_printing()
179 (void *)decoder, in cs_etm_decoder__init_def_logger_printing()
190 struct cs_etm_decoder *decoder) in cs_etm_decoder__init_raw_frame_logging() argument
205 ocsd_def_errlog_set_strprint_cb(decoder->dcd_tree, in cs_etm_decoder__init_raw_frame_logging()
206 (void *)decoder, in cs_etm_decoder__init_raw_frame_logging()
210 ocsd_dt_set_raw_frame_printer(decoder->dcd_tree, in cs_etm_decoder__init_raw_frame_logging()
218 struct cs_etm_decoder *decoder __maybe_unused) in cs_etm_decoder__init_raw_frame_logging()
223 static int cs_etm_decoder__create_packet_printer(struct cs_etm_decoder *decoder, in cs_etm_decoder__create_packet_printer() argument
229 if (ocsd_dt_create_decoder(decoder->dcd_tree, decoder_name, in cs_etm_decoder__create_packet_printer()
234 if (ocsd_dt_set_pkt_protocol_printer(decoder->dcd_tree, csid, 0)) in cs_etm_decoder__create_packet_printer()
242 struct cs_etm_decoder *decoder) in cs_etm_decoder__create_etm_packet_printer() argument
267 return cs_etm_decoder__create_packet_printer(decoder, in cs_etm_decoder__create_etm_packet_printer()
529 struct cs_etm_decoder *decoder = (struct cs_etm_decoder *) context; in cs_etm_decoder__gen_trace_elem_printer() local
530 struct cs_etm_queue *etmq = decoder->data; in cs_etm_decoder__gen_trace_elem_printer()
584 struct cs_etm_decoder *decoder) in cs_etm_decoder__create_etm_packet_decoder() argument
610 if (ocsd_dt_create_decoder(decoder->dcd_tree, in cs_etm_decoder__create_etm_packet_decoder()
616 if (ocsd_dt_set_gen_elem_outfn(decoder->dcd_tree, in cs_etm_decoder__create_etm_packet_decoder()
618 decoder)) in cs_etm_decoder__create_etm_packet_decoder()
627 struct cs_etm_decoder *decoder) in cs_etm_decoder__create_etm_decoder() argument
631 decoder); in cs_etm_decoder__create_etm_decoder()
634 decoder); in cs_etm_decoder__create_etm_decoder()
643 struct cs_etm_decoder *decoder; in cs_etm_decoder__new() local
651 decoder = zalloc(sizeof(*decoder)); in cs_etm_decoder__new()
653 if (!decoder) in cs_etm_decoder__new()
656 decoder->data = d_params->data; in cs_etm_decoder__new()
657 decoder->prev_return = OCSD_RESP_CONT; in cs_etm_decoder__new()
672 decoder->dcd_tree = ocsd_create_dcd_tree(format, flags); in cs_etm_decoder__new()
674 if (decoder->dcd_tree == 0) in cs_etm_decoder__new()
678 ret = cs_etm_decoder__init_def_logger_printing(d_params, decoder); in cs_etm_decoder__new()
683 cs_etm_decoder__init_raw_frame_logging(d_params, decoder); in cs_etm_decoder__new()
688 decoder); in cs_etm_decoder__new()
693 return decoder; in cs_etm_decoder__new()
696 cs_etm_decoder__free(decoder); in cs_etm_decoder__new()
700 int cs_etm_decoder__process_data_block(struct cs_etm_decoder *decoder, in cs_etm_decoder__process_data_block() argument
706 ocsd_datapath_resp_t prev_return = decoder->prev_return; in cs_etm_decoder__process_data_block()
712 cur = ocsd_dt_process_data(decoder->dcd_tree, in cs_etm_decoder__process_data_block()
719 cur = ocsd_dt_process_data(decoder->dcd_tree, in cs_etm_decoder__process_data_block()
742 decoder->prev_return = cur; in cs_etm_decoder__process_data_block()
748 void cs_etm_decoder__free(struct cs_etm_decoder *decoder) in cs_etm_decoder__free() argument
750 if (!decoder) in cs_etm_decoder__free()
753 ocsd_destroy_dcd_tree(decoder->dcd_tree); in cs_etm_decoder__free()
754 decoder->dcd_tree = NULL; in cs_etm_decoder__free()
755 free(decoder); in cs_etm_decoder__free()