Lines Matching refs:ds4_report

2179 	struct dualshock4_input_report_common *ds4_report;
2195 ds4_report = &usb->common;
2209 ds4_report = &bt->common;
2217 input_report_abs(ds4->gamepad, ABS_X, ds4_report->x);
2218 input_report_abs(ds4->gamepad, ABS_Y, ds4_report->y);
2219 input_report_abs(ds4->gamepad, ABS_RX, ds4_report->rx);
2220 input_report_abs(ds4->gamepad, ABS_RY, ds4_report->ry);
2221 input_report_abs(ds4->gamepad, ABS_Z, ds4_report->z);
2222 input_report_abs(ds4->gamepad, ABS_RZ, ds4_report->rz);
2224 value = ds4_report->buttons[0] & DS_BUTTONS0_HAT_SWITCH;
2230 input_report_key(ds4->gamepad, BTN_WEST, ds4_report->buttons[0] & DS_BUTTONS0_SQUARE);
2231 input_report_key(ds4->gamepad, BTN_SOUTH, ds4_report->buttons[0] & DS_BUTTONS0_CROSS);
2232 input_report_key(ds4->gamepad, BTN_EAST, ds4_report->buttons[0] & DS_BUTTONS0_CIRCLE);
2233 input_report_key(ds4->gamepad, BTN_NORTH, ds4_report->buttons[0] & DS_BUTTONS0_TRIANGLE);
2234 input_report_key(ds4->gamepad, BTN_TL, ds4_report->buttons[1] & DS_BUTTONS1_L1);
2235 input_report_key(ds4->gamepad, BTN_TR, ds4_report->buttons[1] & DS_BUTTONS1_R1);
2236 input_report_key(ds4->gamepad, BTN_TL2, ds4_report->buttons[1] & DS_BUTTONS1_L2);
2237 input_report_key(ds4->gamepad, BTN_TR2, ds4_report->buttons[1] & DS_BUTTONS1_R2);
2238 input_report_key(ds4->gamepad, BTN_SELECT, ds4_report->buttons[1] & DS_BUTTONS1_CREATE);
2239 input_report_key(ds4->gamepad, BTN_START, ds4_report->buttons[1] & DS_BUTTONS1_OPTIONS);
2240 input_report_key(ds4->gamepad, BTN_THUMBL, ds4_report->buttons[1] & DS_BUTTONS1_L3);
2241 input_report_key(ds4->gamepad, BTN_THUMBR, ds4_report->buttons[1] & DS_BUTTONS1_R3);
2242 input_report_key(ds4->gamepad, BTN_MODE, ds4_report->buttons[2] & DS_BUTTONS2_PS_HOME);
2246 for (i = 0; i < ARRAY_SIZE(ds4_report->gyro); i++) {
2247 int raw_data = (short)le16_to_cpu(ds4_report->gyro[i]);
2255 for (i = 0; i < ARRAY_SIZE(ds4_report->accel); i++) {
2256 int raw_data = (short)le16_to_cpu(ds4_report->accel[i]);
2265 sensor_timestamp = le16_to_cpu(ds4_report->sensor_timestamp);
2303 input_report_key(ds4->touchpad, BTN_LEFT, ds4_report->buttons[2] & DS_BUTTONS2_TOUCHPAD);
2315 if (ds4_report->status[0] & DS4_STATUS0_CABLE_STATE) {
2316 uint8_t battery_data = ds4_report->status[0] & DS4_STATUS0_BATTERY_CAPACITY;
2337 uint8_t battery_data = ds4_report->status[0] & DS4_STATUS0_BATTERY_CAPACITY;
2367 struct dualshock4_input_report_common *ds4_report = (struct dualshock4_input_report_common *)&data[1];
2370 connected = ds4_report->status[1] & DS4_STATUS1_DONGLE_STATE ? false : true;