Lines Matching defs:name

56 	const char		*name;
61 const char *name;
166 dev_name(failed->dev), failed->name);
358 return !clk ? NULL : clk->core->name;
364 return hw->core->name;
386 static struct clk_core *__clk_lookup_subtree(const char *name,
392 if (!strcmp(core->name, name))
396 ret = __clk_lookup_subtree(name, child);
404 static struct clk_core *clk_core_lookup(const char *name)
409 if (!name)
414 ret = __clk_lookup_subtree(name, root_clk);
421 ret = __clk_lookup_subtree(name, root_clk);
431 const char *name, struct of_phandle_args *out_args);
436 const char *name,
455 * array is indexed and treated as a local name matching a string in the device
462 * with 'xtal' in the 'name' member to find the clock provided by the
463 * clock-controller@f00abcd without needing to get the globally unique name of
479 * exist in the provider or the name can't be found in the DT node or
486 const char *name = core->parents[p_index].fw_name;
494 if (np && (name || index >= 0) &&
495 !of_parse_clkspec(np, index, name, &clkspec)) {
498 } else if (name) {
503 hw = clk_find_hw(dev_id, name);
524 if (PTR_ERR(parent) == -ENOENT && entry->name)
525 parent = clk_core_lookup(entry->name);
786 struct clk *__clk_lookup(const char *name)
788 struct clk_core *core = clk_core_lookup(name);
907 "%s already unprotected\n", core->name))
1041 "%s already unprepared\n", core->name))
1045 "Unpreparing critical %s\n", core->name))
1054 WARN(core->enable_count > 0, "Unpreparing enabled %s\n", core->name);
1181 if (WARN(core->enable_count == 0, "%s already disabled\n", core->name))
1185 "Disabling critical %s\n", core->name))
1241 "Enabling unprepared %s\n", core->name))
1573 __func__, core->name);
2028 if (core->parents[i].name &&
2029 !strcmp(parent->name, core->parents[i].name))
2226 __func__, core->name, ret);
2321 __func__, core->name);
2330 __func__, parent->name, core->name);
2540 fail_clk->name);
2664 __func__, clk->core->name, clk->dev_id, clk->con_id,
2879 __func__, parent->name, core->name);
3287 35 - level * 3, c->name,
3365 seq_printf(s, "\"%s\": { ", c->name);
3491 const char *name;
3517 seq_printf(s, "%s\n", clk_flags[i].name);
3534 const char *name = NULL;
3537 * Go through the following options to fetch a parent's name.
3539 * 1. Fetch the registered parent clock and use its name
3540 * 2. Use the global (fallback) name if specified
3542 * 4. Fetch parent clock's clock-output-name if DT index was set
3550 seq_puts(s, parent->name);
3551 } else if (core->parents[i].name) {
3552 seq_puts(s, core->parents[i].name);
3557 name = of_clk_get_parent_name(core->of_node, core->parents[i].index);
3558 if (!name)
3559 name = "(missing)";
3561 seq_puts(s, name);
3586 seq_printf(s, "%s\n", core->parent->name);
3674 root = debugfs_create_dir(core->name, pdentry);
3873 /* check to see if a clock with this name is already registered */
3874 if (clk_core_lookup(core->name)) {
3876 __func__, core->name);
3886 __func__, core->name);
3893 __func__, core->name);
3900 __func__, core->name);
3907 __func__, core->name);
3915 __func__, core->name);
3987 core->name);
4020 __func__, core->name);
4027 __func__, core->name);
4075 * @dev_id: string describing device name
4115 * @dev_id: string describing device name
4162 const char *name = dev ? dev_name(dev) : NULL;
4164 return clk_hw_create_clk(dev, hw, name, con_id);
4214 __func__, core->name);
4215 ret = clk_cpy_name(&parent->name, parent_names[i],
4223 ret = clk_cpy_name(&parent->name,
4224 parent_data[i].name,
4235 kfree_const(parents[i].name);
4255 kfree_const(core->parents[i].name);
4274 kfree_const(core->name);
4300 core->name = kstrdup_const(init->name, GFP_KERNEL);
4301 if (!core->name) {
4525 clk->core->name);
4556 __func__, clk->core->name);
4560 __func__, clk->core->name);
5124 * @index: index of phandle to parse clock out of. If index < 0, @name is used
5125 * @name: clock name to find and parse. If name is NULL, the index is used
5129 * phandle and cells for the index or name that is desired. The resulting clock
5131 * parsing error. The @index argument is ignored if @name is non-NULL.
5156 * if @name is NULL or -EINVAL if @name is non-NULL and it can't be found in
5160 const char *name, struct of_phandle_args *out_args)
5167 * For named clocks, first look up the name in the
5172 if (name)
5173 index = of_property_match_string(np, "clock-names", name);
5178 if (name && index >= 0)
5283 * @name: name of consumer's clock input, or NULL for the first clock reference
5289 struct clk *of_clk_get_by_name(struct device_node *np, const char *name)
5294 return __of_clk_get(np, 0, np->full_name, name);
5353 * Best effort to get the name if the clock has been
5355 * registered, we return the node name as the name of
5361 clk_name = clkspec.np->name;