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

/system/core/toolbox/upstream-netbsd/bin/dd/
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 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 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;
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...]
/system/core/libcutils/
H A Dandroid_reboot.c69 int fd, cnt = 0; local
83 while (!remount_ro_done() && (cnt < 50)) {
85 cnt++;
H A Dqtaguid.c148 int cnt = 0, res = 0; local
158 ALOGI("Deleting tag data with tag %" PRIx64 "/%d for uid %d failed with cnt=%d errno=%d",
159 kTag, tag, uid, cnt, errno);
/system/extras/tests/bionic/libc/bionic/
H A Dtest_cond.c53 int cnt = 2; local
54 while(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/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/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/bt/bta/hl/
H A Dbta_hl_sdp.c179 UINT8 i,j, cnt,mdep_id, mdep_role; local
281 cnt=0;
292 sup_feature_list.list_elem[cnt].mdep_id = mdep_id;
293 sup_feature_list.list_elem[cnt].mdep_role = mdep_role;
294 sup_feature_list.list_elem[cnt].data_type = p_cb->sup_feature.mdep[i].mdep_cfg.data_cfg[j].data_type;
297 sup_feature_list.list_elem[cnt].p_mdep_desp = p_cb->sup_feature.mdep[i].mdep_cfg.data_cfg[j].desp;
301 sup_feature_list.list_elem[cnt].p_mdep_desp = NULL;
304 cnt++;
305 if (cnt==BTA_HL_NUM_SUP_FEATURE_ELEMS)
313 sup_feature_list.num_elems = cnt;
382 UINT8 i,j, cnt,mdep_id, mdep_role; local
[all...]
H A Dbta_hl_utils.c1605 UINT8 i, time_min, cnt=0; local
1614 s_arr[cnt]= i;
1615 cnt++;
1622 APPL_TRACE_DEBUG("bta_hl_compact_mdl_cfg_time cnt=%d ",cnt );
1626 if (cnt)
1628 bta_hl_sort_cfg_time_idx(app_idx, s_arr, cnt);
1630 for (i=0;i<cnt; i++)
/system/core/fs_mgr/
H A Dfs_mgr_fstab.c214 int cnt, entries; local
261 cnt = 0;
281 if (cnt >= entries) {
290 fstab->recs[cnt].blk_device = strdup(p);
296 fstab->recs[cnt].mount_point = strdup(p);
302 fstab->recs[cnt].fs_type = strdup(p);
309 fstab->recs[cnt].flags = parse_flags(p, mount_flags, NULL,
314 fstab->recs[cnt].fs_options = strdup(tmp_fs_options);
316 fstab->recs[cnt].fs_options = NULL;
323 fstab->recs[cnt]
[all...]
/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/bt/stack/l2cap/
H A Dl2c_fcr.c114 register int cnt = icnt; local
116 while (cnt--)
685 L2CAP_TRACE_EVENT (" eRTM Rx Nxt_tx_seq %u, Lst_rx_ack %u, Nxt_seq_exp %u, Lst_ack_snt %u, wt_q.cnt %u, tries %u",
/system/core/init/
H A Dinit_parser.cpp219 static int push_chars(char **dst, int *len, const char *chars, int cnt) argument
221 if (cnt > *len)
224 memcpy(*dst, chars, cnt);
225 *dst += cnt;
226 *len -= cnt;
H A Dinit.cpp788 int cnt; local
790 cnt = snprintf(prop, sizeof(prop), "ro.boot.%s", boot_prop_name);
791 if (cnt < PROP_NAME_MAX)
/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/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/bt/bta/jv/
H A Dbta_jv_act.c709 const int cnt = sizeof(bta_jv_cb.free_psm_list)/sizeof(bta_jv_cb.free_psm_list[0]); local
710 for (int i = 0; i < cnt; i++) {
723 const int cnt = sizeof(bta_jv_cb.free_psm_list)/sizeof(bta_jv_cb.free_psm_list[0]); local
724 for (int i = 0; i < cnt; i++) {
/system/bt/stack/gatt/
H A Dgatt_utils.c2501 UINT8 cnt = 0; local
2508 cnt++;
2511 return cnt;
/system/bt/btif/src/
H A Dbtif_hl.c247 UINT8 cnt=0; local
270 cnt++;
278 BTIF_TRACE_DEBUG("%s dch in use count=%d", __FUNCTION__, cnt);
279 return cnt;
/system/vold/
H A Dcryptfs.c606 unsigned int cnt; local
634 if ((cnt = write(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {
747 unsigned int cnt; local
779 if ( (cnt = read(fd, crypt_ftr, sizeof(struct crypt_mnt_ftr))) != sizeof(struct crypt_mnt_ftr)) {

Completed in 1869 milliseconds