Lines Matching refs:port
18 # define SCSCR_INIT(port) 0x0030 /* TIE=0,RIE=0,TE=1,RE=1 */ argument
30 # define SCSCR_INIT(port) (((port)->type == PORT_SCI) ? \ argument
40 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
49 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
58 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
66 # define SCSCR_INIT(port) 0x38 argument
73 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
80 # define SCSCR_INIT(port) 0x3a argument
91 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
100 # define SCSCR_INIT(port) (port->clk_mode == EXT_CLK ? 0x32 : 0x30) argument
182 #define SCxSR_TEND(port)\ argument
183 (((port)->type == PORT_SCI) ? SCI_TEND : SCIF_TEND)
184 #define SCxSR_ERRORS(port)\ argument
185 (((port)->type == PORT_SCI) ? SCI_ERRORS : SCIF_ERRORS)
186 #define SCxSR_RDxF(port)\ argument
187 (((port)->type == PORT_SCI) ? SCI_RDRF : SCIF_RDF)
188 #define SCxSR_TDxE(port)\ argument
189 (((port)->type == PORT_SCI) ? SCI_TDRE : SCIF_TDFE)
190 #define SCxSR_FER(port)\ argument
191 (((port)->type == PORT_SCI) ? SCI_FER : SCIF_FER)
192 #define SCxSR_PER(port)\ argument
193 (((port)->type == PORT_SCI) ? SCI_PER : SCIF_PER)
194 #define SCxSR_BRK(port)\ argument
195 ((port)->type == PORT_SCI) ? 0x00 : SCIF_BRK)
196 #define SCxSR_ORER(port)\ argument
197 (((port)->type == PORT_SCI) ? SCI_ORER : SCIF_ORER)
202 # define SCxSR_RDxF_CLEAR(port) (sci_in(port, SCxSR) & 0xfffc) argument
203 # define SCxSR_ERROR_CLEAR(port) (sci_in(port, SCxSR) & 0xfd73) argument
204 # define SCxSR_TDxE_CLEAR(port) (sci_in(port, SCxSR) & 0xffdf) argument
205 # define SCxSR_BREAK_CLEAR(port) (sci_in(port, SCxSR) & 0xffe3) argument
207 # define SCxSR_RDxF_CLEAR(port) (((port)->type == PORT_SCI) ? 0xbc : 0x00fc) argument
208 # define SCxSR_ERROR_CLEAR(port) (((port)->type == PORT_SCI) ? 0xc4 : 0x0073) argument
209 # define SCxSR_TDxE_CLEAR(port) (((port)->type == PORT_SCI) ? 0x78 : 0x00df) argument
210 # define SCxSR_BREAK_CLEAR(port) (((port)->type == PORT_SCI) ? 0xc4 : 0x00e3) argument
235 return readb(port->membase + (offset));\
237 return readw(port->membase + (offset));\
241 writeb(value, port->membase + (offset));\
243 writew(value, port->membase + (offset));\
247 static inline unsigned int sci_##name##_in(struct uart_port *port) {\
248 if (port->type == PORT_SCIF || port->type == PORT_SCIFB) {\
254 static inline void sci_##name##_out(struct uart_port *port,\
256 if (port->type == PORT_SCIF || port->type == PORT_SCIFB) {\
264 static inline unsigned int sci_##name##_in(struct uart_port *port) {\
267 static inline void sci_##name##_out(struct uart_port *port,\
273 static inline unsigned int sci_##name##_in(struct uart_port *port) {\
276 static inline void sci_##name##_out(struct uart_port *port,\
424 #define sci_in(port, reg) sci_##reg##_in(port) argument
425 #define sci_out(port, reg, value) sci_##reg##_out(port, value) argument
432 static inline int sci_rxd_in(struct uart_port *port) in sci_rxd_in() argument
434 if (port->mapbase == 0xffe00000) in sci_rxd_in()
439 static inline int sci_rxd_in(struct uart_port *port)
484 static inline int scbrr_calc(struct uart_port *port, int bps, int clk) in scbrr_calc() argument
486 if (port->type == PORT_SCIF) in scbrr_calc()
491 #define SCBRR_VALUE(bps, clk) scbrr_calc(port, bps, clk)