Lines Matching full:target

155  * Target Reset Action
233 * @brief Payload structure for Direct CCC to one target.
236 /** Target address */
257 * A Target can issue an EoD or the Controller can abort a transfer
298 * Each element describes the target and associated
311 * @brief Payload for ENEC/DISEC CCC (Target Events Command).
317 * - Target Interrupt Requests
326 /** Enable Events (ENEC) - Target Interrupt Requests. */
338 /** Disable Events (DISEC) - Target Interrupt Requests. */
355 /** Events - Target Interrupt Requests. */
372 * back from target device is in big endian. This needs to be
385 * back from target device is in big endian. This needs to be
418 * @brief The target device part of payload for DEFTGTS CCC.
421 * the existing target devices on the I3C bus.
424 /** Dynamic Address of a target device, or a group address */
429 * Device Characteristic Register of a I3C target device
438 /** Bus Characteristic Register of a target device or a group */
441 /** Static Address of a target device or a group */
460 /** Data describing the target(s) on the bus */
486 * Note that the target address is encoded within
552 /** Target status. */
576 * back from target device is in big endian. This needs to be
599 * back from target device is in big endian. This needs to be
647 * @brief One Bridged Target for SETBRGTGT payload.
651 * Dynamic address of the bridged target.
659 * 16-bit ID for the bridged target.
662 * back from target device is in big endian. This needs to be
672 * Note that the bridge target address is encoded within
702 /** Standard Target Write/Read speed parameters, and optional Maximum Read Turnaround Time
873 /** Standard Target capabilities and features. */
882 /** Virtual Target capabilities and features. */
970 * - Bit[2:0]: Virtual Target Type
1182 /** Get Capabilities (GETCAPS) - VTCAP1 - Virtual Target Type bitmask. */
1186 * @brief Get Capabilities (GETCAPS) - VTCAP1 - Virtual Target Type
1188 * Obtain Virtual Target Type value from VTCAP1 value
1197 * @brief Get Virtual Target Capabilities Byte 1 (GETCAPS) Format 2 -
1203 * @brief Get Virtual Target Capabilities Byte 1 (GETCAPS) Format 2 -
1223 * @brief Get Virtual Target Capabilities Byte 2 (GETCAPS) Format 2 -
1246 /** No Reset on Target Reset Pattern. */
1252 /** Reset the Whole Target. */
1258 /** Virtual Target Detect. */
1264 /** Return Time to Reset Whole Target */
1270 /** Return Virtual Target Indication */
1368 * @retval true if payload target is broadcast
1369 * @retval false if payload target is direct
1377 * @brief Get BCR from a target
1380 * target device.
1382 * @param[in] target Pointer to the target device descriptor.
1387 int i3c_ccc_do_getbcr(struct i3c_device_desc *target,
1391 * @brief Get DCR from a target
1394 * target device.
1396 * @param[in] target Pointer to the target device descriptor.
1401 int i3c_ccc_do_getdcr(struct i3c_device_desc *target,
1405 * @brief Get PID from a target
1408 * target device.
1410 * @param[in] target Pointer to the target device descriptor.
1415 int i3c_ccc_do_getpid(struct i3c_device_desc *target,
1421 * Helper function to broadcast Target Reset Action (RSTACT) to
1433 * @brief Single target RSTACT to reset I3C Peripheral.
1435 * Helper function to do Target Reset Action (RSTACT) to
1436 * one target.
1438 * @param[in] target Pointer to the target device descriptor.
1445 int i3c_ccc_do_rstact(const struct i3c_device_desc *target,
1451 * @brief Single target RSTACT to reset I3C Peripheral (Format 2).
1453 * Helper function to do Target Reset Action (RSTACT, format 2) to
1454 * one target. This is a Direct Write.
1456 * @param[in] target Pointer to the target device descriptor.
1461 static inline int i3c_ccc_do_rstact_fmt2(const struct i3c_device_desc *target, in i3c_ccc_do_rstact_fmt2() argument
1464 return i3c_ccc_do_rstact(target, action, false, NULL); in i3c_ccc_do_rstact_fmt2()
1468 * @brief Single target RSTACT to reset I3C Peripheral (Format 3).
1470 * Helper function to do Target Reset Action (RSTACT, format 3) to
1471 * one target. This is a Direct Read.
1473 * @param[in] target Pointer to the target device descriptor.
1479 static inline int i3c_ccc_do_rstact_fmt3(const struct i3c_device_desc *target, in i3c_ccc_do_rstact_fmt3() argument
1483 return i3c_ccc_do_rstact(target, action, true, data); in i3c_ccc_do_rstact_fmt3()
1498 * @brief Set Dynamic Address from Static Address for a target
1501 * for a particular target.
1503 * Note this does not update @p target with the new dynamic address.
1505 * @param[in] target Pointer to the target device descriptor where
1511 int i3c_ccc_do_setdasa(const struct i3c_device_desc *target,
1515 * @brief Set New Dynamic Address for a target
1517 * Helper function to do SETNEWDA(Set New Dynamic Address) for a particular target.
1519 * Note this does not update @p target with the new dynamic address.
1521 * @param[in] target Pointer to the target device descriptor where
1527 int i3c_ccc_do_setnewda(const struct i3c_device_desc *target,
1531 * @brief Broadcast ENEC/DISEC to enable/disable target events.
1533 * Helper function to broadcast Target Events Command to enable or
1534 * disable target events (ENEC/DISEC).
1546 * @brief Direct CCC ENEC/DISEC to enable/disable target events.
1548 * Helper function to send Target Events Command to enable or
1549 * disable target events (ENEC/DISEC) on a single target.
1551 * @param[in] target Pointer to the target device descriptor.
1557 int i3c_ccc_do_events_set(struct i3c_device_desc *target,
1564 * target.
1566 * @param[in] target Pointer to the target device descriptor.
1571 int i3c_ccc_do_entas(const struct i3c_device_desc *target, uint8_t as);
1577 * on a single target.
1579 * @param[in] target Pointer to the target device descriptor.
1583 static inline int i3c_ccc_do_entas0(const struct i3c_device_desc *target) in i3c_ccc_do_entas0() argument
1585 return i3c_ccc_do_entas(target, 0); in i3c_ccc_do_entas0()
1592 * on a single target.
1594 * @param[in] target Pointer to the target device descriptor.
1598 static inline int i3c_ccc_do_entas1(const struct i3c_device_desc *target) in i3c_ccc_do_entas1() argument
1600 return i3c_ccc_do_entas(target, 1); in i3c_ccc_do_entas1()
1607 * on a single target.
1609 * @param[in] target Pointer to the target device descriptor.
1613 static inline int i3c_ccc_do_entas2(const struct i3c_device_desc *target) in i3c_ccc_do_entas2() argument
1615 return i3c_ccc_do_entas(target, 2); in i3c_ccc_do_entas2()
1622 * on a single target.
1624 * @param[in] target Pointer to the target device descriptor.
1628 static inline int i3c_ccc_do_entas3(const struct i3c_device_desc *target) in i3c_ccc_do_entas3() argument
1630 return i3c_ccc_do_entas(target, 3); in i3c_ccc_do_entas3()
1716 * @brief Single target SETMWL to Set Maximum Write Length.
1719 * one target.
1721 * @param[in] target Pointer to the target device descriptor.
1726 int i3c_ccc_do_setmwl(const struct i3c_device_desc *target,
1730 * @brief Single target GETMWL to Get Maximum Write Length.
1733 * one target.
1735 * @param[in] target Pointer to the target device descriptor.
1740 int i3c_ccc_do_getmwl(const struct i3c_device_desc *target,
1761 * @brief Single target SETMRL to Set Maximum Read Length.
1764 * one target.
1766 * Note this uses the BCR of the target to determine whether
1769 * @param[in] target Pointer to the target device descriptor.
1774 int i3c_ccc_do_setmrl(const struct i3c_device_desc *target,
1778 * @brief Single target GETMRL to Get Maximum Read Length.
1781 * one target.
1783 * Note this uses the BCR of the target to determine whether
1786 * @param[in] target Pointer to the target device descriptor.
1791 int i3c_ccc_do_getmrl(const struct i3c_device_desc *target,
1808 * @brief Single target GETSTATUS to Get Target Status.
1810 * Helper function to do GETSTATUS (Get Target Status) of
1811 * one target.
1813 * Note this uses the BCR of the target to determine whether
1816 * @param[in] target Pointer to the target device descriptor.
1823 int i3c_ccc_do_getstatus(const struct i3c_device_desc *target,
1829 * @brief Single target GETSTATUS to Get Target Status (Format 1).
1831 * Helper function to do GETSTATUS (Get Target Status, format 1) of
1832 * one target.
1834 * @param[in] target Pointer to the target device descriptor.
1839 static inline int i3c_ccc_do_getstatus_fmt1(const struct i3c_device_desc *target, in i3c_ccc_do_getstatus_fmt1() argument
1842 return i3c_ccc_do_getstatus(target, status, in i3c_ccc_do_getstatus_fmt1()
1848 * @brief Single target GETSTATUS to Get Target Status (Format 2).
1850 * Helper function to do GETSTATUS (Get Target Status, format 2) of
1851 * one target.
1853 * @param[in] target Pointer to the target device descriptor.
1859 static inline int i3c_ccc_do_getstatus_fmt2(const struct i3c_device_desc *target, in i3c_ccc_do_getstatus_fmt2() argument
1863 return i3c_ccc_do_getstatus(target, status, in i3c_ccc_do_getstatus_fmt2()
1868 * @brief Single target GETCAPS to Get Target Status.
1871 * one target.
1876 * @param[in] target Pointer to the target device descriptor.
1883 int i3c_ccc_do_getcaps(const struct i3c_device_desc *target,
1889 * @brief Single target GETCAPS to Get Capabilities (Format 1).
1892 * one target.
1894 * @param[in] target Pointer to the target device descriptor.
1899 static inline int i3c_ccc_do_getcaps_fmt1(const struct i3c_device_desc *target, in i3c_ccc_do_getcaps_fmt1() argument
1902 return i3c_ccc_do_getcaps(target, caps, in i3c_ccc_do_getcaps_fmt1()
1908 * @brief Single target GETCAPS to Get Capabilities (Format 2).
1911 * one target.
1913 * @param[in] target Pointer to the target device descriptor.
1919 static inline int i3c_ccc_do_getcaps_fmt2(const struct i3c_device_desc *target, in i3c_ccc_do_getcaps_fmt2() argument
1923 return i3c_ccc_do_getcaps(target, caps, in i3c_ccc_do_getcaps_fmt2()
1928 * @brief Single target to Set Vendor / Standard Extension CCC
1931 * one target.
1933 * @param[in] target Pointer to the target device descriptor.
1940 int i3c_ccc_do_setvendor(const struct i3c_device_desc *target,
1946 * @brief Single target to Get Vendor / Standard Extension CCC
1949 * one target.
1951 * @param[in] target Pointer to the target device descriptor.
1959 int i3c_ccc_do_getvendor(const struct i3c_device_desc *target,
1966 * @brief Single target to Get Vendor / Standard Extension CCC
1970 * one target.
1972 * @param[in] target Pointer to the target device descriptor.
1981 int i3c_ccc_do_getvendor_defbyte(const struct i3c_device_desc *target,
2006 * @brief Broadcast SETAASA to set all target's dynamic address to their
2019 * @brief Single target GETMXDS to Get Max Data Speed.
2022 * one target.
2027 * @param[in] target Pointer to the target device descriptor.
2034 int i3c_ccc_do_getmxds(const struct i3c_device_desc *target,
2040 * @brief Single target GETMXDS to Get Max Data Speed (Format 1).
2043 * one target.
2045 * @param[in] target Pointer to the target device descriptor.
2050 static inline int i3c_ccc_do_getmxds_fmt1(const struct i3c_device_desc *target, in i3c_ccc_do_getmxds_fmt1() argument
2053 return i3c_ccc_do_getmxds(target, caps, in i3c_ccc_do_getmxds_fmt1()
2059 * @brief Single target GETMXDS to Get Max Data Speed (Format 2).
2062 * one target.
2064 * @param[in] target Pointer to the target device descriptor.
2069 static inline int i3c_ccc_do_getmxds_fmt2(const struct i3c_device_desc *target, in i3c_ccc_do_getmxds_fmt2() argument
2072 return i3c_ccc_do_getmxds(target, caps, in i3c_ccc_do_getmxds_fmt2()
2078 * @brief Single target GETMXDS to Get Max Data Speed (Format 3).
2081 * one target.
2083 * @param[in] target Pointer to the target device descriptor.
2089 static inline int i3c_ccc_do_getmxds_fmt3(const struct i3c_device_desc *target, in i3c_ccc_do_getmxds_fmt3() argument
2093 return i3c_ccc_do_getmxds(target, caps, in i3c_ccc_do_getmxds_fmt3()