Lines Matching refs:current_mode

617 			int current_mode = pp->current_mode;  in ecpp_attach()  local
620 (void) ecpp_mode_negotiation(pp, current_mode); in ecpp_attach()
1055 pp->current_mode = ECPP_CENTRONICS; in ecpp_open()
1122 pp->current_mode, pp->current_phase, in ecpp_open()
1208 if ((pp->current_mode == ECPP_ECP_MODE) && in ecpp_close()
1525 pp->xfer_parms.mode = pp->current_mode; in ecpp_putioc()
1536 if (pp->current_mode != ECPP_DIAG_MODE) { in ecpp_putioc()
1553 if (pp->current_mode != ECPP_DIAG_MODE) { in ecpp_putioc()
1578 if (pp->current_mode != ECPP_DIAG_MODE) { in ecpp_putioc()
1600 if (pp->current_mode != ECPP_DIAG_MODE) { in ecpp_putioc()
1654 if (!((pp->current_mode == ECPP_CENTRONICS) || in ecpp_putioc()
1655 (pp->current_mode == ECPP_COMPAT_MODE))) { in ecpp_putioc()
1740 if (pp->current_mode == ECPP_CENTRONICS || in ecpp_putioc()
1741 pp->current_mode == ECPP_COMPAT_MODE) { in ecpp_putioc()
1766 if (pp->current_mode != ECPP_COMPAT_MODE && in ecpp_putioc()
1767 pp->current_mode != ECPP_CENTRONICS) { in ecpp_putioc()
2148 pp->current_mode, pp->xfer_parms.mode); in ecpp_srvioc()
2157 if ((pp->current_mode == ECPP_NIBBLE_MODE) && in ecpp_srvioc()
2170 if (pp->current_mode != ECPP_DIAG_MODE) { in ecpp_srvioc()
2176 pp->xfer_parms.mode = pp->current_mode; in ecpp_srvioc()
2188 if (pp->current_mode != ECPP_DIAG_MODE) { in ecpp_srvioc()
2217 if (pp->current_mode != ECPP_DIAG_MODE) { in ecpp_srvioc()
2254 if (pp->current_mode != ECPP_DIAG_MODE) { in ecpp_srvioc()
2587 (pp->current_mode == ECPP_ECP_MODE) || in ecpp_flush()
2588 (pp->current_mode == ECPP_DIAG_MODE)) { in ecpp_flush()
2668 if (pp->current_mode == ECPP_DIAG_MODE) { in ecpp_flush()
2684 if (pp->current_mode == ECPP_ECP_MODE) { in ecpp_flush()
2718 pp->current_mode, pp->current_phase, ECR_READ(pp), len); in ecpp_start()
2722 switch (pp->current_mode) { in ecpp_start()
2880 ASSERT((pp->current_mode <= ECPP_DIAG_MODE) && in ecpp_init_dma_xfer()
2881 (ecr_mode[pp->current_mode] != 0)); in ecpp_init_dma_xfer()
2929 ecr = ecr_mode[pp->current_mode]; in ecpp_init_dma_xfer()
3140 (pp->current_mode == ECPP_ECP_MODE))) { in ecpp_isr()
3229 pp->current_mode, pp->current_phase); in ecpp_isr()
3241 pp->current_mode, pp->current_phase); in ecpp_isr()
3265 (pp->current_mode == ECPP_ECP_MODE) || in ecpp_M1553_intr()
3266 (pp->current_mode == ECPP_DIAG_MODE)) { in ecpp_M1553_intr()
3288 pp->current_mode, ECR_READ(pp), DSR_READ(pp), DCR_READ(pp)); in ecpp_dma_ihdlr()
3304 if (pp->current_mode == ECPP_ECP_MODE && in ecpp_dma_ihdlr()
3312 (pp->current_mode == ECPP_DIAG_MODE)) { in ecpp_dma_ihdlr()
3410 pp->current_mode, pp->current_phase); in ecpp_nErr_ihdlr()
3429 switch (pp->current_mode) { in ecpp_nErr_ihdlr()
3689 pp->obytes[pp->current_mode] += xferd; in ecpp_xfer_timeout()
3831 if ((pp->current_mode != ECPP_DIAG_MODE) && in ecpp_fifo_timer()
3847 if (pp->current_mode != ECPP_DIAG_MODE) { in ecpp_fifo_timer()
3878 if (pp->current_mode == ECPP_ECP_MODE || in ecpp_fifo_timer()
3879 pp->current_mode == ECPP_DIAG_MODE || in ecpp_fifo_timer()
3890 pp->obytes[pp->current_mode] += in ecpp_fifo_timer()
3893 pp->ibytes[pp->current_mode] += in ecpp_fifo_timer()
3979 if (pp->current_mode == ECPP_ECP_MODE || in ecpp_check_status()
3980 pp->current_mode == ECPP_DIAG_MODE) in ecpp_check_status()
4078 if (pp->current_mode == ECPP_CENTRONICS || in ecpp_get_prn_ifcap()
4079 pp->current_mode == ECPP_COMPAT_MODE) { in ecpp_get_prn_ifcap()
4081 } else if (pp->current_mode == ECPP_NIBBLE_MODE || in ecpp_get_prn_ifcap()
4082 pp->current_mode == ECPP_ECP_MODE) { in ecpp_get_prn_ifcap()
4142 pp->current_mode = pp->backchannel = ECPP_CENTRONICS; in ecpp_1284_init_interface()
4145 pp->to_mode[pp->current_mode]++; in ecpp_1284_init_interface()
4190 pp->current_mode = ECPP_ECP_MODE; in ecp_negotiation()
4221 pp->current_mode = ECPP_NIBBLE_MODE; in nibble_negotiation()
4358 int previous_mode = pp->current_mode; in ecpp_1284_termination()
4360 if (((pp->current_mode == ECPP_COMPAT_MODE || in ecpp_1284_termination()
4361 pp->current_mode == ECPP_CENTRONICS) && in ecpp_1284_termination()
4363 pp->current_mode == ECPP_DIAG_MODE) { in ecpp_1284_termination()
4372 pp->current_mode = ECPP_COMPAT_MODE; /* needed by next function */ in ecpp_1284_termination()
4449 ASSERT(pp->current_mode == ECPP_ECP_MODE && in ecp_peripheral2host()
4629 ASSERT(pp->current_mode == ECPP_ECP_MODE && in ecpp_ecp_read_completion()
4654 pp->ibytes[pp->current_mode] += xfer_len; in ecpp_ecp_read_completion()
4750 ASSERT(pp->current_mode == ECPP_NIBBLE_MODE); in ecpp_peripheral2host()
4835 ASSERT(pp->current_mode == ECPP_ECP_MODE && in ecp_forward2reverse()
4869 ASSERT(pp->current_mode == ECPP_ECP_MODE && in ecp_reverse2forward()
4931 ASSERT(pp->current_mode == ECPP_CENTRONICS || in ecpp_mode_negotiation()
4932 pp->current_mode == ECPP_COMPAT_MODE || in ecpp_mode_negotiation()
4933 pp->current_mode == ECPP_NIBBLE_MODE || in ecpp_mode_negotiation()
4934 pp->current_mode == ECPP_ECP_MODE || in ecpp_mode_negotiation()
4935 pp->current_mode == ECPP_DIAG_MODE); in ecpp_mode_negotiation()
4937 if (pp->current_mode == newmode) { in ecpp_mode_negotiation()
4942 if ((pp->current_mode == ECPP_ECP_MODE) && in ecpp_mode_negotiation()
4955 pp->current_mode = ECPP_CENTRONICS; in ecpp_mode_negotiation()
4959 pp->to_mode[pp->current_mode]++; in ecpp_mode_negotiation()
4964 if (pp->current_mode == ECPP_NIBBLE_MODE) { in ecpp_mode_negotiation()
4966 pp->current_mode = ECPP_COMPAT_MODE; in ecpp_mode_negotiation()
4969 pp->to_mode[pp->current_mode]++; in ecpp_mode_negotiation()
4979 pp->current_mode = ECPP_COMPAT_MODE; in ecpp_mode_negotiation()
4981 pp->to_mode[pp->current_mode]++; in ecpp_mode_negotiation()
4994 pp->to_mode[pp->current_mode]++; in ecpp_mode_negotiation()
5017 pp->to_mode[pp->current_mode]++; in ecpp_mode_negotiation()
5035 pp->current_mode = ECPP_DIAG_MODE; in ecpp_mode_negotiation()
5038 pp->to_mode[pp->current_mode]++; in ecpp_mode_negotiation()
5082 if ((pp->current_mode != ECPP_NIBBLE_MODE) && in ecpp_idle_phase()
5159 ASSERT(pp->current_mode == ECPP_NIBBLE_MODE); in read_nibble_backchan()
5241 pp->current_mode = ECPP_NIBBLE_MODE; in devidnib_negotiation()
5270 if ((pp->current_mode != mode) || (id == NULL)) { in ecpp_getdevid()
5511 pp->current_mode = ECPP_CENTRONICS; in pc87332_config_chip()
5642 if (COMPAT_PIO(pp) || pp->current_mode == ECPP_NIBBLE_MODE) { in pc97317_config_mode()
6349 ekp->ek_mode.value.ui32 = pp->current_mode; in ecpp_kstat_update()