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>
18 #include <linux/cec-funcs.h>
19 #include <media/rc-core.h>
25 * struct cec_devnode - cec device node
35 * This structure represents a cec-related device node.
114 /* The nominal data bit period is 2.4 ms */
118 /* Low-level callbacks, called with adap->lock held */
131 /* Error injection callbacks, called without adap->lock held */
135 /* High-level CEC message callback, called without adap->lock held */
141 * The minimum message length you can receive (excepting poll messages) is 2.
142 * With a transfer rate of at most 36 bytes per second this makes 18 messages
161 * struct cec_adapter - cec adapter structure
177 * @xfer_timeout_ms: the transfer timeout in ms.
178 * If 0, then timeout after 2100 ms.
303 struct cec_devnode *devnode = &adap->devnode; in cec_get_device()
307 * the devnode->lock held to prevent an open/unregister race: in cec_get_device()
309 * the devnode->registered check and get_device() calls, leading to in cec_get_device()
312 mutex_lock(&devnode->lock); in cec_get_device()
317 if (!devnode->registered) { in cec_get_device()
318 mutex_unlock(&devnode->lock); in cec_get_device()
319 return -ENODEV; in cec_get_device()
322 get_device(&devnode->dev); in cec_get_device()
323 mutex_unlock(&devnode->lock); in cec_get_device()
329 put_device(&adap->devnode.dev); in cec_put_device()
334 return adap->priv; in cec_get_drvdata()
339 return adap->log_addrs.log_addr_mask & (1 << log_addr); in cec_has_log_addr()
344 return adap->phys_addr == 0; in cec_is_sink()
348 * cec_is_registered() - is the CEC adapter registered?
356 return adap && adap->devnode.registered; in cec_is_registered()
419 * cec_queue_pin_cec_event() - queue a CEC pin event with a given timestamp.
431 * cec_queue_pin_hpd_event() - queue a pin event with a given timestamp.
441 * cec_queue_pin_5v_event() - queue a pin event with a given timestamp.
451 * cec_get_edid_phys_addr() - find and return the physical address
516 * cec_phys_addr_invalidate() - set the physical address to INVALID
529 * cec_get_edid_spa_location() - find location of the Source Physical Address
534 * This EDID is expected to be a CEA-861 compliant, which means that there are
535 * at least two blocks and one or more of the extensions blocks are CEA-861
538 * The returned location is guaranteed to be <= size-2.
559 * though more blocks are present. The first CEA-861 extension block in cec_get_edid_spa_location()
568 /* Skip any non-CEA-861 extension blocks */ in cec_get_edid_spa_location()