Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 880) sorted by relevance

12345678910>>...36

/illumos-gate/usr/src/cmd/mdb/common/modules/qlc/
H A Dqlc.c1873 uint32_t cnt = 0; in ql_8021_dump_dcmd() local
1884 while (cnt < ha->ql_dump_size) { in ql_8021_dump_dcmd()
1886 if (++cnt % 16 == 0) { in ql_8021_dump_dcmd()
1890 if (cnt % 16 != 0) { in ql_8021_dump_dcmd()
1923 uint32_t cnt, cnt1, *dp, *dp2; in ql_8300_dump_dcmd() local
1954 for (cnt = 0; cnt < sizeof (fw->hostrisc_reg) / 4; cnt++) { in ql_8300_dump_dcmd()
1955 if (cnt % 8 == 0) { in ql_8300_dump_dcmd()
1958 mdb_printf("%08x ", fw->hostrisc_reg[cnt]); in ql_8300_dump_dcmd()
1962 for (cnt = 0; cnt < sizeof (fw->pcie_reg) / 4; cnt++) { in ql_8300_dump_dcmd()
1963 if (cnt % 8 == 0) { in ql_8300_dump_dcmd()
[all …]
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_vwind.c81 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 Dex_vadj.c56 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 Dex_vget.c99 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);
405 viprintf((cnt == 1) ? gettext("1 line copied") :
406 gettext("%d lines copied"), cnt);
409 viprintf((cnt == 1) ? gettext("1 line deleted") :
410 gettext("%d lines deleted"), cnt);
413 viprintf((cnt == 1) ? gettext("1 line joined") :
[all …]
/illumos-gate/usr/src/cmd/tail/
H A Dread.c137 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 …]
/illumos-gate/usr/src/uts/common/io/bnx/include/
H A Dlistq.h88 unsigned long cnt; member
106 s_list->cnt = entry_cnt; in s_list_init()
117 s_list->cnt = 0; in s_list_clear()
135 s_list->cnt++; in s_list_push_head()
155 s_list->cnt--; in s_list_pop_head()
180 s_list->cnt++; in s_list_push_tail()
216 return s_list->cnt; in s_list_entry_cnt()
225 return s_list->cnt == 0; in s_list_is_empty()
235 if(s_list->cnt == 0) in s_list_add_head()
239 else if(s_list_head->cnt) in s_list_add_head()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/include/
H A Dlistq.h80 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 …]
/illumos-gate/usr/src/uts/common/ipp/dscpmk/
H A Ddscpmkddi.c128 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 …]
/illumos-gate/usr/src/test/libc-tests/tests/wcsrtombs/
H A Dwcsrtombs_test.c100 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 …]
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioBuffer.cc68 size_t cnt; in alloc() local
78 cnt = GetByteCount(); in alloc()
81 getid(), cnt, size)); in alloc()
133 if ((cnt <= MIN_ZBUFFER) && (size <= MIN_ZBUFFER) && in alloc()
149 ncpy = (cnt < size) ? (unsigned int)cnt : in alloc()
157 if ((cnt > MIN_ZBUFFER) && (zflag != 0)) { in alloc()
311 off_t cnt; in ReadData() local
316 cnt = (off_t)len; in ReadData()
324 if ((pos < 0.) || (cnt < 0)) in ReadData()
342 if (cnt > resid) in ReadData()
[all …]
H A DAudioUnixfile.cc97 int cnt; in decode_filehdr() local
116 cnt = read(getfd(), (char *)&fhdr, sizeof (fhdr)); in decode_filehdr()
117 if (cnt != sizeof (fhdr)) { in decode_filehdr()
129 cnt = read(getfd(), ibuf, infosize); in decode_filehdr()
130 if (cnt != infosize) { in decode_filehdr()
316 off_t cnt; in ReadData() local
320 cnt = (off_t)len; in ReadData()
328 if (Undefined(pos) || (pos < 0.) || (cnt < 0)) in ReadData()
344 if (GetHeader().Bytes_to_Bytes(cnt) == 0) { in ReadData()
351 cnt = read(fd, (char *)buf, (int)cnt); in ReadData()
[all …]
H A DAudioHdr.cc121 off_t cnt) const // byte count in Bytes_to_Time()
123 if ((cnt == AUDIO_UNKNOWN_SIZE) || (Validate() != AUDIO_SUCCESS)) in Bytes_to_Time()
127 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Time()
129 return (Double) ((double)cnt / in Bytes_to_Time()
158 off_t& cnt) const in Bytes_to_Bytes()
164 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Bytes()
165 return (cnt); in Bytes_to_Bytes()
171 size_t& cnt) const in Bytes_to_Bytes()
177 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Bytes()
178 return (cnt); in Bytes_to_Bytes()
[all …]
H A Dg721.c177 int cnt; in _g721_update() local
286 for (cnt = 0; cnt < 6; cnt++) { in _g721_update()
287 state_ptr->b[cnt] -= state_ptr->b[cnt] >> 8; in _g721_update()
290 if ((dq ^ state_ptr->dq[cnt]) >= 0) in _g721_update()
291 state_ptr->b[cnt] += 128; in _g721_update()
293 state_ptr->b[cnt] -= 128; in _g721_update()
298 for (cnt = 5; cnt > 0; cnt--) in _g721_update()
299 state_ptr->dq[cnt] = state_ptr->dq[cnt-1]; in _g721_update()
601 int cnt, cnta; in g721_encode() local
657 for (cnt = 1; cnt < 6; cnt++) in g721_encode()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-sem.c164 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 …]
/illumos-gate/usr/src/cmd/tr/
H A Dtr.c89 wint_t ch, cnt, lastch; in main() local
231 s1.cnt == 1 && s2.cnt == 1) { in main()
239 } while (s1.state == CCLASS_LOWER && s1.cnt > 1); in main()
244 } while (s2.state == CCLASS_UPPER && s2.cnt > 1); in main()
248 s1.cnt == 1 && s2.cnt == 1) { in main()
256 } while (s1.state == CCLASS_UPPER && s1.cnt > 1); in main()
261 } while (s2.state == CCLASS_LOWER && s2.cnt > 1); in main()
285 for (cnt = 0; cnt < WCHAR_MAX; cnt++) { in main()
286 if (Cflag && !iswrune(cnt)) in main()
288 if (cmap_lookup(map, cnt) == OOBCH) { in main()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dmove.c66 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 …]
/illumos-gate/usr/src/cmd/format/
H A Dix_altsctr.c179 int cnt; in chk_badsec() local
182 for (cnt = 0; cnt < ap->ap_gbadcnt; cnt++) { in chk_badsec()
183 badsec = (ap->ap_gbadp)[cnt].bad_start; in chk_badsec()
217 (ap->ap_gbadp)[cnt].bad_start = in chk_badsec()
221 (ap->ap_gbadp)[cnt].bad_start = in chk_badsec()
230 &((ap->ap_gbadp)[cnt])); in chk_badsec()
236 (ap->ap_gbadp)[cnt].bad_start = in chk_badsec()
253 int cnt; in init_altsctr() local
264 for (cnt = 0; cnt < 5; cnt++) in init_altsctr()
265 ap->ap_tblp->alts_pad[cnt] = 0; in init_altsctr()
[all …]
/illumos-gate/usr/src/cmd/addbadsec/
H A Dix_altsctr.c82 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 …]
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A Dlshiftl.S55 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 …]
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_dir.c54 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 …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dsocks.c156 size_t cnt; in socks_connect() local
190 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
191 if (cnt != 3) in socks_connect()
192 err(1, "write failed (%zu/3)", cnt); in socks_connect()
194 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect()
195 if (cnt != 2) in socks_connect()
196 err(1, "read failed (%zu/2)", cnt); in socks_connect()
249 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
250 if (cnt != wlen) in socks_connect()
251 err(1, "write failed (%zu/%zu)", cnt, wlen); in socks_connect()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_api.c3523 uint32_t cnt; in ql_ub_alloc() local
3681 cnt = CHAR_TO_SHORT( in ql_ub_alloc()
3685 if (cnt < *count) { in ql_ub_alloc()
3701 cnt = CHAR_TO_SHORT( in ql_ub_alloc()
3705 if (cnt < *count) { in ql_ub_alloc()
4296 uint32_t cnt; in ql_port_manage() local
4455 for (i0 = 1, cnt = 0; i0 < pha->osc_max_cnt; in ql_port_manage()
4457 cnt += (pha->outstanding_cmds[i0] != NULL); in ql_port_manage()
4459 if (cnt != 0) { in ql_port_manage()
4593 cnt = *bptr; in ql_port_manage()
[all …]
/illumos-gate/usr/src/lib/crypt_modules/sha256/
H A Dtest.c101 int cnt; in main() local
113 for (cnt = 0; cnt < ntests2; ++cnt) { in main()
115 fprintf(stderr, "test %d (outlen=%d): ", cnt, in main()
116 strlen(tests2[cnt].expected)); in main()
118 tests2[cnt].input, tests2[cnt].salt, NULL); in main()
120 if (cp == NULL || (strcmp(cp, tests2[cnt].expected) != 0)) { in main()
123 strlen(tests2[cnt].expected), tests2[cnt].expected, in main()
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drpc.rusersd.c196 int cnt = 0; local
202 while ((utent = getutxent()) != NULL && (limit == 0 || cnt < limit)) {
240 uav[cnt].ut_host =
242 uav[cnt].ut_user = s_malodup(utent->ut_user,
244 uav[cnt].ut_line = s_malodup(utent->ut_line,
246 uav[cnt].ut_type = utent->ut_type;
247 uav[cnt].ut_time = utent->ut_xtime;
248 uav[cnt].ut_idle = findidle(utent->ut_line,
252 uav[cnt].ut_idle =
253 min(uav[cnt].ut_idle,
[all …]
/illumos-gate/usr/src/cmd/fruadm/
H A Dfruadm.c354 int cnt = 0; in convertBinaryToDecimal() local
366 result += (0 * pow(2, cnt)); in convertBinaryToDecimal()
369 result += (1 * pow(2, cnt)); in convertBinaryToDecimal()
371 cnt++; in convertBinaryToDecimal()
504 int cnt; in create_segment() local
518 for (cnt = 0; cnt < NUM_OF_SEGMENT; cnt++) { in create_segment()
519 (void) strncpy(def.name, segment_name[cnt], SEGMENT_NAME_SIZE); in create_segment()
520 if (cnt == 0) { in create_segment()
527 return (cnt); in create_segment()
542 updateiter_record(fru_nodehdl_t nodehdl, int cnt, char **ptr, in updateiter_record() argument
[all …]

12345678910>>...36