Lines Matching refs:parents

25 /* Flags for parents */
68 * @num_parents: Number of parents of clock
99 u32 parents[CLK_GET_PARENTS_RESP_WORDS];
123 const char * const *parents,
304 * @parents: Name of this clock's parents
305 * @num_parents: Number of parents
311 const char * const *parents,
335 parents[0],
343 * zynqmp_pm_clock_get_parents() - Get the first 3 parents of clock for given id
348 * This function is used to get 3 parents for the clock specified by
351 * This API will return 3 parents with a single response. To get
352 * other parents, master should call same API in loop with new
354 * index 0 which will return parents 0,1 and 2. Next call, index
468 * __zynqmp_clock_get_parents() - Get parents info of clock from firmware
470 * @parents: Clock parents
471 * @response: Clock parents data received from firmware
476 static int __zynqmp_clock_get_parents(struct clock_parent *parents,
483 for (i = 0; i < ARRAY_SIZE(response->parents); i++) {
484 if (response->parents[i] == NA_PARENT)
487 parent = &parents[i];
488 parent->id = FIELD_GET(CLK_PARENTS_ID, response->parents[i]);
489 if (response->parents[i] == DUMMY_PARENT) {
494 response->parents[i]);
505 * zynqmp_clock_get_parents() - Get parents info from firmware using PM_API
507 * @parents: Clock parents
508 * @num_parents: Total number of parents
512 static int zynqmp_clock_get_parents(u32 clk_id, struct clock_parent *parents,
520 /* Get parents from firmware */
526 ret = __zynqmp_clock_get_parents(&parents[j], &response,
530 j += ARRAY_SIZE(response.parents);
537 * zynqmp_get_parent_list() - Create list of parents name
541 * @num_parents: Total number of parents
551 struct clock_parent *parents;
554 parents = clock[clk_id].parent;
557 if (!parents[i].flag) {
558 parent_list[i] = parents[i].name;
559 } else if (parents[i].flag == PARENT_CLK_EXTERNAL) {
561 parents[i].name);
563 strcpy(parents[i].name, "dummy_name");
564 parent_list[i] = parents[i].name;
566 strcat(parents[i].name,
567 clk_type_postfix[clk_nodes[parents[i].flag - 1].
569 parent_list[i] = parents[i].name;
581 * @num_parents: Total number of parents
582 * @parent_names: List of parents name
659 /* Get parents of clock*/
662 WARN_ONCE(1, "No parents found for %s\n",