Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 14 of 14) sorted by relevance

/system/extras/fatblock/
Dfs.c28 static void fs_add_extent(struct fs *fs, struct extent *extent, in fs_add_extent() argument
31 assert(fs); in fs_add_extent()
38 extent->next = fs->extents; in fs_add_extent()
39 fs->extents = extent; in fs_add_extent()
42 struct extent *fs_find_extent(struct fs *fs, offset_t start, offset_t len, in fs_find_extent() argument
52 assert(fs); in fs_find_extent()
56 e = last ? last->next : fs->extents; in fs_find_extent()
102 static void fs_set_fat(struct fs *fs, cluster_t cluster, fat_entry_t entry) in fs_set_fat() argument
104 assert(fs); in fs_set_fat()
106 fs->fat[cluster] = htole32(entry); in fs_set_fat()
[all …]
Dfs.h23 struct fs { struct
44 int fs_alloc_extent(struct fs *fs, struct extent *extent, argument
46 struct extent *fs_find_extent(struct fs *fs, offset_t start, offset_t len, struct extent *last,
48 int fs_init(struct fs *fs, uint16_t cluster_size, offset_t data_size, offset_t *total_size_out);
49 void fs_set_rootdir_start(struct fs *fs, cluster_t rootdir_start);
50 void fs_update_free_clusters(struct fs *fs);
Dread.c134 static int extent_read(struct fs *fs, struct extent *e, char *buf, in extent_read() argument
137 assert(fs); in extent_read()
143 return buffer_read((char*)&fs->boot, sizeof(fs->boot), buf, in extent_read()
146 return buffer_read((char*)&fs->info, sizeof(fs->info), buf, in extent_read()
149 return buffer_read((char*)fs->fat, fs->fat_size, buf, in extent_read()
161 int fs_read(struct fs *fs, char *buf, offset_t start, offset_t len) in fs_read() argument
169 while ((e = fs_find_extent(fs, start, len, e, in fs_read()
171 ret = extent_read(fs, e, buf + r_start, e_start, rel_len); in fs_read()
Dfatblock.h65 struct fs;
67 int import_tree(struct fs *fs, char *path);
68 int fs_read(struct fs *fs, char *buf, offset_t start, offset_t len);
Dfatblock.c29 static struct fs fs; variable
33 static int fs_import(struct fs *fs, in fs_import() argument
39 ret = fs_init(fs, cluster_size, data_size, total_size_out); in fs_import()
43 ret = import_tree(fs, "."); in fs_import()
57 result = fs_read(&fs, buf, offset, length); in read_callback()
173 ret = fs_import(&fs, 32768, 1048576LL * mb, &total_size); in main()
Dimport.c95 static int import_file(struct fs *fs, char *path, struct imported *out) in import_file() argument
131 ret = fs_alloc_extent(fs, &f->extent, in import_file()
193 static int import_dir(struct fs *fs, char *path, int is_root, in import_dir() argument
267 import_file(fs, ch_path, &item->imp); in import_dir()
271 import_dir(fs, ch_path, 0, &item->imp); in import_dir()
295 ret = fs_alloc_extent(fs, &d->extent, d->size, EXTENT_TYPE_DIR, &out->first_cluster); in import_dir()
352 int import_tree(struct fs *fs, char *path) in import_tree() argument
357 ret = import_dir(fs, path, 0, &imp); in import_tree()
361 fs_set_rootdir_start(fs, imp.first_cluster); in import_tree()
362 fs_update_free_clusters(fs); in import_tree()
DAndroid.mk20 LOCAL_SRC_FILES := fat.c fatblock.c fs.c import.c read.c utils.c fdpool.c
/system/core/libpixelflinger/codeflinger/
Dblending.cpp72 int fs = component==GGLFormat::ALPHA ? mBlendSrcA : mBlendSrc; in build_blending() local
74 if (fs==GGL_SRC_ALPHA_SATURATE && component==GGLFormat::ALPHA) in build_blending()
75 fs = GGL_ONE; in build_blending()
76 const int blending = blending_codes(fs, fd); in build_blending()
101 (fs==GGL_DST_COLOR && fd==GGL_ONE_MINUS_DST_COLOR) || in build_blending()
102 (fs==GGL_SRC_COLOR && fd==GGL_ONE_MINUS_SRC_COLOR) || in build_blending()
103 (fs==GGL_DST_ALPHA && fd==GGL_ONE_MINUS_DST_ALPHA) || in build_blending()
104 (fs==GGL_SRC_ALPHA && fd==GGL_ONE_MINUS_SRC_ALPHA); in build_blending()
107 (fs==GGL_ONE_MINUS_DST_COLOR && fd==GGL_DST_COLOR) || in build_blending()
108 (fs==GGL_ONE_MINUS_SRC_COLOR && fd==GGL_SRC_COLOR) || in build_blending()
[all …]
DGGLAssembler.cpp159 int fs = i==GGLFormat::ALPHA ? mBlendSrcA : mBlendSrc; in scanline_core() local
161 if (fs==GGL_SRC_ALPHA_SATURATE && i==GGLFormat::ALPHA) in scanline_core()
162 fs = GGL_ONE; in scanline_core()
176 info.blend = (fs != int(GGL_ONE)) || (fd > int(GGL_ZERO)); in scanline_core()
489 int fs = component==GGLFormat::ALPHA ? mBlendSrcA : mBlendSrc; in build_incoming_component() local
491 if (fs==GGL_SRC_ALPHA_SATURATE && component==GGLFormat::ALPHA) { in build_incoming_component()
492 fs = GGL_ONE; in build_incoming_component()
496 const int blending = blending_codes(fs, fd); in build_incoming_component()
499 const int need_blending = (fs != int(GGL_ONE)) || (fd > int(GGL_ZERO)); in build_incoming_component()
DGGLAssembler.h517 static int blending_codes(int fs, int fd);
/system/core/libcorkscrew/arch-x86/
Dbacktrace-x86.c44 uint32_t fs; member
/system/core/rootdir/
Dinit.rc116 on fs
124 on post-fs
149 on post-fs-data
209 # If there is no fs-post-data action in the init.<device>.rc file, you
328 trigger post-fs-data
Dinit.usb.rc6 on post-fs-data
/system/core/adb/
Dprotocol.txt97 * "fs-bridge" - FUSE protocol filesystem bridge
195 "shell", "fs-bridge", etc) and upon receiving an OPEN() to such a