• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/plat-omap/

Lines Matching refs:omap_device

2  * omap_device implementation
23 * b) implemented as a proper omap_bus/omap_device in Linux, no more
86 #include <plat/omap_device.h>
94 * OMAP_DEVICE_MAGIC: used to determine whether a struct omap_device
95 * obtained via container_of() is in fact a struct omap_device
103 * @od: struct omap_device *
106 * Increase readiness of omap_device @od (thus decreasing device
108 * IGNORE_WAKEUP_LAT, make the omap_device fully active. Otherwise,
115 static int _omap_device_activate(struct omap_device *od, u8 ignore_lat)
119 pr_debug("omap_device: %s: activating\n", od->pdev.name);
142 pr_debug("omap_device: %s: pm_lat %d: activate: elapsed time "
150 pr_warning("omap_device: %s.%d: new worst case "
155 pr_warning("omap_device: %s.%d: activate "
171 * @od: struct omap_device *
174 * Decrease readiness of omap_device @od (thus increasing device
176 * IGNORE_WAKEUP_LAT, make the omap_device fully inactive. Otherwise,
183 static int _omap_device_deactivate(struct omap_device *od, u8 ignore_lat)
187 pr_debug("omap_device: %s: deactivating\n", od->pdev.name);
209 pr_debug("omap_device: %s: pm_lat %d: deactivate: elapsed time "
217 pr_warning("omap_device: %s.%d: new worst case "
222 pr_warning("omap_device: %s.%d: deactivate "
239 static inline struct omap_device *_find_by_pdev(struct platform_device *pdev)
241 return container_of(pdev, struct omap_device, pdev);
249 * @od: struct omap_device *
252 * omap_device @od. Used by omap_device_build_ss() to determine how
256 int omap_device_count_resources(struct omap_device *od)
265 pr_debug("omap_device: %s: counted %d total resources across %d "
273 * @od: struct omap_device *
277 * the resource data for this omap_device @od. Used by
279 * Ideally this function would not be needed at all. If omap_device
284 * platform_device functions can simply call omap_device internal
288 int omap_device_fill_resources(struct omap_device *od, struct resource *res)
304 * omap_device_build - build and register an omap_device with one omap_hwmod
307 * @oh: ptr to the single omap_hwmod that backs this omap_device
315 * omap_device record, which in turn builds and registers a
320 struct omap_device *omap_device_build(const char *pdev_name, int pdev_id,
337 * omap_device_build_ss - build and register an omap_device with multiple hwmods
340 * @oh: ptr to the single omap_hwmod that backs this omap_device
347 * Convenience function for building and registering an omap_device
353 struct omap_device *omap_device_build_ss(const char *pdev_name, int pdev_id,
360 struct omap_device *od;
372 pr_debug("omap_device: %s: building with %d hwmods\n", pdev_name,
375 od = kzalloc(sizeof(struct omap_device), GFP_KERNEL);
439 pr_err("omap_device: %s: build failed (%d)\n", pdev_name, ret);
445 * omap_early_device_register - register an omap_device as an early platform
447 * @od: struct omap_device * to register
449 * Register the omap_device structure. This currently just calls
453 int omap_early_device_register(struct omap_device *od)
463 * omap_device_register - register an omap_device with one omap_hwmod
464 * @od: struct omap_device * to register
466 * Register the omap_device structure. This currently just calls
470 int omap_device_register(struct omap_device *od)
472 pr_debug("omap_device: %s: registering\n", od->pdev.name);
481 * omap_device_enable - fully activate an omap_device
482 * @od: struct omap_device * to activate
484 * Do whatever is necessary for the hwmods underlying omap_device @od
489 * enable clocks, etc. Returns -EINVAL if called when the omap_device
496 struct omap_device *od;
501 WARN(1, "omap_device: %s.%d: %s() called from invalid state %d\n",
520 * omap_device_idle - idle an omap_device
521 * @od: struct omap_device * to idle
523 * Idle omap_device @od by calling as many .deactivate_func() entries
524 * in the omap_device's pm_lats table as is possible without exceeding
528 * complete, etc.. Returns -EINVAL if the omap_device is not
535 struct omap_device *od;
540 WARN(1, "omap_device: %s.%d: %s() called from invalid state %d\n",
553 * omap_device_shutdown - shut down an omap_device
554 * @od: struct omap_device * to shut down
556 * Shut down omap_device @od by calling all .deactivate_func() entries
557 * in the omap_device's pm_lats table and then shutting down all of
560 * omap_device is not currently enabled or idle, or passes along the
566 struct omap_device *od;
573 WARN(1, "omap_device: %s.%d: %s() called from invalid state %d\n",
590 * @od: struct omap_device *
594 * omap_device's pm_lats array to ensure that the device's maximum
599 * done (e.g., if the omap_device is not currently idle, or if the
608 struct omap_device *od;
628 * omap_device_is_valid - Check if pointer is a valid omap_device
629 * @od: struct omap_device *
631 * Return whether struct omap_device pointer @od points to a valid
632 * omap_device.
634 bool omap_device_is_valid(struct omap_device *od)
641 * @od: struct omap_device *
644 * omap_hwmod for this omap_device. Intended for use by core OMAP PM
648 struct powerdomain *omap_device_get_pwrdm(struct omap_device *od)
658 * @od: struct omap_device *
663 * or more than one hwmods associated with this omap_device;
667 void __iomem *omap_device_get_rt_va(struct omap_device *od)
682 * @od: struct omap_device *od
686 int omap_device_enable_hwmods(struct omap_device *od)
699 * @od: struct omap_device *od
703 int omap_device_idle_hwmods(struct omap_device *od)
716 * @od: struct omap_device *od
719 * omap_hwmods associated with the omap_device. Returns 0.
721 int omap_device_disable_clocks(struct omap_device *od)
734 * @od: struct omap_device *od
737 * omap_hwmods associated with the omap_device. Returns 0.
739 int omap_device_enable_clocks(struct omap_device *od)