Searched refs:omap_device (Results 1 - 32 of 32) sorted by relevance

/linux-4.1.27/arch/arm/mach-omap2/
H A Domap_device.h2 * omap_device headers
17 * omap_bus/omap_device in Linux.
19 * omap_device differs from omap_hwmod in that it includes external
34 /* omap_device._state values */
40 /* omap_device.flags values */
44 * struct omap_device - omap_device wrapper for platform_devices
46 * @hwmods: (one .. many per omap_device)
55 * the omap_device code.
58 struct omap_device { struct
82 struct omap_device *omap_device_alloc(struct platform_device *pdev,
84 void omap_device_delete(struct omap_device *od);
99 /* Get omap_device pointer from platform_device pointer */ to_omap_device()
100 static inline struct omap_device *to_omap_device(struct platform_device *pdev) to_omap_device()
H A Domap_device.c2 * omap_device implementation
21 * proper omap_bus/omap_device in Linux, no more platform_data func
41 #include "omap_device.h"
46 static void _add_clkdev(struct omap_device *od, const char *clk_alias, _add_clkdev()
85 * @od: struct omap_device *od
89 * omap_device, this function adds an entry in the clkdev table of the
101 static void _add_hwmod_clocks_clkdev(struct omap_device *od, _add_hwmod_clocks_clkdev()
114 * omap_device_build_from_dt - build an omap_device with multiple hwmods
117 * @oh: ptr to the single omap_hwmod that backs this omap_device
121 * Function for building an omap_device already registered from device-tree
128 struct omap_device *od; omap_device_build_from_dt()
137 dev_dbg(&pdev->dev, "No 'hwmods' to build omap_device\n"); omap_device_build_from_dt()
163 dev_err(&pdev->dev, "Cannot allocate omap_device for :%s\n", omap_device_build_from_dt()
198 struct omap_device *od; _omap_device_notifier_call()
221 * @od: struct omap_device *od
225 static int _omap_device_enable_hwmods(struct omap_device *od) _omap_device_enable_hwmods()
238 * @od: struct omap_device *od
242 static int _omap_device_idle_hwmods(struct omap_device *od) _omap_device_idle_hwmods()
257 * @od: struct omap_device *
266 * If any hwmods exist for the omap_device assoiated with @pdev,
272 struct omap_device *od; omap_device_get_context_loss_count()
285 * @od: struct omap_device *
289 * omap_device @od. Used by omap_device_build_ss() to determine how
293 static int omap_device_count_resources(struct omap_device *od, omap_device_count_resources()
302 pr_debug("omap_device: %s: counted %d total resources across %d hwmods\n", omap_device_count_resources()
310 * @od: struct omap_device *
314 * the resource data for this omap_device @od. Used by
316 * Ideally this function would not be needed at all. If omap_device
321 * platform_device functions can simply call omap_device internal
325 static int omap_device_fill_resources(struct omap_device *od, omap_device_fill_resources()
340 * @od: struct omap_device *
344 * the dma resource data for this omap_device @od. Used by
352 static int _od_fill_dma_resources(struct omap_device *od, _od_fill_dma_resources()
366 * omap_device_alloc - allocate an omap_device
367 * @pdev: platform_device that will be included in this omap_device
368 * @oh: ptr to the single omap_hwmod that backs this omap_device
372 * Convenience function for allocating an omap_device structure and filling
375 * Returns an struct omap_device pointer or ERR_PTR() on error;
377 struct omap_device *omap_device_alloc(struct platform_device *pdev, omap_device_alloc()
381 struct omap_device *od; omap_device_alloc()
386 od = kzalloc(sizeof(struct omap_device), GFP_KERNEL); omap_device_alloc()
481 dev_err(&pdev->dev, "omap_device: build failed (%d)\n", ret); omap_device_alloc()
486 void omap_device_delete(struct omap_device *od) omap_device_delete()
497 * omap_device_build - build and register an omap_device with one omap_hwmod
500 * @oh: ptr to the single omap_hwmod that backs this omap_device
505 * omap_device record, which in turn builds and registers a
525 * omap_device_build_ss - build and register an omap_device with multiple hwmods
528 * @oh: ptr to the single omap_hwmod that backs this omap_device
532 * Convenience function for building and registering an omap_device
546 struct omap_device *od; omap_device_build_ss()
586 pr_err("omap_device: %s: build failed (%d)\n", pdev_name, ret); omap_device_build_ss()
632 struct omap_device *od = to_omap_device(pdev); _od_suspend_noirq()
655 struct omap_device *od = to_omap_device(pdev); _od_resume_noirq()
700 * omap_device_register - register an omap_device with one omap_hwmod
701 * @od: struct omap_device * to register
703 * Register the omap_device structure. This currently just calls
709 pr_debug("omap_device: %s: registering\n", pdev->name); omap_device_register()
719 * omap_device_enable - fully activate an omap_device
720 * @od: struct omap_device * to activate
722 * Do whatever is necessary for the hwmods underlying omap_device @od
727 * the omap_device is already enabled, or passes along the return
733 struct omap_device *od; omap_device_enable()
739 "omap_device: %s() called from invalid state %d\n", omap_device_enable()
752 * omap_device_idle - idle an omap_device
753 * @od: struct omap_device * to idle
755 * Idle omap_device @od. Device drivers call this function indirectly
756 * via pm_runtime_put*(). Returns -EINVAL if the omap_device is not
763 struct omap_device *od; omap_device_idle()
769 "omap_device: %s() called from invalid state %d\n", omap_device_idle()
795 struct omap_device *od = to_omap_device(pdev); omap_device_assert_hardreset()
823 struct omap_device *od = to_omap_device(pdev); omap_device_deassert_hardreset()
860 WARN(1, "%s: no omap_device for %s\n", __func__, omap_device_get_by_hwmod_name()
881 * @dev: struct device * associated with omap_device
890 struct omap_device *od = to_omap_device(pdev); omap_device_late_idle()
897 * If omap_device state is enabled, but has no driver bound, omap_device_late_idle()
H A Ddevices.c30 #include "omap_device.h"
64 WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name); omap3_l3_init()
201 WARN(IS_ERR(pdev), "Can't build omap_device for %s:%s\n", omap_mcspi_init()
217 * omap_init_rng - bind the RNG hwmod to the RNG omap_device omap_init_mcspi()
219 * Bind the RNG hwmod to the RNG omap_device. No return value. omap_init_mcspi()
231 WARN(IS_ERR(pdev), "Can't build omap_device for omap_rng\n"); omap_init_rng()
244 WARN(IS_ERR(pdev), "Can't build omap_device for omap-sham\n"); omap_init_sham()
257 WARN(IS_ERR(pdev), "Can't build omap_device for omap-aes\n"); omap_init_aes()
334 WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name); omap_gpmc_init()
H A Dhwspinlock.c26 #include "omap_device.h"
52 pr_err("Can't build omap_device for %s:%s\n", dev_name, hwspinlocks_init()
H A Dpmu.c20 #include "omap_device.h"
55 WARN(IS_ERR(omap_pmu_dev), "Can't build omap_device for %s.\n", omap2_init_pmu()
H A Dusb-musb.c28 #include "omap_device.h"
96 pr_err("Could not build omap_device for %s %s\n", usb_musb_init()
H A Dhdq1w.c32 #include "omap_device.h"
93 WARN(IS_ERR(pdev), "Can't build omap_device for %s:%s.\n", omap_init_hdq()
H A Dmcbsp.c27 #include "omap_device.h"
108 pr_err("%s: Can't build omap_device for %s:%s.\n", __func__, omap_init_mcbsp()
H A Dsr_device.c27 #include "omap_device.h"
157 pr_warn("%s: Could not build omap_device for %s: %s\n", sr_dev_init()
H A Dwd_timer.c19 #include "omap_device.h"
128 WARN(IS_ERR(pdev), "Can't build omap_device for %s:%s.\n", omap_init_wdt()
H A Domap-iommu.c22 #include "omap_device.h"
H A Ddisplay.c34 #include "omap_device.h"
170 struct omap_device *od; create_dss_pdev()
200 pr_err("Could not alloc omap_device for %s\n", pdev_name); create_dss_pdev()
213 pr_err("Could not register omap_device for %s\n", pdev_name); create_dss_pdev()
350 pr_err("Could not build omap_device for %s\n", omap_display_init()
364 pr_err("Could not build omap_device for %s\n", omap_display_init()
H A Dgpio.c28 #include "omap_device.h"
139 WARN(1, "Can't build omap_device for %s:%s.\n", omap2_gpio_dev_init()
H A Di2c.c24 #include "omap_device.h"
182 WARN(IS_ERR(pdev), "Could not build omap_device for %s\n", name); omap_i2c_add_bus()
H A Domap-pm-noop.c25 #include "omap_device.h"
133 WARN_ONCE(off_mode_enabled, "omap_pm: using dummy context loss counter; device %s should be converted to omap_device", omap_pm_get_dev_context_loss_count()
H A Dmsdi.c32 #include "omap_device.h"
H A Dopp.c24 #include "omap_device.h"
H A Dserial.c34 #include "omap_device.h"
86 struct omap_device *od = to_omap_device(pdev); omap_uart_enable_wakeup()
275 WARN(1, "Could not build omap_device for %s: %s.\n", name, omap_serial_init_port()
H A Ddma.c36 #include "omap_device.h"
237 pr_err("%s: Can't build omap_device for %s:%s.\n", omap2_system_dma_init_dev()
H A Dpm.c24 #include "omap_device.h"
86 if (WARN(IS_ERR(pdev), "%s: could not build omap_device for %s\n", _init_omap_device()
H A Dhsmmc.c22 #include "omap_device.h"
395 struct omap_device *od; omap_hsmmc_init_one()
H A Dpdata-quirks.c25 #include "omap_device.h"
H A DMakefile11 omap_device.o sram.o drm.o
H A Dtimer.c50 #include "omap_device.h"
744 pr_err("%s: Can't build omap_device for %s: %s.\n", omap_timer_init()
H A Domap_hwmod_33xx_data.c141 * properly adapted to omap_hwmod / omap_device
H A Dusb-host.c34 #include "omap_device.h"
H A Dboard-omap3beagle.c50 #include "omap_device.h"
H A Domap_hwmod.h39 struct omap_device;
619 * @od: struct omap_device currently associated with this hwmod (internal use)
663 struct omap_device *od;
H A Domap_hwmod.c47 * omap_device code, and in rare occasions, by custom integration code
48 * in arch/arm/ *omap*. The omap_device code includes functions to
68 * | omap_device code |
69 * | (../plat-omap/omap_device.c) |
3652 * omap_device code. Returns -EINVAL on error or 0 upon success.
3685 * omap_device code. Returns -EINVAL on error or 0 upon success.
H A Domap_hwmod_44xx_data.c248 * properly adapted to omap_hwmod / omap_device
/linux-4.1.27/arch/arm/include/asm/
H A Ddevice.h23 struct omap_device;
27 struct omap_device *od;
/linux-4.1.27/arch/arm/plat-omap/
H A DMakefile10 # omap_device support (OMAP2+ only at the moment)

Completed in 372 milliseconds