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

/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/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/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/fs_mgr/
H A Dfs_mgr.c178 int cnt = 0; local
187 while (cnt < (size - 1)) {
194 *(buf + cnt) = c;
195 cnt++;
204 *(buf + cnt) = '\0';
207 if (cnt) {
233 int cnt, entries; local
276 cnt = 0;
297 if (cnt >= entries) {
306 fstab[cnt]
[all...]
/system/extras/tests/bionic/libc/bionic/
H A Dtest_cond.c53 int cnt = 2; local
54 while(cnt--) {
/system/core/charger/
H A Dcharger.c220 int cnt = min(len, MAX_KLOG_WRITE_BUF_SZ); local
224 nl = memrchr(ptr, '\n', cnt - 1);
226 cnt = nl - ptr + 1;
228 yoink = ptr[cnt];
229 ptr[cnt] = '\0';
231 ptr[cnt] = yoink;
233 len -= cnt;
234 ptr += cnt;
248 size_t cnt; local
254 cnt
[all...]
/system/core/libmincrypt/
H A Dsha.c172 uint64_t cnt = ctx->count * 8; local
180 uint8_t tmp = cnt >> ((7 - i) * 8);
261 uint64_t cnt = ctx->count * 8; local
269 uint8_t tmp = cnt >> ((7 - i) * 8);
/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/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp260 for (int cnt = 0; cnt < max_tags; cnt++ ) {
261 uint64_t tag = valid_tag2 + ((uint64_t)cnt << 32);
/system/vold/
H A Dcryptfs.c149 unsigned int nr_sec, cnt; local
191 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
203 if ( (cnt = write(fd, key, crypt_ftr->keysize)) != crypt_ftr->keysize) {
220 if ( (cnt = write(fd, salt, SALT_LEN)) != SALT_LEN) {
248 unsigned int nr_sec, cnt; local
297 if ( (cnt = read(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
334 if ( (cnt = read(fd, key, crypt_ftr->keysize)) != crypt_ftr->keysize) {
344 if ( (cnt = read(fd, salt, SALT_LEN)) != SALT_LEN) {
/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/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/core/init/
H A Dinit_parser.c173 static int push_chars(char **dst, int *len, const char *chars, int cnt) argument
175 if (cnt > *len)
178 memcpy(*dst, chars, cnt);
179 *dst += cnt;
180 *len -= cnt;
187 int cnt = 0; local
H A Dinit.c645 int cnt; local
647 cnt = snprintf(prop, sizeof(prop), "ro.boot.%s", boot_prop_name);
648 if (cnt < PROP_NAME_MAX)
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Dhci.h2435 uint32_t cnt; member in struct:hci_conn_info

Completed in 245 milliseconds