Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/system/wlan/ti/sta_dk_4_0_4_32/pform/linux/src/
Dproc_stat.c61 int len=0; in proc_stat_res_read_proc() local
68len += (len<count)?sprintf(page+len,"-------------- STA Health Configuration ---------------\n"):0; in proc_stat_res_read_proc()
69len += (len<count)?sprintf(page+len,"Full recovery enabled = %d\n",pHealthMonitor->bFullRecov… in proc_stat_res_read_proc()
70len += (len<count)?sprintf(page+len,"Timer interval = %d msec\n",pHealthMonitor->timer… in proc_stat_res_read_proc()
71 len += (len<count)?sprintf(page+len,"\n"):0; in proc_stat_res_read_proc()
74len += (len<count)?sprintf(page+len,"-------------- STA Health Failure Statistics ---------------\… in proc_stat_res_read_proc()
75len += (len<count)?sprintf(page+len,"Health test perfomred = %d\n",pHealthMonitor->numOfHealt… in proc_stat_res_read_proc()
76len += (len<count)?sprintf(page+len,"Full recovery performed = %d\n",pHealthMonitor->numOfRecov… in proc_stat_res_read_proc()
77len += (len<count)?sprintf(page+len,"No scan complete failure = %d\n",pHealthMonitor->recoveryTr… in proc_stat_res_read_proc()
78len += (len<count)?sprintf(page+len,"Mailbox failure = %d\n",pHealthMonitor->recoveryTr… in proc_stat_res_read_proc()
[all …]
Dmmc_tnetw1150_api.c142 int len=0; in sdio_tnetw1150_read_proc() local
181 len += (len<count)?sprintf(page+len, " TNETW1150 partitions:\n"):0; in sdio_tnetw1150_read_proc()
182 len += (len<count)?sprintf(page+len, " Memory: "):0; in sdio_tnetw1150_read_proc()
183len += (len<count)?sprintf(page+len, " start:0x%08lx end:0x%08lx size:0x%08lx bytes\n", TNETW_ta… in sdio_tnetw1150_read_proc()
184 len += (len<count)?sprintf(page+len, " Registers: "):0; in sdio_tnetw1150_read_proc()
185len += (len<count)?sprintf(page+len, " start:0x%08lx end:0x%08lx size:0x%08lx bytes\n", TNETW_ta… in sdio_tnetw1150_read_proc()
187 len += (len<count)?sprintf(page+len, " SDIO Function 1 Address Map:\n"):0; in sdio_tnetw1150_read_proc()
188len += (len<count)?sprintf(page+len, " amap_size1:0x%08x amap_offset1:0x%08x\n", mapping.amap_siz… in sdio_tnetw1150_read_proc()
189len += (len<count)?sprintf(page+len, " amap_size2:0x%08x amap_offset2:0x%08x\n", mapping.amap_siz… in sdio_tnetw1150_read_proc()
190len += (len<count)?sprintf(page+len, " amap_size3:0x%08x amap_offset3:0x%08x\n", mapping.amap_siz… in sdio_tnetw1150_read_proc()
[all …]
/system/extras/ext4_utils/
Dindirect.c43 u32 len; in create_backing() local
46 len = min(region_len * info.block_size, backing_len); in create_backing()
48 queue_data_block(ptr, len, region_block); in create_backing()
49 ptr += len; in create_backing()
50 backing_len -= len; in create_backing()
56 static void reserve_indirect_block(struct block_allocation *alloc, int len) in reserve_indirect_block() argument
63 if (advance_blocks(alloc, len)) { in reserve_indirect_block()
64 error("failed to advance %d blocks", len); in reserve_indirect_block()
69 static void reserve_dindirect_block(struct block_allocation *alloc, int len) in reserve_dindirect_block() argument
76 while (len > 0) { in reserve_dindirect_block()
[all …]
Doutput_file.c70 static int file_write(struct output_file *out, u8 *data, int len) in file_write() argument
73 ret = write(out->fd, data, len); in file_write()
77 } else if (ret < len) { in file_write()
109 static int gz_file_write(struct output_file *out, u8 *data, int len) in gz_file_write() argument
112 ret = gzwrite(out->gz_fd, data, len); in gz_file_write()
116 } else if (ret < len) { in gz_file_write()
184 static int write_chunk_raw(struct output_file *out, u64 off, u8 *data, int len) in write_chunk_raw() argument
221 rnd_up_len = (len + (info.block_size - 1)) & (~(info.block_size -1)); in write_chunk_raw()
222 zero_len = rnd_up_len - len; in write_chunk_raw()
233 ret = out->ops->write(out, data, len); in write_chunk_raw()
[all …]
Dextent.c40 u32 len; in extent_create_backing() local
43 len = min(region_len * info.block_size, backing_len); in extent_create_backing()
45 queue_data_block(ptr, len, region_block); in extent_create_backing()
46 ptr += len; in extent_create_backing()
47 backing_len -= len; in extent_create_backing()
62 u32 len; in extent_create_backing_file() local
65 len = min(region_len * info.block_size, backing_len); in extent_create_backing_file()
67 queue_data_file(filename, offset, len, region_block); in extent_create_backing_file()
68 offset += len; in extent_create_backing_file()
69 backing_len -= len; in extent_create_backing_file()
[all …]
Dallocate.c39 u32 len; member
115 reg->bg * info.blocks_per_group + reg->block + reg->len - 1,
116 reg->len);
131 u32 block, u32 len, int bg_num) in append_region() argument
136 reg->len = len; in append_region()
228 void reduce_allocation(struct block_allocation *alloc, u32 len) in reduce_allocation() argument
230 while (len) { in reduce_allocation()
233 if (last_reg->len > len) { in reduce_allocation()
234 free_blocks(&aux_info.bgs[last_reg->bg], len); in reduce_allocation()
235 last_reg->len -= len; in reduce_allocation()
[all …]
Dcontents.c31 u32 len = 24; in dentry_size() local
37 if (len % info.block_size + dentry_len > info.block_size) in dentry_size()
38 len += info.block_size - (len % info.block_size); in dentry_size()
39 len += dentry_len; in dentry_size()
42 return len; in dentry_size()
86 u32 len; in make_directory() local
94 len = blocks * info.block_size; in make_directory()
116 data = inode_allocate_data_extents(inode, len, len); in make_directory()
118 error("failed to allocate %llu extents", len); in make_directory()
143 if (offset > len || (offset == len && i != entries - 1)) in make_directory()
[all …]
Dsimg2img.c54 u64 len = (u64)blocks * blk_sz; in process_raw_chunk() local
57 while (len) { in process_raw_chunk()
58 chunk = (len > COPY_BUF_SIZE) ? COPY_BUF_SIZE : len; in process_raw_chunk()
68 len -= chunk; in process_raw_chunk()
80 u64 len = (u64)blocks * blk_sz; in process_skip_chunk() local
88 len_save = len; in process_skip_chunk()
89 while (len) { in process_skip_chunk()
90 skip_chunk = (len > 0x80000000) ? 0x80000000 : len; in process_skip_chunk()
92 len -= skip_chunk; in process_skip_chunk()
95 len = len_save; in process_skip_chunk()
[all …]
/system/core/liblinenoise/
Dlinenoise.c187 static void refreshLine(int fd, const char *prompt, char *buf, size_t len, size_t pos, size_t cols)… in refreshLine() argument
193 len--; in refreshLine()
196 while (plen+len > cols) { in refreshLine()
197 len--; in refreshLine()
205 if (write(fd,buf,len) == -1) return; in refreshLine()
217 size_t len = 0; in linenoisePrompt() local
235 if (nread <= 0) return len; in linenoisePrompt()
240 return len; in linenoisePrompt()
243 return (len == 0) ? -1 : (int)len; in linenoisePrompt()
249 if (pos > 0 && len > 0) { in linenoisePrompt()
[all …]
/system/core/nexus/
DSupplicant.cpp141 size_t len = 4096; in getStatus() local
143 if (!(reply = (char *) malloc(len))) { in getStatus()
148 if (sendCommand("STATUS", reply, &len)) { in getStatus()
153 SupplicantStatus *ss = SupplicantStatus::createStatus(reply, len); in getStatus()
165 size_t len = 4096; in refreshNetworkList() local
167 if (!(reply = (char *) malloc(len))) { in refreshNetworkList()
172 if (sendCommand("LIST_NETWORKS", reply, &len)) { in refreshNetworkList()
279 size_t len = sizeof(reply); in setScanMode() local
282 reply, &len)) { in setScanMode()
292 size_t len = sizeof(reply); in triggerScan() local
[all …]
DSupplicantEventFactory.cpp48 SupplicantEvent *SupplicantEventFactory::createEvent(char *event, size_t len) { in createEvent() argument
75 len); in createEvent()
80 return new SupplicantAssociatedEvent(level, event + 16, len); in createEvent()
82 return new SupplicantAssociatingEvent(level, event + 25, len); in createEvent()
86 len); in createEvent()
90 len); in createEvent()
94 len); in createEvent()
97 return new SupplicantDisconnectedEvent(level, event, len); in createEvent()
100 return new SupplicantTerminatingEvent(event, len); in createEvent()
102 return new SupplicantPasswordChangedEvent(event, len); in createEvent()
[all …]
/system/core/libcutils/
Dproperties.c79 int len; in property_get() local
81 len = __system_property_get(key, value); in property_get()
82 if(len > 0) { in property_get()
83 return len; in property_get()
87 len = strlen(default_value); in property_get()
88 memcpy(value, default_value, len + 1); in property_get()
90 return len; in property_get()
179 int len = -1; in property_get() local
188 len = strlen(value); in property_get()
190 return len; in property_get()
[all …]
Dstrdup16to8.c29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len) in strnlen16to8() argument
57 if (len < (SIZE_MAX-1)/3) { in strnlen16to8()
58 while (len--) { in strnlen16to8()
72 while (len--) { in strnlen16to8()
107 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) in strncpy16to8() argument
115 while (len--) { in strncpy16to8()
146 size_t len; in strndup16to8() local
152 len = strnlen16to8(s, n); in strndup16to8()
158 if (len >= SIZE_MAX-1) in strndup16to8()
161 ret = malloc(len + 1); in strndup16to8()
Duio.c28 int len = vecs->iov_len; in readv() local
30 while (len > 0) { in readv()
31 int ret = read( fd, buf, len ); in readv()
42 len -= ret; in readv()
55 int len = (int)vecs->iov_len; in writev() local
57 while (len > 0) { in writev()
58 int ret = write( fd, buf, len ); in writev()
69 len -= ret; in writev()
Dstrdup8to16.c46 size_t len; in strdup8to16() local
50 len = strlen8to16(s); in strdup8to16()
53 if (len && SIZE_MAX/len < sizeof(char16_t)) in strdup8to16()
57 ret = (char16_t *) malloc (sizeof(char16_t) * len); in strdup8to16()
70 size_t len = 0; in strlen8to16() local
85 len++; in strlen8to16()
88 len++; in strlen8to16()
93 len++; in strlen8to16()
98 return len; in strlen8to16()
/system/core/adb/
Dtest_track_devices.c17 unix_write( int fd, const char* buf, int len ) in unix_write() argument
20 while (len > 0) { in unix_write()
21 int len2 = write(fd, buf, len); in unix_write()
28 len -= len2; in unix_write()
35 unix_read( int fd, char* buf, int len ) in unix_read() argument
38 while (len > 0) { in unix_read()
39 int len2 = read(fd, buf, len); in unix_read()
46 len -= len2; in unix_read()
59 int len; in main() local
71 len = snprintf( buffer, sizeof buffer, "%04x%s", strlen(request), request ); in main()
[all …]
Dtest_track_jdwp.c17 unix_write( int fd, const char* buf, int len ) in unix_write() argument
20 while (len > 0) { in unix_write()
21 int len2 = write(fd, buf, len); in unix_write()
28 len -= len2; in unix_write()
35 unix_read( int fd, char* buf, int len ) in unix_read() argument
38 while (len > 0) { in unix_read()
39 int len2 = read(fd, buf, len); in unix_read()
46 len -= len2; in unix_read()
59 int len; in main() local
71 len = snprintf( buffer, sizeof buffer, "%04x%s", strlen(request), request ); in main()
[all …]
Dsockets.c36 int len; in sendfailmsg() local
37 len = strlen(reason); in sendfailmsg()
38 if(len > 0xffff) len = 0xffff; in sendfailmsg()
39 snprintf(buf, sizeof buf, "FAIL%04x", len); in sendfailmsg()
41 return writex(fd, reason, len); in sendfailmsg()
129 D("LS(%d): enqueue %d\n", s->id, p->len); in local_socket_enqueue()
144 while(p->len > 0) { in local_socket_enqueue()
145 int r = adb_write(s->fd, p->ptr, p->len); in local_socket_enqueue()
147 p->len -= r; in local_socket_enqueue()
160 if(p->len == 0) { in local_socket_enqueue()
[all …]
Dtransport.c38 static void dump_hex( const unsigned char* ptr, size_t len ) in dump_hex() argument
40 int nn, len2 = len; in dump_hex()
95 int len = sizeof(*ppacket); in read_packet() local
96 while(len > 0) { in read_packet()
97 r = adb_read(fd, p, len); in read_packet()
99 len -= r; in read_packet()
112 int len = (*ppacket)->msg.data_length; in read_packet() local
126 fd, command, cmd, (*ppacket)->msg.arg0, (*ppacket)->msg.arg1, len); in read_packet()
127 dump_hex((*ppacket)->data, len); in read_packet()
137 int r, len = sizeof(ppacket); in write_packet() local
[all …]
Dadb_client.c90 int len; in switch_socket_transport() local
115 len = strlen(service); in switch_socket_transport()
116 snprintf(tmp, sizeof tmp, "%04x", len); in switch_socket_transport()
118 if(writex(fd, tmp, 4) || writex(fd, service, len)) { in switch_socket_transport()
137 unsigned len; in adb_status() local
160 len = strtoul((char*)buf, 0, 16); in adb_status()
161 if(len > 255) len = 255; in adb_status()
162 if(readx(fd, __adb_error, len)) { in adb_status()
166 __adb_error[len] = 0; in adb_status()
173 int len; in _adb_connect() local
[all …]
/system/core/toolbox/
Dsendevent.c25 #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) /* get device name */ argument
26 #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) /* get physical location */ argument
27 #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) /* get unique identifier */ argument
29 #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global keystate */ argument
30 #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* get all LEDs */ argument
31 #define EVIOCGSND(len) _IOC(_IOC_READ, 'E', 0x1a, len) /* get all sounds status */ argument
32 #define EVIOCGSW(len) _IOC(_IOC_READ, 'E', 0x1b, len) /* get all switch states */ argument
34 #define EVIOCGBIT(ev,len) _IOC(_IOC_READ, 'E', 0x20 + ev, len) /* get event bits */ argument
/system/core/fastboot/
Dusb_linux.c80 static int check(void *_desc, int len, unsigned type, int size) in check() argument
84 if(len < size) return -1; in check()
86 if(desc[0] > len) return -1; in check()
92 static int filter_usb_device(int fd, char *ptr, int len, int writable, in filter_usb_device() argument
106 if(check(ptr, len, USB_DT_DEVICE, USB_DT_DEVICE_SIZE)) in filter_usb_device()
109 len -= dev->bLength; in filter_usb_device()
112 if(check(ptr, len, USB_DT_CONFIG, USB_DT_CONFIG_SIZE)) in filter_usb_device()
115 len -= cfg->bLength; in filter_usb_device()
154 if(check(ptr, len, USB_DT_INTERFACE, USB_DT_INTERFACE_SIZE)) in filter_usb_device()
157 len -= ifc->bLength; in filter_usb_device()
[all …]
/system/core/libmincrypt/
Drsa.c35 for (i = 0; i < key->len; ++i) { in subM()
45 for (i = key->len; i;) { in geM()
63 for (i = 1; i < key->len; ++i) { in montMulAdd()
84 for (i = 0; i < key->len; ++i) { in montMul()
87 for (i = 0; i < key->len; ++i) { in montMul()
104 for (i = 0; i < key->len; ++i) { in modpow3()
106 (inout[((key->len - 1 - i) * 4) + 0] << 24) | in modpow3()
107 (inout[((key->len - 1 - i) * 4) + 1] << 16) | in modpow3()
108 (inout[((key->len - 1 - i) * 4) + 2] << 8) | in modpow3()
109 (inout[((key->len - 1 - i) * 4) + 3] << 0); in modpow3()
[all …]
/system/core/init/
Dbootchart.c50 unix_read(int fd, void* buff, int len) in unix_read() argument
53 do { ret = read(fd, buff, len); } while (ret < 0 && errno == EINTR); in unix_read()
58 unix_write(int fd, const void* buff, int len) in unix_write() argument
61 do { ret = write(fd, buff, len); } while (ret < 0 && errno == EINTR); in unix_write()
68 int len = 0; in proc_read() local
71 len = unix_read(fd, buff, buffsize-1); in proc_read()
74 buff[len > 0 ? len : 0] = 0; in proc_read()
75 return len; in proc_read()
94 file_buff_write( FileBuff buff, const void* src, int len ) in file_buff_write() argument
96 while (len > 0) { in file_buff_write()
[all …]
/system/core/sh/
Dmemalloc.c248 grabstackblock(int len) in grabstackblock() argument
250 len = SHELL_ALIGN(len); in grabstackblock()
251 stacknxt += len; in grabstackblock()
252 stacknleft -= len; in grabstackblock()
276 int len = stackblocksize(); in growstackstr() local
277 if (herefd >= 0 && len >= 1024) { in growstackstr()
278 xwrite(herefd, stackblock(), len); in growstackstr()
279 sstrnleft = len - 1; in growstackstr()
283 sstrnleft = stackblocksize() - len - 1; in growstackstr()
284 return stackblock() + len; in growstackstr()
[all …]

12345678910>>...12