/linux-5.19.10/drivers/tty/serial/ |
D | serial_mctrl_gpio.c | 29 unsigned int mctrl; member 45 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl) in mctrl_gpio_set() argument 59 mctrl & mctrl_gpios_desc[i].mctrl); in mctrl_gpio_set() 76 unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl) in mctrl_gpio_get() argument 81 return *mctrl; in mctrl_gpio_get() 86 *mctrl |= mctrl_gpios_desc[i].mctrl; in mctrl_gpio_get() 88 *mctrl &= ~mctrl_gpios_desc[i].mctrl; in mctrl_gpio_get() 92 return *mctrl; in mctrl_gpio_get() 97 mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl) in mctrl_gpio_get_outputs() argument 102 return *mctrl; in mctrl_gpio_get_outputs() [all …]
|
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()
|
D | vr41xx_siu.c | 186 static void siu_set_mctrl(struct uart_port *port, unsigned int mctrl) in siu_set_mctrl() argument 190 if (mctrl & TIOCM_DTR) in siu_set_mctrl() 192 if (mctrl & TIOCM_RTS) in siu_set_mctrl() 194 if (mctrl & TIOCM_OUT1) in siu_set_mctrl() 196 if (mctrl & TIOCM_OUT2) in siu_set_mctrl() 198 if (mctrl & TIOCM_LOOP) in siu_set_mctrl() 207 unsigned int mctrl = 0; in siu_get_mctrl() local 211 mctrl |= TIOCM_CAR; in siu_get_mctrl() 213 mctrl |= TIOCM_RNG; in siu_get_mctrl() 215 mctrl |= TIOCM_DSR; in siu_get_mctrl() [all …]
|
D | zs.c | 322 unsigned int mctrl; in zs_raw_get_ab_mctrl() local 327 mctrl = ((status_b & CTS) ? TIOCM_CTS : 0) | in zs_raw_get_ab_mctrl() 332 return mctrl; in zs_raw_get_ab_mctrl() 345 unsigned int mmask, mctrl, delta; in zs_raw_xor_mctrl() local 359 mctrl = zport->mctrl; in zs_raw_xor_mctrl() 361 mctrl &= ~mmask; in zs_raw_xor_mctrl() 362 mctrl |= zs_raw_get_ab_mctrl(zport_a, zport) & 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 [all …]
|
D | men_z135_uart.c | 479 static void men_z135_set_mctrl(struct uart_port *port, unsigned int mctrl) in men_z135_set_mctrl() argument 485 if (mctrl & TIOCM_RTS) in men_z135_set_mctrl() 490 if (mctrl & TIOCM_DTR) in men_z135_set_mctrl() 495 if (mctrl & TIOCM_OUT1) in men_z135_set_mctrl() 500 if (mctrl & TIOCM_OUT2) in men_z135_set_mctrl() 505 if (mctrl & TIOCM_LOOP) in men_z135_set_mctrl() 522 unsigned int mctrl = 0; in men_z135_get_mctrl() local 528 mctrl |= TIOCM_CTS; in men_z135_get_mctrl() 530 mctrl |= TIOCM_DSR; in men_z135_get_mctrl() 532 mctrl |= TIOCM_RI; in men_z135_get_mctrl() [all …]
|
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 …]
|
D | sccnxp.c | 567 static void sccnxp_set_mctrl(struct uart_port *port, unsigned int mctrl) in sccnxp_set_mctrl() argument 577 sccnxp_set_bit(port, DTR_OP, mctrl & TIOCM_DTR); in sccnxp_set_mctrl() 578 sccnxp_set_bit(port, RTS_OP, mctrl & TIOCM_RTS); in sccnxp_set_mctrl() 588 unsigned int mctrl = TIOCM_DSR | TIOCM_CTS | TIOCM_CAR; in sccnxp_get_mctrl() local 591 return mctrl; in sccnxp_get_mctrl() 600 mctrl &= ~TIOCM_DSR; in sccnxp_get_mctrl() 601 mctrl |= (ipr & bitmask) ? TIOCM_DSR : 0; in sccnxp_get_mctrl() 606 mctrl &= ~TIOCM_CTS; in sccnxp_get_mctrl() 607 mctrl |= (ipr & bitmask) ? TIOCM_CTS : 0; in sccnxp_get_mctrl() 612 mctrl &= ~TIOCM_CAR; in sccnxp_get_mctrl() [all …]
|
D | pxa.c | 294 static void serial_pxa_set_mctrl(struct uart_port *port, unsigned int mctrl) in serial_pxa_set_mctrl() argument 299 if (mctrl & TIOCM_RTS) in serial_pxa_set_mctrl() 301 if (mctrl & TIOCM_DTR) in serial_pxa_set_mctrl() 303 if (mctrl & TIOCM_OUT1) in serial_pxa_set_mctrl() 305 if (mctrl & TIOCM_OUT2) in serial_pxa_set_mctrl() 307 if (mctrl & TIOCM_LOOP) in serial_pxa_set_mctrl() 372 up->port.mctrl |= TIOCM_OUT2; in serial_pxa_startup() 373 serial_pxa_set_mctrl(&up->port, up->port.mctrl); in serial_pxa_startup() 409 up->port.mctrl &= ~TIOCM_OUT2; in serial_pxa_shutdown() 410 serial_pxa_set_mctrl(&up->port, up->port.mctrl); in serial_pxa_shutdown() [all …]
|
D | pic32_uart.c | 148 static void pic32_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in pic32_uart_set_mctrl() argument 153 if (mctrl & TIOCM_LOOP) in pic32_uart_set_mctrl() 175 unsigned int mctrl = 0; in pic32_uart_get_mctrl() local 178 mctrl |= TIOCM_CTS; in pic32_uart_get_mctrl() 180 mctrl |= TIOCM_CTS; in pic32_uart_get_mctrl() 185 mctrl |= TIOCM_CD; in pic32_uart_get_mctrl() 186 mctrl |= TIOCM_DSR; in pic32_uart_get_mctrl() 188 return mctrl; in pic32_uart_get_mctrl()
|
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()
|
D | mxs-auart.c | 721 static void mxs_auart_set_mctrl(struct uart_port *u, unsigned mctrl) in mxs_auart_set_mctrl() argument 728 if (mctrl & TIOCM_RTS) { in mxs_auart_set_mctrl() 737 mctrl_gpio_set(s->gpios, mctrl); in mxs_auart_set_mctrl() 741 static u32 mxs_auart_modem_status(struct mxs_auart_port *s, u32 mctrl) in mxs_auart_modem_status() argument 745 mctrl_diff = mctrl ^ s->mctrl_prev; in mxs_auart_modem_status() 746 s->mctrl_prev = mctrl; in mxs_auart_modem_status() 754 uart_handle_dcd_change(&s->port, mctrl & TIOCM_CD); in mxs_auart_modem_status() 756 uart_handle_cts_change(&s->port, mctrl & TIOCM_CTS); in mxs_auart_modem_status() 760 return mctrl; in mxs_auart_modem_status() 767 u32 mctrl = 0; in mxs_auart_get_mctrl() local [all …]
|
D | sunsu.c | 577 static void sunsu_set_mctrl(struct uart_port *port, unsigned int mctrl) in sunsu_set_mctrl() argument 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() [all …]
|
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()
|
D | xilinx_uartps.c | 999 unsigned int mctrl = 0; in cdns_uart_get_mctrl() local 1007 mctrl |= TIOCM_CTS; in cdns_uart_get_mctrl() 1009 mctrl |= TIOCM_DSR; in cdns_uart_get_mctrl() 1011 mctrl |= TIOCM_RNG; in cdns_uart_get_mctrl() 1013 mctrl |= TIOCM_CAR; in cdns_uart_get_mctrl() 1015 return mctrl; in cdns_uart_get_mctrl() 1018 static void cdns_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in cdns_uart_set_mctrl() argument 1033 if (mctrl & TIOCM_RTS) in cdns_uart_set_mctrl() 1035 if (mctrl & TIOCM_DTR) in cdns_uart_set_mctrl() 1037 if (mctrl & TIOCM_LOOP) in cdns_uart_set_mctrl()
|
/linux-5.19.10/drivers/cpufreq/ |
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-5.19.10/drivers/tty/hvc/ |
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()
|
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() 577 pr_debug("%s: mctrl 0x%x\n", __func__, hp->mctrl); in hvsi_get_mctrl() 583 static int hvsi_set_mctrl(struct hvsi_struct *hp, uint16_t mctrl) in hvsi_set_mctrl() argument 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() [all …]
|
/linux-5.19.10/drivers/tty/serial/8250/ |
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()
|
D | 8250.h | 275 int mctrl; in serial8250_in_MCR() local 277 mctrl = serial_in(up, UART_MCR); in serial8250_in_MCR() 283 mctrl |= serial8250_TIOCM_to_MCR(mctrl_gpio); in serial8250_in_MCR() 286 return mctrl; in serial8250_in_MCR() 290 void alpha_jensen_set_mctrl(struct uart_port *port, unsigned int mctrl);
|
/linux-5.19.10/Documentation/devicetree/bindings/gpio/ |
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-5.19.10/arch/arm/mach-versatile/ |
D | integrator_ap.c | 105 void __iomem *base, unsigned int mctrl) in integrator_uart_set_mctrl() argument 121 if (mctrl & TIOCM_RTS) in integrator_uart_set_mctrl() 126 if (mctrl & TIOCM_DTR) in integrator_uart_set_mctrl()
|
/linux-5.19.10/drivers/mmc/core/ |
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-5.19.10/arch/arm/boot/dts/ |
D | ep7209.dtsi | 195 mctrl: mctrl { label 196 compatible = "cirrus,ep7209-mctrl-gpio";
|
/linux-5.19.10/drivers/net/ethernet/sfc/falcon/ |
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()
|
/linux-5.19.10/arch/arm/mach-sa1100/ |
D | collie.c | 188 static void collie_uart_set_mctrl(struct uart_port *port, u_int mctrl) in collie_uart_set_mctrl() argument 190 if (mctrl & TIOCM_RTS) in collie_uart_set_mctrl() 195 if (mctrl & TIOCM_DTR) in collie_uart_set_mctrl()
|