Searched refs:write_block_cmd (Results 1 – 1 of 1) sorted by relevance
650 struct gen3_write_block_cmd write_block_cmd; in cyapa_gen3_write_fw_block() local656 write_block_cmd.checksum_seed = GEN3_BL_CMD_CHECKSUM_SEED; in cyapa_gen3_write_fw_block()657 write_block_cmd.cmd_code = GEN3_BL_CMD_WRITE_BLOCK; in cyapa_gen3_write_fw_block()658 memcpy(write_block_cmd.key, security_key, sizeof(security_key)); in cyapa_gen3_write_fw_block()659 put_unaligned_be16(block, &write_block_cmd.block_num); in cyapa_gen3_write_fw_block()660 memcpy(write_block_cmd.block_data, data, CYAPA_FW_BLOCK_SIZE); in cyapa_gen3_write_fw_block()661 write_block_cmd.block_checksum = cyapa_gen3_csum( in cyapa_gen3_write_fw_block()662 write_block_cmd.block_data, CYAPA_FW_BLOCK_SIZE); in cyapa_gen3_write_fw_block()663 write_block_cmd.cmd_checksum = cyapa_gen3_csum((u8 *)&write_block_cmd, in cyapa_gen3_write_fw_block()664 sizeof(write_block_cmd) - 1); in cyapa_gen3_write_fw_block()[all …]