drivers/video/fbdev/omap2/omapfb/dss/output.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/omap2/omapfb/dss/output.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/omap2/omapfb/dss/output.c- Extension
.c- Size
- 5370 bytes
- Lines
- 258
- Domain
- Driver Families
- Bucket
- drivers/video
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/export.hlinux/kernel.hlinux/module.hlinux/platform_device.hlinux/slab.hlinux/of.hvideo/omapfb_dss.hdss.h
Detected Declarations
function omapdss_output_set_devicefunction omapdss_output_unset_devicefunction omapdss_register_outputfunction omapdss_unregister_outputfunction list_for_each_entryfunction list_for_each_entryfunction list_for_each_entryfunction dss_install_mgr_opsfunction dss_uninstall_mgr_opsfunction dss_mgr_connectfunction dss_mgr_disconnectfunction dss_mgr_set_timingsfunction dss_mgr_set_lcd_configfunction dss_mgr_enablefunction dss_mgr_disablefunction dss_mgr_start_updatefunction dss_mgr_register_framedone_handlerfunction dss_mgr_unregister_framedone_handlerexport omapdss_output_set_deviceexport omapdss_output_unset_deviceexport omapdss_register_outputexport omapdss_unregister_outputexport omap_dss_get_outputexport omap_dss_find_outputexport omap_dss_find_output_by_port_nodeexport omapdss_find_output_from_displayexport omapdss_find_mgr_from_displayexport dss_install_mgr_opsexport dss_uninstall_mgr_opsexport dss_mgr_connectexport dss_mgr_disconnectexport dss_mgr_set_timingsexport dss_mgr_set_lcd_configexport dss_mgr_enableexport dss_mgr_disableexport dss_mgr_start_updateexport dss_mgr_register_framedone_handlerexport dss_mgr_unregister_framedone_handler
Annotated Snippet
if (out->dev->of_node == src_node && out->port_num == reg) {
of_node_put(src_node);
return omap_dss_get_device(out);
}
}
of_node_put(src_node);
return NULL;
}
EXPORT_SYMBOL(omap_dss_find_output_by_port_node);
struct omap_dss_device *omapdss_find_output_from_display(struct omap_dss_device *dssdev)
{
while (dssdev->src)
dssdev = dssdev->src;
if (dssdev->id != 0)
return omap_dss_get_device(dssdev);
return NULL;
}
EXPORT_SYMBOL(omapdss_find_output_from_display);
struct omap_overlay_manager *omapdss_find_mgr_from_display(struct omap_dss_device *dssdev)
{
struct omap_dss_device *out;
struct omap_overlay_manager *mgr;
out = omapdss_find_output_from_display(dssdev);
if (out == NULL)
return NULL;
mgr = out->manager;
omap_dss_put_device(out);
return mgr;
}
EXPORT_SYMBOL(omapdss_find_mgr_from_display);
static const struct dss_mgr_ops *dss_mgr_ops;
int dss_install_mgr_ops(const struct dss_mgr_ops *mgr_ops)
{
if (dss_mgr_ops)
return -EBUSY;
dss_mgr_ops = mgr_ops;
return 0;
}
EXPORT_SYMBOL(dss_install_mgr_ops);
void dss_uninstall_mgr_ops(void)
{
dss_mgr_ops = NULL;
}
EXPORT_SYMBOL(dss_uninstall_mgr_ops);
int dss_mgr_connect(struct omap_overlay_manager *mgr,
struct omap_dss_device *dst)
{
return dss_mgr_ops->connect(mgr, dst);
}
EXPORT_SYMBOL(dss_mgr_connect);
void dss_mgr_disconnect(struct omap_overlay_manager *mgr,
struct omap_dss_device *dst)
{
dss_mgr_ops->disconnect(mgr, dst);
}
EXPORT_SYMBOL(dss_mgr_disconnect);
void dss_mgr_set_timings(struct omap_overlay_manager *mgr,
const struct omap_video_timings *timings)
{
dss_mgr_ops->set_timings(mgr, timings);
}
EXPORT_SYMBOL(dss_mgr_set_timings);
void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr,
const struct dss_lcd_mgr_config *config)
{
dss_mgr_ops->set_lcd_config(mgr, config);
}
EXPORT_SYMBOL(dss_mgr_set_lcd_config);
int dss_mgr_enable(struct omap_overlay_manager *mgr)
Annotation
- Immediate include surface: `linux/export.h`, `linux/kernel.h`, `linux/module.h`, `linux/platform_device.h`, `linux/slab.h`, `linux/of.h`, `video/omapfb_dss.h`, `dss.h`.
- Detected declarations: `function omapdss_output_set_device`, `function omapdss_output_unset_device`, `function omapdss_register_output`, `function omapdss_unregister_output`, `function list_for_each_entry`, `function list_for_each_entry`, `function list_for_each_entry`, `function dss_install_mgr_ops`, `function dss_uninstall_mgr_ops`, `function dss_mgr_connect`.
- Atlas domain: Driver Families / drivers/video.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.