Lines Matching refs:scc

102 	resource_size_t scc[ZS_NUM_SCCS];  member
198 if (!zport->scc) in zs_dump()
239 struct zs_scc *scc = zport->scc; in zs_transmit_drain() local
243 zs_spin_unlock_cond_irq(&scc->zlock, irq); in zs_transmit_drain()
245 zs_spin_lock_cond_irq(&scc->zlock, irq); in zs_transmit_drain()
252 struct zs_scc *scc = zport->scc; in zs_line_drain() local
256 zs_spin_unlock_cond_irq(&scc->zlock, irq); in zs_line_drain()
258 zs_spin_lock_cond_irq(&scc->zlock, irq); in zs_line_drain()
307 struct zs_scc *scc = zport->scc; in zs_tx_empty() local
311 spin_lock_irqsave(&scc->zlock, flags); in zs_tx_empty()
313 spin_unlock_irqrestore(&scc->zlock, flags); in zs_tx_empty()
337 struct zs_port *zport_a = &zport->scc->zport[ZS_CHAN_A]; in zs_raw_get_mctrl()
344 struct zs_port *zport_a = &zport->scc->zport[ZS_CHAN_A]; in zs_raw_xor_mctrl()
375 struct zs_scc *scc = zport->scc; in zs_get_mctrl() local
378 spin_lock(&scc->zlock); in zs_get_mctrl()
380 spin_unlock(&scc->zlock); in zs_get_mctrl()
388 struct zs_scc *scc = zport->scc; in zs_set_mctrl() local
389 struct zs_port *zport_a = &scc->zport[ZS_CHAN_A]; in zs_set_mctrl()
392 spin_lock(&scc->zlock); in zs_set_mctrl()
416 spin_unlock(&scc->zlock); in zs_set_mctrl()
428 struct zs_scc *scc = zport->scc; in zs_stop_tx() local
430 spin_lock(&scc->zlock); in zs_stop_tx()
432 spin_unlock(&scc->zlock); in zs_stop_tx()
440 struct zs_scc *scc = zport->scc; in zs_start_tx() local
442 spin_lock(&scc->zlock); in zs_start_tx()
448 spin_unlock(&scc->zlock); in zs_start_tx()
454 struct zs_scc *scc = zport->scc; in zs_stop_rx() local
455 struct zs_port *zport_a = &scc->zport[ZS_CHAN_A]; in zs_stop_rx()
457 spin_lock(&scc->zlock); in zs_stop_rx()
482 spin_unlock(&scc->zlock); in zs_stop_rx()
488 struct zs_scc *scc = zport->scc; in zs_enable_ms() local
489 struct zs_port *zport_a = &scc->zport[ZS_CHAN_A]; in zs_enable_ms()
494 spin_lock(&scc->zlock); in zs_enable_ms()
512 spin_unlock(&scc->zlock); in zs_enable_ms()
518 struct zs_scc *scc = zport->scc; in zs_break_ctl() local
521 spin_lock_irqsave(&scc->zlock, flags); in zs_break_ctl()
527 spin_unlock_irqrestore(&scc->zlock, flags); in zs_break_ctl()
540 struct zs_scc *scc = zport->scc; in zs_receive_chars() local
547 spin_lock(&scc->zlock); in zs_receive_chars()
549 spin_unlock(&scc->zlock); in zs_receive_chars()
553 spin_lock(&scc->zlock); in zs_receive_chars()
556 spin_unlock(&scc->zlock); in zs_receive_chars()
572 spin_lock(&scc->zlock); in zs_receive_chars()
574 spin_unlock(&scc->zlock); in zs_receive_chars()
639 struct zs_scc *scc = zport->scc; in zs_transmit_chars() local
641 spin_lock(&scc->zlock); in zs_transmit_chars()
643 spin_unlock(&scc->zlock); in zs_transmit_chars()
649 struct zs_scc *scc = zport->scc; in zs_status_handle() local
653 spin_lock(&scc->zlock); in zs_status_handle()
661 spin_unlock(&scc->zlock); in zs_status_handle()
666 spin_lock(&scc->zlock); in zs_status_handle()
673 spin_unlock(&scc->zlock); in zs_status_handle()
689 spin_lock(&scc->zlock); in zs_status_handle()
695 spin_unlock(&scc->zlock); in zs_status_handle()
703 struct zs_scc *scc = dev_id; in zs_interrupt() local
704 struct zs_port *zport_a = &scc->zport[ZS_CHAN_A]; in zs_interrupt()
705 struct zs_port *zport_b = &scc->zport[ZS_CHAN_B]; in zs_interrupt()
718 spin_lock(&scc->zlock); in zs_interrupt()
720 spin_unlock(&scc->zlock); in zs_interrupt()
755 struct zs_scc *scc = zport->scc; in zs_startup() local
760 irq_guard = atomic_add_return(1, &scc->irq_guard); in zs_startup()
763 IRQF_SHARED, "scc", scc); in zs_startup()
765 atomic_add(-1, &scc->irq_guard); in zs_startup()
772 spin_lock_irqsave(&scc->zlock, flags); in zs_startup()
800 spin_unlock_irqrestore(&scc->zlock, flags); in zs_startup()
808 struct zs_scc *scc = zport->scc; in zs_shutdown() local
812 spin_lock_irqsave(&scc->zlock, flags); in zs_shutdown()
818 spin_unlock_irqrestore(&scc->zlock, flags); in zs_shutdown()
820 irq_guard = atomic_add_return(-1, &scc->irq_guard); in zs_shutdown()
822 free_irq(zport->port.irq, scc); in zs_shutdown()
828 struct zs_scc *scc = zport->scc; in zs_reset() local
832 spin_lock_irqsave(&scc->zlock, flags); in zs_reset()
834 if (!scc->initialised) { in zs_reset()
842 scc->initialised = 1; in zs_reset()
845 spin_unlock_irqrestore(&scc->zlock, flags); in zs_reset()
852 struct zs_scc *scc = zport->scc; in zs_set_termios() local
853 struct zs_port *zport_a = &scc->zport[ZS_CHAN_A]; in zs_set_termios()
858 spin_lock_irqsave(&scc->zlock, flags); in zs_set_termios()
955 spin_unlock_irqrestore(&scc->zlock, flags); in zs_set_termios()
1081 zs_parms.scc[n_chips] = IOASIC_SCC0; in zs_probe_sccs()
1087 zs_parms.scc[n_chips] = IOASIC_SCC1; in zs_probe_sccs()
1102 zport->scc = &zs_sccs[chip]; in zs_probe_sccs()
1114 zs_parms.scc[chip] + in zs_probe_sccs()
1130 struct zs_scc *scc = zport->scc; in zs_console_putchar() local
1134 spin_lock_irqsave(&scc->zlock, flags); in zs_console_putchar()
1138 spin_unlock_irqrestore(&scc->zlock, flags); in zs_console_putchar()
1150 struct zs_scc *scc = zport->scc; in zs_console_write() local
1156 spin_lock_irqsave(&scc->zlock, flags); in zs_console_write()
1167 spin_unlock_irqrestore(&scc->zlock, flags); in zs_console_write()
1172 spin_lock_irqsave(&scc->zlock, flags); in zs_console_write()
1187 spin_unlock_irqrestore(&scc->zlock, flags); in zs_console_write()
1279 struct zs_scc *scc = &zs_sccs[i / ZS_NUM_CHAN]; in zs_init() local
1280 struct zs_port *zport = &scc->zport[i % ZS_NUM_CHAN]; in zs_init()
1283 if (zport->scc) in zs_init()
1295 struct zs_scc *scc = &zs_sccs[i / ZS_NUM_CHAN]; in zs_exit() local
1296 struct zs_port *zport = &scc->zport[i % ZS_NUM_CHAN]; in zs_exit()
1299 if (zport->scc) in zs_exit()