Lines Matching refs:lst
51 wlist_add(struct write_list **lst, struct write_list *item) in wlist_add() argument
53 item->next = (*lst); in wlist_add()
54 *lst = item; in wlist_add()
59 wlist_free(struct write_list *lst) in wlist_free() argument
62 while (lst) { in wlist_free()
63 temp_wr = lst->next; in wlist_free()
64 free_wl(lst); in wlist_free()
65 lst = temp_wr; in wlist_free()
70 wlist_commit(int fd, struct write_list *lst, int test) in wlist_commit() argument
72 for(; lst; lst = lst->next) { in wlist_commit()
73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) { in wlist_commit()
74 ALOGE("Cannot seek to the specified position (%lld).", (long long)lst->offset); in wlist_commit()
79 if (write(fd, lst->data, lst->len) != (int)lst->len) { in wlist_commit()
80 ALOGE("Failed writing %u bytes at position %lld.", lst->len, in wlist_commit()
81 (long long)lst->offset); in wlist_commit()
85 ALOGI("Would write %d bytes @ offset %lld.", lst->len, (long long)lst->offset); in wlist_commit()