Lines Matching refs:agent_id

65 struct scmi_msg_channel *plat_scmi_get_channel(unsigned int agent_id)  in plat_scmi_get_channel()  argument
67 assert(agent_id < ARRAY_SIZE(scmi_channel)); in plat_scmi_get_channel()
69 return &scmi_channel[agent_id]; in plat_scmi_get_channel()
149 static const struct scmi_agent_resources *find_resource(unsigned int agent_id) in find_resource() argument
151 assert(agent_id < ARRAY_SIZE(agent_resources)); in find_resource()
153 return &agent_resources[agent_id]; in find_resource()
209 const uint8_t *plat_scmi_protocol_list(unsigned int agent_id __unused) in plat_scmi_protocol_list()
220 static struct stm32_scmi_clk *find_clock(unsigned int agent_id, in find_clock() argument
223 const struct scmi_agent_resources *resource = find_resource(agent_id); in find_clock()
237 size_t plat_scmi_clock_count(unsigned int agent_id) in plat_scmi_clock_count() argument
239 const struct scmi_agent_resources *resource = find_resource(agent_id); in plat_scmi_clock_count()
248 const char *plat_scmi_clock_get_name(unsigned int agent_id, in plat_scmi_clock_get_name() argument
251 struct stm32_scmi_clk *clock = find_clock(agent_id, scmi_id); in plat_scmi_clock_get_name()
261 int32_t plat_scmi_clock_rates_array(unsigned int agent_id, unsigned int scmi_id, in plat_scmi_clock_rates_array() argument
264 struct stm32_scmi_clk *clock = find_clock(agent_id, scmi_id); in plat_scmi_clock_rates_array()
285 unsigned long plat_scmi_clock_get_rate(unsigned int agent_id, in plat_scmi_clock_get_rate() argument
288 struct stm32_scmi_clk *clock = find_clock(agent_id, scmi_id); in plat_scmi_clock_get_rate()
298 int32_t plat_scmi_clock_get_state(unsigned int agent_id, unsigned int scmi_id) in plat_scmi_clock_get_state() argument
300 struct stm32_scmi_clk *clock = find_clock(agent_id, scmi_id); in plat_scmi_clock_get_state()
310 int32_t plat_scmi_clock_set_state(unsigned int agent_id, unsigned int scmi_id, in plat_scmi_clock_set_state() argument
313 struct stm32_scmi_clk *clock = find_clock(agent_id, scmi_id); in plat_scmi_clock_set_state()
343 static struct stm32_scmi_rstd *find_rstd(unsigned int agent_id, in find_rstd() argument
346 const struct scmi_agent_resources *resource = find_resource(agent_id); in find_rstd()
360 const char *plat_scmi_rstd_get_name(unsigned int agent_id, unsigned int scmi_id) in plat_scmi_rstd_get_name() argument
362 const struct stm32_scmi_rstd *rstd = find_rstd(agent_id, scmi_id); in plat_scmi_rstd_get_name()
371 size_t plat_scmi_rstd_count(unsigned int agent_id) in plat_scmi_rstd_count() argument
373 const struct scmi_agent_resources *resource = find_resource(agent_id); in plat_scmi_rstd_count()
382 int32_t plat_scmi_rstd_autonomous(unsigned int agent_id, unsigned int scmi_id, in plat_scmi_rstd_autonomous() argument
385 const struct stm32_scmi_rstd *rstd = find_rstd(agent_id, scmi_id); in plat_scmi_rstd_autonomous()
413 int32_t plat_scmi_rstd_set_state(unsigned int agent_id, unsigned int scmi_id, in plat_scmi_rstd_set_state() argument
416 const struct stm32_scmi_rstd *rstd = find_rstd(agent_id, scmi_id); in plat_scmi_rstd_set_state()