Lines Matching +full:clear +full:- +full:bit

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * i2c Support for Atmel's AT91 Two-Wire Interface (TWI)
18 #include <linux/dma-mapping.h>
30 #define AT91_TWI_START BIT(0) /* Send a Start Condition */
31 #define AT91_TWI_STOP BIT(1) /* Send a Stop Condition */
32 #define AT91_TWI_MSEN BIT(2) /* Master Transfer Enable */
33 #define AT91_TWI_MSDIS BIT(3) /* Master Transfer Disable */
34 #define AT91_TWI_SVEN BIT(4) /* Slave Transfer Enable */
35 #define AT91_TWI_SVDIS BIT(5) /* Slave Transfer Disable */
36 #define AT91_TWI_QUICK BIT(6) /* SMBus quick command */
37 #define AT91_TWI_SWRST BIT(7) /* Software Reset */
38 #define AT91_TWI_CLEAR BIT(15) /* Bus clear command */
39 #define AT91_TWI_ACMEN BIT(16) /* Alternative Command Mode Enable */
40 #define AT91_TWI_ACMDIS BIT(17) /* Alternative Command Mode Disable */
41 #define AT91_TWI_THRCLR BIT(24) /* Transmit Holding Register Clear */
42 #define AT91_TWI_RHRCLR BIT(25) /* Receive Holding Register Clear */
43 #define AT91_TWI_LOCKCLR BIT(26) /* Lock Clear */
44 #define AT91_TWI_FIFOEN BIT(28) /* FIFO Enable */
45 #define AT91_TWI_FIFODIS BIT(29) /* FIFO Disable */
49 #define AT91_TWI_MREAD BIT(12) /* Master Read Direction */
62 #define AT91_TWI_TXCOMP BIT(0) /* Transmission Complete */
63 #define AT91_TWI_RXRDY BIT(1) /* Receive Holding Register Ready */
64 #define AT91_TWI_TXRDY BIT(2) /* Transmit Holding Register Ready */
65 #define AT91_TWI_SVREAD BIT(3) /* Slave Read */
66 #define AT91_TWI_SVACC BIT(4) /* Slave Access */
67 #define AT91_TWI_OVRE BIT(6) /* Overrun Error */
68 #define AT91_TWI_UNRE BIT(7) /* Underrun Error */
69 #define AT91_TWI_NACK BIT(8) /* Not Acknowledged */
70 #define AT91_TWI_EOSACC BIT(11) /* End Of Slave Access */
71 #define AT91_TWI_LOCK BIT(23) /* TWI Lock due to Frame Errors */
72 #define AT91_TWI_SCL BIT(24) /* TWI SCL status */
73 #define AT91_TWI_SDA BIT(25) /* TWI SDA status */
88 #define AT91_TWI_ACR_DIR BIT(8)
91 #define AT91_TWI_FILTR_FILT BIT(0)
92 #define AT91_TWI_FILTR_PADFEN BIT(1)
188 return -EINVAL; in at91_twi_probe_slave()