Home | History | Annotate | Download | only in libfat

Lines Matching refs:ls

24     struct libfat_sector *ls;
26 for (ls = fs->sectors; ls; ls = ls->next) {
27 if (ls->n == n)
28 return ls->data; /* Found in cache */
32 ls = malloc(sizeof(struct libfat_sector));
33 if (!ls) {
35 ls = malloc(sizeof(struct libfat_sector));
37 if (!ls)
41 if (fs->read(fs->readptr, ls->data, LIBFAT_SECTOR_SIZE, n)
43 free(ls);
47 ls->n = n;
48 ls->next = fs->sectors;
49 fs->sectors = ls;
51 return ls->data;
56 struct libfat_sector *ls, *lsnext;
61 for (ls = lsnext; ls; ls = lsnext) {
62 lsnext = ls->next;
63 free(ls);