| /linux/drivers/tty/serial/ |
| A D | serial_mctrl_gpio.c | 29 unsigned int mctrl; member 66 mctrl & mctrl_gpios_desc[i].mctrl); in mctrl_gpio_set() 102 return *mctrl; in mctrl_gpio_get() 107 *mctrl |= mctrl_gpios_desc[i].mctrl; in mctrl_gpio_get() 109 *mctrl &= ~mctrl_gpios_desc[i].mctrl; in mctrl_gpio_get() 113 return *mctrl; in mctrl_gpio_get() 123 return *mctrl; in mctrl_gpio_get_outputs() 128 *mctrl |= mctrl_gpios_desc[i].mctrl; in mctrl_gpio_get_outputs() 130 *mctrl &= ~mctrl_gpios_desc[i].mctrl; in mctrl_gpio_get_outputs() 134 return *mctrl; in mctrl_gpio_get_outputs() [all …]
|
| A D | serial_mctrl_gpio.h | 38 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl); 44 unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl); 51 mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl); 107 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl) in mctrl_gpio_set() argument 112 unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl) in mctrl_gpio_get() argument 114 return *mctrl; in mctrl_gpio_get() 118 mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl) in mctrl_gpio_get_outputs() argument 120 return *mctrl; in mctrl_gpio_get_outputs()
|
| A D | zs.c | 322 unsigned int mctrl; in zs_raw_get_ab_mctrl() local 332 return mctrl; in zs_raw_get_ab_mctrl() 359 mctrl = zport->mctrl; in zs_raw_xor_mctrl() 361 mctrl &= ~mmask; in zs_raw_xor_mctrl() 365 delta = mctrl ^ zport->mctrl; in zs_raw_xor_mctrl() 367 zport->mctrl = mctrl; in zs_raw_xor_mctrl() 376 unsigned int mctrl; in zs_get_mctrl() local 382 return mctrl; in zs_get_mctrl() 394 if (mctrl & TIOCM_DTR) in zs_set_mctrl() 398 if (mctrl & TIOCM_RTS) in zs_set_mctrl() [all …]
|
| A D | men_z135_uart.c | 476 if (mctrl & TIOCM_RTS) in men_z135_set_mctrl() 481 if (mctrl & TIOCM_DTR) in men_z135_set_mctrl() 486 if (mctrl & TIOCM_OUT1) in men_z135_set_mctrl() 491 if (mctrl & TIOCM_OUT2) in men_z135_set_mctrl() 496 if (mctrl & TIOCM_LOOP) in men_z135_set_mctrl() 513 unsigned int mctrl = 0; in men_z135_get_mctrl() local 519 mctrl |= TIOCM_CTS; in men_z135_get_mctrl() 521 mctrl |= TIOCM_DSR; in men_z135_get_mctrl() 523 mctrl |= TIOCM_RI; in men_z135_get_mctrl() 525 mctrl |= TIOCM_CAR; in men_z135_get_mctrl() [all …]
|
| A D | bcm63xx_uart.c | 99 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl() argument 106 if (!(mctrl & TIOCM_DTR)) in bcm_uart_set_mctrl() 108 if (!(mctrl & TIOCM_RTS)) in bcm_uart_set_mctrl() 113 if (mctrl & TIOCM_LOOP) in bcm_uart_set_mctrl() 125 unsigned int val, mctrl; in bcm_uart_get_mctrl() local 127 mctrl = 0; in bcm_uart_get_mctrl() 130 mctrl |= TIOCM_RI; in bcm_uart_get_mctrl() 132 mctrl |= TIOCM_CTS; in bcm_uart_get_mctrl() 134 mctrl |= TIOCM_CD; in bcm_uart_get_mctrl() 136 mctrl |= TIOCM_DSR; in bcm_uart_get_mctrl() [all …]
|
| A D | pxa.c | 272 static void serial_pxa_set_mctrl(struct uart_port *port, unsigned int mctrl) in serial_pxa_set_mctrl() argument 277 if (mctrl & TIOCM_RTS) in serial_pxa_set_mctrl() 279 if (mctrl & TIOCM_DTR) in serial_pxa_set_mctrl() 281 if (mctrl & TIOCM_OUT1) in serial_pxa_set_mctrl() 283 if (mctrl & TIOCM_OUT2) in serial_pxa_set_mctrl() 285 if (mctrl & TIOCM_LOOP) in serial_pxa_set_mctrl() 350 up->port.mctrl |= TIOCM_OUT2; in serial_pxa_startup() 351 serial_pxa_set_mctrl(&up->port, up->port.mctrl); in serial_pxa_startup() 387 up->port.mctrl &= ~TIOCM_OUT2; in serial_pxa_shutdown() 388 serial_pxa_set_mctrl(&up->port, up->port.mctrl); in serial_pxa_shutdown() [all …]
|
| A D | sccnxp.c | 579 sccnxp_set_bit(port, DTR_OP, mctrl & TIOCM_DTR); in sccnxp_set_mctrl() 593 return mctrl; in sccnxp_get_mctrl() 602 mctrl &= ~TIOCM_DSR; in sccnxp_get_mctrl() 603 mctrl |= (ipr & bitmask) ? TIOCM_DSR : 0; in sccnxp_get_mctrl() 608 mctrl &= ~TIOCM_CTS; in sccnxp_get_mctrl() 609 mctrl |= (ipr & bitmask) ? TIOCM_CTS : 0; in sccnxp_get_mctrl() 614 mctrl &= ~TIOCM_CAR; in sccnxp_get_mctrl() 615 mctrl |= (ipr & bitmask) ? TIOCM_CAR : 0; in sccnxp_get_mctrl() 620 mctrl &= ~TIOCM_RNG; in sccnxp_get_mctrl() 621 mctrl |= (ipr & bitmask) ? TIOCM_RNG : 0; in sccnxp_get_mctrl() [all …]
|
| A D | pic32_uart.c | 146 static void pic32_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in pic32_uart_set_mctrl() argument 151 if (mctrl & TIOCM_LOOP) in pic32_uart_set_mctrl() 163 unsigned int mctrl = 0; in pic32_uart_get_mctrl() local 167 mctrl |= TIOCM_CTS; in pic32_uart_get_mctrl() 169 mctrl |= TIOCM_CTS; in pic32_uart_get_mctrl() 174 mctrl |= TIOCM_CD; in pic32_uart_get_mctrl() 175 mctrl |= TIOCM_DSR; in pic32_uart_get_mctrl() 177 return mctrl; in pic32_uart_get_mctrl()
|
| A D | rda-uart.c | 154 unsigned int mctrl = 0; in rda_uart_get_mctrl() local 160 mctrl |= TIOCM_RTS; in rda_uart_get_mctrl() 162 mctrl |= TIOCM_CTS; in rda_uart_get_mctrl() 164 return mctrl; in rda_uart_get_mctrl() 167 static void rda_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in rda_uart_set_mctrl() argument 171 if (mctrl & TIOCM_RTS) { in rda_uart_set_mctrl() 182 if (mctrl & TIOCM_LOOP) in rda_uart_set_mctrl()
|
| A D | sunplus-uart.c | 99 static void sunplus_set_mctrl(struct uart_port *port, unsigned int mctrl) in sunplus_set_mctrl() argument 103 if (mctrl & TIOCM_DTR) in sunplus_set_mctrl() 108 if (mctrl & TIOCM_RTS) in sunplus_set_mctrl() 113 if (mctrl & TIOCM_CAR) in sunplus_set_mctrl() 118 if (mctrl & TIOCM_RI) in sunplus_set_mctrl() 123 if (mctrl & TIOCM_LOOP) in sunplus_set_mctrl()
|
| A D | mxs-auart.c | 696 static void mxs_auart_set_mctrl(struct uart_port *u, unsigned mctrl) in mxs_auart_set_mctrl() argument 703 if (mctrl & TIOCM_RTS) { in mxs_auart_set_mctrl() 712 mctrl_gpio_set(s->gpios, mctrl); in mxs_auart_set_mctrl() 720 mctrl_diff = mctrl ^ s->mctrl_prev; in mxs_auart_modem_status() 721 s->mctrl_prev = mctrl; in mxs_auart_modem_status() 729 uart_handle_dcd_change(&s->port, mctrl & TIOCM_CD); in mxs_auart_modem_status() 731 uart_handle_cts_change(&s->port, mctrl & TIOCM_CTS); in mxs_auart_modem_status() 735 return mctrl; in mxs_auart_modem_status() 742 u32 mctrl = 0; in mxs_auart_get_mctrl() local 745 mctrl |= TIOCM_CTS; in mxs_auart_get_mctrl() [all …]
|
| A D | sunsu.c | 583 if (mctrl & TIOCM_RTS) in sunsu_set_mctrl() 585 if (mctrl & TIOCM_DTR) in sunsu_set_mctrl() 587 if (mctrl & TIOCM_OUT1) in sunsu_set_mctrl() 589 if (mctrl & TIOCM_OUT2) in sunsu_set_mctrl() 591 if (mctrl & TIOCM_LOOP) in sunsu_set_mctrl() 689 up->port.mctrl |= TIOCM_OUT2; in sunsu_startup() 691 sunsu_set_mctrl(&up->port, up->port.mctrl); in sunsu_startup() 739 up->port.mctrl |= TIOCM_OUT1; in sunsu_shutdown() 741 up->port.mctrl &= ~TIOCM_OUT2; in sunsu_shutdown() 743 sunsu_set_mctrl(&up->port, up->port.mctrl); in sunsu_shutdown() [all …]
|
| A D | owl-uart.c | 94 static void owl_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in owl_uart_set_mctrl() argument 100 if (mctrl & TIOCM_LOOP) in owl_uart_set_mctrl() 110 unsigned int mctrl = TIOCM_CAR | TIOCM_DSR; in owl_uart_get_mctrl() local 116 mctrl |= TIOCM_RTS; in owl_uart_get_mctrl() 118 mctrl |= TIOCM_CTS; in owl_uart_get_mctrl() 119 return mctrl; in owl_uart_get_mctrl()
|
| A D | sb1250-duart.c | 242 unsigned int mctrl, status; in sbd_get_mctrl() local 246 mctrl = (!(status & M_DUART_IN_PIN0_VAL) ? TIOCM_CTS : 0) | in sbd_get_mctrl() 250 return mctrl; in sbd_get_mctrl() 253 static void sbd_set_mctrl(struct uart_port *uport, unsigned int mctrl) in sbd_set_mctrl() argument 258 if (mctrl & TIOCM_DTR) in sbd_set_mctrl() 262 if (mctrl & TIOCM_RTS) in sbd_set_mctrl() 271 if (mctrl & TIOCM_LOOP) in sbd_set_mctrl()
|
| A D | timbuart.c | 109 port->mctrl & TIOCM_RTS, in timbuart_tx_chars() 204 static void timbuart_set_mctrl(struct uart_port *port, unsigned int mctrl) in timbuart_set_mctrl() argument 206 dev_dbg(port->dev, "%s - %x\n", __func__, mctrl); in timbuart_set_mctrl() 208 if (mctrl & TIOCM_RTS) in timbuart_set_mctrl()
|
| /linux/drivers/cpufreq/ |
| A D | sparc-us2e-cpufreq.c | 74 unsigned long mctrl = read_hbreg(HBIRD_MEM_CNTL0_ADDR); in self_refresh_ctl() local 77 mctrl |= MCTRL0_SREFRESH_ENAB; in self_refresh_ctl() 79 mctrl &= ~MCTRL0_SREFRESH_ENAB; in self_refresh_ctl() 80 write_hbreg(HBIRD_MEM_CNTL0_ADDR, mctrl); in self_refresh_ctl() 88 unsigned long old_refr_count, refr_count, mctrl; in frob_mem_refresh() local 93 mctrl = read_hbreg(HBIRD_MEM_CNTL0_ADDR); in frob_mem_refresh() 94 old_refr_count = (mctrl & MCTRL0_REFR_COUNT_MASK) in frob_mem_refresh() 97 mctrl &= ~MCTRL0_REFR_COUNT_MASK; in frob_mem_refresh() 98 mctrl |= refr_count << MCTRL0_REFR_COUNT_SHIFT; in frob_mem_refresh() 99 write_hbreg(HBIRD_MEM_CNTL0_ADDR, mctrl); in frob_mem_refresh() [all …]
|
| /linux/drivers/tty/hvc/ |
| A D | hvsi_lib.c | 50 pv->mctrl |= TIOCM_CD; in hvsi_cd_change() 52 pv->mctrl &= ~TIOCM_CD; in hvsi_cd_change() 292 unsigned short mctrl; in hvsilib_write_mctrl() local 294 mctrl = pv->mctrl; in hvsilib_write_mctrl() 296 mctrl |= TIOCM_DTR; in hvsilib_write_mctrl() 298 mctrl &= ~TIOCM_DTR; in hvsilib_write_mctrl() 299 if (mctrl == pv->mctrl) in hvsilib_write_mctrl() 301 pv->mctrl = mctrl; in hvsilib_write_mctrl()
|
| A D | hvsi.c | 76 uint16_t mctrl; member 235 hp->mctrl &= TIOCM_CD; in hvsi_recv_control() 264 hp->mctrl = 0; in hvsi_recv_response() 267 hp->mctrl |= TIOCM_DTR; in hvsi_recv_response() 269 hp->mctrl |= TIOCM_CD; in hvsi_recv_response() 594 if (mctrl & TIOCM_DTR) in hvsi_set_mctrl() 737 ret = hvsi_set_mctrl(hp, hp->mctrl | TIOCM_DTR); in hvsi_open() 997 return hp->mctrl; in hvsi_tiocmget() 1013 new_mctrl = (hp->mctrl & ~clear) | set; in hvsi_tiocmset() 1015 if (hp->mctrl != new_mctrl) { in hvsi_tiocmset() [all …]
|
| /linux/Documentation/devicetree/bindings/gpio/ |
| A D | cirrus,clps711x-mctrl-gpio.txt | 4 - compatible: Should contain "cirrus,ep7209-mctrl-gpio". 13 compatible = "cirrus,ep7312-mctrl-gpio", 14 "cirrus,ep7209-mctrl-gpio";
|
| /linux/arch/arm/mach-versatile/ |
| A D | integrator_ap.c | 106 void __iomem *base, unsigned int mctrl) in integrator_uart_set_mctrl() argument 122 if (mctrl & TIOCM_RTS) in integrator_uart_set_mctrl() 127 if (mctrl & TIOCM_DTR) in integrator_uart_set_mctrl()
|
| /linux/drivers/mmc/core/ |
| A D | sdio_uart.c | 75 unsigned int mctrl; member 213 unsigned int mctrl) in sdio_uart_write_mctrl() argument 217 if (mctrl & TIOCM_RTS) in sdio_uart_write_mctrl() 219 if (mctrl & TIOCM_DTR) in sdio_uart_write_mctrl() 221 if (mctrl & TIOCM_OUT1) in sdio_uart_write_mctrl() 223 if (mctrl & TIOCM_OUT2) in sdio_uart_write_mctrl() 225 if (mctrl & TIOCM_LOOP) in sdio_uart_write_mctrl() 236 old = port->mctrl; in sdio_uart_update_mctrl() 237 port->mctrl = (old & ~clear) | set; in sdio_uart_update_mctrl() 238 if (old != port->mctrl) in sdio_uart_update_mctrl() [all …]
|
| /linux/drivers/tty/serial/8250/ |
| A D | 8250.h | 303 int mctrl; in serial8250_in_MCR() local 305 mctrl = serial_in(up, UART_MCR); in serial8250_in_MCR() 311 mctrl |= serial8250_TIOCM_to_MCR(mctrl_gpio); in serial8250_in_MCR() 314 return mctrl; in serial8250_in_MCR()
|
| /linux/arch/arm/boot/dts/cirrus/ |
| A D | ep7209.dtsi | 195 mctrl: mctrl { label 196 compatible = "cirrus,ep7209-mctrl-gpio";
|
| /linux/arch/arm/mach-sa1100/ |
| A D | collie.c | 156 static void collie_uart_set_mctrl(struct uart_port *port, u_int mctrl) in collie_uart_set_mctrl() argument 158 if (mctrl & TIOCM_RTS) in collie_uart_set_mctrl() 163 if (mctrl & TIOCM_DTR) in collie_uart_set_mctrl()
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| A D | txc43128_phy.c | 279 int mctrl; in txc_apply_defaults() local 309 mctrl = ef4_mdio_read(efx, MDIO_MMD_PHYXS, TXC_MRGS_CTL); in txc_apply_defaults() 312 mctrl &= ~((1 << TXC_MCTL_TXLED_LBN) | (1 << TXC_MCTL_RXLED_LBN)); in txc_apply_defaults() 313 ef4_mdio_write(efx, MDIO_MMD_PHYXS, TXC_MRGS_CTL, mctrl); in txc_apply_defaults()
|