/illumos-gate/usr/src/cmd/grpck/ |
H A D | grpck.c | 71 int cnt; member 145 t->groups->cnt = 1; in main() 327 t->groups->cnt = 1; in main() 343 if (gp->cnt++ == 1) { in main() 356 gp->cnt = 1; in main()
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.exec.c | 385 int cnt; in dohash() local 404 for (cnt = 0; cnt < (HSHSIZ / 8); cnt++) in dohash() 405 cachearray[cnt] = 0; in dohash()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | mac_soft_ring.h | 542 #define MAC_COUNT_CHAIN(mac_srs, head, tail, cnt, sz) { \ argument 547 cnt = 0; \ 553 cnt = 1; \ 559 cnt++; \ 577 #define MAC_UPDATE_SRS_COUNT_LOCKED(mac_srs, cnt) { \ argument 581 srs_rx->sr_poll_pkt_cnt -= cnt; \
|
/illumos-gate/usr/src/uts/common/io/ipw/ |
H A D | ipw2100_impl.h | 555 uint16_t *buf, size_t cnt); 563 uint32_t off, uint8_t *buf, size_t cnt); 570 uint32_t addr, uint16_t *buf, size_t cnt); 578 uint32_t addr, uint8_t *buf, size_t cnt); 580 uint32_t addr, uint8_t *buf, size_t cnt); 582 uint32_t addr, uint8_t *buf, size_t cnt);
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | ldap_pwd_policy.c | 223 int *cnt) in krb5_ldap_get_password_policy_from_dn() argument 243 *cnt = 0; in krb5_ldap_get_password_policy_from_dn() 252 *cnt = 1; in krb5_ldap_get_password_policy_from_dn() 297 krb5_ldap_get_password_policy (context, name, policy, cnt) in krb5_ldap_get_password_policy() argument 301 int *cnt; 319 st = krb5_ldap_get_password_policy_from_dn(context, name, policy_dn, policy, cnt);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | vdev_raidz_math.c | 545 int i, cnt = 0; in zfs_vdev_raidz_impl_get() local 554 cnt += sprintf(buffer + cnt, fmt, math_impl_opts[i].name); in zfs_vdev_raidz_impl_get() 560 cnt += sprintf(buffer + cnt, fmt, raidz_supp_impl[i]->name); in zfs_vdev_raidz_impl_get() 563 return (cnt); in zfs_vdev_raidz_impl_get()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_xioctl.c | 2394 for (cnt = 0; cnt < scsi_req.cdb_len; cnt++) { in ql_scsi_passthru() 2419 for (cnt = 0; cnt < scsi_req.cdb_len; cnt++) { in ql_scsi_passthru() 2574 for (cnt = 0; cnt < cnt2; cnt = (uint16_t)(cnt + 4)) { in ql_scsi_passthru() 4195 for (cnt = 0; cnt < MAX_CMDSZ; cnt += 4) { in ql_report_lun() 4543 for (cnt = 0; cnt < MAX_CMDSZ; cnt += 4) { in ql_inq() 4706 for (cnt = 0; cnt < size; cnt++) { in ql_get_buffer_data() 4737 for (cnt = 0; cnt < size; cnt++) { in ql_send_buffer_data() 5299 for (cnt = 0; cnt < (uint32_t)size; cnt++) { in ql_load_fcode() 7325 for (chksum = 0, cnt = 0; cnt < len; cnt += 2) { in ql_flash_layout_table() 7391 for (chksum = 0, cnt = 0; cnt < len; cnt += 2) { in ql_process_flt() [all …]
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp.c | 628 int cnt; in sctp_free() local 686 for (cnt = 0; cnt < SCTP_IPIF_HASH; cnt++) { in sctp_free() 687 ASSERT(sctp->sctp_saddrs[cnt].ipif_count == 0); in sctp_free() 784 int cnt; in sctp_init_values() local 791 for (cnt = 0; cnt < SCTP_IPIF_HASH; cnt++) { in sctp_init_values() 792 sctp->sctp_saddrs[cnt].ipif_count = 0; in sctp_init_values() 793 list_create(&sctp->sctp_saddrs[cnt].sctp_ipif_list, in sctp_init_values() 1958 int cnt; in sctp_conn_cache_constructor() local 1967 for (cnt = 0; cnt < SCTP_IPIF_HASH; cnt++) { in sctp_conn_cache_constructor() 1996 int cnt; in sctp_conn_cache_destructor() local [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | immu_qinv.c | 677 immu_qinv_intr_caches(immu_t *immu, uint_t iidx, uint_t cnt, in immu_qinv_intr_caches() argument 682 ASSERT(cnt != 0); in immu_qinv_intr_caches() 685 if (!ISP2(cnt)) { in immu_qinv_intr_caches() 686 for (i = 0; i < cnt; i++) { in immu_qinv_intr_caches() 687 qinv_iec_common(immu, iidx + cnt, 0, IEC_INV_INDEX); in immu_qinv_intr_caches() 693 while ((2 << mask) < cnt) { in immu_qinv_intr_caches() 698 for (i = 0; i < cnt; i++) { in immu_qinv_intr_caches() 699 qinv_iec_common(immu, iidx + cnt, 0, IEC_INV_INDEX); in immu_qinv_intr_caches()
|
H A D | hrtimers.c | 139 int cnt; local 159 for (cnt = 0; cnt < uap->cmds; cnt++, hrcmdp++) {
|
/illumos-gate/usr/src/lib/libvrrpadm/common/ |
H A D | libvrrpadm.c | 113 uint32_t cnt = 0; in vrrp_disable_service_when_no_router() local 119 if (vrrp_list(NULL, VRRP_VRID_NONE, NULL, AF_UNSPEC, &cnt, in vrrp_disable_service_when_no_router() 120 NULL) == VRRP_SUCCESS && cnt == 0) { in vrrp_disable_service_when_no_router() 516 uint32_t *cnt, char *names) in vrrp_list() argument 522 if ((cnt == NULL) || (*cnt != 0 && names == NULL)) in vrrp_list() 536 *cnt = 0; in vrrp_list() 544 list_arg.vfl_cnt = cnt; in vrrp_list()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_soft_ring.c | 359 int cnt; in mac_rx_soft_ring_drain() local 380 cnt = ringp->s_ring_count; in mac_rx_soft_ring_drain() 402 MAC_UPDATE_SRS_COUNT_LOCKED(mac_srs, cnt); in mac_rx_soft_ring_drain() 541 int cnt = 0; in mac_soft_ring_poll() local 557 cnt = ringp->s_ring_count; in mac_soft_ring_poll() 564 cnt++; in mac_soft_ring_poll() 568 ringp->s_ring_count -= cnt; in mac_soft_ring_poll() 586 MAC_UPDATE_SRS_COUNT_LOCKED(mac_srs, cnt); in mac_soft_ring_poll()
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_xaction.c | 643 int cnt; in sip_xaction_init() local 645 for (cnt = 0; cnt < SIP_HASH_SZ; cnt++) { in sip_xaction_init() 646 sip_xaction_hash[cnt].hash_count = 0; in sip_xaction_init() 647 sip_xaction_hash[cnt].hash_head = NULL; in sip_xaction_init() 648 sip_xaction_hash[cnt].hash_tail = NULL; in sip_xaction_init() 650 &sip_xaction_hash[cnt].sip_hash_mutex, NULL); in sip_xaction_init()
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | au_to.c | 761 short cnt = 0; in au_to_cmd() local 773 for (cnt = 0; cnt < argc; cnt++) { in au_to_cmd() 774 len += (short)sizeof (short) + (short)(strlen(argv[cnt]) + 1); in au_to_cmd() 793 for (cnt = 0; cnt < argc; cnt++) { in au_to_cmd() 794 len = (short)(strlen(argv[cnt]) + 1); in au_to_cmd() 796 adr_char(&adr, argv[cnt], len); in au_to_cmd() 801 for (cnt = 0; cnt < envc; cnt++) { in au_to_cmd() 802 len = (short)(strlen(envp[cnt]) + 1); in au_to_cmd() 804 adr_char(&adr, envp[cnt], len); in au_to_cmd()
|
/illumos-gate/usr/src/stand/lib/sa/ |
H A D | stdio.c | 111 ssize_t cnt; in fgets() local 117 cnt = read(stream->_file, &s[bytes], 1); in fgets() 118 if (cnt < 0) { in fgets() 126 } else if (cnt == 0) { in fgets()
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | remcap.c | 126 int i = 0, cnt = 0; in getent() local 168 if (i == cnt) { in getent() 169 cnt = read(tf, ibuf, BUFSIZ); in getent() 170 if (cnt <= 0) { in getent()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioList.cc | 232 size_t cnt; in ReadData() local 238 cnt = len; in ReadData() 241 if (Undefined(pos) || (pos < 0.) || ((int)cnt < 0)) in ReadData() 258 len = cnt; in ReadData()
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_mapping.c | 619 int *cnt, int *max, ns_ldap_search_desc_t *ret) in __ns_ldap_saveSearchDesc() argument 624 *cnt = 0; in __ns_ldap_saveSearchDesc() 630 } else if (*cnt+1 >= *max) { in __ns_ldap_saveSearchDesc() 640 (*sdlist)[*cnt] = ret; in __ns_ldap_saveSearchDesc() 641 (*cnt)++; in __ns_ldap_saveSearchDesc() 642 (*sdlist)[*cnt] = NULL; in __ns_ldap_saveSearchDesc() 663 int cnt, max; in __ns_ldap_getSearchDescriptors() local 680 cnt = 0; in __ns_ldap_getSearchDescriptors() 737 rc = __ns_ldap_saveSearchDesc(&sdlist, &cnt, &max, ret); in __ns_ldap_getSearchDescriptors() 783 &sdlist, &cnt, &max, ret); in __ns_ldap_getSearchDescriptors()
|
/illumos-gate/usr/src/uts/i86pc/io/acpi/acpidev/ |
H A D | acpidev_util.c | 611 size_t i, cnt; in acpidev_gen_unitaddr() local 623 for (cnt = 0, i = 0; fmt[i] != 0 && cnt <= 2; i++) { in acpidev_gen_unitaddr() 629 cnt++; in acpidev_gen_unitaddr() 632 cnt = SIZE_MAX; in acpidev_gen_unitaddr() 635 if (cnt != 1 && cnt != 2) { in acpidev_gen_unitaddr() 642 if (sscanf(uid, fmt, &id1, &id2) != cnt) { in acpidev_gen_unitaddr() 649 if (cnt == 2 && snprintf(buf, len, "%u,%u", id2, id1) >= len) { in acpidev_gen_unitaddr() 653 } else if (cnt == 1 && snprintf(buf, len, "%u", id1) >= len) { in acpidev_gen_unitaddr()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/smbsrv/ |
H A D | smbsrv_pcap.c | 411 int cnt, mlen, n, x; in smb_req_pcap_m() local 420 cnt = mlen; in smb_req_pcap_m() 421 while (cnt > 0) { in smb_req_pcap_m() 422 x = MIN(cnt, st->tbuf_size); in smb_req_pcap_m() 434 cnt -= x; in smb_req_pcap_m()
|
/illumos-gate/usr/src/ucblib/librpcsoc/ |
H A D | svc_tcp.c | 328 register int i, cnt; local 330 for (cnt = len; cnt > 0; cnt -= i, buf += i) { 331 if ((i = write(xprt->xp_sock, buf, cnt)) < 0) {
|
/illumos-gate/usr/src/uts/i86pc/io/fipe/ |
H A D | fipe_pm.c | 1548 uint32_t cnt; in fipe_idle_enter() local 1571 cnt = fipe_gbl_ctrl.cpu_count; in fipe_idle_enter() 1572 ASSERT(cnt < ncpus); in fipe_idle_enter() 1574 cnt, cnt + 1) != cnt); in fipe_idle_enter() 1579 if (cnt + 1 == ncpus) { in fipe_idle_enter() 1614 uint32_t cnt; in fipe_idle_exit() local 1621 cnt = fipe_gbl_ctrl.cpu_count; in fipe_idle_exit() 1622 ASSERT(cnt > 0); in fipe_idle_exit() 1624 cnt, cnt - 1) != cnt); in fipe_idle_exit() 1639 if (cnt == ncpus) { in fipe_idle_exit()
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | xdr_rec.c | 552 skip_input_bytes(RECSTREAM *rstrm, int32_t cnt) in skip_input_bytes() argument 556 printf("skip_input_fragment: cnt = %d\n", cnt); in skip_input_bytes() 558 while (cnt > 0) { in skip_input_bytes() 561 if (! fill_input_buf(rstrm, cnt)) in skip_input_bytes() 565 current = (cnt < current) ? cnt : current; in skip_input_bytes() 567 cnt -= current; in skip_input_bytes()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/ncheck/ |
H A D | ncheck.c | 122 void bread(diskaddr_t bno, char *buf, int cnt); 579 bread(diskaddr_t bno, char *buf, int cnt) in bread() argument 588 for (i = 0; i < cnt; i++) { in bread() 595 got = read((int)fi, buf, cnt); in bread() 597 if (got != cnt) { in bread() 600 bno, cnt, got); in bread() 602 for (i = 0; i < cnt; i++) in bread()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | sym.c | 273 for (; cnt-- > 0; ndx++, sym++) { in dump_symtab() 447 for (sym += ndx; cnt--; sym++) { in print_symstate() 475 for (sym += ndx; cnt--; sym++) { in print_symstate() 481 for (; cnt--; sym++) in print_symstate() 498 for (; cnt--; ndx++) { in print_symstate() 520 for (sym += ndx; cnt--; sym++) in print_symstate() 530 for (sym += ndx; cnt--; sym++) { in print_symstate() 550 for (sym += ndx; cnt--; sym++) in print_symstate() 595 Word cnt; in print_sym() local 655 cnt = symstate->sym.n; in print_sym() [all …]
|