Lines Matching +full:0 +full:x2000

38 		(buttons & 0x0010 ? -1 : 0) + (buttons & 0x0020 ? 1 : 0));  in dc_pad_callback()
40 (buttons & 0x0040 ? -1 : 0) + (buttons & 0x0080 ? 1 : 0)); in dc_pad_callback()
42 (buttons & 0x1000 ? -1 : 0) + (buttons & 0x2000 ? 1 : 0)); in dc_pad_callback()
44 (buttons & 0x4000 ? -1 : 0) + (buttons & 0x8000 ? 1 : 0)); in dc_pad_callback()
46 input_report_key(dev, BTN_C, buttons & 0x0001); in dc_pad_callback()
47 input_report_key(dev, BTN_B, buttons & 0x0002); in dc_pad_callback()
48 input_report_key(dev, BTN_A, buttons & 0x0004); in dc_pad_callback()
49 input_report_key(dev, BTN_START, buttons & 0x0008); in dc_pad_callback()
50 input_report_key(dev, BTN_Z, buttons & 0x0100); in dc_pad_callback()
51 input_report_key(dev, BTN_Y, buttons & 0x0200); in dc_pad_callback()
52 input_report_key(dev, BTN_X, buttons & 0x0400); in dc_pad_callback()
53 input_report_key(dev, BTN_SELECT, buttons & 0x0800); in dc_pad_callback()
70 return 0; in dc_pad_open()
77 maple_getcond_callback(pad->mdev, dc_pad_callback, 0, in dc_pad_close()
103 unsigned long data = be32_to_cpu(mdev->devinfo.function_data[0]); in probe_maple_controller()
118 for (i = 0; i < 32; i++) { in probe_maple_controller()
120 if (btn_bit[i] >= 0) in probe_maple_controller()
122 else if (abs_bit[i] >= 0) in probe_maple_controller()
128 idev->evbit[0] |= BIT_MASK(EV_KEY); in probe_maple_controller()
130 if (idev->absbit[0]) in probe_maple_controller()
131 idev->evbit[0] |= BIT_MASK(EV_ABS); in probe_maple_controller()
134 input_set_abs_params(idev, i, 0, 255, 0, 0); in probe_maple_controller()
137 input_set_abs_params(idev, i, 1, -1, 0, 0); in probe_maple_controller()
151 return 0; in probe_maple_controller()
170 return 0; in remove_maple_controller()