write_block_cmd 650 drivers/input/mouse/cyapa_gen3.c struct gen3_write_block_cmd write_block_cmd; write_block_cmd 656 drivers/input/mouse/cyapa_gen3.c write_block_cmd.checksum_seed = GEN3_BL_CMD_CHECKSUM_SEED; write_block_cmd 657 drivers/input/mouse/cyapa_gen3.c write_block_cmd.cmd_code = GEN3_BL_CMD_WRITE_BLOCK; write_block_cmd 658 drivers/input/mouse/cyapa_gen3.c memcpy(write_block_cmd.key, security_key, sizeof(security_key)); write_block_cmd 659 drivers/input/mouse/cyapa_gen3.c put_unaligned_be16(block, &write_block_cmd.block_num); write_block_cmd 660 drivers/input/mouse/cyapa_gen3.c memcpy(write_block_cmd.block_data, data, CYAPA_FW_BLOCK_SIZE); write_block_cmd 661 drivers/input/mouse/cyapa_gen3.c write_block_cmd.block_checksum = cyapa_gen3_csum( write_block_cmd 662 drivers/input/mouse/cyapa_gen3.c write_block_cmd.block_data, CYAPA_FW_BLOCK_SIZE); write_block_cmd 663 drivers/input/mouse/cyapa_gen3.c write_block_cmd.cmd_checksum = cyapa_gen3_csum((u8 *)&write_block_cmd, write_block_cmd 664 drivers/input/mouse/cyapa_gen3.c sizeof(write_block_cmd) - 1); write_block_cmd 666 drivers/input/mouse/cyapa_gen3.c ret = cyapa_gen3_write_buffer(cyapa, (u8 *)&write_block_cmd, write_block_cmd 667 drivers/input/mouse/cyapa_gen3.c sizeof(write_block_cmd));