/linux-6.3-rc2/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 | 482 if (mctrl & TIOCM_RTS) in men_z135_set_mctrl() 487 if (mctrl & TIOCM_DTR) in men_z135_set_mctrl() 492 if (mctrl & TIOCM_OUT1) in men_z135_set_mctrl() 497 if (mctrl & TIOCM_OUT2) in men_z135_set_mctrl() 502 if (mctrl & TIOCM_LOOP) in men_z135_set_mctrl() 519 unsigned int mctrl = 0; in men_z135_get_mctrl() local 525 mctrl |= TIOCM_CTS; in men_z135_get_mctrl() 527 mctrl |= TIOCM_DSR; in men_z135_get_mctrl() 529 mctrl |= TIOCM_RI; in men_z135_get_mctrl() 531 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 | 576 sccnxp_set_bit(port, DTR_OP, mctrl & TIOCM_DTR); in sccnxp_set_mctrl() 590 return mctrl; in sccnxp_get_mctrl() 599 mctrl &= ~TIOCM_DSR; in sccnxp_get_mctrl() 600 mctrl |= (ipr & bitmask) ? TIOCM_DSR : 0; in sccnxp_get_mctrl() 605 mctrl &= ~TIOCM_CTS; in sccnxp_get_mctrl() 606 mctrl |= (ipr & bitmask) ? TIOCM_CTS : 0; in sccnxp_get_mctrl() 611 mctrl &= ~TIOCM_CAR; in sccnxp_get_mctrl() 612 mctrl |= (ipr & bitmask) ? TIOCM_CAR : 0; in sccnxp_get_mctrl() 617 mctrl &= ~TIOCM_RNG; in sccnxp_get_mctrl() 618 mctrl |= (ipr & bitmask) ? TIOCM_RNG : 0; in sccnxp_get_mctrl() [all …]
|
A D | pic32_uart.c | 147 static void pic32_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in pic32_uart_set_mctrl() argument 152 if (mctrl & TIOCM_LOOP) in pic32_uart_set_mctrl() 164 unsigned int mctrl = 0; in pic32_uart_get_mctrl() local 168 mctrl |= TIOCM_CTS; in pic32_uart_get_mctrl() 170 mctrl |= TIOCM_CTS; in pic32_uart_get_mctrl() 175 mctrl |= TIOCM_CD; in pic32_uart_get_mctrl() 176 mctrl |= TIOCM_DSR; in pic32_uart_get_mctrl() 178 return mctrl; in pic32_uart_get_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 | 705 static void mxs_auart_set_mctrl(struct uart_port *u, unsigned mctrl) in mxs_auart_set_mctrl() argument 712 if (mctrl & TIOCM_RTS) { in mxs_auart_set_mctrl() 721 mctrl_gpio_set(s->gpios, mctrl); in mxs_auart_set_mctrl() 729 mctrl_diff = mctrl ^ s->mctrl_prev; in mxs_auart_modem_status() 730 s->mctrl_prev = mctrl; in mxs_auart_modem_status() 738 uart_handle_dcd_change(&s->port, mctrl & TIOCM_CD); in mxs_auart_modem_status() 740 uart_handle_cts_change(&s->port, mctrl & TIOCM_CTS); in mxs_auart_modem_status() 744 return mctrl; in mxs_auart_modem_status() 751 u32 mctrl = 0; in mxs_auart_get_mctrl() local 754 mctrl |= TIOCM_CTS; in mxs_auart_get_mctrl() [all …]
|
A D | sunsu.c | 582 if (mctrl & TIOCM_RTS) in sunsu_set_mctrl() 584 if (mctrl & TIOCM_DTR) in sunsu_set_mctrl() 586 if (mctrl & TIOCM_OUT1) in sunsu_set_mctrl() 588 if (mctrl & TIOCM_OUT2) in sunsu_set_mctrl() 590 if (mctrl & TIOCM_LOOP) in sunsu_set_mctrl() 688 up->port.mctrl |= TIOCM_OUT2; in sunsu_startup() 690 sunsu_set_mctrl(&up->port, up->port.mctrl); in sunsu_startup() 738 up->port.mctrl |= TIOCM_OUT1; in sunsu_shutdown() 740 up->port.mctrl &= ~TIOCM_OUT2; in sunsu_shutdown() 742 sunsu_set_mctrl(&up->port, up->port.mctrl); in sunsu_shutdown() [all …]
|
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 | xilinx_uartps.c | 1000 unsigned int mctrl = 0; in cdns_uart_get_mctrl() local 1008 mctrl |= TIOCM_CTS; in cdns_uart_get_mctrl() 1010 mctrl |= TIOCM_DSR; in cdns_uart_get_mctrl() 1012 mctrl |= TIOCM_RNG; in cdns_uart_get_mctrl() 1014 mctrl |= TIOCM_CAR; in cdns_uart_get_mctrl() 1016 return mctrl; in cdns_uart_get_mctrl() 1019 static void cdns_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in cdns_uart_set_mctrl() argument 1034 if (mctrl & TIOCM_RTS) in cdns_uart_set_mctrl() 1036 if (mctrl & TIOCM_DTR) in cdns_uart_set_mctrl() 1038 if (mctrl & TIOCM_LOOP) in cdns_uart_set_mctrl()
|
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()
|
/linux-6.3-rc2/drivers/cpufreq/ |
A D | sparc-us2e-cpufreq.c | 76 unsigned long mctrl = read_hbreg(HBIRD_MEM_CNTL0_ADDR); in self_refresh_ctl() local 79 mctrl |= MCTRL0_SREFRESH_ENAB; in self_refresh_ctl() 81 mctrl &= ~MCTRL0_SREFRESH_ENAB; in self_refresh_ctl() 82 write_hbreg(HBIRD_MEM_CNTL0_ADDR, mctrl); in self_refresh_ctl() 90 unsigned long old_refr_count, refr_count, mctrl; in frob_mem_refresh() local 95 mctrl = read_hbreg(HBIRD_MEM_CNTL0_ADDR); in frob_mem_refresh() 96 old_refr_count = (mctrl & MCTRL0_REFR_COUNT_MASK) in frob_mem_refresh() 99 mctrl &= ~MCTRL0_REFR_COUNT_MASK; in frob_mem_refresh() 100 mctrl |= refr_count << MCTRL0_REFR_COUNT_SHIFT; in frob_mem_refresh() 101 write_hbreg(HBIRD_MEM_CNTL0_ADDR, mctrl); in frob_mem_refresh() [all …]
|
/linux-6.3-rc2/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() 290 unsigned short mctrl; in hvsilib_write_mctrl() local 292 mctrl = pv->mctrl; in hvsilib_write_mctrl() 294 mctrl |= TIOCM_DTR; in hvsilib_write_mctrl() 296 mctrl &= ~TIOCM_DTR; in hvsilib_write_mctrl() 297 if (mctrl == pv->mctrl) in hvsilib_write_mctrl() 299 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() 998 return hp->mctrl; in hvsi_tiocmget() 1014 new_mctrl = (hp->mctrl & ~clear) | set; in hvsi_tiocmset() 1016 if (hp->mctrl != new_mctrl) { in hvsi_tiocmset() [all …]
|
/linux-6.3-rc2/drivers/tty/serial/8250/ |
A D | 8250_alpha.c | 11 void alpha_jensen_set_mctrl(struct uart_port *port, unsigned int mctrl) in alpha_jensen_set_mctrl() argument 18 mctrl |= TIOCM_OUT1 | TIOCM_OUT2; in alpha_jensen_set_mctrl() 20 serial8250_do_set_mctrl(port, mctrl); in alpha_jensen_set_mctrl()
|
A D | 8250.h | 277 int mctrl; in serial8250_in_MCR() local 279 mctrl = serial_in(up, UART_MCR); in serial8250_in_MCR() 285 mctrl |= serial8250_TIOCM_to_MCR(mctrl_gpio); in serial8250_in_MCR() 288 return mctrl; in serial8250_in_MCR() 292 void alpha_jensen_set_mctrl(struct uart_port *port, unsigned int mctrl);
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/mmc/core/ |
A D | sdio_uart.c | 75 unsigned int mctrl; member 215 unsigned int mctrl) in sdio_uart_write_mctrl() argument 219 if (mctrl & TIOCM_RTS) in sdio_uart_write_mctrl() 221 if (mctrl & TIOCM_DTR) in sdio_uart_write_mctrl() 223 if (mctrl & TIOCM_OUT1) in sdio_uart_write_mctrl() 225 if (mctrl & TIOCM_OUT2) in sdio_uart_write_mctrl() 227 if (mctrl & TIOCM_LOOP) in sdio_uart_write_mctrl() 238 old = port->mctrl; in sdio_uart_update_mctrl() 239 port->mctrl = (old & ~clear) | set; in sdio_uart_update_mctrl() 240 if (old != port->mctrl) in sdio_uart_update_mctrl() [all …]
|
/linux-6.3-rc2/arch/arm/boot/dts/ |
A D | ep7209.dtsi | 195 mctrl: mctrl { label 196 compatible = "cirrus,ep7209-mctrl-gpio";
|
/linux-6.3-rc2/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-6.3-rc2/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()
|