Lines Matching +full:0 +full:x5a

31 #define REVERSE_BIT(x) ((((x) & 0x80) >> 7) | (((x) & 0x40) >> 5) | \
32 (((x) & 0x20) >> 3) | (((x) & 0x10) >> 1) | (((x) & 0x08) << 1) | \
33 (((x) & 0x04) << 3) | (((x) & 0x02) << 5) | (((x) & 0x01) << 7))
38 * 0x01, 0x42, 0x00, 0x00, 0x00,
39 * 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
40 * 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
43 0x80, 0x42, 0x00, 0x00, 0x00,
44 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
45 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
49 /* 0x01, 0x43, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 */
51 0x80, 0xC2, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00
53 /* 0x01, 0x43, 0x00, 0x00, 0x5A, 0x5A, 0x5A, 0x5A, 0x5A */
55 0x80, 0xC2, 0x00, 0x00, 0x5A, 0x5A, 0x5A, 0x5A, 0x5A
57 /* 0x01, 0x4D, 0x00, 0x00, 0x01, 0xFF, 0xFF, 0xFF, 0xFF */
59 0x80, 0xB2, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF
66 char phys[0x20];
71 u8 sendbuf[0x20] ____cacheline_aligned;
92 return 0; in psxpad_command()
115 pad->sendbuf[3] = pad->motor1enable ? 0x00 : 0xFF; in psxpad_control_motor()
116 pad->sendbuf[4] = pad->motor2enable ? 0x80 : 0xFF; in psxpad_control_motor()
138 pad->motor1level = motor1level ? 0xFF : 0x00; in psxpad_set_motor_level()
150 (effect->u.rumble.weak_magnitude >> 8) & 0xFFU, in psxpad_spi_play_effect()
151 (effect->u.rumble.strong_magnitude >> 8) & 0xFFU); in psxpad_spi_play_effect()
155 return 0; in psxpad_spi_play_effect()
171 return 0; in psxpad_spi_init_ff()
188 return 0; in psxpad_spi_init_ff()
198 return 0; in psxpad_spi_poll_open()
217 pad->sendbuf[3] = pad->motor1enable ? pad->motor1level : 0x00; in psxpad_spi_poll()
218 pad->sendbuf[4] = pad->motor2enable ? pad->motor2level : 0x00; in psxpad_spi_poll()
227 case 0xCE: /* 0x73 : analog 1 */ in psxpad_spi_poll()
238 input_report_key(input, BTN_DPAD_LEFT, b_rsp3 & BIT(0)); in psxpad_spi_poll()
243 input_report_key(input, BTN_Y, b_rsp4 & BIT(0)); in psxpad_spi_poll()
254 case 0x82: /* 0x41 : digital */ in psxpad_spi_poll()
259 input_report_abs(input, ABS_X, 0x80); in psxpad_spi_poll()
260 input_report_abs(input, ABS_Y, 0x80); in psxpad_spi_poll()
261 input_report_abs(input, ABS_RX, 0x80); in psxpad_spi_poll()
262 input_report_abs(input, ABS_RY, 0x80); in psxpad_spi_poll()
265 input_report_key(input, BTN_DPAD_LEFT, b_rsp3 & BIT(0)); in psxpad_spi_poll()
270 input_report_key(input, BTN_Y, b_rsp4 & BIT(0)); in psxpad_spi_poll()
316 input_set_abs_params(idev, ABS_X, 0, 255, 0, 0); in psxpad_spi_probe()
317 input_set_abs_params(idev, ABS_Y, 0, 255, 0, 0); in psxpad_spi_probe()
318 input_set_abs_params(idev, ABS_RX, 0, 255, 0, 0); in psxpad_spi_probe()
319 input_set_abs_params(idev, ABS_RY, 0, 255, 0, 0); in psxpad_spi_probe()
350 psxpad_set_motor_level(pad, 0, 0); in psxpad_spi_probe()
374 return 0; in psxpad_spi_probe()
382 psxpad_set_motor_level(pad, 0, 0); in psxpad_spi_suspend()
384 return 0; in psxpad_spi_suspend()
390 { "psxpad-spi", 0 },