Lines Matching defs:file
24 * @file_cache: List of file headers read from CBFS
47 return "Bad CBFS file";
71 /* Do endian conversion on a CBFS file header. */
86 * @start: Pointer to the start of the CBFS file in memory
135 * find the next valid CBFS file. No memory is allocated by this function. The
136 * caller is responsible for allocating space for the new file structure.
141 * @param node A pointer to the file structure to load.
143 * including the file if one is found.
145 * Return: 0 if a file is found, -ENOENT if one isn't, -EBADF if a bad header
160 /* Check if there's a file here. */
185 /* Look through a CBFS instance and copy file metadata into regular memory. */
391 void file_cbfs_get_next(const struct cbfs_cachenode **file)
397 *file = NULL;
401 if (*file)
402 *file = (*file)->next;
489 const char *file_cbfs_name(const struct cbfs_cachenode *file)
493 return file->name;
496 u32 file_cbfs_size(const struct cbfs_cachenode *file)
500 return file->data_length;
503 u32 file_cbfs_type(const struct cbfs_cachenode *file)
507 return file->type;
510 long file_cbfs_read(const struct cbfs_cachenode *file, void *buffer,
515 size = file->data_length;
519 memcpy(buffer, file->data, size);