Lines Matching refs:bits
113 unsigned char bits = instances[minor].direction; /* == 0x20 */ in set_pins() local
115 if (! (pins & BPP_PP_nStrobe)) bits |= 1; in set_pins()
116 if (! (pins & BPP_PP_nAutoFd)) bits |= 2; in set_pins()
117 if ( pins & BPP_PP_nInit) bits |= 4; in set_pins()
118 if (! (pins & BPP_PP_nSelectIn)) bits |= 8; in set_pins()
120 instances[minor].pp_state = bits; in set_pins()
122 outb_p(bits, base_addrs[minor]+2); in set_pins()
127 unsigned short bits = 0; in get_pins() local
130 if (! (value & 0x01)) bits |= BPP_PP_nStrobe; in get_pins()
131 if (! (value & 0x02)) bits |= BPP_PP_nAutoFd; in get_pins()
132 if (value & 0x04) bits |= BPP_PP_nInit; in get_pins()
133 if (! (value & 0x08)) bits |= BPP_PP_nSelectIn; in get_pins()
136 if (value & 0x08) bits |= BPP_GP_nFault; in get_pins()
137 if (value & 0x10) bits |= BPP_GP_Select; in get_pins()
138 if (value & 0x20) bits |= BPP_GP_PError; in get_pins()
139 if (value & 0x40) bits |= BPP_GP_nAck; in get_pins()
140 if (! (value & 0x80)) bits |= BPP_GP_Busy; in get_pins()
142 return bits; in get_pins()
281 unsigned short bits = 0; in get_pins() local
286 if (value_tcr & P_TCR_DS) bits |= BPP_PP_nStrobe; in get_pins()
287 if (value_or & P_OR_AFXN) bits |= BPP_PP_nAutoFd; in get_pins()
288 if (! (value_or & P_OR_INIT)) bits |= BPP_PP_nInit; in get_pins()
289 if (! (value_or & P_OR_SLCT_IN)) bits |= BPP_PP_nSelectIn; in get_pins()
291 if (value_ir & P_IR_ERR) bits |= BPP_GP_nFault; in get_pins()
292 if (! (value_ir & P_IR_SLCT)) bits |= BPP_GP_Select; in get_pins()
293 if (! (value_ir & P_IR_PE)) bits |= BPP_GP_PError; in get_pins()
294 if (! (value_tcr & P_TCR_ACK)) bits |= BPP_GP_nAck; in get_pins()
295 if (value_tcr & P_TCR_BUSY) bits |= BPP_GP_Busy; in get_pins()
297 return bits; in get_pins()
842 unsigned short bits = get_pins(minor); in bpp_ioctl() local
844 set_pins(bits, minor); in bpp_ioctl()
849 unsigned short bits = get_pins(minor); in bpp_ioctl() local
851 set_pins(bits, minor); in bpp_ioctl()