Home
last modified time | relevance | path

Searched refs:mctrl (Results 1 – 25 of 92) sorted by relevance

1234

/linux-6.1.9/drivers/tty/serial/
Dserial_mctrl_gpio.c29 unsigned int mctrl; member
52 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl) in mctrl_gpio_set() argument
66 mctrl & mctrl_gpios_desc[i].mctrl); in mctrl_gpio_set()
97 unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl) in mctrl_gpio_get() argument
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()
118 mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl) in mctrl_gpio_get_outputs() argument
123 return *mctrl; in mctrl_gpio_get_outputs()
[all …]
Dserial_mctrl_gpio.h38 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()
Dzs.c322 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 …]
Dmen_z135_uart.c479 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 …]
Dbcm63xx_uart.c99 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 …]
Dsccnxp.c567 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 …]
Dpxa.c295 static void serial_pxa_set_mctrl(struct uart_port *port, unsigned int mctrl) in serial_pxa_set_mctrl() argument
300 if (mctrl & TIOCM_RTS) in serial_pxa_set_mctrl()
302 if (mctrl & TIOCM_DTR) in serial_pxa_set_mctrl()
304 if (mctrl & TIOCM_OUT1) in serial_pxa_set_mctrl()
306 if (mctrl & TIOCM_OUT2) in serial_pxa_set_mctrl()
308 if (mctrl & TIOCM_LOOP) in serial_pxa_set_mctrl()
373 up->port.mctrl |= TIOCM_OUT2; in serial_pxa_startup()
374 serial_pxa_set_mctrl(&up->port, up->port.mctrl); in serial_pxa_startup()
410 up->port.mctrl &= ~TIOCM_OUT2; in serial_pxa_shutdown()
411 serial_pxa_set_mctrl(&up->port, up->port.mctrl); in serial_pxa_shutdown()
[all …]
Dpic32_uart.c147 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()
Dsunplus-uart.c99 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()
Dmxs-auart.c721 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 …]
Dsunsu.c577 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 …]
Drda-uart.c154 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()
Dowl-uart.c94 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()
Dsb1250-duart.c242 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()
/linux-6.1.9/drivers/cpufreq/
Dsparc-us2e-cpufreq.c76 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.1.9/drivers/tty/hvc/
Dhvsi_lib.c50 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()
Dhvsi.c76 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-6.1.9/drivers/tty/serial/8250/
D8250_alpha.c11 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()
D8250.h277 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.1.9/Documentation/devicetree/bindings/gpio/
Dcirrus,clps711x-mctrl-gpio.txt4 - compatible: Should contain "cirrus,ep7209-mctrl-gpio".
13 compatible = "cirrus,ep7312-mctrl-gpio",
14 "cirrus,ep7209-mctrl-gpio";
/linux-6.1.9/arch/arm/mach-versatile/
Dintegrator_ap.c106 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.1.9/drivers/mmc/core/
Dsdio_uart.c75 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.1.9/arch/arm/boot/dts/
Dep7209.dtsi195 mctrl: mctrl { label
196 compatible = "cirrus,ep7209-mctrl-gpio";
/linux-6.1.9/drivers/net/ethernet/sfc/falcon/
Dtxc43128_phy.c279 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-6.1.9/arch/arm/mach-sa1100/
Dcollie.c188 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()

1234