Lines Matching refs:t_params

438 static void cs_etm__set_trace_param_etmv3(struct cs_etm_trace_params *t_params,  in cs_etm__set_trace_param_etmv3()  argument
444 t_params[idx].protocol = cs_etm__get_v7_protocol_version(etmidr); in cs_etm__set_trace_param_etmv3()
445 t_params[idx].etmv3.reg_ctrl = metadata[idx][CS_ETM_ETMCR]; in cs_etm__set_trace_param_etmv3()
446 t_params[idx].etmv3.reg_trc_id = metadata[idx][CS_ETM_ETMTRACEIDR]; in cs_etm__set_trace_param_etmv3()
449 static void cs_etm__set_trace_param_etmv4(struct cs_etm_trace_params *t_params, in cs_etm__set_trace_param_etmv4() argument
454 t_params[idx].protocol = CS_ETM_PROTO_ETMV4i; in cs_etm__set_trace_param_etmv4()
455 t_params[idx].etmv4.reg_idr0 = metadata[idx][CS_ETMV4_TRCIDR0]; in cs_etm__set_trace_param_etmv4()
456 t_params[idx].etmv4.reg_idr1 = metadata[idx][CS_ETMV4_TRCIDR1]; in cs_etm__set_trace_param_etmv4()
457 t_params[idx].etmv4.reg_idr2 = metadata[idx][CS_ETMV4_TRCIDR2]; in cs_etm__set_trace_param_etmv4()
458 t_params[idx].etmv4.reg_idr8 = metadata[idx][CS_ETMV4_TRCIDR8]; in cs_etm__set_trace_param_etmv4()
459 t_params[idx].etmv4.reg_configr = metadata[idx][CS_ETMV4_TRCCONFIGR]; in cs_etm__set_trace_param_etmv4()
460 t_params[idx].etmv4.reg_traceidr = metadata[idx][CS_ETMV4_TRCTRACEIDR]; in cs_etm__set_trace_param_etmv4()
463 static void cs_etm__set_trace_param_ete(struct cs_etm_trace_params *t_params, in cs_etm__set_trace_param_ete() argument
468 t_params[idx].protocol = CS_ETM_PROTO_ETE; in cs_etm__set_trace_param_ete()
469 t_params[idx].ete.reg_idr0 = metadata[idx][CS_ETMV4_TRCIDR0]; in cs_etm__set_trace_param_ete()
470 t_params[idx].ete.reg_idr1 = metadata[idx][CS_ETMV4_TRCIDR1]; in cs_etm__set_trace_param_ete()
471 t_params[idx].ete.reg_idr2 = metadata[idx][CS_ETMV4_TRCIDR2]; in cs_etm__set_trace_param_ete()
472 t_params[idx].ete.reg_idr8 = metadata[idx][CS_ETMV4_TRCIDR8]; in cs_etm__set_trace_param_ete()
473 t_params[idx].ete.reg_configr = metadata[idx][CS_ETMV4_TRCCONFIGR]; in cs_etm__set_trace_param_ete()
474 t_params[idx].ete.reg_traceidr = metadata[idx][CS_ETMV4_TRCTRACEIDR]; in cs_etm__set_trace_param_ete()
475 t_params[idx].ete.reg_devarch = metadata[idx][CS_ETE_TRCDEVARCH]; in cs_etm__set_trace_param_ete()
478 static int cs_etm__init_trace_params(struct cs_etm_trace_params *t_params, in cs_etm__init_trace_params() argument
492 cs_etm__set_trace_param_etmv3(t_params, etm, i, etmidr); in cs_etm__init_trace_params()
495 cs_etm__set_trace_param_etmv4(t_params, etm, i); in cs_etm__init_trace_params()
498 cs_etm__set_trace_param_ete(t_params, etm, i); in cs_etm__init_trace_params()
756 struct cs_etm_trace_params *t_params = NULL; in cs_etm__alloc_queue() local
773 t_params = zalloc(sizeof(*t_params) * decoders); in cs_etm__alloc_queue()
775 if (!t_params) in cs_etm__alloc_queue()
778 if (cs_etm__init_trace_params(t_params, etm, decoders)) in cs_etm__alloc_queue()
789 t_params); in cs_etm__alloc_queue()
803 zfree(&t_params); in cs_etm__alloc_queue()