Lines Matching refs:rd
1165 static void sixaxis_parse_report(struct sony_sc *sc, __u8 *rd, int size) in sixaxis_parse_report() argument
1180 if (rd[offset] >= 0xee) { in sixaxis_parse_report()
1182 battery_charging = !(rd[offset] & 0x01); in sixaxis_parse_report()
1185 __u8 index = rd[offset] <= 5 ? rd[offset] : 5; in sixaxis_parse_report()
1198 static void dualshock4_parse_report(struct sony_sc *sc, __u8 *rd, int size) in dualshock4_parse_report() argument
1217 cable_state = (rd[offset] >> 4) & 0x01; in dualshock4_parse_report()
1218 battery_capacity = rd[offset] & 0x0F; in dualshock4_parse_report()
1257 x = rd[offset+1] | ((rd[offset+2] & 0xF) << 8); in dualshock4_parse_report()
1258 y = ((rd[offset+2] & 0xF0) >> 4) | (rd[offset+3] << 4); in dualshock4_parse_report()
1262 !(rd[offset] >> 7)); in dualshock4_parse_report()
1271 __u8 *rd, int size) in sony_raw_event() argument
1279 if ((sc->quirks & SIXAXIS_CONTROLLER) && rd[0] == 0x01 && size == 49) { in sony_raw_event()
1288 if (rd[1] == 0xff) in sony_raw_event()
1291 swap(rd[41], rd[42]); in sony_raw_event()
1292 swap(rd[43], rd[44]); in sony_raw_event()
1293 swap(rd[45], rd[46]); in sony_raw_event()
1294 swap(rd[47], rd[48]); in sony_raw_event()
1296 sixaxis_parse_report(sc, rd, size); in sony_raw_event()
1297 } else if ((sc->quirks & MOTION_CONTROLLER_BT) && rd[0] == 0x01 && size == 49) { in sony_raw_event()
1298 sixaxis_parse_report(sc, rd, size); in sony_raw_event()
1299 } else if ((sc->quirks & NAVIGATION_CONTROLLER) && rd[0] == 0x01 && in sony_raw_event()
1301 sixaxis_parse_report(sc, rd, size); in sony_raw_event()
1302 } else if (((sc->quirks & DUALSHOCK4_CONTROLLER_USB) && rd[0] == 0x01 && in sony_raw_event()
1304 && rd[0] == 0x11 && size == 78)) { in sony_raw_event()
1305 dualshock4_parse_report(sc, rd, size); in sony_raw_event()