/titanic_50/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 % 8 == 0) { in ql_23xx_dump_dcmd() 1896 mdb_printf("%04x ", fw->risc_host_reg[cnt]); in ql_23xx_dump_dcmd() 1902 for (cnt = 0; cnt < mbox_cnt; cnt++) { in ql_23xx_dump_dcmd() 1903 if (cnt % 8 == 0) { in ql_23xx_dump_dcmd() 1906 mdb_printf("%04x ", fw->mailbox_reg[cnt]); in ql_23xx_dump_dcmd() [all …]
|
/titanic_50/usr/src/cmd/vi/port/ |
H A D | ex_vwind.c | 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() 101 vup(int cnt, int ind, bool scroll) in vup() argument 111 if (cnt > i) { in vup() 112 ind -= cnt - i; in vup() 115 cnt = i; in vup() 117 if (!scroll && cnt <= vcline) { in vup() [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() 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 > WBOT && clr_eos) { in vinslin() 263 cnt = WECHO + 1 - p; in vinslin() [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 == 1) ? gettext("1 line joined") : [all …]
|
/titanic_50/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_50/usr/src/uts/common/io/bnxe/577xx/include/ |
H A D | listq.h | 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 == 0; in s_list_is_empty() 227 if(s_list->cnt == 0) in s_list_add_head() 231 else if(s_list_head->cnt) in s_list_add_head() [all …]
|
/titanic_50/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 = wcsrtombs_l(mbs, &wcs, sizeof (mbs), &ms, loc); in test_wcsrtombs_thr_iter() [all …]
|
/titanic_50/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 = 0; cnt < DSCPMK_ARRAY_COUNT; cnt++) { in dscpmk_create_action() 202 dscpmk_data->dscp_stats[cnt].present = B_FALSE; in dscpmk_create_action() 203 dscpmk_data->dscp_stats[cnt].npackets = 0; in dscpmk_create_action() 214 for (cnt = 0; cnt < DSCPMK_ARRAY_COUNT; cnt++) { in dscpmk_create_action() 215 int val = dscpmk_data->dscp_map[cnt]; in dscpmk_create_action() [all …]
|
/titanic_50/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 < 0)) in ReadData() 344 if (cnt > resid) in ReadData() [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) const in Bytes_to_Bytes() 179 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Bytes() 180 return (cnt); 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 = read(fd, (char *)buf, (int)cnt); in ReadData() [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 = 5; cnt > 0; cnt--) in _g721_update() 301 state_ptr->dq[cnt] = state_ptr->dq[cnt-1]; in _g721_update() 603 int cnt, cnta; in g721_encode() local 659 for (cnt = 1; cnt < 6; cnt++) in g721_encode() [all …]
|
/titanic_50/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 <= MAX_CNT); [all …]
|
/titanic_50/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 = 0; cnt < WCHAR_MAX; cnt++) { in main() 285 if (Cflag && !iswrune(cnt)) in main() 287 if (cmap_lookup(map, cnt) == OOBCH) { in main() [all …]
|
/titanic_50/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 254 for (cnt = 0; cnt < 5; cnt++) in init_altsctr() 255 ap->ap_tblp->alts_pad[cnt] = 0; in init_altsctr() [all …]
|
/titanic_50/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() [all …]
|
/titanic_50/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); 98 while (cnt > 0) [all …]
|
/titanic_50/usr/src/lib/libc/sparc/gen/ |
H A D | lshiftl.s | 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 72 sll %o2,%o1,%o2 ! R.h = R.h << cnt 78 subcc %o4,32,%o5 ! cnt - 32 (also test cnt >= 32) 80 add %o1,32,%o1 ! 32 - cnt (actually ((-cnt) + 32) 81 srl %o2,%o5,%o3 ! R.l = R.h >> (cnt - 32) [all …]
|
/titanic_50/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].expected), tests2[cnt].expected, in main()
|
/titanic_50/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].bad_start = (uint32_t)ALTS_ENT_EMPTY; in chk_badsec() 217 (ap->ap_gbadp)[cnt].bad_start = (uint32_t)ALTS_ENT_EMPTY; in chk_badsec() 224 &((ap->ap_gbadp)[cnt])); in chk_badsec() [all …]
|
/titanic_50/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; --n; [all …]
|
/titanic_50/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_50/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, wlen); in socks_connect() [all …]
|
/titanic_50/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)); then [all …]
|
/titanic_50/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].ut_idle, [all …]
|