Lines Matching refs:current_mode

104  *   pp->current_mode  -- 1284 mode used for forward transfers;
109 * pp->current_mode == ECPP_COMPAT_MODE && pp->backchannel == ECPP_NIBBLE_MODE
120 * sets pp->current_mode and pp->backchannel accordingly.
617 int current_mode = pp->current_mode;
620 (void) ecpp_mode_negotiation(pp, current_mode);
1055 pp->current_mode = ECPP_CENTRONICS;
1122 pp->current_mode, pp->current_phase,
1208 if ((pp->current_mode == ECPP_ECP_MODE) &&
1525 pp->xfer_parms.mode = pp->current_mode;
1536 if (pp->current_mode != ECPP_DIAG_MODE) {
1553 if (pp->current_mode != ECPP_DIAG_MODE) {
1578 if (pp->current_mode != ECPP_DIAG_MODE) {
1600 if (pp->current_mode != ECPP_DIAG_MODE) {
1654 if (!((pp->current_mode == ECPP_CENTRONICS) ||
1655 (pp->current_mode == ECPP_COMPAT_MODE))) {
1740 if (pp->current_mode == ECPP_CENTRONICS ||
1741 pp->current_mode == ECPP_COMPAT_MODE) {
1766 if (pp->current_mode != ECPP_COMPAT_MODE &&
1767 pp->current_mode != ECPP_CENTRONICS) {
2147 ecpp_error(pp->dip, "srvioc: current_mode =%x new mode=%x\n",
2148 pp->current_mode, pp->xfer_parms.mode);
2157 if ((pp->current_mode == ECPP_NIBBLE_MODE) &&
2170 if (pp->current_mode != ECPP_DIAG_MODE) {
2176 pp->xfer_parms.mode = pp->current_mode;
2188 if (pp->current_mode != ECPP_DIAG_MODE) {
2217 if (pp->current_mode != ECPP_DIAG_MODE) {
2254 if (pp->current_mode != ECPP_DIAG_MODE) {
2587 (pp->current_mode == ECPP_ECP_MODE) ||
2588 (pp->current_mode == ECPP_DIAG_MODE)) {
2668 if (pp->current_mode == ECPP_DIAG_MODE) {
2684 if (pp->current_mode == ECPP_ECP_MODE) {
2717 "ecpp_start:current_mode=%x,current_phase=%x,ecr=%x,len=%d\n",
2718 pp->current_mode, pp->current_phase, ECR_READ(pp), len);
2722 switch (pp->current_mode) {
2880 ASSERT((pp->current_mode <= ECPP_DIAG_MODE) &&
2881 (ecr_mode[pp->current_mode] != 0));
2929 ecr = ecr_mode[pp->current_mode];
3140 (pp->current_mode == ECPP_ECP_MODE))) {
3229 pp->current_mode, pp->current_phase);
3241 pp->current_mode, pp->current_phase);
3265 (pp->current_mode == ECPP_ECP_MODE) ||
3266 (pp->current_mode == ECPP_DIAG_MODE)) {
3288 pp->current_mode, ECR_READ(pp), DSR_READ(pp), DCR_READ(pp));
3304 if (pp->current_mode == ECPP_ECP_MODE &&
3312 (pp->current_mode == ECPP_DIAG_MODE)) {
3410 pp->current_mode, pp->current_phase);
3429 switch (pp->current_mode) {
3689 pp->obytes[pp->current_mode] += xferd;
3831 if ((pp->current_mode != ECPP_DIAG_MODE) &&
3847 if (pp->current_mode != ECPP_DIAG_MODE) {
3878 if (pp->current_mode == ECPP_ECP_MODE ||
3879 pp->current_mode == ECPP_DIAG_MODE ||
3890 pp->obytes[pp->current_mode] +=
3893 pp->ibytes[pp->current_mode] +=
3979 if (pp->current_mode == ECPP_ECP_MODE ||
3980 pp->current_mode == ECPP_DIAG_MODE)
4078 if (pp->current_mode == ECPP_CENTRONICS ||
4079 pp->current_mode == ECPP_COMPAT_MODE) {
4081 } else if (pp->current_mode == ECPP_NIBBLE_MODE ||
4082 pp->current_mode == ECPP_ECP_MODE) {
4142 pp->current_mode = pp->backchannel = ECPP_CENTRONICS;
4145 pp->to_mode[pp->current_mode]++;
4190 pp->current_mode = ECPP_ECP_MODE;
4221 pp->current_mode = ECPP_NIBBLE_MODE;
4351 * current_mode is ECPP_COMPAT_MODE, current phase is ECPP_PHASE_C_IDLE
4358 int previous_mode = pp->current_mode;
4360 if (((pp->current_mode == ECPP_COMPAT_MODE ||
4361 pp->current_mode == ECPP_CENTRONICS) &&
4363 pp->current_mode == ECPP_DIAG_MODE) {
4372 pp->current_mode = ECPP_COMPAT_MODE; /* needed by next function */
4449 ASSERT(pp->current_mode == ECPP_ECP_MODE &&
4629 ASSERT(pp->current_mode == ECPP_ECP_MODE &&
4654 pp->ibytes[pp->current_mode] += xfer_len;
4750 ASSERT(pp->current_mode == ECPP_NIBBLE_MODE);
4835 ASSERT(pp->current_mode == ECPP_ECP_MODE &&
4869 ASSERT(pp->current_mode == ECPP_ECP_MODE &&
4931 ASSERT(pp->current_mode == ECPP_CENTRONICS ||
4932 pp->current_mode == ECPP_COMPAT_MODE ||
4933 pp->current_mode == ECPP_NIBBLE_MODE ||
4934 pp->current_mode == ECPP_ECP_MODE ||
4935 pp->current_mode == ECPP_DIAG_MODE);
4937 if (pp->current_mode == newmode) {
4942 if ((pp->current_mode == ECPP_ECP_MODE) &&
4955 pp->current_mode = ECPP_CENTRONICS;
4959 pp->to_mode[pp->current_mode]++;
4964 if (pp->current_mode == ECPP_NIBBLE_MODE) {
4966 pp->current_mode = ECPP_COMPAT_MODE;
4969 pp->to_mode[pp->current_mode]++;
4979 pp->current_mode = ECPP_COMPAT_MODE;
4981 pp->to_mode[pp->current_mode]++;
4994 pp->to_mode[pp->current_mode]++;
5017 pp->to_mode[pp->current_mode]++;
5035 pp->current_mode = ECPP_DIAG_MODE;
5038 pp->to_mode[pp->current_mode]++;
5082 if ((pp->current_mode != ECPP_NIBBLE_MODE) &&
5159 ASSERT(pp->current_mode == ECPP_NIBBLE_MODE);
5241 pp->current_mode = ECPP_NIBBLE_MODE;
5270 if ((pp->current_mode != mode) || (id == NULL)) {
5511 pp->current_mode = ECPP_CENTRONICS;
5642 if (COMPAT_PIO(pp) || pp->current_mode == ECPP_NIBBLE_MODE) {
6349 ekp->ek_mode.value.ui32 = pp->current_mode;