Searched refs:cnt (Results 351 - 375 of 889) sorted by relevance

<<11121314151617181920>>

/opensolaris-onvv-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dinode.c610 chkrange(daddr32_t blk, int cnt) argument
614 if (cnt <= 0 || blk <= 0 || ((unsigned)blk >= (unsigned)maxfsblock) ||
615 ((cnt - 1) > (maxfsblock - blk))) {
619 blk, blk + cnt, maxfsblock);
622 if ((cnt > sblock.fs_frag) ||
623 ((fragnum(&sblock, blk) + cnt) > sblock.fs_frag)) {
625 (void) printf("Bad fragment size: size %d\n", cnt);
630 if ((unsigned)(blk + cnt) > (unsigned)cgsblock(&sblock, c)) {
634 blk, blk + cnt);
638 if ((unsigned)(blk + cnt) > (unsigne
[all...]
/opensolaris-onvv-gate/usr/src/cmd/fs.d/ufs/ff/
H A Dff.c141 void bread(diskaddr_t bno, char *buf, int cnt);
642 bread(diskaddr_t bno, char *buf, int cnt) argument
653 for (i = 0; i < cnt; i++)
658 got = read((int)fi, buf, cnt);
659 if (got != cnt) {
662 "ff: (wanted %d got %d blk %lld)\n", cnt, got, bno);
663 for (i = 0; i < cnt; i++)
/opensolaris-onvv-gate/usr/src/cmd/fs.d/ufs/ncheck/
H A Dncheck.c124 void bread(diskaddr_t bno, char *buf, int cnt);
581 bread(diskaddr_t bno, char *buf, int cnt) argument
590 for (i = 0; i < cnt; i++) {
597 got = read((int)fi, buf, cnt);
599 if (got != cnt) {
602 bno, cnt, got);
604 for (i = 0; i < cnt; i++)
/opensolaris-onvv-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dsyminfo.c254 * cnt - Number of symbols to display
257 dump_syminfo(ARGSTATE *argstate, Word ndx, Word cnt) argument
278 for (; cnt-- > 0; ndx++, syminfo++, sym++) {
310 * cnt - Number of symbols to display
314 Word ndx, Word cnt)
320 (cnt == 0))
336 dump_syminfo(argstate, ndx, cnt);
350 for (syminfo += ndx; cnt--; syminfo++) {
402 for (syminfo += ndx; cnt--; syminfo++) {
313 print_syminfo(SYMINFO_CMD_T cmd, int autoprint, ARGSTATE *argstate, Word ndx, Word cnt) argument
H A Dsym.c240 * cnt - Number of symbols to display
243 dump_symtab(ARGSTATE *argstate, SYMSTATE *symstate, Word ndx, Word cnt) argument
273 for (; cnt-- > 0; ndx++, sym++) {
421 * cnt - Number of symbols to display
425 elfedit_outstyle_t outstyle, Word ndx, Word cnt)
436 dump_symtab(argstate, symstate, ndx, cnt);
447 for (sym += ndx; cnt--; sym++) {
463 for (sym += ndx; cnt-- > 0; sym++)
475 for (sym += ndx; cnt--; sym++) {
481 for (; cnt
424 print_symstate(SYM_CMD_T cmd, ARGSTATE *argstate, SYMSTATE *symstate, elfedit_outstyle_t outstyle, Word ndx, Word cnt) argument
595 Word cnt; local
[all...]
/opensolaris-onvv-gate/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dbsd-snprintf.c368 int cnt = 0; local
380 while ((padlen > 0) && (cnt < max)) {
383 ++cnt;
385 while (*value && (cnt < max)) {
387 ++cnt;
389 while ((padlen < 0) && (cnt < max)) {
392 ++cnt;
/opensolaris-onvv-gate/usr/src/cmd/tip/
H A Dcmds.c121 int cnt, eof, bol; local
167 if ((cnt = (p-buffer)) == number(value(FRAMESIZE))) {
168 if (write(fd, buffer, cnt) != cnt) {
176 if ((cnt = (p-buffer)) != 0)
177 if (write(fd, buffer, cnt) != cnt)
/opensolaris-onvv-gate/usr/src/cmd/vi/port/
H A Dex_subr.c281 killcnt(int cnt) argument
286 notecnt = cnt;
290 if (!notable(cnt))
293 verbalize(cnt, Command, "");
295 if (cnt == 1) {
296 viprintf(gettext("1 line"), cnt);
298 viprintf(gettext("%d lines"), cnt);
475 netchHAD(int cnt) argument
478 netchange(lineDOL() - cnt);
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/bio/
H A Db_print.c444 int cnt = 0; local
456 while ((padlen > 0) && (cnt < max)) {
459 ++cnt;
461 while (*value && (cnt < max)) {
463 ++cnt;
465 while ((padlen < 0) && (cnt < max)) {
468 ++cnt;
/opensolaris-onvv-gate/usr/src/lib/libc/port/threads/
H A Dspawn.c341 int cnt = PATH_MAX + 1; local
346 if (cnt > 0) {
348 cnt--;
351 if (si != s && cnt > 0) {
353 cnt--;
355 for (; (c = *s2) != '\0' && cnt > 0; s2++) {
357 cnt--;
/opensolaris-onvv-gate/usr/src/stand/lib/fs/nfs/
H A Dxdr_rec.c552 skip_input_bytes(RECSTREAM *rstrm, int32_t cnt) argument
556 printf("skip_input_fragment: cnt = %d\n", cnt);
558 while (cnt > 0) {
561 if (! fill_input_buf(rstrm, cnt))
565 current = (cnt < current) ? cnt : current;
567 cnt -= current;
/opensolaris-onvv-gate/usr/src/uts/common/c2/
H A Daudit_io.c374 if (!dontblock && (kctx->auk_queue.cnt >= kctx->auk_queue.hiwater) &&
399 if (++(kctx->auk_queue.cnt) >
435 kctx->auk_queue.cnt -= n;
442 if (kctx->auk_queue.cnt <= kctx->auk_queue.lowater &&
485 kctx->auk_queue.cnt > kctx->auk_queue.lowater)
495 } while (kctx->auk_queue.cnt >= kctx->auk_queue.hiwater);
513 if (kctx->auk_queue.cnt >= kctx->auk_queue.hiwater) {
/opensolaris-onvv-gate/usr/src/uts/common/io/comstar/port/qlt/
H A Dqlt_dma.c789 uint32_t cnt, cont_segs; local
793 cnt = CMD7_2400_DATA_SEGMENTS;
796 if (cookie_count > cnt) {
797 cnt = cookie_count - cnt;
798 iocb_count = (uint8_t)(iocb_count + cnt / cont_segs);
799 if (cnt % cont_segs) {
/opensolaris-onvv-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_isr.c679 uint16_t cnt; local
690 for (cnt = 1; cnt < MAX_MBOX_COUNT && index != 0; cnt++) {
693 ha->mcp->mb[cnt] = RD16_IO_REG(ha,
694 mailbox_out[cnt]);
744 uint16_t cnt; local
1226 cnt = (uint16_t)(CFG_IST(ha, CFG_CTRL_24258081) ?
1233 tq->ub_total_seg_cnt = (uint8_t)(mb[3] / cnt);
1234 if (mb[3] % cnt) {
2120 uint32_t cnt; local
2808 uint8_t cnt; local
2867 uint8_t cnt; local
2914 uint8_t cnt; local
2975 uint32_t index, cnt, resp_identifier; local
[all...]
/opensolaris-onvv-gate/usr/src/cmd/smbios/
H A Dsmbios.c146 int cnt; local
159 cnt = smbios_info_strtab(shp, oem_id, 0, NULL);
160 if (cnt > 0) {
161 oem_str = alloca(sizeof (char *) * cnt);
162 (void) smbios_info_strtab(shp, oem_id, cnt, oem_str);
164 for (i = 0; i < cnt; i++) {
315 int i, n, cnt; local
318 cnt = smbios_info_contains(shp, id, chdl_cnt, chdl);
319 if (cnt > SMB_CONT_MAX)
321 n = MIN(chdl_cnt, cnt);
363 int i, n, cnt; local
[all...]
/opensolaris-onvv-gate/usr/src/lib/libsec/common/
H A Dacl_lex.l765 int cnt;
770 cnt = strlen(yytext);
771 yylval.str = calloc(cnt + 1, sizeof (char));
775 alloced = cnt + 1;
793 if (cnt + 1 >= alloced) {
800 memset(yylval.str + cnt, 0,
804 cnt++;
/opensolaris-onvv-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-mgmt.c914 * @cnt : Number of bytes of the data that are actually to be written into
924 xge_hal_write_eeprom(xge_hal_device_h devh, int off, u32 data, int cnt) argument
934 XGE_HAL_I2C_CONTROL_BYTE_CNT(cnt) |
1042 int cnt, iteration = 0, test_pass = 0; local
1101 for (cnt = 0; cnt < 5; cnt++) {
1109 if (cnt == 5)
1121 for (cnt = 0; cnt <
1444 int cnt = 0; local
[all...]
/opensolaris-onvv-gate/usr/src/uts/i86pc/io/fipe/
H A Dfipe_pm.c1548 uint32_t cnt; local
1571 cnt = fipe_gbl_ctrl.cpu_count;
1572 ASSERT(cnt < ncpus);
1574 cnt, cnt + 1) != cnt);
1579 if (cnt + 1 == ncpus) {
1614 uint32_t cnt; local
1621 cnt = fipe_gbl_ctrl.cpu_count;
1622 ASSERT(cnt >
[all...]
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Drcp.c70 int cnt; member in struct:_buf
1067 int cnt; local
1119 while ((cnt = read(pfds[0], buf, sizeof (buf))) > 0) {
1126 (void) write(STDERR_FILENO, buf, cnt);
1150 ssize_t cnt; local
1241 for (i = 0; i < stb.st_size; i += bp->cnt) {
1242 amt = bp->cnt;
1257 cnt = off = 0;
1261 cnt = sendfile(rem, f, &off, amt);
1262 if (cnt
1945 getaclinfo(int *cnt, int *acltype) argument
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/io/1394/adapters/
H A Dhci1394_ixl_update.c609 hcidescp = (hci1394_desc_t *)xferctlp->dma[xferctlp->cnt - 1].dma_descp;
610 acc_hdl = xferctlp->dma[xferctlp->cnt - 1].dma_buf->bi_handle;
611 dma_hdl = xferctlp->dma[xferctlp->cnt - 1].dma_buf->bi_dma_handle;
629 uvp->ixldepth = xferctlp->cnt - 1;
637 if (((xferctlp->cnt == 1) &&
788 uvp->ixlcount = xferctlp->cnt;
971 uvp->ixlcount = xferctlp->cnt;
1201 uvp->ixlcount = xferctlp->cnt;
1475 uvp->ixlcount = xferctlp->cnt;
1565 xferctlp->dma[xferctlp->cnt
[all...]
/opensolaris-onvv-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_bitmap.c588 uint_t cnt; local
604 cnt = 0;
617 *ip |= rv << cnt;
618 if (++cnt >= BMAP_BPW) {
620 cnt = 0;
1205 uint_t cnt; local
1221 cnt = 0;
1234 *ip |= rv << cnt;
1235 if (++cnt >= BMAP_BPW) {
1237 cnt
[all...]
/opensolaris-onvv-gate/usr/src/cmd/wusbadm/
H A Dwusbadm.c82 static uint32_t cnt = 0; variable
93 static void wusb_load_list(wusb_device_info_t **, uint32_t *cnt);
274 wusb_load_list(&dev_lists, &cnt);
317 for (i = 0; i < cnt; i++) {
397 wusb_load_list(wusb_device_info_t **cc_list, uint32_t *cnt) argument
431 *cnt = num;
442 cnt = 0;
913 for (i = 0; i < cnt; i++) {
935 for (i = 0; i < cnt; i++) {
950 for (i = 0; i < cnt;
[all...]
/opensolaris-onvv-gate/usr/src/lib/libdiskmgt/common/
H A Dentry.c1205 int cnt;
1209 for (cnt = 0; descs[cnt]; cnt++)
1212 da = (descriptor_t **)calloc(cnt + 1, sizeof (descriptor_t *));
1236 int cnt;
1244 for (cnt = 0; ptrs[cnt]; cnt++)
1247 da = (dm_descriptor_t *)calloc(cnt
[all...]
/opensolaris-onvv-gate/usr/src/lib/libntfs/common/libntfs/
H A Dmft.c139 int cnt = 0, res = 0; local
158 cnt = vol->mftmirr_size - m;
159 if (cnt > count)
160 cnt = count;
161 bmirr = ntfs_malloc(cnt * vol->mft_record_size);
164 memcpy(bmirr, b, cnt * vol->mft_record_size);
179 if (bw < cnt)
180 cnt = bw;
182 m << vol->mft_record_size_bits, cnt,
184 if (bw != cnt) {
[all...]
/opensolaris-onvv-gate/usr/src/lib/libsldap/common/
H A Dns_mapping.c620 int *cnt, int *max, ns_ldap_search_desc_t *ret)
625 *cnt = 0;
631 } else if (*cnt+1 >= *max) {
641 (*sdlist)[*cnt] = ret;
642 (*cnt)++;
643 (*sdlist)[*cnt] = NULL;
664 int cnt, max; local
681 cnt = 0;
738 rc = __ns_ldap_saveSearchDesc(&sdlist, &cnt, &max, ret);
784 &sdlist, &cnt,
619 __ns_ldap_saveSearchDesc(ns_ldap_search_desc_t ***sdlist, int *cnt, int *max, ns_ldap_search_desc_t *ret) argument
[all...]

Completed in 209 milliseconds

<<11121314151617181920>>