• Home
  • Raw
  • Download

Lines Matching refs:item

151 struct item {  struct
154 struct item *next; argument
158 static struct item *free_items_head; argument
160 static struct item *alloc_item(void) in alloc_item()
162 struct item *item; in alloc_item() local
165 item = free_items_head; in alloc_item()
166 free_items_head = item->next; in alloc_item()
168 item = malloc(sizeof(struct item)); in alloc_item()
172 return item; in alloc_item()
175 static void free_item(struct item *item) in free_item() argument
177 item->next = free_items_head; in free_item()
178 free_items_head = item; in free_item()
181 static void free_items(struct item *head) in free_items()
183 struct item *tail; in free_items()
209 struct item *items; in import_dir()
210 struct item *item; in import_dir() local
240 item = NULL; in import_dir()
253 item = alloc_item(); in import_dir()
254 if (!item) { in import_dir()
261 if (convert_name(item->name, de->d_name)) { in import_dir()
267 import_file(fs, ch_path, &item->imp); in import_dir()
268 item->is_dir = 0; in import_dir()
271 import_dir(fs, ch_path, 0, &item->imp); in import_dir()
272 item->is_dir = 1; in import_dir()
278 item->next = items; in import_dir()
279 items = item; in import_dir()
283 item = NULL; in import_dir()
288 if (item) in import_dir()
289 free_item(item); in import_dir()
310 item = items; in import_dir()
311 items = item->next; in import_dir()
316 item->name, item->is_dir ? FAT_ATTR_SUBDIR : 0, in import_dir()
317 item->imp.first_cluster, item->imp.size); in import_dir()
319 if (item->imp.dot_dot_dirent) { in import_dir()
320 fat_dirent_set_first_cluster(item->imp.dot_dot_dirent, in import_dir()
324 free_item(item); in import_dir()