/titanic_51/usr/src/cmd/mdb/common/modules/qlc/ |
H A D | qlc.c | 1858 uint32_t cnt = 0; in ql_23xx_dump_dcmd() local 1883 for (cnt = 0; cnt < sizeof (fw->pbiu_reg) / 2; cnt++) { in ql_23xx_dump_dcmd() 1884 if (cnt % 8 == 0) { in ql_23xx_dump_dcmd() 1887 mdb_printf("%04x ", fw->pbiu_reg[cnt]); in ql_23xx_dump_dcmd() 1892 for (cnt = 0; cnt < sizeof (fw->risc_host_reg) / 2; cnt++) { in ql_23xx_dump_dcmd() 1893 if (cnt in ql_23xx_dump_dcmd() 2112 uint32_t cnt = 0; ql_24xx_dump_dcmd() local 2432 uint32_t cnt = 0; ql_25xx_dump_dcmd() local 2808 uint32_t cnt = 0; ql_81xx_dump_dcmd() local [all...] |
/titanic_51/usr/src/cmd/vi/port/ |
H A D | ex_vwind.c | 78 * Go up or down cnt (negative is up) to new position curs. 81 vupdown(int cnt, unsigned char *curs) in vupdown() argument 84 if (cnt > 0) in vupdown() 85 vdown(cnt, 0, 0); in vupdown() 86 else if (cnt < 0) in vupdown() 87 vup(-cnt, 0, 0); in vupdown() 95 * Go up cnt lines, afterwards preferring to be ind 101 vup(int cnt, int ind, bool scroll) in vup() argument 111 if (cnt > i) { in vup() 112 ind -= cnt in vup() 149 vdown(int cnt,int ind,bool scroll) vdown() argument 263 int cnt = addr - dot; vshow() local 326 vback(tp,cnt) vback() argument 347 vfit(line * tp,int cnt) vfit() argument 366 vroll(int cnt) vroll() argument 407 vrollR(int cnt) vrollR() argument 449 vcookit(int cnt) vcookit() argument [all...] |
H A D | ex_vadj.c | 56 int cnt; in vopen() local 97 cnt = p + vdepth() - LINE(1); in vopen() 98 if (cnt > 0) { in vopen() 99 p -= cnt; in vopen() 107 cnt = vreopen(p, lineno(tp), vcline); in vopen() 109 LINE(vcnt) = LINE(vcline) + cnt; in vopen() 246 * Insert cnt blank lines before line p, 250 vinslin(int p, int cnt, int l) in vinslin() argument 257 tfixnl(), fprintf(trace, "vinslin(%d, %d, %d)\n", p, cnt, l); in vinslin() 259 if (p + cnt > WBO in vinslin() 330 vopenup(int cnt,bool could,int l) vopenup() argument 374 vadjAL(int p,int cnt) vadjAL() argument 404 int cnt; vrollup() local 432 vmoveitup(int cnt,bool doclr) vmoveitup() argument 468 vscroll(int cnt) vscroll() argument 761 vdellin(int p,int cnt,int l) vdellin() argument 807 vadjDL(int p,int cnt) vadjDL() argument 931 vcloseup(int l,int cnt) vcloseup() argument 954 vreplace(int l,int cnt,int newcnt) vreplace() argument [all...] |
H A D | ex_vget.c | 99 int cnt; in getbr() local 384 verbalize(cnt, cmdstr, sgn) in verbalize() argument 385 int cnt; in verbalize() 394 viprintf((cnt == 1) ? 396 gettext("%d lines changed"), cnt); 404 viprintf((cnt == 1) ? gettext("1 line copied") : 405 gettext("%d lines copied"), cnt); 408 viprintf((cnt == 1) ? gettext("1 line deleted") : 409 gettext("%d lines deleted"), cnt); 412 viprintf((cnt 770 int c, cnt; vgetcnt() local [all...] |
/titanic_51/usr/src/cmd/tail/ |
H A D | read.c | 137 int blen, cnt, recno, wrap; in lines() local 143 blen = cnt = recno = wrap = 0; in lines() 147 if (++cnt > blen) { in lines() 150 p = sp + cnt - 1; in lines() 154 if ((int)llines[recno].blen < cnt) { in lines() 155 llines[recno].blen = cnt + 256; in lines() 160 bcopy(sp, llines[recno].l, llines[recno].len = cnt); in lines() 161 cnt = 0; in lines() 174 if (cnt) { in lines() 177 llines[recno].len = cnt; in lines() [all...] |
/titanic_51/usr/src/uts/common/io/bnxe/577xx/include/ |
H A D | listq.h | 10 * void s_list_init (s_list_t *, *head, *tail, cnt) 25 * void d_list_init (d_list_t *, *head, *tail, cnt) 80 unsigned long cnt; member 98 s_list->cnt = entry_cnt; in s_list_init() 109 s_list->cnt = 0; in s_list_clear() 127 s_list->cnt++; in s_list_push_head() 147 s_list->cnt--; in s_list_pop_head() 172 s_list->cnt++; in s_list_push_tail() 208 return s_list->cnt; in s_list_entry_cnt() 217 return s_list->cnt in s_list_is_empty() 415 unsigned long cnt; global() member 912 unsigned long cnt; global() member [all...] |
/titanic_51/usr/src/test/libc-tests/tests/wcsrtombs/ |
H A D | wcsrtombs_test.c | 100 size_t cnt; in test_wcsrtombs_1() local 104 cnt = wcsrtombs(mbs, &wcs, sizeof (mbs), &ms); in test_wcsrtombs_1() 105 if (cnt != strlen(test[i].mbs)) { in test_wcsrtombs_1() 107 cnt, strlen(test[i].mbs)); in test_wcsrtombs_1() 146 size_t cnt; in test_wcsrtombs_l() local 150 cnt = wcsrtombs_l(mbs, &wcs, sizeof (mbs), &ms, loc); in test_wcsrtombs_l() 151 if (cnt != strlen(test[i].mbs)) { in test_wcsrtombs_l() 153 cnt, strlen(test[i].mbs)); in test_wcsrtombs_l() 181 size_t cnt; in test_wcsrtombs_thr_iter() local 185 cnt in test_wcsrtombs_thr_iter() 232 size_t cnt; test_wcsrtombs_partial() local 281 int cnt; test_wcsrtombs_negative() local 312 size_t cnt; test_wcsnrtombs_partial() local [all...] |
/titanic_51/usr/src/uts/common/ipp/dscpmk/ |
H A D | dscpmkddi.c | 128 int err, cnt; in dscpmk_create_action() local 171 for (cnt = 0; cnt < DSCPMK_ARRAY_COUNT; cnt++) { in dscpmk_create_action() 172 if ((tbl[cnt] != DSCPMK_UNCHANGED_DSCP) && (tbl[cnt] != in dscpmk_create_action() 173 dscpmk_data->dscp_map[cnt])) { in dscpmk_create_action() 174 dscpmk_data->dscp_map[cnt] = tbl[cnt]; in dscpmk_create_action() 201 for (cnt in dscpmk_create_action() 260 int err = 0, cnt; dscpmk_modify_action() local 394 int err, cnt; dscpmk_destroy_action() local 592 int err, cnt; dscpmk_info() local [all...] |
/titanic_51/usr/src/cmd/audio/utilities/ |
H A D | AudioBuffer.cc | 70 size_t cnt; in alloc() local 80 cnt = GetByteCount(); in alloc() 83 getid(), cnt, size)); in alloc() 135 if ((cnt <= MIN_ZBUFFER) && (size <= MIN_ZBUFFER) && in alloc() 151 ncpy = (cnt < size) ? (unsigned int)cnt : in alloc() 159 if ((cnt > MIN_ZBUFFER) && (zflag != 0)) { in alloc() 313 off_t cnt; in ReadData() local 318 cnt = (off_t)len; in ReadData() 326 if ((pos < 0.) || (cnt < in ReadData() 378 off_t cnt; WriteData() local 469 size_t cnt; AsyncCopy() local [all...] |
H A D | AudioHdr.cc | 123 off_t cnt) const // byte count in Bytes_to_Time() 125 if ((cnt == AUDIO_UNKNOWN_SIZE) || (Validate() != AUDIO_SUCCESS)) in Bytes_to_Time() 129 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Time() 131 return (Double) ((double)cnt / in Bytes_to_Time() 160 off_t& cnt) const in Bytes_to_Bytes() 166 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Bytes() 167 return (cnt); in Bytes_to_Bytes() 173 size_t& cnt) cons in Bytes_to_Bytes() [all...] |
H A D | AudioUnixfile.cc | 99 int cnt; in decode_filehdr() local 118 cnt = read(getfd(), (char *)&fhdr, sizeof (fhdr)); in decode_filehdr() 119 if (cnt != sizeof (fhdr)) { in decode_filehdr() 131 cnt = read(getfd(), ibuf, infosize); in decode_filehdr() 132 if (cnt != infosize) { in decode_filehdr() 318 off_t cnt; in ReadData() local 322 cnt = (off_t)len; in ReadData() 330 if (Undefined(pos) || (pos < 0.) || (cnt < 0)) in ReadData() 346 if (GetHeader().Bytes_to_Bytes(cnt) == 0) { in ReadData() 353 cnt in ReadData() 408 off_t cnt; WriteData() local 489 size_t cnt; // input byte count seekread() local 555 size_t cnt; // output byte count seekwrite() local [all...] |
H A D | g721.c | 179 int cnt; in _g721_update() local 288 for (cnt = 0; cnt < 6; cnt++) { in _g721_update() 289 state_ptr->b[cnt] -= state_ptr->b[cnt] >> 8; in _g721_update() 292 if ((dq ^ state_ptr->dq[cnt]) >= 0) in _g721_update() 293 state_ptr->b[cnt] += 128; in _g721_update() 295 state_ptr->b[cnt] -= 128; in _g721_update() 300 for (cnt in _g721_update() 603 int cnt, cnta; g721_encode() local 744 int cnt, cnta; g721_decode() local [all...] |
/titanic_51/usr/src/cmd/sendmail/libsm/ |
H A D | t-sem.c | 164 int cnt = 0; local 207 cnt = 0; 214 ++cnt; 216 } while (r < 0 && cnt <= MAX_CNT); 222 cnt = 0; 229 ++cnt; 231 } while (r < 0 && cnt <= MAX_CNT); 237 cnt = 0; 244 ++cnt; 246 } while (r <= 0 && cnt < [all...] |
/titanic_51/usr/src/cmd/tr/ |
H A D | tr.c | 89 wint_t ch, cnt, lastch; in main() local 230 s1.cnt == 1 && s2.cnt == 1) { in main() 238 } while (s1.state == CCLASS_LOWER && s1.cnt > 1); in main() 243 } while (s2.state == CCLASS_UPPER && s2.cnt > 1); in main() 247 s1.cnt == 1 && s2.cnt == 1) { in main() 255 } while (s1.state == CCLASS_UPPER && s1.cnt > 1); in main() 260 } while (s2.state == CCLASS_LOWER && s2.cnt > 1); in main() 284 for (cnt in main() [all...] |
/titanic_51/usr/src/cmd/format/ |
H A D | ix_altsctr.c | 181 int cnt; in chk_badsec() local 184 for (cnt = 0; cnt < ap->ap_gbadcnt; cnt++) { in chk_badsec() 185 badsec = (ap->ap_gbadp)[cnt].bad_start; in chk_badsec() 211 (ap->ap_gbadp)[cnt].bad_start = (uint32_t)ALTS_ENT_EMPTY; in chk_badsec() 214 (ap->ap_gbadp)[cnt].bad_start = (uint32_t)ALTS_ENT_EMPTY; in chk_badsec() 221 &((ap->ap_gbadp)[cnt])); in chk_badsec() 227 (ap->ap_gbadp)[cnt].bad_start = (uint32_t)ALTS_ENT_EMPTY; in chk_badsec() 243 int cnt; in init_altsctr() local 389 int cnt; get_badsec() local 612 altsmap_alloc(srt_ind,end_ind,cnt,dir) altsmap_alloc() argument 643 ent_sort(buf,cnt) ent_sort() argument 677 ent_compress(buf,cnt) ent_compress() argument 748 ent_bsearch(buf,cnt,key) ent_bsearch() argument 793 int cnt = ap->ap_tblp->alts_ent_used; global() local [all...] |
/titanic_51/usr/src/uts/common/os/ |
H A D | move.c | 66 ulong_t cnt; in uiomove() local 71 cnt = MIN(iov->iov_len, n); in uiomove() 72 if (cnt == 0l) { in uiomove() 82 error = xcopyout_nta(p, iov->iov_base, cnt, in uiomove() 85 error = xcopyin_nta(iov->iov_base, p, cnt, in uiomove() 95 error = kcopy_nta(p, iov->iov_base, cnt, in uiomove() 98 error = kcopy_nta(iov->iov_base, p, cnt, in uiomove() 104 iov->iov_base += cnt; in uiomove() 105 iov->iov_len -= cnt; in uiomove() 106 uio->uio_resid -= cnt; in uiomove() 124 ulong_t cnt, incr; uio_prefaultpages() local 189 ulong_t cnt; uiocopy() local 447 int cnt; uioamove() local [all...] |
/titanic_51/usr/src/cmd/sendmail/db/os/ |
H A D | os_dir.c | 54 int arraysz, cnt, ret; local 63 for (arraysz = cnt = 0; (dp = readdir(dirp)) != NULL; ++cnt) { 64 if (cnt >= arraysz) { 70 if ((ret = __os_strdup(dp->d_name, &names[cnt])) != 0) 76 *cntp = cnt; 80 __os_dirfree(names, cnt); 91 __os_dirfree(names, cnt) in __os_dirfree() argument 93 int cnt; 96 __db_jump.j_dirfree(names, cnt); [all...] |
/titanic_51/usr/src/lib/libc/sparc/gen/ |
H A D | lshiftl.s | 36 * lshiftl (op, cnt) 38 * int cnt; 55 subcc %g0,%o1,%o4 ! test cnt < 0 and save reciprocol 62 subcc %o1,32,%o5 ! cnt - 32 (also test cnt >= 32) 64 add %o4,32,%o4 ! 32 - cnt (actually ((-cnt) + 32) 65 sll %o3,%o5,%o2 ! R.h = R.l << (cnt - 32) 70 srl %o3,%o4,%o5 ! temp = R.l >> (31 - cnt) 71 sll %o3,%o1,%o3 ! R.l = R.l << cnt [all...] |
/titanic_51/usr/src/lib/crypt_modules/sha256/ |
H A D | test.c | 103 int cnt; in main() local 115 for (cnt = 0; cnt < ntests2; ++cnt) { in main() 117 fprintf(stderr, "test %d (outlen=%d): ", cnt, in main() 118 strlen(tests2[cnt].expected)); in main() 120 tests2[cnt].input, tests2[cnt].salt, NULL); in main() 122 if (cp == NULL || (strcmp(cp, tests2[cnt].expected) != 0)) { in main() 125 strlen(tests2[cnt] in main() [all...] |
/titanic_51/usr/src/cmd/addbadsec/ |
H A D | ix_altsctr.c | 82 int cnt, int dir); 83 static void ent_sort(struct alts_ent buf[], int cnt); 84 static void ent_compress(struct alts_ent buf[], int cnt); 91 static int ent_bsearch(struct alts_ent buf[], int cnt, struct alts_ent *key); 184 int cnt; in chk_badsec() local 187 for (cnt = 0; cnt < ap->ap_gbadcnt; cnt++) { in chk_badsec() 188 badsec = (ap->ap_gbadp)[cnt].bad_start; in chk_badsec() 214 (ap->ap_gbadp)[cnt] in chk_badsec() 246 int cnt; init_altsctr() local 384 int cnt; get_badsec() local 596 altsmap_alloc(blkaddr_t srt_ind,blkaddr_t end_ind,int cnt,int dir) altsmap_alloc() argument 623 ent_sort(struct alts_ent buf[],int cnt) ent_sort() argument 655 ent_compress(struct alts_ent buf[],int cnt) ent_compress() argument 724 ent_bsearch(struct alts_ent buf[],int cnt,struct alts_ent * key) ent_bsearch() argument 768 int cnt = ap->ap_tblp->alts_ent_used; chk_bad_altsctr() local [all...] |
/titanic_51/usr/src/lib/libbc/libc/gen/common/ |
H A D | xccs.multibyte.c | 182 int cnt = 0; local 205 ++cnt; 252 ++cnt; 255 return (cnt); 268 int cnt = 0; local 288 ++cnt; 293 ++cnt; 304 *s++ = CS377; ++cnt; --n; 305 *s++ = CS377; ++cnt; --n; 306 *s++ = 0; ++cnt; [all...] |
/titanic_51/usr/src/lib/libfakekernel/common/ |
H A D | uio.c | 33 ulong_t cnt; in uiomove() local 37 cnt = MIN(iov->iov_len, n); in uiomove() 38 if (cnt == 0L) { in uiomove() 51 bcopy(p, iov->iov_base, cnt); in uiomove() 53 bcopy(iov->iov_base, p, cnt); in uiomove() 56 iov->iov_base += cnt; in uiomove() 57 iov->iov_len -= cnt; in uiomove() 58 uio->uio_resid -= cnt; in uiomove() 59 uio->uio_loffset += cnt; in uiomove() 60 p = (caddr_t)p + cnt; in uiomove() [all...] |
/titanic_51/usr/src/test/zfs-tests/tests/functional/snapshot/ |
H A D | snapshot_015_pos.ksh | 85 typeset -i cnt=0 86 while ((cnt < snap_cnt)); do 87 testfile=$mntpnt/testfile.$cnt 89 log_must $MKDIR $snapdir/snapshot/snap.$cnt 90 if ! datasetexists $fs@snap.$cnt ; then 91 log_fail "ERROR: $fs@snap.$cnt should exists." 94 ((cnt += 1)) 98 ((cnt = RANDOM % snap_cnt)) 99 log_must $ZFS rollback -r $fs@snap.$cnt 104 if ((i <= cnt)); the [all...] |
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | socks.c | 158 size_t cnt; in socks_connect() local 192 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect() 193 if (cnt != 3) in socks_connect() 194 err(1, "write failed (%d/3)", cnt); in socks_connect() 196 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect() 197 if (cnt != 2) in socks_connect() 198 err(1, "read failed (%d/3)", cnt); in socks_connect() 251 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect() 252 if (cnt != wlen) in socks_connect() 253 err(1, "write failed (%d/%d)", cnt, wle in socks_connect() [all...] |
/titanic_51/usr/src/cmd/rpcsvc/ |
H A D | rpc.rusersd.c | 198 int cnt = 0; local 204 while ((utent = getutxent()) != NULL && (limit == 0 || cnt < limit)) { 242 uav[cnt].ut_host = 244 uav[cnt].ut_user = s_malodup(utent->ut_user, 246 uav[cnt].ut_line = s_malodup(utent->ut_line, 248 uav[cnt].ut_type = utent->ut_type; 249 uav[cnt].ut_time = utent->ut_xtime; 250 uav[cnt].ut_idle = findidle(utent->ut_line, 254 uav[cnt].ut_idle = 255 min(uav[cnt] 314 int cnt; global() local [all...] |