Searched refs:len (Results 51 - 75 of 208) sorted by relevance

123456789

/system/extras/ext4_utils/
H A Dallocate.c40 u32 len; member in struct:region
116 reg->bg * info.blocks_per_group + reg->block + reg->len - 1,
117 reg->len);
132 u32 block, u32 len, int bg_num)
137 reg->len = len;
244 /* Reduces an existing allocation by len blocks by return the last blocks
247 void reduce_allocation(struct block_allocation *alloc, u32 len) argument
249 while (len) {
252 if (last_reg->len > le
131 append_region(struct block_allocation *alloc, u32 block, u32 len, int bg_num) argument
332 ext4_allocate_blocks_from_block_group(u32 len, int bg_num) argument
349 ext4_allocate_contiguous_blocks(u32 len) argument
385 ext4_allocate_partial(u32 len) argument
423 ext4_allocate_multiple_contiguous_blocks(u32 len) argument
449 do_allocate(u32 len) argument
467 allocate_blocks(u32 len) argument
534 get_region(struct block_allocation *alloc, u32 *block, u32 *len) argument
564 do_split_allocation(struct block_allocation *alloc, u32 len) argument
601 split_allocation(struct block_allocation *alloc, u32 len) argument
663 append_oob_allocation(struct block_allocation *alloc, u32 len) argument
[all...]
/system/core/adb/
H A Dtransport.c39 static void dump_hex( const unsigned char* ptr, size_t len )
41 int nn, len2 = len;
101 int len = p->msg.data_length; local
130 D("%s: %s: [%s] arg0=%s arg1=%s (len=%d) ",
131 name, func, cmd, arg0, arg1, len);
132 dump_hex(p->data, len);
141 int len = sizeof(*ppacket); local
147 while(len > 0) {
148 r = adb_read(fd, p, len);
150 len
171 int r, len = sizeof(ppacket); local
371 int len; local
460 int len; local
495 int len; local
526 int len = sizeof(*m); local
548 int len = sizeof(*m); local
898 size_t len; local
928 size_t len, remaining = bufsize; local
950 int len; local
1094 readx(int fd, void *ptr, size_t len) argument
1126 writex(int fd, const void *ptr, size_t len) argument
[all...]
H A Dfile_sync_service.c82 int len; local
87 len = strlen(path);
88 memcpy(tmp, path, len);
89 tmp[len] = '/';
90 fname = tmp + len + 1;
98 int len = strlen(de->d_name); local
102 if(len > 256) continue;
109 msg.dent.namelen = htoll(len);
112 writex(s, de->d_name, len)) {
132 int len local
172 unsigned int len; local
230 unsigned int len; local
[all...]
H A Dadb_client.c90 int len; local
115 len = strlen(service);
116 snprintf(tmp, sizeof tmp, "%04x", len);
118 if(writex(fd, tmp, 4) || writex(fd, service, len)) {
137 unsigned len; local
156 strcpy(__adb_error, "protocol fault (status len)");
160 len = strtoul((char*)buf, 0, 16);
161 if(len > 255) len = 255;
162 if(readx(fd, __adb_error, len)) {
173 int len; local
[all...]
H A Dutils.h53 char* buff_addb (char* buff, char* buffEnd, const void* data, int len);
H A Djdwp_service.c129 int len; local
135 len = snprintf(p, end-p, "%d\n", proc->pid);
136 if (p + len >= end)
138 p += len;
149 int len = jdwp_process_list( buffer+4, bufferlen-4 ); local
150 snprintf(head, sizeof head, "%04x", len);
152 return len + 4;
246 int len = recv( socket, p, size, 0 ); local
247 if (len < 0) {
258 if (len
286 int len = recv(socket, buf, sizeof(buf), 0); local
639 int len; local
[all...]
H A Dfile_sync_client.c81 int len; local
83 len = strlen(path);
84 if(len > 1024) goto fail;
87 msg.req.namelen = htoll(len);
90 writex(fd, path, len)) {
99 len = ltohl(msg.dent.namelen);
100 if(len > 256) break;
102 if(readx(fd, buf, len)) break;
103 buf[len] = 0;
129 int len local
154 int len = strlen(path); local
188 int len = strlen(path); local
275 int len, ret; local
301 int len, r; local
444 int len; local
[all...]
H A Dusb_vendors.c196 int get_adb_usb_ini(char* buff, size_t len);
245 int build_path(char* buff, size_t len, const char* format, const char* home) argument
247 if (snprintf(buff, len, format, home, ANDROID_PATH, ANDROID_ADB_INI) >= (signed)len) {
255 int get_adb_usb_ini(char* buff, size_t len) argument
260 return build_path(buff, len, "%s\\%s\\%s", home);
264 return build_path(buff, len, "%s\\%s\\%s", path);
271 return build_path(buff, len, "%s/%s/%s", home);
/system/core/init/
H A Dinit_parser.h34 int expand_props(char *dst, const char *src, int len);
/system/core/libcutils/
H A Dashmem-dev.c75 int ashmem_pin_region(int fd, size_t offset, size_t len) argument
77 struct ashmem_pin pin = { offset, len };
81 int ashmem_unpin_region(int fd, size_t offset, size_t len) argument
83 struct ashmem_pin pin = { offset, len };
H A Dpartition_utils.c25 static int only_one_char(char *buf, int len, char c) argument
30 for (i=0; i<len; i++) {
/system/core/libmincrypt/
H A Drsa_e_3.c35 for (i = 0; i < key->len; ++i) {
45 for (i = key->len; i;) {
63 for (i = 1; i < key->len; ++i) {
84 for (i = 0; i < key->len; ++i) {
87 for (i = 0; i < key->len; ++i) {
104 for (i = 0; i < key->len; ++i) {
106 (inout[((key->len - 1 - i) * 4) + 0] << 24) |
107 (inout[((key->len - 1 - i) * 4) + 1] << 16) |
108 (inout[((key->len - 1 - i) * 4) + 2] << 8) |
109 (inout[((key->len
162 RSA_e_3_verify(const RSAPublicKey *key, const uint8_t *signature, const int len, const uint8_t *sha) argument
[all...]
/system/core/libsparse/
H A Dbacked_block.h33 unsigned int len, unsigned int block);
35 unsigned int len, unsigned int block);
37 int64_t offset, unsigned int len, unsigned int block);
39 int64_t offset, unsigned int len, unsigned int block);
H A Dsparse_read.c104 unsigned int len = blocks * s->block_size; local
114 ret = sparse_file_add_fd(s, fd, offset, len, block);
120 while (len) {
121 chunk = min(len, COPY_BUF_SIZE);
127 len -= chunk;
130 lseek64(fd, len, SEEK_CUR);
141 int64_t len = (int64_t)blocks * s->block_size; local
155 ret = sparse_file_add_fill(s, fill_val, len, block);
167 while (len) {
168 chunk = min(len, COPY_BUF_SIZ
182 int64_t len = (int64_t)blocks * s->block_size; local
427 int64_t len; local
482 int64_t len; local
[all...]
/system/core/toolbox/grep/
H A Dqueue.c65 item->data.dat = grep_malloc(sizeof(char) * x->len);
66 item->data.len = x->len;
69 memcpy(item->data.dat, x->dat, x->len);
/system/core/libnl_2/
H A Dmsg.c108 int len = nlmsg_len(nlh); local
110 len = NLMSG_ALIGN(len);
112 len <= *remaining &&
113 len >= (int) sizeof(struct nlmsghdr)) {
114 next_nlh = (struct nlmsghdr *)((char *)nlh + len);
115 *remaining -= len;
/system/bluetooth/tools/
H A Dsock_shutdown_test.c121 int len = 0; local
129 len = sizeof(local_addr_un);
133 len = sizeof(local_addr_rc);
137 len = sizeof(local_addr_sco);
141 len = sizeof(local_addr_l2);
145 len = sizeof(local_addr_in);
150 ret = bind(fd, addr, len);
170 int len; local
176 len = sizeof(remote_addr_un);
180 len
[all...]
/system/core/fastboot/
H A Dusb_windows.c76 int usb_write(usb_handle* handle, const void* data, int len);
79 int usb_read(usb_handle *handle, void* data, int len);
154 int usb_write(usb_handle* handle, const void* data, int len) { argument
155 unsigned long time_out = 500 + len * 8;
160 DBG("usb_write %d\n", len);
163 while(len > 0) {
164 int xfer = (len > MAX_USBFS_BULK_SIZE) ? MAX_USBFS_BULK_SIZE : len;
180 len -= written;
183 if (len
196 usb_read(usb_handle *handle, void* data, int len) argument
[all...]
/system/core/libion/
H A Dion_test.c18 size_t len = 1024*1024, align = 0; variable
34 ret = ion_alloc(*fd, len, align, heap_mask, alloc_flags, handle);
68 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd);
72 for (i = 0; i < len; i++) {
75 for (i = 0; i < len; i++)
82 munmap(ptr, len);
89 munmap(ptr, len);
93 _ion_alloc_test(len, align, flags, &fd, &handle);
95 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd);
129 ptr = mmap(NULL, len, pro
[all...]
/system/extras/fatblock/
H A Dfs.c29 offset_t start, offset_t len, int type)
35 extent->len = len;
42 struct extent *fs_find_extent(struct fs *fs, offset_t start, offset_t len, argument
54 end = start + len;
59 e_len = e->len;
72 rel_len = len;
86 assert(r_rel_start < len);
87 assert(r_rel_start + rel_len <= len);
110 offset_t len, in
28 fs_add_extent(struct fs *fs, struct extent *extent, offset_t start, offset_t len, int type) argument
109 fs_alloc_extent(struct fs *fs, struct extent *extent, offset_t len, int type, cluster_t *first_cluster_out) argument
[all...]
H A Dfatblock.h37 offset_t len; member in struct:extent
68 int fs_read(struct fs *fs, char *buf, offset_t start, offset_t len);
H A Dfs.h45 offset_t len, int type, cluster_t *first_cluster_out);
46 struct extent *fs_find_extent(struct fs *fs, offset_t start, offset_t len, struct extent *last,
/system/core/include/cutils/
H A Dlogger.h21 uint16_t len; /* length of the payload */ member in struct:logger_entry
36 uint16_t len; /* length of the payload */ member in struct:logger_entry_v2
73 #define LOGGER_GET_LOG_LEN _IO(__LOGGERIO, 2) /* used log len */
74 #define LOGGER_GET_NEXT_ENTRY_LEN _IO(__LOGGERIO, 3) /* next entry len */
/system/core/include/ion/
H A Dion.h30 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask,
32 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask,
/system/netd/
H A Doem_iptables_hook.cpp34 size_t len = strnlen(cmd, 255); local
37 if (len == 255) {

Completed in 317 milliseconds

123456789