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

12

/system/core/toolbox/upstream-netbsd/bin/dd/
H A Dconv.c64 uint64_t cnt; local
69 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp)
121 uint64_t cnt, maxlen; local
132 for (inp = in.db, cnt = in.dbrcnt;
133 cnt && *inp++ != '\n'; --cnt);
134 if (!cnt) {
141 in.dbcnt = cnt - 1;
142 in.dbp = inp + cnt
232 uint64_t cnt; local
266 uint64_t cnt; local
[all...]
H A Dposition.c69 int bcnt, cnt, nr, warned; local
87 for (bcnt = in.dbsz, cnt = in.offset, warned = 0; cnt;) {
92 --cnt;
95 --cnt;
132 uint64_t cnt; local
159 for (cnt = 0; cnt < out.offset; ++cnt) {
169 * the EOF mark. Note, cnt ha
[all...]
H A Ddd.c256 u_int cnt;
260 for (cnt = 0; cnt < 256; ++cnt)
261 casetab[cnt] = tolower(ctab[cnt]);
263 for (cnt = 0; cnt < 256; ++cnt)
264 casetab[cnt]
486 int64_t cnt, n, nw; local
[all...]
H A Dmisc.c168 static size_t cnt = 0; /* Internal counter to allow wbuf to wrap */ local
174 wbuf[cnt++] = str[i];
176 if (cnt >= sizeof(wbuf)) {
177 (void)write(STDERR_FILENO, wbuf, cnt);
178 cnt = 0;
183 (void)write(STDERR_FILENO, wbuf, cnt);
184 cnt = 0;
/system/netd/libnetdutils/include/netdutils/
H A DOperationLimiter.h64 auto& cnt = mCounters[key]; // operator[] creates new entries as needed. local
65 if (cnt >= mLimitPerKey) {
69 ++cnt;
82 auto& cnt = it->second; local
83 --cnt;
84 if (cnt <= 0) {
/system/core/libpackagelistparser/
H A Dpackagelistparser.c42 size_t cnt; local
52 for (cnt = 1; gids[cnt]; gids[cnt] == ',' ? cnt++ : *gids++)
55 return cnt;
58 static bool parse_gids(char *gids, gid_t *gid_list, size_t *cnt) argument
67 if (cmp > *cnt) {
211 pkg_info->gids.cnt = get_gid_cnt(cur);
212 if (pkg_info->gids.cnt >
[all...]
/system/core/libdiskconfig/
H A Dconfig_mbr.c238 int cnt = 0; local
244 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) {
245 pinfo = &dinfo->part_lst[cnt];
248 if (cnt == (PC_NUM_BOOT_RECORD_PARTS - 1)) {
249 if (cnt + 1 < dinfo->num_parts) {
252 if ((temp_wr = mk_pri_pentry(dinfo, NULL, cnt, &cur_lba)))
271 temp_wr = mk_pri_pentry(dinfo, pinfo, cnt, &cur_lba);
274 pnext = cnt
[all...]
H A Ddiskconfig.c276 int cnt; local
347 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) {
348 struct part_info *part = &dinfo->part_lst[cnt];
356 if (cnt + 1 != dinfo->num_parts) {
461 int cnt; local
484 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) {
506 int cnt; local
[all...]
/system/core/libion/include/ion/
H A Dion.h48 int ion_query_heap_cnt(int fd, int* cnt);
49 int ion_query_get_heaps(int fd, int cnt, void* buffers);
/system/core/libion/
H A Dion_4.12.h71 * @cnt - total number of heaps to be copied
75 __u32 cnt; /* Total number of heaps to be copied */ member in struct:ion_heap_query
H A Dion.c200 int ion_query_heap_cnt(int fd, int* cnt) { argument
209 *cnt = query.cnt;
213 int ion_query_get_heaps(int fd, int cnt, void* buffers) { argument
216 .cnt = cnt, .heaps = (uintptr_t)buffers,
/system/core/libpackagelistparser/include/packagelistparser/
H A Dpackagelistparser.h44 size_t cnt; member in struct:gid_list
/system/bt/bta/hl/
H A Dbta_hl_sdp.cc172 uint8_t i, j, cnt, mdep_id, mdep_role; local
259 cnt = 0;
271 sup_feature_list.list_elem[cnt].mdep_id = mdep_id;
272 sup_feature_list.list_elem[cnt].mdep_role = mdep_role;
273 sup_feature_list.list_elem[cnt].data_type =
276 sup_feature_list.list_elem[cnt].p_mdep_desp =
279 sup_feature_list.list_elem[cnt].p_mdep_desp = NULL;
282 cnt++;
283 if (cnt == BTA_HL_NUM_SUP_FEATURE_ELEMS) {
290 sup_feature_list.num_elems = cnt;
352 uint8_t i, j, cnt, mdep_id, mdep_role; local
[all...]
H A Dbta_hl_utils.cc1397 uint8_t i, time_min, cnt = 0; local
1403 s_arr[cnt] = i;
1404 cnt++;
1409 APPL_TRACE_DEBUG("bta_hl_compact_mdl_cfg_time cnt=%d ", cnt);
1412 if (cnt) {
1413 bta_hl_sort_cfg_time_idx(app_idx, s_arr, cnt);
1415 for (i = 0; i < cnt; i++) {
/system/core/fs_mgr/
H A Dfs_mgr_fstab.cpp508 int cnt, entries; local
549 cnt = 0;
569 if (cnt >= entries) {
578 fstab->recs[cnt].blk_device = strdup(p);
584 fstab->recs[cnt].mount_point = strdup(p);
590 fstab->recs[cnt].fs_type = strdup(p);
597 fstab->recs[cnt].flags = parse_flags(p, mount_flags, NULL,
602 fstab->recs[cnt].fs_options = strdup(tmp_fs_options);
604 fstab->recs[cnt].fs_options = NULL;
611 fstab->recs[cnt]
[all...]
/system/core/libqtaguid/
H A Dqtaguid.c128 int cnt = 0, res = 0; local
138 ALOGI("Deleting tag data with tag %" PRIx64 "/%d for uid %d failed with cnt=%d errno=%d",
139 kTag, tag, uid, cnt, errno);
/system/core/logwrapper/
H A Dlogwrap.c124 int cnt; local
147 cnt = MIN(line_len, e_buf->buf_size - e_buf->write);
148 memcpy(e_buf->buf + e_buf->write, line, cnt);
149 if (cnt < line_len) {
150 memcpy(e_buf->buf, line + cnt, line_len - cnt);
/system/core/healthd/
H A Dhealthd_mode_charger.cpp228 int cnt = min(len, MAX_KLOG_WRITE_BUF_SZ); local
232 nl = (char*)memrchr(ptr, '\n', cnt - 1);
233 if (nl) cnt = nl - ptr + 1;
235 yoink = ptr[cnt];
236 ptr[cnt] = '\0';
238 ptr[cnt] = yoink;
240 len -= cnt;
241 ptr += cnt;
/system/core/libpixelflinger/codeflinger/
H A Dmips64_disassem.c550 int cnt; local
554 cnt = vsnprintf(sprintf_buffer, sprintf_buf_len, fmt, argp);
555 sprintf_buffer += cnt;
556 sprintf_buf_len -= cnt;
H A Dmips_disassem.c556 int cnt; local
560 cnt = vsnprintf(sprintf_buffer, sprintf_buf_len, fmt, argp);
561 sprintf_buffer += cnt;
562 sprintf_buf_len -= cnt;
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp259 for (int cnt = 0; cnt < max_tags; cnt++ ) {
260 uint64_t tag = valid_tag2 + ((uint64_t)cnt << 32);
/system/nfc/src/adaptation/
H A DCrcChecksum.cc75 int cnt = bufferLen; local
77 while (cnt--) {
/system/core/libsparse/
H A Doutput_file.c126 static int file_skip(struct output_file *out, int64_t cnt) argument
131 ret = lseek64(outn->fd, cnt, SEEK_CUR);
203 static int gz_file_skip(struct output_file *out, int64_t cnt) argument
208 ret = gzseek(outgz->gz_fd, cnt, SEEK_CUR);
/system/sepolicy/tools/
H A Dcheck_seapp.c662 size_t cnt = 0; local
679 cnt++;
686 * it matched and we update the cnt
689 cnt++;
692 if (cnt == assert->length) {
/system/core/trusty/storage/tests/
H A Dmain.cpp43 size_t cnt = len / sizeof(uint32_t); local
45 while (cnt--) {
52 size_t cnt = len / sizeof(uint32_t); local
54 while (cnt--) {
65 size_t cnt = len / sizeof(uint32_t); local
66 while (cnt--) {
102 void WriteReadAtOffsetHelper(file_handle_t handle, size_t blk, size_t cnt, bool complete);
746 void StorageServiceTest::WriteReadAtOffsetHelper(file_handle_t handle, size_t blk, size_t cnt, bool complete) argument
749 storage_off_t off2 = blk * (cnt-1);

Completed in 876 milliseconds

12