Lines Matching refs:parents
24 /* Flags for parents */
67 * @num_parents: Number of parents of clock
98 u32 parents[CLK_GET_PARENTS_RESP_WORDS];
122 const char * const *parents,
279 * @parents: Name of this clock's parents
280 * @num_parents: Number of parents
286 const char * const *parents,
307 parents[0],
315 * zynqmp_pm_clock_get_parents() - Get the first 3 parents of clock for given id
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,
455 for (i = 0; i < ARRAY_SIZE(response->parents); i++) {
456 if (response->parents[i] == NA_PARENT)
459 parent = &parents[i];
460 parent->id = FIELD_GET(CLK_PARENTS_ID, response->parents[i]);
461 if (response->parents[i] == DUMMY_PARENT) {
466 response->parents[i]);
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,
492 /* Get parents from firmware */
498 ret = __zynqmp_clock_get_parents(&parents[j], &response,
502 j += ARRAY_SIZE(response.parents);
509 * zynqmp_get_parent_list() - Create list of parents name
513 * @num_parents: Total number of parents
523 struct clock_parent *parents;
526 parents = clock[clk_id].parent;
529 if (!parents[i].flag) {
530 parent_list[i] = parents[i].name;
531 } else if (parents[i].flag == PARENT_CLK_EXTERNAL) {
533 parents[i].name);
535 strcpy(parents[i].name, "dummy_name");
536 parent_list[i] = parents[i].name;
538 strcat(parents[i].name,
539 clk_type_postfix[clk_nodes[parents[i].flag - 1].
541 parent_list[i] = parents[i].name;
553 * @num_parents: Total number of parents
554 * @parent_names: List of parents name
631 /* Get parents of clock*/
634 WARN_ONCE(1, "No parents found for %s\n",