Lines Matching refs:phandle
40 static void cmd_boot(struct protocol_handle *phandle, const char *arg)
49 fastboot_fail(phandle, "invalid bootimage header");
62 fastboot_fail(phandle, "incomplete bootimage");
69 fastboot_okay(phandle, "");
79 static void cmd_erase(struct protocol_handle *phandle, const char *arg)
87 fastboot_fail(phandle, "partition table doesn't exist");
93 fastboot_fail(phandle, "unknown partition name");
98 fastboot_fail(phandle, "failed to erase partition");
101 fastboot_okay(phandle, "");
105 static void cmd_flash(struct protocol_handle *phandle, const char *arg)
114 fastboot_fail(phandle, "partition table doesn't exist");
120 fastboot_fail(phandle, "unknown partition name");
126 fastboot_fail(phandle, "image is not a boot image");
138 fastboot_fail(phandle, "flash write failure");
143 fastboot_okay(phandle, "");
146 static void cmd_continue(struct protocol_handle *phandle, const char *arg)
148 fastboot_okay(phandle, "");
156 static void cmd_getvar(struct protocol_handle *phandle, const char *arg)
163 fastboot_okay(phandle, value);
166 static void cmd_download(struct protocol_handle *phandle, const char *arg)
172 fastboot_fail(phandle, "data too large");
176 fastboot_data(phandle, len);
178 old_fd = protocol_get_download(phandle);
185 phandle->download_fd = protocol_handle_download(phandle, len);
186 if (phandle->download_fd < 0) {
188 fastboot_fail(phandle, "download failed");
192 fastboot_okay(phandle, "");