plat/xilinx/zynqmp/pm_service/pm_api_clock.c
/**
 * pm_api_clock_get_name() - PM call to request a clock's name
 * @clock_id	Clock ID
 * @name	Name of clock (max 16 bytes)
 *
 * This function is used by master to get nmae of clock specified
 * by given clock ID.
 *
 * @return	Returns success. In case of error, name data is 0.
 */
PM call to request a clock's name
@clock_id    Clock ID
@name        Name of clock (max 16 bytes)

This function is used by master to get nmae of clock specified
by given clock ID.

@return      Returns success. In case of error, name data is 0.
PM call to request a clock ' s name @clock_id Clock ID @name Name of clock ( max 16 bytes ) This function is used by master to get nmae of clock specified by given clock ID . @return Returns success . In case of error name data is 0 .
enum pm_ret_status pm_api_clock_get_name(unsigned int clock_id, char *name)
{
	if (clock_id == CLK_MAX)
		memcpy(name, END_OF_CLK, CLK_NAME_LEN);
	else if (!pm_clock_valid(clock_id))
		memset(name, 0, CLK_NAME_LEN);
	else if (clock_id < CLK_MAX_OUTPUT_CLK)
		memcpy(name, clocks[clock_id].name, CLK_NAME_LEN);
	else
		memcpy(name, ext_clocks[clock_id - CLK_MAX_OUTPUT_CLK].name,
		       CLK_NAME_LEN);
	return PM_RET_SUCCESS;
}
enum pm_ret_status pm_api_clock_get_name ( unsigned int clock_id , char * name ) { if ( clock_id == CLK_MAX ) memcpy ( name , END_OF_CLK , CLK_NAME_LEN ) ; else if ( ! pm_clock_valid ( clock_id ) ) memset ( name , 0 , CLK_NAME_LEN ) ; else if ( clock_id < CLK_MAX_OUTPUT_CLK ) memcpy ( name , clocks [ clock_id ] . name , CLK_NAME_LEN ) ; else memcpy ( name , ext_clocks [ clock_id - CLK_MAX_OUTPUT_CLK ] . name , CLK_NAME_LEN ) ; return PM_RET_SUCCESS ; }
pm_api_clock_get_name() - PM call to request a clock's name
 @clock_id    Clock ID
 @name        Name of clock (max 16 bytes)
pm_api_clock_get_name () - PM call to request a clock ' s name @clock_id Clock ID @name Name of clock ( max 16 bytes )