Home
last modified time | relevance | path

Searched refs:cnt (Results 151 – 175 of 879) sorted by relevance

12345678910>>...36

/illumos-gate/usr/src/uts/common/sys/
H A Dmac_impl.h548 #define MAC_RX_RING_RESERVED(m, cnt) { \ argument
550 (m)->mi_rxrings_rsvd += (cnt); \
551 (m)->mi_rxrings_avail -= (cnt); \
555 #define MAC_RX_RING_RELEASED(m, cnt) { \ argument
557 (m)->mi_rxrings_rsvd -= (cnt); \
558 (m)->mi_rxrings_avail += (cnt); \
576 #define MAC_TX_RING_RESERVED(m, cnt) { \ argument
578 (m)->mi_txrings_rsvd += (cnt); \
579 (m)->mi_txrings_avail -= (cnt); \
584 (m)->mi_txrings_rsvd -= (cnt); \
[all …]
/illumos-gate/usr/src/cmd/rpcgen/
H A Drpc_util.c374 int cnt; in printbuf() local
380 cnt = 8 - (i % TABSIZE); in printbuf()
383 cnt = 1; in printbuf()
385 while (cnt--) in printbuf()
395 int cnt; in printwhere() local
401 cnt = 8 - (i % TABSIZE); in printwhere()
403 cnt = 1; in printwhere()
405 while (cnt--) in printwhere()
/illumos-gate/usr/src/lib/libsec/common/
H A Daclcheck.c75 int cnt; in aclent_aclcheck() local
132 cnt = (tally.def_user.count)++; in aclent_aclcheck()
135 cnt = (tally.def_group.count)++; in aclent_aclcheck()
138 cnt = (tally.user.count)++; in aclent_aclcheck()
141 cnt = (tally.group.count)++; in aclent_aclcheck()
145 if (cnt == 0) { in aclent_aclcheck()
150 if (check_dup(cnt, *idp, aclentp->a_id, in aclent_aclcheck()
156 (*idp)[cnt] = aclentp->a_id; in aclent_aclcheck()
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_sched.c1447 (cnt)++; \
2489 int cnt = 0; in mac_srs_pick_chain() local
2530 cnt++; in mac_srs_pick_chain()
2574 int cnt = 0; in mac_rx_srs_drain() local
2812 int cnt = 0; in mac_rx_srs_drain_bw() local
2847 cnt = 0; in mac_rx_srs_drain_bw()
3456 int cnt, sz; in mac_tx_srs_no_desc() local
3510 int cnt, sz; in mac_tx_srs_enqueue() local
3880 int cnt, sz; in mac_tx_bw_mode() local
4794 int cnt; in mac_tx_sring_enqueue() local
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/gen/
H A Dbase.c131 int cnt; in main() local
136 for (cnt=argc--;argc;argc--) { in main()
137 tmp = strdup(argv[cnt-argc]); in main()
139 dirname(argv[cnt-argc]), in main()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_ioctl.c939 uint8_t cnt; in ql_nv_util_load() local
996 for (cnt = 0; cnt < ha->nvram_cache->size / 4; cnt++) { in ql_nv_util_load()
1008 for (cnt = 0; cnt < ha->nvram_cache->size / 2; cnt++) { in ql_nv_util_load()
1104 int cnt; in ql_get_nvram() local
1109 for (cnt = 0; cnt < size / 4; cnt++) { in ql_get_nvram()
1123 for (cnt = 0; cnt < size / 2; cnt++) { in ql_get_nvram()
1182 cnt = 0; in ql_vpd_load()
1221 for (cnt = 0; cnt < vpd_size / 4; cnt++) { in ql_vpd_load()
1321 for (cnt = 0; cnt < vpd_size / 4; cnt++) { in ql_vpd_dump()
1913 cnt = 0; in ql_adm_device_list()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-shm.c159 int cnt = 0; local
175 while (*shm == 1 && cnt++ < MAX_CNT)
177 SM_TEST(cnt <= MAX_CNT);
187 while (*shm != 1 && cnt++ < MAX_CNT)
189 SM_TEST(cnt <= MAX_CNT);
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dcpu_acpi.h93 #define CPU_ACPI_PSTATES_SIZE(cnt) (cnt * sizeof (cpu_acpi_pstate_t)) argument
95 #define CPU_ACPI_TSTATES_SIZE(cnt) (cnt * sizeof (cpu_acpi_tstate_t)) argument
97 #define CPU_ACPI_CSTATES_SIZE(cnt) (cnt * sizeof (cpu_acpi_cstate_t)) argument
/illumos-gate/usr/src/cmd/lockstat/
H A Dsym.c143 uint_t cnt; in symtab_init() local
155 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init()
164 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init()
165 if (cnt == strindex) in symtab_init()
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dipft_pc.c188 static int pcap_read(buf, cnt) in pcap_read() argument
190 int cnt;
207 n = MIN(i, cnt);
217 static int pcap_readip(buf, cnt, ifn, dir) in pcap_readip() argument
219 int cnt, *dir;
247 n = MIN(i, cnt);
/illumos-gate/usr/src/cmd/fs.d/ufs/volcopy/
H A Dvolcopy.c310 int cnt; in main() local
734 int cnt, num, size; in mem_setup() local
793 for (cnt = 0; cnt < BUFCNT; cnt++) { in mem_setup()
803 if ((Buf[cnt] = shmat(Shm_id[cnt], 0, 0)) == (void *)-1) in mem_setup()
809 Cnts[cnt] = (int *)(Buf[cnt] + Bufsz); in mem_setup()
1144 int cnt; in cleanup() local
1147 for (cnt = 0; cnt < BUFCNT; cnt++) { in cleanup()
1638 int cnt; in getinfs() local
1644 cnt = SBSIZE/DEV_BSIZE; in getinfs()
1656 int cnt; in getoutfs() local
[all …]
/illumos-gate/usr/src/uts/common/io/mii/
H A Dmii.c476 int cnt = 0; in mii_get_loopmodes() local
479 lmodes[cnt].lb_type = normal; in mii_get_loopmodes()
480 (void) strlcpy(lmodes[cnt].key, "normal", sizeof (lmodes[cnt].key)); in mii_get_loopmodes()
482 cnt++; in mii_get_loopmodes()
490 sizeof (lmodes[cnt].key)); in mii_get_loopmodes()
492 cnt++; in mii_get_loopmodes()
500 cnt++; in mii_get_loopmodes()
508 cnt++; in mii_get_loopmodes()
516 cnt++; in mii_get_loopmodes()
523 return (cnt); in mii_get_loopmodes()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Denc_des.c238 cfb64_is(unsigned char *data, int cnt) in cfb64_is() argument
244 if (cnt-- < 1) in cfb64_is()
249 if (cnt != sizeof (Block)) { in cfb64_is()
285 printd(data, cnt); in cfb64_is()
316 cfb64_reply(unsigned char *data, int cnt) in cfb64_reply() argument
321 if (cnt-- < 1) in cfb64_reply()
346 printd(data, cnt); in cfb64_reply()
415 cfb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) in cfb64_printsub() argument
448 for (i = 3; i < cnt; i++) { in cfb64_printsub()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/
H A Dzfs_acl_chmod_rwx_002_pos.ksh68 eval typeset -i cnt=\${#${arr_name}[@]}
69 (( ind = $RANDOM % cnt ))
174 typeset -i cnt
184 (( cnt = ($RANDOM % ${#a_access[@]}) + 1 ))
185 acl_access=$(form_random_str a_access $cnt '/')
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_client.c216 uint_t cnt; in auclnt_consume_data() local
255 return (cnt); in auclnt_consume_data()
284 uint_t cnt; in auclnt_produce_data() local
324 return (cnt); in auclnt_produce_data()
331 uint_t cnt; in auclnt_read() local
369 cnt = min(cnt, sp->s_nframes - tidx); in auclnt_read()
370 cnt = min(cnt, (uio->uio_resid / framesz)); in auclnt_read()
406 uint_t cnt; in auclnt_write() local
437 cnt = min(cnt, sp->s_nframes - hidx); in auclnt_write()
438 cnt = min(cnt, (uio->uio_resid / framesz)); in auclnt_write()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dfru_access.c391 int cnt; in pack_segment_data() local
395 for (cnt = segcnt + 1; cnt > 0; cnt--) { in pack_segment_data()
427 int cnt; in build_offset_tbl() local
431 for (cnt = 0; cnt < segcnt; cnt++) { in build_offset_tbl()
436 offset_tbl[cnt].segnum = cnt; in build_offset_tbl()
443 offset_tbl[cnt].segnum = -1; in build_offset_tbl()
447 offset_tbl[cnt].length = 0; in build_offset_tbl()
448 offset_tbl[cnt].fixed = 1; in build_offset_tbl()
461 int cnt = 0; in hole_discovery() local
464 for (cnt = segcnt + 1; cnt > 0; cnt--) { in hole_discovery()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/quot/
H A Dquot.c380 bread(int fd, diskaddr_t bno, char *buf, int cnt) in bread() argument
389 if ((ret = read(fd, buf, cnt)) != cnt) { in bread()
391 ret, cnt); in bread()
423 int cnt; in report() local
443 for (cnt = 0, dp = &du[0]; dp && cnt != ndu; dp++, cnt++) { in report()
560 int i, cnt = 0; in sortprep() local
576 dp[cnt++] = ep; in sortprep()
/illumos-gate/usr/src/lib/libsecdb/common/
H A Dchkauthattr.c156 int cnt = 0; in _enum_common() local
171 cb, ctxt, pres, wantattr, &cnt, profs); in _enum_common()
176 free_proflist(profs, cnt); in _enum_common()
181 if ((cnt == 0 || strcmp(profs[cnt-1], PROFILE_STOP) != 0) && in _enum_common()
185 wantattr, &cnt, profs); in _enum_common()
189 wantattr, &cnt, profs); in _enum_common()
198 free_proflist(profs, cnt); in _enum_common()
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dl2_dbg.c179 u32_t cnt = 0; in dbg_def_sb_dpc() local
204 for(cnt = 0; cnt < dpc_loop_cnt; cnt++) in dbg_def_sb_dpc()
281 u32_t cnt = 0; in dbg_sb_dpc() local
299 for(cnt = 0; cnt < dpc_loop_cnt; cnt++) in dbg_sb_dpc()
/illumos-gate/usr/src/cmd/audio/include/
H A DAudioHdr.h157 virtual Double Bytes_to_Time(off_t cnt) const;
161 virtual off_t Bytes_to_Bytes(off_t& cnt) const;
162 virtual size_t Bytes_to_Bytes(size_t& cnt) const;
165 virtual Double Samples_to_Time(unsigned long cnt) const;
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_isoch_xmit.c204 int idx, cnt; in av1394_it_xmit() local
207 cnt = xmit->tx_xfer.xf_full_cnt; in av1394_it_xmit()
211 if ((idx < 0) || (cnt < 0) || (cnt > itp->it_nempty)) { in av1394_it_xmit()
217 if (cnt > 0) { in av1394_it_xmit()
536 bp->tb_buf.size = cnt * pktsz; in av1394_it_ixl_bld_buf()
737 av1394_ic_dma_sync_frames(icp, idx, cnt, in av1394_it_dma_sync_frames()
966 itp->it_nempty -= cnt; in av1394_it_add_frames()
968 itp->it_nfull += cnt; in av1394_it_add_frames()
983 av1394_it_dma_sync_frames(icp, idx, cnt); in av1394_it_add_frames()
1012 *cnt = itp->it_nempty; in av1394_it_wait_frames()
[all …]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_prop_decode.c116 int cnt = 0; in di_prop_fm_decode_ints() local
129 cnt++; in di_prop_fm_decode_ints()
135 if (cnt == 0) in di_prop_fm_decode_ints()
152 if ((intp = malloc(cnt * sizeof (int))) == NULL) { in di_prop_fm_decode_ints()
161 for (n = 0; n < cnt; n++, tmp++) { in di_prop_fm_decode_ints()
179 *nelements = cnt; in di_prop_fm_decode_ints()
191 int cnt = 0; in di_prop_fm_decode_strings() local
212 cnt++; in di_prop_fm_decode_strings()
219 if (cnt == 0) in di_prop_fm_decode_strings()
240 for (n = 0; n < cnt; n++) { in di_prop_fm_decode_strings()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dfindevs.c689 int cnt; in add_disk2controller() local
766 int cnt; in add_int2array() local
772 cnt = 0; in add_int2array()
774 for (; pa[cnt] != -1; cnt++) in add_int2array()
801 int cnt; in add_ptr2array() local
807 cnt = 0; in add_ptr2array()
809 for (; pa[cnt]; cnt++) in add_ptr2array()
1191 int cnt = 0; in get_disk_name_from_path() local
1205 cnt++; in get_disk_name_from_path()
1226 int cnt; in get_byte_prop() local
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dsid.c399 int cnt = 0; in kcrsid_sidcount() local
407 cnt++; in kcrsid_sidcount()
410 cnt += kcr->kr_sidlist->ksl_nsid; in kcrsid_sidcount()
411 return (cnt); in kcrsid_sidcount()
518 int cnt; in kcrsid_gidstosids() local
523 cnt = 0; in kcrsid_gidstosids()
537 cnt = 0; in kcrsid_gidstosids()
541 cnt++; in kcrsid_gidstosids()
546 if (cnt == 0) { in kcrsid_gidstosids()
/illumos-gate/usr/src/uts/i86xpv/vm/
H A Dseg_mf.c583 grant_ref_t *grefs, uint_t cnt, domid_t domid) in segmf_add_grefs() argument
622 for (i = 0; i < cnt; i++) { in segmf_add_grefs()
631 fc = segmf_fault_gref_range(seg, addr, cnt); in segmf_add_grefs()
634 for (i = 0; i < cnt; i++) { in segmf_add_grefs()
656 if (cnt > SEGMF_MAX_GREFS) { in segmf_release_grefs()
664 bzero(mapop, sizeof (gnttab_unmap_grant_ref_t) * cnt); in segmf_release_grefs()
671 for (i = 0; i < cnt; i++) { in segmf_release_grefs()
721 if (cnt > SEGMF_MAX_GREFS) { in segmf_fault_gref_range()
729 bzero(mapop, sizeof (gnttab_map_grant_ref_t) * cnt); in segmf_fault_gref_range()
737 for (i = 0; i < cnt; i++) { in segmf_fault_gref_range()
[all …]

12345678910>>...36