Searched defs:cnt (Results 1 - 17 of 17) sorted by relevance

/system/extras/tests/bionic/libc/bionic/
H A Dtest_cond.c53 int cnt = 2; local
54 while(cnt--) {
/system/core/libcutils/
H A Dandroid_reboot.c81 int fd, cnt = 0; local
95 while (!remount_ro_done() && (cnt < 50)) {
97 cnt++;
H A Dqtaguid.c147 int fd, cnt = 0, res = 0; local
157 ALOGI("Deleteing tag data with tag %llx/%d for uid %d failed with cnt=%d errno=%d",
158 kTag, tag, uid, cnt, errno);
/system/core/libmincrypt/
H A Dsha.c125 uint64_t cnt = ctx->count * 8; local
133 uint8_t tmp = (uint8_t) (cnt >> ((7 - i) * 8));
H A Dsha256.c154 uint64_t cnt = ctx->count * 8; local
162 uint8_t tmp = (uint8_t) (cnt >> ((7 - i) * 8));
/system/core/libdiskconfig/
H A Dconfig_mbr.c219 int cnt = 0; local
225 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) {
226 pinfo = &dinfo->part_lst[cnt];
229 if (cnt == (PC_NUM_BOOT_RECORD_PARTS - 1)) {
230 if (cnt + 1 < dinfo->num_parts) {
233 if ((temp_wr = mk_pri_pentry(dinfo, NULL, cnt, &cur_lba)))
252 temp_wr = mk_pri_pentry(dinfo, pinfo, cnt, &cur_lba);
255 pnext = cnt
[all...]
H A Ddiskconfig.c277 int cnt; local
348 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) {
349 struct part_info *part = &dinfo->part_lst[cnt];
357 if (cnt + 1 != dinfo->num_parts) {
462 int cnt; local
485 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) {
507 int cnt; local
[all...]
/system/core/libpixelflinger/codeflinger/
H A Dmips_disassem.c555 int cnt; local
559 cnt = vsnprintf(sprintf_buffer, sprintf_buf_len, fmt, argp);
560 sprintf_buffer += cnt;
561 sprintf_buf_len -= cnt;
/system/core/adb/
H A Dusb_libusb.c586 ssize_t cnt = libusb_get_device_list(ctx, &devs); local
588 if (cnt < 0) {
590 cnt);
/system/core/logwrapper/
H A Dlogwrap.c128 int cnt; local
151 cnt = MIN(line_len, e_buf->buf_size - e_buf->write);
152 memcpy(e_buf->buf + e_buf->write, line, cnt);
153 if (cnt < line_len) {
154 memcpy(e_buf->buf, line + cnt, line_len - cnt);
/system/core/init/
H A Dinit_parser.c176 static int push_chars(char **dst, int *len, const char *chars, int cnt) argument
178 if (cnt > *len)
181 memcpy(*dst, chars, cnt);
182 *dst += cnt;
183 *len -= cnt;
190 int cnt = 0; local
H A Dinit.c711 int cnt; local
713 cnt = snprintf(prop, sizeof(prop), "ro.boot.%s", boot_prop_name);
714 if (cnt < PROP_NAME_MAX)
/system/core/toolbox/
H A Ddd.c454 int64_t cnt, n, nw; local
475 for (cnt = n;; cnt -= nw) {
480 for (i = 0; i < cnt; i++)
486 pending += cnt;
487 outp += cnt;
502 nw = bwrite(out.fd, outp, cnt);
534 if (nw == cnt)
589 int bcnt, cnt, nr, warned; local
609 for (bcnt = in.dbsz, cnt
656 int cnt, n; local
732 uint64_t cnt; local
792 uint64_t cnt, maxlen; local
903 uint64_t cnt; local
937 uint64_t cnt; local
[all...]
/system/core/charger/
H A Dcharger.c224 int cnt = min(len, MAX_KLOG_WRITE_BUF_SZ); local
228 nl = memrchr(ptr, '\n', cnt - 1);
230 cnt = nl - ptr + 1;
232 yoink = ptr[cnt];
233 ptr[cnt] = '\0';
235 ptr[cnt] = yoink;
237 len -= cnt;
238 ptr += cnt;
252 size_t cnt; local
258 cnt
[all...]
/system/core/fs_mgr/
H A Dfs_mgr.c248 int cnt = 0; local
257 while (cnt < (size - 1)) {
264 *(buf + cnt) = c;
265 cnt++;
274 *(buf + cnt) = '\0';
277 if (cnt) {
303 int cnt, entries; local
351 cnt = 0;
372 if (cnt >= entries) {
381 fstab->recs[cnt]
[all...]
/system/core/libsparse/
H A Doutput_file.c133 static int file_skip(struct output_file *out, int64_t cnt) argument
138 ret = lseek64(outn->fd, cnt, SEEK_CUR);
205 static int gz_file_skip(struct output_file *out, int64_t cnt) argument
210 ret = gzseek(outgz->gz_fd, cnt, SEEK_CUR);
/system/vold/
H A Dcryptfs.c242 unsigned int nr_sec, cnt; local
270 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
375 unsigned int nr_sec, cnt; local
407 if ( (cnt = read(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {

Completed in 271 milliseconds