Lines Matching full:powered
131 static void db9_saturn_write_sub(struct parport *port, int type, unsigned char data, int powered, i… in db9_saturn_write_sub() argument
137 c = 0x80 | 0x30 | (powered ? 0x08 : 0) | (pwr_sub ? 0x04 : 0) | data; in db9_saturn_write_sub()
141 c = 0x40 | data << 4 | (powered ? 0x08 : 0) | (pwr_sub ? 0x04 : 0) | 0x03; in db9_saturn_write_sub()
145 c = ((((data & 2) ? 2 : 0) | ((data & 1) ? 4 : 0)) ^ 0x02) | !powered; in db9_saturn_write_sub()
174 static unsigned char db9_saturn_read_analog(struct parport *port, int type, int powered) in db9_saturn_read_analog() argument
178 db9_saturn_write_sub(port, type, 0, powered, 0); in db9_saturn_read_analog()
181 db9_saturn_write_sub(port, type, 2, powered, 0); in db9_saturn_read_analog()
191 …igned char db9_saturn_read_packet(struct parport *port, unsigned char *data, int type, int powered) in db9_saturn_read_packet() argument
196 db9_saturn_write_sub(port, type, 3, powered, 0); in db9_saturn_read_packet()
204 db9_saturn_write_sub(port, type, 0, powered, 1); in db9_saturn_read_packet()
206 db9_saturn_write_sub(port, type, 2, powered, 1); in db9_saturn_read_packet()
208 db9_saturn_write_sub(port, type, 1, powered, 1); in db9_saturn_read_packet()
210 db9_saturn_write_sub(port, type, 3, powered, 1); in db9_saturn_read_packet()
216 db9_saturn_write_sub(port, type, 2, powered, 0); in db9_saturn_read_packet()
218 data[0] = db9_saturn_read_analog(port, type, powered); in db9_saturn_read_packet()
222 data[i + 1] = db9_saturn_read_analog(port, type, powered); in db9_saturn_read_packet()
223 db9_saturn_write_sub(port, type, 3, powered, 0); in db9_saturn_read_packet()
227 if (db9_saturn_read_analog(port, type, powered) != 0x60) in db9_saturn_read_packet()
230 data[i] = db9_saturn_read_analog(port, type, powered); in db9_saturn_read_packet()
234 data[i + j + 1] = db9_saturn_read_analog(port, type, powered); in db9_saturn_read_packet()
236 db9_saturn_write_sub(port, type, 3, powered, 0); in db9_saturn_read_packet()
241 db9_saturn_write_sub(port, type, 2, powered, 0); in db9_saturn_read_packet()
243 tmp = db9_saturn_read_analog(port, type, powered); in db9_saturn_read_packet()
246 data[i + 1] = db9_saturn_read_analog(port, type, powered); in db9_saturn_read_packet()
247 db9_saturn_write_sub(port, type, 3, powered, 0); in db9_saturn_read_packet()