Searched refs:len (Results 1 - 25 of 294) sorted by relevance

1234567891011>>

/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/
H A Dproc_stat.c61 int len=0; local
68 len += (len<count)?sprintf(page+len,"-------------- STA Health Configuration ---------------\n"):0;
69 len += (len<count)?sprintf(page+len,"Full recovery enabled = %d\n",pHealthMonitor->bFullRecoveryEnable):0;
70 len += (len<count)?sprintf(page+len,"Time
[all...]
/system/core/liblinenoise/
H A Dlinenoise.h39 int linenoiseHistorySetMaxLen(int len);
H A Dlinenoise.c187 static void refreshLine(int fd, const char *prompt, char *buf, size_t len, size_t pos, size_t cols) { argument
193 len--;
196 while (plen+len > cols) {
197 len--;
205 if (write(fd,buf,len) == -1) return;
217 size_t len = 0; local
235 if (nread <= 0) return len;
240 return len;
243 return (len == 0) ? -1 : (int)len;
392 size_t len; local
431 linenoiseHistorySetMaxLen(int len) argument
[all...]
/system/core/libcutils/
H A Duio.c28 int len = vecs->iov_len; local
30 while (len > 0) {
31 int ret = read( fd, buf, len );
42 len -= ret;
55 int len = (int)vecs->iov_len; local
57 while (len > 0) {
58 int ret = write( fd, buf, len );
69 len -= ret;
H A Dstrdup16to8.c29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len) argument
34 * potentially be as big as 3*len, which will overflow
35 * for len > SIZE_MAX/3.
43 * dst = malloc(strnlen16to8(utf16,len)+1)
55 /* Fast path for the usual case where 3*len is < SIZE_MAX-1.
57 if (len < (SIZE_MAX-1)/3) {
58 while (len--) {
72 while (len--) {
102 * not just "len".
107 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) argument
146 size_t len; local
[all...]
H A Dproperties.c79 int len; local
81 len = __system_property_get(key, value);
82 if(len > 0) {
83 return len;
87 len = strlen(default_value);
88 memcpy(value, default_value, len + 1);
90 return len;
179 int len = -1; local
188 len = strlen(value);
190 return len;
302 int len; local
336 int len; local
[all...]
H A Dprocess_name.c42 int len = strlen(new_name); local
43 char* copy = (char*) malloc(len + 1);
48 if (len < 16) {
51 prctl(PR_SET_NAME, (unsigned long) new_name + len - 15, 0, 0, 0);
/system/extras/ext4_utils/
H A Dindirect.h22 void inode_allocate_indirect(struct ext4_inode *inode, unsigned long len);
23 u8 *inode_allocate_data_indirect(struct ext4_inode *inode, unsigned long len,
H A Dextent.h23 void inode_allocate_extents(struct ext4_inode *inode, u64 len);
24 void inode_allocate_file_extents(struct ext4_inode *inode, u64 len,
26 u8 *inode_allocate_data_extents(struct ext4_inode *inode, u64 len,
H A Dindirect.c43 u32 len; local
46 len = min(region_len * info.block_size, backing_len);
48 queue_data_block(ptr, len, region_block);
49 ptr += len;
50 backing_len -= len;
56 static void reserve_indirect_block(struct block_allocation *alloc, int len) argument
63 if (advance_blocks(alloc, len)) {
64 error("failed to advance %d blocks", len);
69 static void reserve_dindirect_block(struct block_allocation *alloc, int len) argument
76 while (len >
86 reserve_tindirect_block(struct block_allocation *alloc, int len) argument
102 fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) argument
110 fill_dindirect_block(u32 *dind_block, int len, struct block_allocation *alloc) argument
139 fill_tindirect_block(u32 *tind_block, int len, struct block_allocation *alloc) argument
168 int len = min(*block_len, EXT4_NDIR_BLOCKS); local
191 int len = min(*block_len, aux_info.blocks_per_ind); local
222 int len = min(*block_len, aux_info.blocks_per_dind); local
253 int len = min(*block_len, aux_info.blocks_per_tind); local
277 reserve_all_indirect_blocks(struct block_allocation *alloc, u32 len) argument
309 indirect_blocks_needed(u32 len) argument
399 inode_allocate_indirect(struct ext4_inode *inode, unsigned long len) argument
483 inode_allocate_data_indirect(struct ext4_inode *inode, unsigned long len, unsigned long backing_len) argument
[all...]
H A Doutput_file.h20 void write_data_block(struct output_file *out, u64 off, u8 *data, int len);
22 off_t offset, int len);
23 void pad_output_file(struct output_file *out, u64 len);
H A Dbacked_block.h26 u8 *data, int len);
29 int len);
31 void queue_data_block(u8 *data, u32 len, u32 block);
32 void queue_data_file(const char *filename, off_t offset, u32 len,
H A Doutput_file.c70 static int file_write(struct output_file *out, u8 *data, int len) argument
73 ret = write(out->fd, data, len);
77 } else if (ret < len) {
109 static int gz_file_write(struct output_file *out, u8 *data, int len) argument
112 ret = gzwrite(out->gz_fd, data, len);
116 } else if (ret < len) {
184 static int write_chunk_raw(struct output_file *out, u64 off, u8 *data, int len) argument
197 //DBG printf("write chunk: offset 0x%llx, length 0x%x bytes\n", off, len);
221 rnd_up_len = (len + (info.block_size - 1)) & (~(info.block_size -1));
222 zero_len = rnd_up_len - len;
324 pad_output_file(struct output_file *out, u64 len) argument
362 write_data_block(struct output_file *out, u64 off, u8 *data, int len) argument
386 write_data_file(struct output_file *out, u64 off, const char *file, off_t offset, int len) argument
[all...]
H A Dallocate.c39 u32 len; member in struct:region
115 reg->bg * info.blocks_per_group + reg->block + reg->len - 1,
116 reg->len);
131 u32 block, u32 len, int bg_num)
136 reg->len = len;
225 /* Reduces an existing allocation by len blocks by return the last blocks
228 void reduce_allocation(struct block_allocation *alloc, u32 len) argument
230 while (len) {
233 if (last_reg->len > le
130 append_region(struct block_allocation *alloc, u32 block, u32 len, int bg_num) argument
312 ext4_allocate_blocks_from_block_group(u32 len, int bg_num) argument
329 ext4_allocate_contiguous_blocks(u32 len) argument
365 ext4_allocate_partial(u32 len) argument
403 ext4_allocate_multiple_contiguous_blocks(u32 len) argument
429 do_allocate(u32 len) argument
447 allocate_blocks(u32 len) argument
514 get_region(struct block_allocation *alloc, u32 *block, u32 *len) argument
544 do_split_allocation(struct block_allocation *alloc, u32 len) argument
581 split_allocation(struct block_allocation *alloc, u32 len) argument
643 append_oob_allocation(struct block_allocation *alloc, u32 len) argument
[all...]
/system/core/adb/
H A Dtest_track_devices.c17 unix_write( int fd, const char* buf, int len )
20 while (len > 0) {
21 int len2 = write(fd, buf, len);
28 len -= len2;
35 unix_read( int fd, char* buf, int len )
38 while (len > 0) {
39 int len2 = read(fd, buf, len);
46 len -= len2;
59 int len; local
71 len
[all...]
H A Dtest_track_jdwp.c17 unix_write( int fd, const char* buf, int len )
20 while (len > 0) {
21 int len2 = write(fd, buf, len);
28 len -= len2;
35 unix_read( int fd, char* buf, int len )
38 while (len > 0) {
39 int len2 = read(fd, buf, len);
46 len -= len2;
59 int len; local
71 len
[all...]
/system/core/nexus/
H A DSupplicantEventFactory.cpp48 SupplicantEvent *SupplicantEventFactory::createEvent(char *event, size_t len) { argument
75 len);
80 return new SupplicantAssociatedEvent(level, event + 16, len);
82 return new SupplicantAssociatingEvent(level, event + 25, len);
86 len);
90 len);
94 len);
97 return new SupplicantDisconnectedEvent(level, event, len);
100 return new SupplicantTerminatingEvent(event, len);
102 return new SupplicantPasswordChangedEvent(event, len);
[all...]
H A DSupplicant.cpp141 size_t len = 4096; local
143 if (!(reply = (char *) malloc(len))) {
148 if (sendCommand("STATUS", reply, &len)) {
153 SupplicantStatus *ss = SupplicantStatus::createStatus(reply, len);
165 size_t len = 4096; local
167 if (!(reply = (char *) malloc(len))) {
172 if (sendCommand("LIST_NETWORKS", reply, &len)) {
279 size_t len = sizeof(reply); local
282 reply, &len)) {
292 size_t len local
303 size_t len = sizeof(reply); local
325 size_t len = sizeof(reply); local
351 size_t len = sizeof(reply); local
364 size_t len = sizeof(reply); local
376 size_t len = sizeof(reply) -1; local
400 size_t len = sizeof(reply) -1; local
497 size_t len = sizeof(reply) -1; local
518 size_t len = max - 1; local
539 size_t len = sizeof(reply) -1; local
549 size_t len; local
568 size_t len; local
587 size_t len; local
599 size_t len; local
614 size_t len = sizeof(reply) -1; local
628 size_t len = sizeof(reply) -1; local
638 size_t len = sizeof(reply) -1; local
651 size_t len; local
663 size_t len; local
[all...]
H A DSupplicantAssociatedEvent.h28 SupplicantAssociatedEvent(int level, char *event, size_t len);
H A DSupplicantConnectionTimeoutEvent.h28 SupplicantConnectionTimeoutEvent(int level, char *event, size_t len);
H A DSupplicantDisconnectedEvent.h25 SupplicantDisconnectedEvent(int level, char *event, size_t len);
H A DSupplicantEventFactory.h28 SupplicantEvent *createEvent(char *event, size_t len);
H A DSupplicantScanResultsEvent.h25 SupplicantScanResultsEvent(int level, char *event, size_t len);
/system/core/toolbox/
H A Dsendevent.c25 #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) /* get device name */
26 #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) /* get physical location */
27 #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) /* get unique identifier */
29 #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global keystate */
30 #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* ge
[all...]
/system/core/include/mincrypt/
H A Drsa.h41 int len; /* Length of n[] in number of uint32_t */ member in struct:RSAPublicKey
49 const int len,

Completed in 1019 milliseconds

1234567891011>>