Home
last modified time | relevance | path

Searched refs:head (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/uncrypt/
Duncrypt.cpp218 int head = 0, tail = 0; in produce_block_map() local
245 if ((tail+1) % WINDOW_SIZE == head) { in produce_block_map()
255 if (write_at_offset(buffers[head], sb.st_blksize, wfd, in produce_block_map()
260 head = (head + 1) % WINDOW_SIZE; in produce_block_map()
286 while (head != tail) { in produce_block_map()
296 if (write_at_offset(buffers[head], sb.st_blksize, wfd, in produce_block_map()
301 head = (head + 1) % WINDOW_SIZE; in produce_block_map()
/bootable/recovery/
Drecovery.cpp426 saved_log_file* head = NULL; in erase_volume() local
458 p->next = head; in erase_volume()
459 head = p; in erase_volume()
479 while (head) { in erase_volume()
480 FILE* f = fopen_path(head->name, "wb"); in erase_volume()
482 fwrite(head->data, 1, head->st.st_size, f); in erase_volume()
484 chmod(head->name, head->st.st_mode); in erase_volume()
485 chown(head->name, head->st.st_uid, head->st.st_gid); in erase_volume()
487 free(head->name); in erase_volume()
488 free(head->data); in erase_volume()
[all …]