/system/core/libdiskconfig/ |
H A D | config_mbr.c | 219 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 D | diskconfig.c | 277 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/toolbox/ |
H A D | dd.c | 454 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/libcutils/ |
H A D | android_reboot.c | 81 int fd, cnt = 0; local 95 while (!remount_ro_done() && (cnt < 50)) { 97 cnt++;
|
H A D | qtaguid.c | 147 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/fs_mgr/ |
H A D | fs_mgr.c | 248 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/extras/tests/bionic/libc/bionic/ |
H A D | test_cond.c | 53 int cnt = 2; local 54 while(cnt--) {
|
/system/core/charger/ |
H A D | charger.c | 224 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/logwrapper/ |
H A D | logwrap.c | 128 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/libmincrypt/ |
H A D | sha.c | 125 uint64_t cnt = ctx->count * 8; local 133 uint8_t tmp = (uint8_t) (cnt >> ((7 - i) * 8));
|
H A D | sha256.c | 154 uint64_t cnt = ctx->count * 8; local 162 uint8_t tmp = (uint8_t) (cnt >> ((7 - i) * 8));
|
/system/core/libpixelflinger/codeflinger/ |
H A D | mips_disassem.c | 555 int cnt; local 559 cnt = vsnprintf(sprintf_buffer, sprintf_buf_len, fmt, argp); 560 sprintf_buffer += cnt; 561 sprintf_buf_len -= cnt;
|
/system/extras/tests/iptables/qtaguid/ |
H A D | socketTag.cpp | 260 for (int cnt = 0; cnt < max_tags; cnt++ ) { 261 uint64_t tag = valid_tag2 + ((uint64_t)cnt << 32);
|
/system/core/adb/ |
H A D | usb_libusb.c | 586 ssize_t cnt = libusb_get_device_list(ctx, &devs); local 588 if (cnt < 0) { 590 cnt);
|
/system/core/libcutils/tests/memset_mips/ |
H A D | memset_omips.S | 77 blez a2, .Lexit # Handle last 8 bytes (if cnt>0)
|
/system/core/libsparse/ |
H A D | output_file.c | 133 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/core/init/ |
H A D | init_parser.c | 176 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 D | init.c | 711 int cnt; local 713 cnt = snprintf(prop, sizeof(prop), "ro.boot.%s", boot_prop_name); 714 if (cnt < PROP_NAME_MAX)
|
/system/vold/ |
H A D | cryptfs.c | 242 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)) {
|