• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/input/joystick/

Lines Matching defs:powered

146 static void db9_saturn_write_sub(struct parport *port, int type, unsigned char data, int powered, int pwr_sub)
152 c = 0x80 | 0x30 | (powered ? 0x08 : 0) | (pwr_sub ? 0x04 : 0) | data;
156 c = 0x40 | data << 4 | (powered ? 0x08 : 0) | (pwr_sub ? 0x04 : 0) | 0x03;
160 c = ((((data & 2) ? 2 : 0) | ((data & 1) ? 4 : 0)) ^ 0x02) | !powered;
189 static unsigned char db9_saturn_read_analog(struct parport *port, int type, int powered)
193 db9_saturn_write_sub(port, type, 0, powered, 0);
196 db9_saturn_write_sub(port, type, 2, powered, 0);
206 static unsigned char db9_saturn_read_packet(struct parport *port, unsigned char *data, int type, int powered)
211 db9_saturn_write_sub(port, type, 3, powered, 0);
219 db9_saturn_write_sub(port, type, 0, powered, 1);
221 db9_saturn_write_sub(port, type, 2, powered, 1);
223 db9_saturn_write_sub(port, type, 1, powered, 1);
225 db9_saturn_write_sub(port, type, 3, powered, 1);
231 db9_saturn_write_sub(port, type, 2, powered, 0);
233 data[0] = db9_saturn_read_analog(port, type, powered);
237 data[i + 1] = db9_saturn_read_analog(port, type, powered);
238 db9_saturn_write_sub(port, type, 3, powered, 0);
242 if (db9_saturn_read_analog(port, type, powered) != 0x60)
245 data[i] = db9_saturn_read_analog(port, type, powered);
249 data[i + j + 1] = db9_saturn_read_analog(port, type, powered);
251 db9_saturn_write_sub(port, type, 3, powered, 0);
256 db9_saturn_write_sub(port, type, 2, powered, 0);
258 tmp = db9_saturn_read_analog(port, type, powered);
261 data[i + 1] = db9_saturn_read_analog(port, type, powered);
262 db9_saturn_write_sub(port, type, 3, powered, 0);