Searched defs:off (Results 1 - 13 of 13) sorted by relevance

/system/core/init/
H A Dparser.c55 int off; local
59 off = strlen(buf);
62 vsnprintf(buf + off, 128 - off, fmt, ap);
/system/extras/fatblock/
H A Dread.c29 offset_t off, offset_t len)
34 if (off >= buf_len) {
39 if (off + len > buf_len) {
40 memset(out + (buf_len - off), 0, len - (buf_len - off));
41 len = buf_len - off;
44 assert(off < buf_len);
45 assert(off + len <= buf_len);
47 memcpy(out, buf + off, len);
72 static int file_read(struct file *f, char *buf, offset_t off, offset_ argument
28 buffer_read(char *buf, offset_t buf_len, char *out, offset_t off, offset_t len) argument
126 dir_read(struct dir *d, char *buf, offset_t off, offset_t len) argument
134 extent_read(struct fs *fs, struct extent *e, char *buf, offset_t off, offset_t len) argument
[all...]
/system/extras/libpagemap/
H A Dpm_kernel.c117 off_t off; local
122 off = lseek(ker->kpagecount_fd, pfn * sizeof(uint64_t), SEEK_SET);
123 if (off == (off_t)-1)
133 off_t off; local
138 off = lseek(ker->kpageflags_fd, pfn * sizeof(uint64_t), SEEK_SET);
139 if (off == (off_t)-1)
H A Dpm_process.c99 off_t off; local
112 off = lseek(proc->pagemap_fd, firstpage * sizeof(uint64_t), SEEK_SET);
113 if (off == (off_t)-1) {
/system/core/toolbox/
H A Dcat.c158 ssize_t nr, nw, off; local
174 for (off = 0; nr; nr -= nw, off += nw)
175 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
/system/extras/ext4_utils/
H A Doutput_file.c59 static int file_seek(struct output_file *out, off64_t off) argument
63 ret = lseek64(out->fd, off, SEEK_SET);
98 static int gz_file_seek(struct output_file *out, off64_t off) argument
102 ret = gzseek(out->gz_fd, off, SEEK_SET);
178 static int write_chunk_fill(struct output_file *out, u64 off, u32 fill_val, int len) argument
193 //DBG printf("write chunk: offset 0x%llx, length 0x%x bytes\n", off, len);
195 if (off < out->cur_out_ptr) {
197 off, out->cur_out_ptr);
201 if (off > out->cur_out_ptr) {
202 emit_skip_chunk(out, off
251 write_chunk_raw(struct output_file *out, u64 off, u8 *data, int len) argument
446 write_data_block(struct output_file *out, u64 off, u8 *data, int len) argument
470 write_fill_block(struct output_file *out, u64 off, u32 fill_val, int len) argument
508 write_data_file(struct output_file *out, u64 off, const char *file, off64_t offset, int len) argument
[all...]
H A Dext4_utils.c83 void count_data_block(void *priv, u64 off, u8 *data, int len) argument
86 if (off > count_chunks->cur_ptr)
88 count_chunks->cur_ptr = off + ALIGN(len, info.block_size);
92 void count_fill_block(void *priv, u64 off, u32 fill_val, int len) argument
95 if (off > count_chunks->cur_ptr)
97 count_chunks->cur_ptr = off + ALIGN(len, info.block_size);
101 void count_file_block(void *priv, u64 off, const char *file, argument
105 if (off > count_chunks->cur_ptr)
107 count_chunks->cur_ptr = off + ALIGN(len, info.block_size);
123 static void ext4_write_data_block(void *priv, u64 off, u argument
128 ext4_write_fill_block(void *priv, u64 off, u32 fill_val, int len) argument
133 ext4_write_data_file(void *priv, u64 off, const char *file, off64_t offset, int len) argument
[all...]
H A Dext4fixup.c281 off64_t off; local
284 off = block_num * info.block_size;
286 if (lseek64(fd, off, SEEK_SET) , 0) {
300 off64_t off; local
307 off = block_num * info.block_size;
309 if (lseek64(fd, off, SEEK_SET) < 0) {
/system/extras/tests/directiotest/
H A Ddirectiotest.c142 int off = i % 16; local
144 if (off == 0)
147 ascii_buf[off] = isprint(val) ? val : '.';
148 if (off == 15)
/system/media/mca/filterfw/java/android/filterfw/core/
H A DSerializedFrame.java97 public final void write(byte b[], int off, int len) { argument
99 System.arraycopy(b, off, mBuffer, mOffset, len);
144 public final int read(byte[] b, int off, int len) { argument
151 System.arraycopy(mBuffer, mPos, b, off, len);
/system/vold/
H A Dcryptfs.c132 off64_t off; local
156 off = ((off64_t)nr_sec * 512) - CRYPT_FOOTER_OFFSET;
158 if (lseek64(fd, off, SEEK_SET) == -1) {
193 off = KEY_TO_SALT_PADDING;
195 off += crypt_ftr->keysize;
197 if (lseek64(fd, off, SEEK_CUR) == -1) {
231 off64_t off; local
255 off = ((off64_t)nr_sec * 512) - CRYPT_FOOTER_OFFSET;
257 if (lseek64(fd, off, SEEK_SET) == -1) {
489 EVP_CIPHER_CTX_set_padding(&e_ctx, 0); /* Turn off paddin
[all...]
/system/core/libcutils/
H A Dtztime.c410 int off = -1; local
421 off = toint((unsigned char *) buf + NAMELEN);
429 if (off < 0)
438 if (lseek(fid, off, SEEK_SET) < 0) {
973 sp->leapcnt = 0; /* so, we're off a little */
/system/core/sdcard/
H A Dfuse.h555 __u64 off; member in struct:fuse_dirent
568 __s64 off; member in struct:fuse_notify_inval_inode_out

Completed in 175 milliseconds