Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 17 of 17) 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/toolbox/cp/
Dutils.c69 set_utimes(const char *file, struct stat *fs) in set_utimes() argument
74 tv[0].tv_sec = fs->st_atime; in set_utimes()
76 tv[1].tv_sec = fs->st_mtime; in set_utimes()
84 TIMESPEC_TO_TIMEVAL(&tv[0], &fs->st_atimespec); in set_utimes()
85 TIMESPEC_TO_TIMEVAL(&tv[1], &fs->st_mtimespec); in set_utimes()
115 struct stat to_stat, *fs; in copy_file() local
126 fs = entp->fts_statp; in copy_file()
164 fs->st_mode & ~(S_ISUID | S_ISGID)); in copy_file()
173 fs->st_mode & ~(S_ISUID | S_ISGID)); in copy_file()
201 if (fs->st_size > 0) { in copy_file()
[all …]
/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 …]
Dmips_opcode.h75 unsigned fs: 5; member
109 unsigned fs: 5; member
DGGLAssembler.cpp160 int fs = i==GGLFormat::ALPHA ? mBlendSrcA : mBlendSrc; in scanline_core() local
162 if (fs==GGL_SRC_ALPHA_SATURATE && i==GGLFormat::ALPHA) in scanline_core()
163 fs = GGL_ONE; in scanline_core()
177 info.blend = (fs != int(GGL_ONE)) || (fd > int(GGL_ZERO)); in scanline_core()
492 int fs = component==GGLFormat::ALPHA ? mBlendSrcA : mBlendSrc; in build_incoming_component() local
494 if (fs==GGL_SRC_ALPHA_SATURATE && component==GGLFormat::ALPHA) { in build_incoming_component()
495 fs = GGL_ONE; in build_incoming_component()
499 const int blending = blending_codes(fs, fd); in build_incoming_component()
502 const int need_blending = (fs != int(GGL_ONE)) || (fd > int(GGL_ZERO)); in build_incoming_component()
Dmips_disassem.c454 i.FRType.fd, i.FRType.fs, i.FRType.ft); in db_disasm_insn()
DGGLAssembler.h521 static int blending_codes(int fs, int fd);
/system/core/rootdir/
Dinit.rc45 mount tmpfs none /sys/fs/cgroup mode=0750,uid=0,gid=1000
46 mkdir /sys/fs/cgroup/memory 0750 root system
47 mount cgroup none /sys/fs/cgroup/memory memory
48 write /sys/fs/cgroup/memory/memory.move_charge_at_immigrate 1
49 chown root system /sys/fs/cgroup/memory/tasks
50 chmod 0660 /sys/fs/cgroup/memory/tasks
51 mkdir /sys/fs/cgroup/memory/sw 0750 root system
52 write /sys/fs/cgroup/memory/sw/memory.swappiness 100
53 write /sys/fs/cgroup/memory/sw/memory.move_charge_at_immigrate 1
54 chown root system /sys/fs/cgroup/memory/sw/tasks
[all …]
Dinit.usb.rc6 on post-fs-data
/system/core/libcutils/
DAndroid.mk70 fs.c \
/system/core/adb/
Dprotocol.txt115 * "fs-bridge" - FUSE protocol filesystem bridge
214 "shell", "fs-bridge", etc) and upon receiving an OPEN() to such a