Home | History | Annotate | Download | only in mpcsa

Lines Matching defs:mpsc

81 led_num(struct mpcsa_usart_softc *mpsc)
83 return (mpsc->sc_dev.sc_pid == PID_US3 ? LED_GSM : LED_SER1 + mpsc->sc_dev.sc_pid - PID_US0);
87 comm_led(struct mpcsa_usart_softc *mpsc, int count)
89 mpcsa_comm_led(led_num(mpsc), count);
93 conn_led(struct mpcsa_usart_softc *mpsc, int count)
95 mpcsa_conn_led(led_num(mpsc), count);
317 struct mpcsa_usart_softc *mpsc = (void*)sc;
318 if (!mpsc->sc_tx_busy) {
319 mpsc->sc_tx_busy = 1;
320 if (!mpsc->sc_rx_busy)
321 comm_led(mpsc, INFINITE_BLINK);
330 struct mpcsa_usart_softc *mpsc = (void*)sc;
331 mpsc->sc_tx_busy = 0;
332 if (!mpsc->sc_rx_busy)
333 comm_led(mpsc, 1);
343 struct mpcsa_usart_softc *mpsc = (void*)sc;
344 if (!mpsc->sc_rx_busy) {
345 mpsc->sc_rx_busy = 1;
346 if (!mpsc->sc_tx_busy)
347 comm_led(mpsc, INFINITE_BLINK);
354 struct mpcsa_usart_softc *mpsc = (void*)sc;
355 mpsc->sc_rx_busy = 0;
356 if (!mpsc->sc_tx_busy)
357 comm_led(mpsc, 1);
363 struct mpcsa_usart_softc *mpsc = (void*)sc;
365 switch (mpsc->sc_dev.sc_pid) {
368 at91pio_set(mpsc->sc_piob, PB_RTS1);
370 at91pio_clear(mpsc->sc_piob, PB_RTS1);
375 at91pio_set(mpsc->sc_piob, PB_RTS2);
377 at91pio_clear(mpsc->sc_piob, PB_RTS2);
382 at91pio_set(mpsc->sc_piob, PB_RTS3);
384 at91pio_clear(mpsc->sc_piob, PB_RTS3);
389 at91pio_set(mpsc->sc_piob, PB_RTS4);
391 at91pio_clear(mpsc->sc_piob, PB_RTS4);