Lines Matching full:parents

24 /* Flags for parents */
67 * @num_parents: Number of parents of clock
98 u32 parents[CLK_GET_PARENTS_RESP_WORDS]; member
122 const char * const *parents,
279 * @parents: Name of this clock's parents
280 * @num_parents: Number of parents
286 const char * const *parents, in zynqmp_clk_register_fixed_factor() argument
307 parents[0], in zynqmp_clk_register_fixed_factor()
315 * zynqmp_pm_clock_get_parents() - Get the first 3 parents of clock for given id
318 * @response: Parents of the given clock
320 * This function is used to get 3 parents for the clock specified by
323 * This API will return 3 parents with a single response. To get
324 * other parents, master should call same API in loop with new
326 * index 0 which will return parents 0,1 and 2. Next call, index
440 * __zynqmp_clock_get_parents() - Get parents info of clock from firmware
442 * @parents: Clock parents
443 * @response: Clock parents data received from firmware
448 static int __zynqmp_clock_get_parents(struct clock_parent *parents, in __zynqmp_clock_get_parents() argument
455 for (i = 0; i < ARRAY_SIZE(response->parents); i++) { in __zynqmp_clock_get_parents()
456 if (response->parents[i] == NA_PARENT) in __zynqmp_clock_get_parents()
459 parent = &parents[i]; in __zynqmp_clock_get_parents()
460 parent->id = FIELD_GET(CLK_PARENTS_ID, response->parents[i]); in __zynqmp_clock_get_parents()
461 if (response->parents[i] == DUMMY_PARENT) { in __zynqmp_clock_get_parents()
466 response->parents[i]); in __zynqmp_clock_get_parents()
477 * zynqmp_clock_get_parents() - Get parents info from firmware using PM_API
479 * @parents: Clock parents
480 * @num_parents: Total number of parents
484 static int zynqmp_clock_get_parents(u32 clk_id, struct clock_parent *parents, in zynqmp_clock_get_parents() argument
492 /* Get parents from firmware */ in zynqmp_clock_get_parents()
498 ret = __zynqmp_clock_get_parents(&parents[j], &response, in zynqmp_clock_get_parents()
502 j += ARRAY_SIZE(response.parents); in zynqmp_clock_get_parents()
509 * zynqmp_get_parent_list() - Create list of parents name
513 * @num_parents: Total number of parents
523 struct clock_parent *parents; in zynqmp_get_parent_list() local
526 parents = clock[clk_id].parent; in zynqmp_get_parent_list()
529 if (!parents[i].flag) { in zynqmp_get_parent_list()
530 parent_list[i] = parents[i].name; in zynqmp_get_parent_list()
531 } else if (parents[i].flag == PARENT_CLK_EXTERNAL) { in zynqmp_get_parent_list()
533 parents[i].name); in zynqmp_get_parent_list()
535 strcpy(parents[i].name, "dummy_name"); in zynqmp_get_parent_list()
536 parent_list[i] = parents[i].name; in zynqmp_get_parent_list()
538 strcat(parents[i].name, in zynqmp_get_parent_list()
539 clk_type_postfix[clk_nodes[parents[i].flag - 1]. in zynqmp_get_parent_list()
541 parent_list[i] = parents[i].name; in zynqmp_get_parent_list()
553 * @num_parents: Total number of parents
554 * @parent_names: List of parents name
631 /* Get parents of clock*/ in zynqmp_register_clocks()
634 WARN_ONCE(1, "No parents found for %s\n", in zynqmp_register_clocks()