Lines Matching refs:t_params
436 static void cs_etm__set_trace_param_etmv3(struct cs_etm_trace_params *t_params, in cs_etm__set_trace_param_etmv3() argument
442 t_params[idx].protocol = cs_etm__get_v7_protocol_version(etmidr); in cs_etm__set_trace_param_etmv3()
443 t_params[idx].etmv3.reg_ctrl = metadata[idx][CS_ETM_ETMCR]; in cs_etm__set_trace_param_etmv3()
444 t_params[idx].etmv3.reg_trc_id = metadata[idx][CS_ETM_ETMTRACEIDR]; in cs_etm__set_trace_param_etmv3()
447 static void cs_etm__set_trace_param_etmv4(struct cs_etm_trace_params *t_params, in cs_etm__set_trace_param_etmv4() argument
452 t_params[idx].protocol = CS_ETM_PROTO_ETMV4i; in cs_etm__set_trace_param_etmv4()
453 t_params[idx].etmv4.reg_idr0 = metadata[idx][CS_ETMV4_TRCIDR0]; in cs_etm__set_trace_param_etmv4()
454 t_params[idx].etmv4.reg_idr1 = metadata[idx][CS_ETMV4_TRCIDR1]; in cs_etm__set_trace_param_etmv4()
455 t_params[idx].etmv4.reg_idr2 = metadata[idx][CS_ETMV4_TRCIDR2]; in cs_etm__set_trace_param_etmv4()
456 t_params[idx].etmv4.reg_idr8 = metadata[idx][CS_ETMV4_TRCIDR8]; in cs_etm__set_trace_param_etmv4()
457 t_params[idx].etmv4.reg_configr = metadata[idx][CS_ETMV4_TRCCONFIGR]; in cs_etm__set_trace_param_etmv4()
458 t_params[idx].etmv4.reg_traceidr = metadata[idx][CS_ETMV4_TRCTRACEIDR]; in cs_etm__set_trace_param_etmv4()
461 static void cs_etm__set_trace_param_ete(struct cs_etm_trace_params *t_params, in cs_etm__set_trace_param_ete() argument
466 t_params[idx].protocol = CS_ETM_PROTO_ETE; in cs_etm__set_trace_param_ete()
467 t_params[idx].ete.reg_idr0 = metadata[idx][CS_ETMV4_TRCIDR0]; in cs_etm__set_trace_param_ete()
468 t_params[idx].ete.reg_idr1 = metadata[idx][CS_ETMV4_TRCIDR1]; in cs_etm__set_trace_param_ete()
469 t_params[idx].ete.reg_idr2 = metadata[idx][CS_ETMV4_TRCIDR2]; in cs_etm__set_trace_param_ete()
470 t_params[idx].ete.reg_idr8 = metadata[idx][CS_ETMV4_TRCIDR8]; in cs_etm__set_trace_param_ete()
471 t_params[idx].ete.reg_configr = metadata[idx][CS_ETMV4_TRCCONFIGR]; in cs_etm__set_trace_param_ete()
472 t_params[idx].ete.reg_traceidr = metadata[idx][CS_ETMV4_TRCTRACEIDR]; in cs_etm__set_trace_param_ete()
473 t_params[idx].ete.reg_devarch = metadata[idx][CS_ETE_TRCDEVARCH]; in cs_etm__set_trace_param_ete()
476 static int cs_etm__init_trace_params(struct cs_etm_trace_params *t_params, in cs_etm__init_trace_params() argument
490 cs_etm__set_trace_param_etmv3(t_params, etm, i, etmidr); in cs_etm__init_trace_params()
493 cs_etm__set_trace_param_etmv4(t_params, etm, i); in cs_etm__init_trace_params()
496 cs_etm__set_trace_param_ete(t_params, etm, i); in cs_etm__init_trace_params()
754 struct cs_etm_trace_params *t_params = NULL; in cs_etm__alloc_queue() local
771 t_params = zalloc(sizeof(*t_params) * decoders); in cs_etm__alloc_queue()
773 if (!t_params) in cs_etm__alloc_queue()
776 if (cs_etm__init_trace_params(t_params, etm, decoders)) in cs_etm__alloc_queue()
787 t_params); in cs_etm__alloc_queue()
801 zfree(&t_params); in cs_etm__alloc_queue()