• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/input/joystick/

Lines Matching defs:powered

148 static void db9_saturn_write_sub(struct parport *port, int type, unsigned char data, int powered, int pwr_sub)
154 c = 0x80 | 0x30 | (powered ? 0x08 : 0) | (pwr_sub ? 0x04 : 0) | data;
158 c = 0x40 | data << 4 | (powered ? 0x08 : 0) | (pwr_sub ? 0x04 : 0) | 0x03;
162 c = ((((data & 2) ? 2 : 0) | ((data & 1) ? 4 : 0)) ^ 0x02) | !powered;
191 static unsigned char db9_saturn_read_analog(struct parport *port, int type, int powered)
195 db9_saturn_write_sub(port, type, 0, powered, 0);
198 db9_saturn_write_sub(port, type, 2, powered, 0);
208 static unsigned char db9_saturn_read_packet(struct parport *port, unsigned char *data, int type, int powered)
213 db9_saturn_write_sub(port, type, 3, powered, 0);
221 db9_saturn_write_sub(port, type, 0, powered, 1);
223 db9_saturn_write_sub(port, type, 2, powered, 1);
225 db9_saturn_write_sub(port, type, 1, powered, 1);
227 db9_saturn_write_sub(port, type, 3, powered, 1);
233 db9_saturn_write_sub(port, type, 2, powered, 0);
235 data[0] = db9_saturn_read_analog(port, type, powered);
239 data[i + 1] = db9_saturn_read_analog(port, type, powered);
240 db9_saturn_write_sub(port, type, 3, powered, 0);
244 if (db9_saturn_read_analog(port, type, powered) != 0x60)
247 data[i] = db9_saturn_read_analog(port, type, powered);
251 data[i + j + 1] = db9_saturn_read_analog(port, type, powered);
253 db9_saturn_write_sub(port, type, 3, powered, 0);
258 db9_saturn_write_sub(port, type, 2, powered, 0);
260 tmp = db9_saturn_read_analog(port, type, powered);
263 data[i + 1] = db9_saturn_read_analog(port, type, powered);
264 db9_saturn_write_sub(port, type, 3, powered, 0);