Lines Matching refs:name
209 * @match: string to match against the module name
273 WARN(1, "omap_hwmod: %s: cannot read OCP_SYSCONFIG: not defined on hwmod's class\n", oh->name);
298 WARN(1, "omap_hwmod: %s: cannot write OCP_SYSCONFIG: not defined on hwmod's class\n", oh->name);
343 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
376 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
410 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
440 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
470 oh->name);
535 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
541 pr_warn("omap_hwmod: %s: dma can be disabled only from enabled state\n", oh->name);
545 pr_debug("omap_hwmod: %s: setting DMADISABLE\n", oh->name);
580 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
609 WARN(1, "omap_hwmod: %s: offset struct for sysconfig not provided in class\n", oh->name);
784 pr_debug("%s: %s: addr=%x\n", __func__, oh->name, addr);
802 __func__, oh->name, clk,
818 * functional clock pointer) if a clock matching the hwmod name is found,
830 __clk_get_name(clk), oh->name);
843 oh->name, oh->main_clk);
858 oh->name, oh->main_clk);
883 oh->name, os->clk);
920 oh->name, oc->clk);
944 pr_debug("omap_hwmod: %s: enabling optional clocks\n", oh->name);
959 pr_debug("omap_hwmod: %s: disabling optional clocks\n", oh->name);
980 pr_debug("omap_hwmod: %s: enabling clocks\n", oh->name);
1038 pr_debug("omap_hwmod: %s: disabling clocks\n", oh->name);
1072 oh->name, __func__, oh->prcm.omap4.modulemode);
1346 * _lookup - find an omap_hwmod by name
1347 * @name: find an omap_hwmod by name
1349 * Return a pointer to an omap_hwmod by name, or NULL if not found.
1351 static struct omap_hwmod *_lookup(const char *name)
1358 if (!strcmp(name, temp_oh->name)) {
1368 * _init_clkdm - look up a clockdomain name, store pointer in omap_hwmod
1371 * Convert a clockdomain name stored in a struct omap_hwmod into a
1378 pr_debug("omap_hwmod: %s: missing clockdomain\n", oh->name);
1385 oh->name, oh->clkdm_name);
1390 oh->name, oh->clkdm_name);
1412 pr_debug("omap_hwmod: %s: looking up clocks\n", oh->name);
1424 pr_warn("omap_hwmod: %s: cannot _init_clocks\n", oh->name);
1432 * @name: name of the reset line in the context of this hwmod
1436 * input name. Return -ENOENT if not found.
1438 static int _lookup_hardreset(struct omap_hwmod *oh, const char *name,
1444 const char *rst_line = oh->rst_lines[i].name;
1445 if (!strcmp(rst_line, name)) {
1449 oh->name, __func__, rst_line, ohri->rst_shift,
1463 * @name: name of the reset line to lookup and assert
1472 static int _assert_hardreset(struct omap_hwmod *oh, const char *name)
1483 ret = _lookup_hardreset(oh, name, &ohri);
1496 * @name: name of the reset line to look up and deassert
1505 static int _deassert_hardreset(struct omap_hwmod *oh, const char *name)
1516 ret = _lookup_hardreset(oh, name, &ohri);
1530 oh->name, oh->clkdm->name, ret);
1546 pr_warn("omap_hwmod: %s: failed to hardreset\n", oh->name);
1565 * @name: name of the reset line to look up and read
1573 static int _read_hardreset(struct omap_hwmod *oh, const char *name)
1584 ret = _lookup_hardreset(oh, name, &ohri);
1609 if (_read_hardreset(oh, oh->rst_lines[i].name) > 0)
1635 if (_read_hardreset(oh, oh->rst_lines[i].name) > 0)
1663 pr_debug("omap_hwmod: %s: %s\n", oh->name, __func__);
1671 oh->name);
1705 oh->name);
1713 pr_debug("omap_hwmod: %s: resetting via OCP SOFTRESET\n", oh->name);
1728 oh->name, MAX_MODULE_SOFTRESET_WAIT);
1732 pr_debug("omap_hwmod: %s: softreset in %d usec\n", oh->name, c);
1790 pr_debug("omap_hwmod: %s: resetting\n", oh->name);
1797 _assert_hardreset(oh, oh->rst_lines[i].name);
1869 pr_debug("omap_hwmod: %s: enabling\n", oh->name);
1884 oh->name);
1912 oh->name, oh->clkdm->name, r);
1945 oh->name, r);
1969 pr_debug("omap_hwmod: %s: idling\n", oh->name);
1976 oh->name);
2034 oh->name);
2038 pr_debug("omap_hwmod: %s: disabling\n", oh->name);
2073 _assert_hardreset(oh, oh->rst_lines[i].name);
2095 if (!strcmp(p, oh->name)) {
2097 np, i, oh->name);
2197 const char *name;
2214 of_property_for_each_string(np, "compatible", prop, name)
2215 if (!strncmp("ti,sysc-", name, 8))
2218 if (!name)
2231 oh->name, np);
2240 oh->name, np, base, size);
2293 pr_err("omap_hwmod: %s: no dt node\n", oh->name);
2307 oh->name, index, np);
2312 oh->name, va_start);
2357 pr_debug("omap_hwmod: %s missing dt data\n", oh->name);
2360 oh->name, np);
2365 oh->name);
2371 WARN(1, "omap_hwmod: %s: couldn't init clocks\n", oh->name);
2446 oh->name, oh->_state);
2520 oh->name, postsetup_state);
2551 oh->name, oh->parent_hwmod->name);
2570 oh->parent_hwmod->name, postsetup_state);
2581 * already has been registered by the same name; -EINVAL if the
2584 * name, or if the omap_hwmod's class is missing a name; or 0 upon
2595 if (!oh || !oh->name || !oh->class || !oh->class->name ||
2599 pr_debug("omap_hwmod: %s: registering\n", oh->name);
2601 if (_lookup(oh->name))
2616 if (!strcmp(oh->name, MPU_INITIATOR_NAME))
2634 pr_debug("omap_hwmod: %s -> %s: adding link\n", oi->master->name,
2635 oi->slave->name);
2665 oi->master->name, oi->slave->name);
2845 oh->name, ohri->name);
2970 * omap_hwmod_lookup - look up a registered omap_hwmod by name
2971 * @name: name of the omap_hwmod to look up
2973 * Given a @name of an omap_hwmod, return a pointer to the registered
2976 struct omap_hwmod *omap_hwmod_lookup(const char *name)
2980 if (!name)
2983 oh = _lookup(name);
3047 ois[i]->master->name, ois[i]->slave->name, r);
3074 * @oh_name: const char * name of the already-registered hwmod to set up
3104 const char *name, s8 v1, u8 v2)
3110 dev_warn(dev, "%s %d != %d\n", name, v1, v2);
3447 if (oh->class->name && strcmp(oh->class->name, data->name)) {
3519 if (!strncmp(data->name, quirk->match, quirk->len)) {
3560 if (!dev || !data || !data->name || !cookie)
3563 oh = _lookup(data->name);
3569 oh->name = data->name;
3584 oh->class->name = data->name;
3848 * @name: name of the reset line to lookup and assert
3856 int omap_hwmod_assert_hardreset(struct omap_hwmod *oh, const char *name)
3865 ret = _assert_hardreset(oh, name);
3875 * @name: name of the reset line to look up and deassert
3883 int omap_hwmod_deassert_hardreset(struct omap_hwmod *oh, const char *name)
3892 ret = _deassert_hardreset(oh, name);
3900 * @classname: struct omap_hwmod_class name to search for
3925 if (!strcmp(temp_oh->class->name, classname)) {
3927 __func__, temp_oh->name);
4060 * omap_hwmod_get_main_clk - get pointer to main clock name
4063 * Returns the main clock name assocated with @oh upon success,