Lines Matching refs:cmd
108 static int _command_start(Transport* transport, const char* cmd, uint32_t size, char* response) { in _command_start() argument
109 size_t cmdsize = strlen(cmd); in _command_start()
119 if (transport->Write(cmd, cmdsize) != static_cast<int>(cmdsize)) { in _command_start()
147 static int _command_send(Transport* transport, const char* cmd, const void* data, uint32_t size, in _command_send() argument
153 int r = _command_start(transport, cmd, size, response); in _command_send()
171 static int _command_send_no_data(Transport* transport, const char* cmd, char* response) { in _command_send_no_data() argument
172 return _command_start(transport, cmd, 0, response); in _command_send_no_data()
175 int fb_command(Transport* transport, const char* cmd) { in fb_command() argument
176 return _command_send_no_data(transport, cmd, 0); in fb_command()
179 int fb_command_response(Transport* transport, const char* cmd, char* response) { in fb_command_response() argument
180 return _command_send_no_data(transport, cmd, response); in fb_command_response()
184 char cmd[64]; in fb_download_data() local
185 sprintf(cmd, "download:%08x", size); in fb_download_data()
186 return _command_send(transport, cmd, data, size, 0) < 0 ? -1 : 0; in fb_download_data()
259 char cmd[64]; in fb_download_data_sparse() local
260 sprintf(cmd, "download:%08x", size); in fb_download_data_sparse()
261 int r = _command_start(transport, cmd, size, 0); in fb_download_data_sparse()