Home
last modified time | relevance | path

Searched refs:data_fd (Results 1 – 4 of 4) sorted by relevance

/system/core/fastbootd/commands/
Dflash.c91 int flash_write(int partition_fd, int data_fd, ssize_t size, ssize_t skip) in flash_write() argument
100 if (gpt_mmap(&input, written + skip, current_size, data_fd)) { in flash_write()
122 int flash_validate_certificate(int signed_fd, int *data_fd) { in flash_validate_certificate() argument
146 ret = cert_verify(content, content_info, store, data_fd); in flash_validate_certificate()
159 int flash_validate_certificate(int signed_fd, int *data_fd) { in flash_validate_certificate() argument
Dflash.h68 int flash_validate_certificate(int signed_fd, int *data_fd);
/system/core/fastbootd/
Dcommands.c68 int data_fd = 0; in cmd_boot() local
85 if (flash_validate_certificate(phandle->download_fd, &data_fd) != 1) { in cmd_boot()
90 sz = get_file_size(data_fd); in cmd_boot()
93 MAP_POPULATE | MAP_PRIVATE, data_fd, 0); in cmd_boot()
147 close(data_fd); in cmd_boot()
275 int data_fd = 0; in cmd_flash() local
293 if (flash_validate_certificate(phandle->download_fd, &data_fd) != 1) { in cmd_flash()
300 if (read_data_once(data_fd, data, BOOT_MAGIC_SIZE) < BOOT_MAGIC_SIZE) { in cmd_flash()
312 sz = get_file_size64(data_fd); in cmd_flash()
332 close(data_fd); in cmd_flash()
/system/core/init/
Ddevices.c790 static int load_firmware(int fw_fd, int loading_fd, int data_fd) in load_firmware() argument
818 nw = write(data_fd, buf + nw, nr); in load_firmware()
844 int l, loading_fd, data_fd, fw_fd; in process_firmware_event() local
878 data_fd = open(data, O_WRONLY); in process_firmware_event()
879 if(data_fd < 0) in process_firmware_event()
904 if(!load_firmware(fw_fd, loading_fd, data_fd)) in process_firmware_event()
911 close(data_fd); in process_firmware_event()