/system/core/toolbox/ |
D | dd.c | 454 int64_t cnt, n, nw; in dd_out() local 475 for (cnt = n;; cnt -= nw) { in dd_out() 480 for (i = 0; i < cnt; i++) in dd_out() 486 pending += cnt; in dd_out() 487 outp += cnt; in dd_out() 502 nw = bwrite(out.fd, outp, cnt); in dd_out() 534 if (nw == cnt) in dd_out() 589 int bcnt, cnt, nr, warned; in pos_in() local 609 for (bcnt = in.dbsz, cnt = in.offset, warned = 0; cnt;) { in pos_in() 614 --cnt; in pos_in() [all …]
|
/system/core/libdiskconfig/ |
D | config_mbr.c | 219 int cnt = 0; in config_mbr() local 225 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) { in config_mbr() 226 pinfo = &dinfo->part_lst[cnt]; in config_mbr() 229 if (cnt == (PC_NUM_BOOT_RECORD_PARTS - 1)) { in config_mbr() 230 if (cnt + 1 < dinfo->num_parts) { in config_mbr() 233 if ((temp_wr = mk_pri_pentry(dinfo, NULL, cnt, &cur_lba))) in config_mbr() 252 temp_wr = mk_pri_pentry(dinfo, pinfo, cnt, &cur_lba); in config_mbr() 255 pnext = cnt + 1 < dinfo->num_parts ? &dinfo->part_lst[cnt+1] : NULL; in config_mbr() 262 ALOGE("Cannot create partition %d (%s).", cnt, pinfo->name); in config_mbr() 268 for (; cnt < PC_NUM_BOOT_RECORD_PARTS; ++cnt) { in config_mbr() [all …]
|
D | diskconfig.c | 277 int cnt; in validate() local 348 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) { in validate() 349 struct part_info *part = &dinfo->part_lst[cnt]; in validate() 357 if (cnt + 1 != dinfo->num_parts) { in validate() 462 int cnt; in dump_disk_config() local 485 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) { in dump_disk_config() 486 part = &dinfo->part_lst[cnt]; in dump_disk_config() 497 printf("Total number of partitions: %d\n", cnt); in dump_disk_config() 507 int cnt; in find_part() local 509 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) { in find_part() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr.c | 223 int cnt = 0; in fs_getline() local 232 while (cnt < (size - 1)) { in fs_getline() 239 *(buf + cnt) = c; in fs_getline() 240 cnt++; in fs_getline() 249 *(buf + cnt) = '\0'; in fs_getline() 252 if (cnt) { in fs_getline() 278 int cnt, entries; in fs_mgr_read_fstab() local 329 cnt = 0; in fs_mgr_read_fstab() 350 if (cnt >= entries) { in fs_mgr_read_fstab() 359 fstab->recs[cnt].blk_device = strdup(p); in fs_mgr_read_fstab() [all …]
|
/system/core/libcutils/ |
D | android_reboot.c | 81 int fd, cnt = 0; in remount_ro() local 95 while (!remount_ro_done() && (cnt < 50)) { in remount_ro() 97 cnt++; in remount_ro()
|
D | qtaguid.c | 147 int fd, cnt = 0, res = 0; in qtaguid_deleteTagData() local 158 kTag, tag, uid, cnt, errno); in qtaguid_deleteTagData()
|
/system/core/charger/ |
D | charger.c | 224 int cnt = min(len, MAX_KLOG_WRITE_BUF_SZ); in dump_last_kmsg() local 228 nl = memrchr(ptr, '\n', cnt - 1); in dump_last_kmsg() 230 cnt = nl - ptr + 1; in dump_last_kmsg() 232 yoink = ptr[cnt]; in dump_last_kmsg() 233 ptr[cnt] = '\0'; in dump_last_kmsg() 235 ptr[cnt] = yoink; in dump_last_kmsg() 237 len -= cnt; in dump_last_kmsg() 238 ptr += cnt; in dump_last_kmsg() 252 size_t cnt; in read_file() local 258 cnt = read(fd, buf, sz - 1); in read_file() [all …]
|
/system/extras/tests/bionic/libc/bionic/ |
D | test_cond.c | 53 int cnt = 2; in _thread2() local 54 while(cnt--) { in _thread2()
|
/system/core/logwrapper/ |
D | logwrap.c | 127 int cnt; in add_line_to_circular_buf() local 150 cnt = MIN(line_len, e_buf->buf_size - e_buf->write); in add_line_to_circular_buf() 151 memcpy(e_buf->buf + e_buf->write, line, cnt); in add_line_to_circular_buf() 152 if (cnt < line_len) { in add_line_to_circular_buf() 153 memcpy(e_buf->buf, line + cnt, line_len - cnt); in add_line_to_circular_buf()
|
/system/extras/tests/iptables/qtaguid/ |
D | socketTag.cpp | 260 for (int cnt = 0; cnt < max_tags; cnt++ ) { in TEST_F() local 261 uint64_t tag = valid_tag2 + ((uint64_t)cnt << 32); in TEST_F()
|
/system/core/libpixelflinger/codeflinger/ |
D | mips_disassem.c | 555 int cnt; in db_printf() local 559 cnt = vsnprintf(sprintf_buffer, sprintf_buf_len, fmt, argp); in db_printf() 560 sprintf_buffer += cnt; in db_printf() 561 sprintf_buf_len -= cnt; in db_printf()
|
/system/core/libmincrypt/ |
D | sha.c | 172 uint64_t cnt = ctx->count * 8; in SHA_final() local 180 uint8_t tmp = cnt >> ((7 - i) * 8); in SHA_final() 261 uint64_t cnt = ctx->count * 8; in SHA_final() local 269 uint8_t tmp = cnt >> ((7 - i) * 8); in SHA_final()
|
/system/vold/ |
D | cryptfs.c | 136 unsigned int nr_sec, cnt; in put_crypt_ftr_and_key() local 178 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) { in put_crypt_ftr_and_key() 190 if ( (cnt = write(fd, key, crypt_ftr->keysize)) != crypt_ftr->keysize) { in put_crypt_ftr_and_key() 207 if ( (cnt = write(fd, salt, SALT_LEN)) != SALT_LEN) { in put_crypt_ftr_and_key() 235 unsigned int nr_sec, cnt; in get_crypt_ftr_and_key() local 284 if ( (cnt = read(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) { in get_crypt_ftr_and_key() 321 if ( (cnt = read(fd, key, crypt_ftr->keysize)) != crypt_ftr->keysize) { in get_crypt_ftr_and_key() 331 if ( (cnt = read(fd, salt, SALT_LEN)) != SALT_LEN) { in get_crypt_ftr_and_key()
|
/system/core/init/ |
D | init_parser.c | 173 static int push_chars(char **dst, int *len, const char *chars, int cnt) in push_chars() argument 175 if (cnt > *len) in push_chars() 178 memcpy(*dst, chars, cnt); in push_chars() 179 *dst += cnt; in push_chars() 180 *len -= cnt; in push_chars() 187 int cnt = 0; in expand_props() local
|
D | init.c | 617 int cnt; in import_kernel_nv() local 619 cnt = snprintf(prop, sizeof(prop), "ro.boot.%s", boot_prop_name); in import_kernel_nv() 620 if (cnt < PROP_NAME_MAX) in import_kernel_nv()
|
/system/core/adb/ |
D | usb_libusb.c | 586 ssize_t cnt = libusb_get_device_list(ctx, &devs); in scan_usb_devices() local 588 if (cnt < 0) { in scan_usb_devices() 590 cnt); in scan_usb_devices()
|
/system/core/libsparse/ |
D | output_file.c | 133 static int file_skip(struct output_file *out, int64_t cnt) in file_skip() argument 138 ret = lseek64(outn->fd, cnt, SEEK_CUR); in file_skip() 205 static int gz_file_skip(struct output_file *out, int64_t cnt) in gz_file_skip() argument 210 ret = gzseek(outgz->gz_fd, cnt, SEEK_CUR); in gz_file_skip()
|
/system/core/libcutils/tests/memset_mips/ |
D | memset_omips.S | 77 blez a2, .Lexit # Handle last 8 bytes (if cnt>0)
|
/system/bluetooth/bluez-clean-headers/bluetooth/ |
D | hci.h | 2435 uint32_t cnt; member
|