Lines Matching +full:poll +full:- +full:rate +full:- +full:ms
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * cec - HDMI Consumer Electronics Control support header
11 #include <linux/poll.h>
17 #include <linux/cec-funcs.h>
18 #include <media/rc-core.h>
24 * struct cec_devnode - cec device node
34 * This structure represents a cec-related device node.
113 /* The nominal data bit period is 2.4 ms */
117 /* Low-level callbacks, called with adap->lock held */
130 /* Error injection callbacks, called without adap->lock held */
134 /* High-level CEC message callback, called without adap->lock held */
140 * The minimum message length you can receive (excepting poll messages) is 2.
141 * With a transfer rate of at most 36 bytes per second this makes 18 messages
160 * struct cec_adapter - cec adapter structure
176 * @xfer_timeout_ms: the transfer timeout in ms.
177 * If 0, then timeout after 2100 ms.
302 struct cec_devnode *devnode = &adap->devnode; in cec_get_device()
306 * the devnode->lock held to prevent an open/unregister race: in cec_get_device()
308 * the devnode->registered check and get_device() calls, leading to in cec_get_device()
311 mutex_lock(&devnode->lock); in cec_get_device()
316 if (!devnode->registered) { in cec_get_device()
317 mutex_unlock(&devnode->lock); in cec_get_device()
318 return -ENODEV; in cec_get_device()
321 get_device(&devnode->dev); in cec_get_device()
322 mutex_unlock(&devnode->lock); in cec_get_device()
328 put_device(&adap->devnode.dev); in cec_put_device()
333 return adap->priv; in cec_get_drvdata()
338 return adap->log_addrs.log_addr_mask & (1 << log_addr); in cec_has_log_addr()
343 return adap->phys_addr == 0; in cec_is_sink()
347 * cec_is_registered() - is the CEC adapter registered?
355 return adap && adap->devnode.registered; in cec_is_registered()
418 * cec_queue_pin_cec_event() - queue a CEC pin event with a given timestamp.
430 * cec_queue_pin_hpd_event() - queue a pin event with a given timestamp.
440 * cec_queue_pin_5v_event() - queue a pin event with a given timestamp.
450 * cec_get_edid_phys_addr() - find and return the physical address
515 * cec_phys_addr_invalidate() - set the physical address to INVALID
528 * cec_get_edid_spa_location() - find location of the Source Physical Address
533 * This EDID is expected to be a CEA-861 compliant, which means that there are
534 * at least two blocks and one or more of the extensions blocks are CEA-861
537 * The returned location is guaranteed to be <= size-2.
558 * though more blocks are present. The first CEA-861 extension block in cec_get_edid_spa_location()
567 /* Skip any non-CEA-861 extension blocks */ in cec_get_edid_spa_location()