Lines Matching refs:state
52 int state; /* status of the printer interface */
99 char *BppState(int state)
104 sprintf(buf, "State (0x%.4x) - (%s%s%s%s)\n", state,
105 ((state & BPP_SLCT_ERR) ? "offline " : ""),
106 ((state & BPP_BUSY_ERR) ? "busy " : ""),
107 ((state & BPP_PE_ERR) ? "paper " : ""),
108 ((state & BPP_ERR_ERR) ? "error " : ""));
118 int state;
122 state = bpp_stat.pin_status;
125 logit("%s", BppState(state));
128 if (state == (BPP_PE_ERR | BPP_ERR_ERR | BPP_SLCT_ERR)) {
131 } else if (state & BPP_BUSY_ERR) {
134 } else if (state & BPP_SLCT_ERR) {
137 } else if (state & BPP_ERR_ERR) {
140 } else if (state == BPP_PE_ERR) {
143 } else if (state) {
154 int state;
162 state = transfer_parms.mode;
169 if (state != ECPP_CENTRONICS) {
174 state = ECPP_CENTRONICS;
178 return(state);
315 int state;
318 while (state = get_state(fd)) {
320 printer_error(state);