Lines Matching refs:resp_data

361 	pip->resp_data = NULL;
568 u8 *resp_data, int *resp_len,
585 if (resp_data && resp_len && length != 0 && func) {
591 resp_data, resp_len, func);
608 u8 *resp_data, int *resp_len,
625 pip->resp_data = resp_data;
643 if (error == -ETIMEDOUT && resp_data &&
651 resp_data, resp_len, func);
658 resp_data, resp_len, timeout, func);
662 pip->resp_data = NULL;
770 u8 resp_data[PIP_HID_DESCRIPTOR_SIZE];
783 memset(resp_data, 0, sizeof(resp_data));
784 ret = cyapa_i2c_pip_read(cyapa, resp_data, 3);
788 length = get_unaligned_le16(&resp_data[PIP_RESP_LENGTH_OFFSET]);
801 resp_data, &length,
809 &resp_data[PIP_RESP_LENGTH_OFFSET]);
810 max_output_len = get_unaligned_le16(&resp_data[16]);
813 (resp_data[PIP_RESP_REPORT_ID_OFFSET] ==
820 (resp_data[PIP_RESP_REPORT_ID_OFFSET] ==
837 u8 resp_data[32];
848 ret = cyapa_i2c_pip_read(cyapa, resp_data,
852 length = get_unaligned_le16(&resp_data[PIP_RESP_LENGTH_OFFSET]);
853 max_output_len = get_unaligned_le16(&resp_data[16]);
872 resp_data[2] == PIP_HID_BL_REPORT_ID &&
878 (resp_data[PIP_RESP_REPORT_ID_OFFSET] ==
1057 u8 resp_data[11];
1103 resp_len = sizeof(resp_data);
1106 resp_data, &resp_len, 12000,
1109 resp_data[2] != PIP_BL_RESP_REPORT_ID ||
1110 !PIP_CMD_COMPLETE_SUCCESS(resp_data))
1143 u8 resp_data[11];
1147 resp_len = sizeof(resp_data);
1150 resp_data, &resp_len,
1156 resp_data[PIP_RESP_REPORT_ID_OFFSET] ==
1160 if (resp_data[0] == 0x00 && resp_data[1] == 0x00)
1169 u8 resp_data[2];
1190 resp_len = sizeof(resp_data);
1191 memset(resp_data, 0, resp_len);
1194 resp_data, &resp_len,
1197 if (error || resp_data[0] != 0x00 || resp_data[1] != 0x00)
1329 u8 resp_data[11];
1369 resp_len = sizeof(resp_data);
1371 resp_data, &resp_len,
1374 resp_data[2] != PIP_BL_RESP_REPORT_ID ||
1375 !PIP_CMD_COMPLETE_SUCCESS(resp_data))
1414 u8 resp_data[6];
1419 resp_len = sizeof(resp_data);
1421 resp_data, &resp_len,
1423 if (error || !VALID_CMD_RESP_HEADER(resp_data, 0x08) ||
1424 !PIP_CMD_COMPLETE_SUCCESS(resp_data))
1437 u8 resp_data[7];
1475 resp_len = sizeof(resp_data);
1477 resp_data, &resp_len,
1479 if (error || resp_data[5] != parameter_id ||
1480 resp_data[6] != parameter_size ||
1481 !VALID_CMD_RESP_HEADER(resp_data, GEN5_CMD_SET_PARAMETER))
1494 u8 resp_data[11];
1529 resp_len = sizeof(resp_data);
1531 resp_data, &resp_len,
1533 if (error || resp_data[5] != parameter_id || resp_data[6] == 0 ||
1534 !VALID_CMD_RESP_HEADER(resp_data, GEN5_CMD_GET_PARAMETER))
1540 *interval_time = get_unaligned_le16(&resp_data[7]) & mask;
1549 u8 resp_data[7];
1563 resp_len = sizeof(resp_data);
1565 resp_data, &resp_len,
1567 if (error || resp_data[5] != GEN5_PARAMETER_DISABLE_PIP_REPORT ||
1568 !VALID_CMD_RESP_HEADER(resp_data, GEN5_CMD_SET_PARAMETER) ||
1569 resp_data[6] != 0x01)
1580 u8 resp_data[6];
1584 resp_len = sizeof(resp_data);
1586 resp_data, &resp_len,
1588 if (error || !VALID_CMD_RESP_HEADER(resp_data, PIP_SET_PROXIMITY) ||
1589 !PIP_CMD_COMPLETE_SUCCESS(resp_data)) {
1600 u8 resp_data[5];
1605 resp_len = sizeof(resp_data);
1607 resp_data, &resp_len,
1609 if (error || ((resp_data[3] & PIP_DEEP_SLEEP_STATE_MASK) != state))
1744 u8 resp_data[6];
1751 resp_len = sizeof(resp_data);
1754 resp_data, &resp_len,
1756 if (error || !VALID_CMD_RESP_HEADER(resp_data, 0x04))
1768 u8 resp_data[6];
1775 resp_len = sizeof(resp_data);
1778 resp_data, &resp_len,
1780 if (error || !VALID_CMD_RESP_HEADER(resp_data, 0x03))
1794 u8 resp_data[6];
1808 resp_len = sizeof(resp_data);
1811 resp_data, &resp_len,
1813 if (error || !VALID_CMD_RESP_HEADER(resp_data, PIP_CMD_CALIBRATE) ||
1814 !PIP_CMD_COMPLETE_SUCCESS(resp_data))
1939 u8 resp_data[256];
2025 resp_data, &resp_len,
2029 !VALID_CMD_RESP_HEADER(resp_data, cmd_code) ||
2030 !PIP_CMD_COMPLETE_SUCCESS(resp_data) ||
2031 resp_data[6] != idac_data_type)
2033 read_len = get_unaligned_le16(&resp_data[7]);
2037 *data_size = (resp_data[9] & GEN5_PWC_DATA_ELEMENT_SIZE_MASK);
2045 resp_data[9],
2046 &resp_data[GEN5_RESP_DATA_STRUCTURE_OFFSET],
2050 resp_data[9],
2051 &resp_data[GEN5_RESP_DATA_STRUCTURE_OFFSET +
2061 value = cyapa_parse_structure_data(resp_data[9],
2062 &resp_data[i], *data_size);
2182 u8 resp_data[6];
2192 resp_len = sizeof(resp_data);
2195 resp_data, &resp_len,
2197 if (error || resp_len != sizeof(resp_data) ||
2198 !VALID_CMD_RESP_HEADER(resp_data,
2200 !PIP_CMD_COMPLETE_SUCCESS(resp_data))
2214 u8 resp_data[256]; /* Max bytes can transfer one time. */
2255 resp_data, &resp_len,
2258 !VALID_CMD_RESP_HEADER(resp_data, cmd_code) ||
2259 !PIP_CMD_COMPLETE_SUCCESS(resp_data) ||
2260 resp_data[6] != raw_data_type)
2263 read_elements = get_unaligned_le16(&resp_data[7]);
2267 data_size = (resp_data[9] & GEN5_PWC_DATA_ELEMENT_SIZE_MASK);
2274 value = cyapa_parse_structure_data(resp_data[9],
2275 &resp_data[i], data_size);
2291 read_elements = (sizeof(resp_data) -
2449 u8 resp_data[PIP_BL_APP_INFO_RESP_LENGTH];
2453 resp_len = sizeof(resp_data);
2456 resp_data, &resp_len,
2459 !PIP_CMD_COMPLETE_SUCCESS(resp_data))
2462 memcpy(&cyapa->product_id[0], &resp_data[8], 5);
2464 memcpy(&cyapa->product_id[6], &resp_data[13], 6);
2466 memcpy(&cyapa->product_id[13], &resp_data[19], 2);
2469 cyapa->fw_maj_ver = resp_data[22];
2470 cyapa->fw_min_ver = resp_data[23];
2472 cyapa->platform_ver = (resp_data[26] >> PIP_BL_PLATFORM_VER_SHIFT) &
2480 u8 resp_data[PIP_READ_SYS_INFO_RESP_LENGTH];
2485 resp_len = sizeof(resp_data);
2488 resp_data, &resp_len,
2490 if (error || resp_len < sizeof(resp_data))
2493 product_family = get_unaligned_le16(&resp_data[7]);
2498 cyapa->platform_ver = (resp_data[49] >> PIP_BL_PLATFORM_VER_SHIFT) &
2502 cyapa->fw_maj_ver = resp_data[15];
2503 cyapa->fw_min_ver = resp_data[16];
2505 cyapa->fw_maj_ver = resp_data[9];
2506 cyapa->fw_min_ver = resp_data[10];
2509 cyapa->electrodes_x = resp_data[52];
2510 cyapa->electrodes_y = resp_data[53];
2512 cyapa->physical_size_x = get_unaligned_le16(&resp_data[54]) / 100;
2513 cyapa->physical_size_y = get_unaligned_le16(&resp_data[56]) / 100;
2515 cyapa->max_abs_x = get_unaligned_le16(&resp_data[58]);
2516 cyapa->max_abs_y = get_unaligned_le16(&resp_data[60]);
2518 cyapa->max_z = get_unaligned_le16(&resp_data[62]);
2520 cyapa->x_origin = resp_data[64] & 0x01;
2521 cyapa->y_origin = resp_data[65] & 0x01;
2523 cyapa->btn_capability = (resp_data[70] << 3) & CAPABILITY_BTN_MASK;
2525 memcpy(&cyapa->product_id[0], &resp_data[33], 5);
2527 memcpy(&cyapa->product_id[6], &resp_data[38], 6);
2529 memcpy(&cyapa->product_id[13], &resp_data[44], 2);
2649 pip->resp_data,
2660 if (pip->resp_data && pip->resp_len) {
2663 memcpy(pip->resp_data, pip->irq_cmd_buf,