Lines Matching refs:clk_id

78 	u32 clk_id;  member
121 static struct clk_hw *(* const clk_topology[]) (const char *name, u32 clk_id,
145 static inline int zynqmp_is_valid_clock(u32 clk_id) in zynqmp_is_valid_clock() argument
147 if (clk_id >= clock_max_idx) in zynqmp_is_valid_clock()
150 return clock[clk_id].valid; in zynqmp_is_valid_clock()
160 static int zynqmp_get_clock_name(u32 clk_id, char *clk_name) in zynqmp_get_clock_name() argument
164 ret = zynqmp_is_valid_clock(clk_id); in zynqmp_get_clock_name()
166 strncpy(clk_name, clock[clk_id].clk_name, MAX_NAME_LEN); in zynqmp_get_clock_name()
180 static int zynqmp_get_clock_type(u32 clk_id, u32 *type) in zynqmp_get_clock_type() argument
184 ret = zynqmp_is_valid_clock(clk_id); in zynqmp_get_clock_type()
186 *type = clock[clk_id].type; in zynqmp_get_clock_type()
285 struct clk_hw *zynqmp_clk_register_fixed_factor(const char *name, u32 clk_id, in zynqmp_clk_register_fixed_factor() argument
297 qdata.arg1 = clk_id; in zynqmp_clk_register_fixed_factor()
417 static int zynqmp_clock_get_topology(u32 clk_id, in zynqmp_clock_get_topology() argument
426 ret = zynqmp_pm_clock_get_topology(clock[clk_id].clk_id, j, in zynqmp_clock_get_topology()
484 static int zynqmp_clock_get_parents(u32 clk_id, struct clock_parent *parents, in zynqmp_clock_get_parents() argument
493 ret = zynqmp_pm_clock_get_parents(clock[clk_id].clk_id, j, in zynqmp_clock_get_parents()
517 static int zynqmp_get_parent_list(struct device_node *np, u32 clk_id, in zynqmp_get_parent_list() argument
521 u32 total_parents = clock[clk_id].num_parents; in zynqmp_get_parent_list()
525 clk_nodes = clock[clk_id].node; in zynqmp_get_parent_list()
526 parents = clock[clk_id].parent; in zynqmp_get_parent_list()
558 static struct clk_hw *zynqmp_register_clk_topology(int clk_id, char *clk_name, in zynqmp_register_clk_topology() argument
568 nodes = clock[clk_id].node; in zynqmp_register_clk_topology()
569 num_nodes = clock[clk_id].num_nodes; in zynqmp_register_clk_topology()
570 clk_dev_id = clock[clk_id].clk_id; in zynqmp_register_clk_topology()
684 clock[i].clk_id = FIELD_PREP(CLK_ATTR_NODE_CLASS, class) | in zynqmp_get_clock_info()
689 zynqmp_pm_clock_get_name(clock[i].clk_id, &name); in zynqmp_get_clock_info()