Lines Matching refs:cmd_size
1712 static const u32 cmd_size = sizeof(thp7312_cmd_write_ram_to_flash); in thp7312_fw_write_to_flash() local
1716 memcpy(command, thp7312_cmd_write_ram_to_flash, cmd_size); in thp7312_fw_write_to_flash()
1718 command[cmd_size] = (dest & 0xff0000) >> 16; in thp7312_fw_write_to_flash()
1719 command[cmd_size + 1] = (dest & 0x00ff00) >> 8; in thp7312_fw_write_to_flash()
1720 command[cmd_size + 2] = (dest & 0x0000ff); in thp7312_fw_write_to_flash()
1721 command[cmd_size + 3] = ((write_size - 1) & 0xff0000) >> 16; in thp7312_fw_write_to_flash()
1722 command[cmd_size + 4] = ((write_size - 1) & 0x00ff00) >> 8; in thp7312_fw_write_to_flash()
1723 command[cmd_size + 5] = ((write_size - 1) & 0x0000ff); in thp7312_fw_write_to_flash()
1745 static const u32 cmd_size = sizeof(thp7312_cmd_calc_crc); in thp7312_fw_check_crc() local
1751 memcpy(command, thp7312_cmd_calc_crc, cmd_size); in thp7312_fw_check_crc()
1753 command[cmd_size] = 0; in thp7312_fw_check_crc()
1754 command[cmd_size + 1] = (header_size >> 8) & 0xff; in thp7312_fw_check_crc()
1755 command[cmd_size + 2] = header_size & 0xff; in thp7312_fw_check_crc()
1757 command[cmd_size + 3] = (size >> 16) & 0xff; in thp7312_fw_check_crc()
1758 command[cmd_size + 4] = (size >> 8) & 0xff; in thp7312_fw_check_crc()
1759 command[cmd_size + 5] = size & 0xff; in thp7312_fw_check_crc()