Lines Matching refs:size
48 int (*parse_report)(struct ps_device *dev, struct hid_report *report, u8 *data, int size);
223 /* Common input report size shared equals the size of the USB report minus 1 byte for ReportID. */
741 static int ps_get_report(struct hid_device *hdev, uint8_t report_id, uint8_t *buf, size_t size,
746 ret = hid_hw_raw_request(hdev, report_id, buf, size, HID_FEATURE_REPORT,
753 if (ret != size) {
754 hid_err(hdev, "Invalid byte count transferred, expected %zu got %d\n", size, ret);
765 uint8_t crc_offset = size - 4;
1309 u8 *data, int size)
1327 size == DS_INPUT_REPORT_USB_SIZE) {
1330 size == DS_INPUT_REPORT_BT_SIZE) {
1332 uint32_t report_crc = get_unaligned_le32(&data[size - 4]);
1334 if (!ps_check_crc32(PS_INPUT_CRC32_SEED, data, size - 4, report_crc)) {
2175 u8 *data, int size)
2192 size == DS4_INPUT_REPORT_USB_SIZE) {
2199 size == DS4_INPUT_REPORT_BT_SIZE) {
2204 if (!ps_check_crc32(PS_INPUT_CRC32_SEED, data, size - 4, report_crc)) {
2356 u8 *data, int size)
2366 if (data[0] == DS4_INPUT_REPORT_USB && size == DS4_INPUT_REPORT_USB_SIZE) {
2406 return dualshock4_parse_report(ps_dev, report, data, size);
2625 u8 *data, int size)
2630 return dev->parse_report(dev, report, data, size);