Searched refs:cnt (Results 1 - 25 of 27) 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/core/libpackagelistparser/
H A Dpackagelistparser.c43 size_t cnt; local
53 for (cnt = 1; gids[cnt]; gids[cnt] == ',' ? cnt++ : *gids++)
56 return cnt;
59 static bool parse_gids(char *gids, gid_t *gid_list, size_t *cnt) argument
68 if (cmp > *cnt) {
212 pkg_info->gids.cnt = get_gid_cnt(cur);
213 if (pkg_info->gids.cnt >
[all...]
/system/core/libdiskconfig/
H A Dconfig_mbr.c239 int cnt = 0; local
245 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) {
246 pinfo = &dinfo->part_lst[cnt];
249 if (cnt == (PC_NUM_BOOT_RECORD_PARTS - 1)) {
250 if (cnt + 1 < dinfo->num_parts) {
253 if ((temp_wr = mk_pri_pentry(dinfo, NULL, cnt, &cur_lba)))
272 temp_wr = mk_pri_pentry(dinfo, pinfo, cnt, &cur_lba);
275 pnext = cnt
[all...]
H A Ddiskconfig.c278 int cnt; local
349 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) {
350 struct part_info *part = &dinfo->part_lst[cnt];
358 if (cnt + 1 != dinfo->num_parts) {
463 int cnt; local
486 for (cnt = 0; cnt < dinfo->num_parts; ++cnt) {
508 int cnt; local
[all...]
/system/core/fs_mgr/
H A Dfs_mgr_fstab.c222 int cnt, entries; local
269 cnt = 0;
289 if (cnt >= entries) {
298 fstab->recs[cnt].blk_device = strdup(p);
304 fstab->recs[cnt].mount_point = strdup(p);
310 fstab->recs[cnt].fs_type = strdup(p);
317 fstab->recs[cnt].flags = parse_flags(p, mount_flags, NULL,
322 fstab->recs[cnt].fs_options = strdup(tmp_fs_options);
324 fstab->recs[cnt].fs_options = NULL;
331 fstab->recs[cnt]
[all...]
/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.c178 UINT8 i,j, cnt,mdep_id, mdep_role; local
280 cnt=0;
291 sup_feature_list.list_elem[cnt].mdep_id = mdep_id;
292 sup_feature_list.list_elem[cnt].mdep_role = mdep_role;
293 sup_feature_list.list_elem[cnt].data_type = p_cb->sup_feature.mdep[i].mdep_cfg.data_cfg[j].data_type;
296 sup_feature_list.list_elem[cnt].p_mdep_desp = p_cb->sup_feature.mdep[i].mdep_cfg.data_cfg[j].desp;
300 sup_feature_list.list_elem[cnt].p_mdep_desp = NULL;
303 cnt++;
304 if (cnt==BTA_HL_NUM_SUP_FEATURE_ELEMS)
312 sup_feature_list.num_elems = cnt;
381 UINT8 i,j, cnt,mdep_id, mdep_role; local
[all...]
H A Dbta_hl_utils.c1567 UINT8 i, time_min, cnt=0; local
1576 s_arr[cnt]= i;
1577 cnt++;
1584 APPL_TRACE_DEBUG("bta_hl_compact_mdl_cfg_time cnt=%d ",cnt );
1588 if (cnt)
1590 bta_hl_sort_cfg_time_idx(app_idx, s_arr, cnt);
1592 for (i=0;i<cnt; i++)
/system/core/libcutils/
H A Dqtaguid.c149 int cnt = 0, res = 0; local
159 ALOGI("Deleting tag data with tag %" PRIx64 "/%d for uid %d failed with cnt=%d errno=%d",
160 kTag, tag, uid, cnt, errno);
H A Dandroid_reboot.c134 int fd, cnt; local
165 cnt = 0;
166 while (cnt < READONLY_CHECK_TIMES) {
191 cnt++;
/system/core/healthd/
H A Dhealthd_mode_charger.cpp218 int cnt = min(len, MAX_KLOG_WRITE_BUF_SZ); local
222 nl = (char *)memrchr(ptr, '\n', cnt - 1);
224 cnt = nl - ptr + 1;
226 yoink = ptr[cnt];
227 ptr[cnt] = '\0';
229 ptr[cnt] = yoink;
231 len -= cnt;
232 ptr += cnt;
/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/logwrapper/
H A Dlogwrap.c125 int cnt; local
148 cnt = MIN(line_len, e_buf->buf_size - e_buf->write);
149 memcpy(e_buf->buf + e_buf->write, line, cnt);
150 if (cnt < line_len) {
151 memcpy(e_buf->buf, line + cnt, line_len - cnt);
/system/core/libpixelflinger/codeflinger/
H A Dmips64_disassem.c549 int cnt; local
553 cnt = vsnprintf(sprintf_buffer, sprintf_buf_len, fmt, argp);
554 sprintf_buffer += cnt;
555 sprintf_buf_len -= cnt;
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.cpp266 for (int cnt = 0; cnt < max_tags; cnt++ ) {
267 uint64_t tag = valid_tag2 + ((uint64_t)cnt << 32);
/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);
198 static int gz_file_skip(struct output_file *out, int64_t cnt) argument
203 ret = gzseek(outgz->gz_fd, cnt, SEEK_CUR);
/system/sepolicy/tools/
H A Dcheck_seapp.c633 size_t cnt = 0; local
650 cnt++;
657 * it matched and we update the cnt
660 cnt++;
663 if (cnt == assert->length) {
/system/bt/stack/gatt/
H A Dgatt_utils.c2557 UINT8 cnt = 0; local
2564 cnt++;
2567 return cnt;
/system/bt/bta/jv/
H A Dbta_jv_act.c694 const int cnt = sizeof(bta_jv_cb.free_psm_list)/sizeof(bta_jv_cb.free_psm_list[0]); local
695 for (int i = 0; i < cnt; i++) {
708 const int cnt = sizeof(bta_jv_cb.free_psm_list)/sizeof(bta_jv_cb.free_psm_list[0]); local
709 for (int i = 0; i < cnt; i++) {
/system/vold/
H A Dcryptfs.c602 unsigned int cnt; local
632 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
753 unsigned int cnt; local
785 if ( (cnt = read(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {

Completed in 789 milliseconds

12