Lines Matching full:pec
28 /* Transaction includes the address, the command, the length and the PEC byte */
54 u8 pec; member
342 /* PEC - Start Read Address */ in calculate_response_part_pec()
343 part->pec = i2c_smbus_pec(0, &addr, 1); in calculate_response_part_pec()
344 /* PEC - SSIF Command */ in calculate_response_part_pec()
345 part->pec = i2c_smbus_pec(part->pec, &part->smbus_cmd, 1); in calculate_response_part_pec()
346 /* PEC - Restart Write Address */ in calculate_response_part_pec()
348 part->pec = i2c_smbus_pec(part->pec, &addr, 1); in calculate_response_part_pec()
349 part->pec = i2c_smbus_pec(part->pec, &part->length, 1); in calculate_response_part_pec()
351 part->pec = i2c_smbus_pec(part->pec, part->payload, part->length); in calculate_response_part_pec()
468 *val = part->pec; in handle_read_processed()
480 * the address + the command + the len and the PEC. in handle_write_received()
503 /* PEC is not included */ in validate_request_part()
514 /* PEC is included */ in validate_request_part()
516 part->pec = part->payload[part->length]; in validate_request_part()
533 if (cpec != part->pec) in validate_request_part()
743 dev_err(&ssif_bmc->client->dev, "Error: invalid pec\n"); in on_stop_event()