Home
last modified time | relevance | path

Searched full:cnt (Results 1 – 25 of 1239) sorted by relevance

12345678910>>...50

/freebsd/sys/powerpc/powerpc/
H A Dbus_machdep.c238 native_bs_rm_1(bus_space_handle_t bsh, bus_size_t ofs, uint8_t *addr, size_t cnt) in native_bs_rm_1() argument
240 ins8(__ppc_ba(bsh, ofs), addr, cnt); in native_bs_rm_1()
244 native_bs_rm_2(bus_space_handle_t bsh, bus_size_t ofs, uint16_t *addr, size_t cnt) in native_bs_rm_2() argument
246 ins16(__ppc_ba(bsh, ofs), addr, cnt); in native_bs_rm_2()
250 native_bs_rm_4(bus_space_handle_t bsh, bus_size_t ofs, uint32_t *addr, size_t cnt) in native_bs_rm_4() argument
252 ins32(__ppc_ba(bsh, ofs), addr, cnt); in native_bs_rm_4()
256 native_bs_rm_8(bus_space_handle_t bsh, bus_size_t ofs, uint64_t *addr, size_t cnt) in native_bs_rm_8() argument
258 ins64(__ppc_ba(bsh, ofs), addr, cnt); in native_bs_rm_8()
262 native_bs_rr_1(bus_space_handle_t bsh, bus_size_t ofs, uint8_t *addr, size_t cnt) in native_bs_rr_1() argument
266 while (cnt--) in native_bs_rr_1()
[all …]
H A Duio_machdep.c66 size_t cnt; in uiomove_fromphys() local
85 cnt = iov->iov_len; in uiomove_fromphys()
86 if (cnt == 0) { in uiomove_fromphys()
91 if (cnt > n) in uiomove_fromphys()
92 cnt = n; in uiomove_fromphys()
94 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
105 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
108 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
119 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
122 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/usr.sbin/nfsdumpstate/
H A Dnfsdumpstate.c120 int cnt, i; in dump_openstate() local
136 cnt = 0; in dump_openstate()
137 while (dp[cnt].ndcl_clid.nclid_idlen > 0 && cnt < DUMPSIZE) { in dump_openstate()
138 printf("%-13s ", client_flags(dp[cnt].ndcl_flags)); in dump_openstate()
140 dp[cnt].ndcl_nopenowners, in dump_openstate()
141 dp[cnt].ndcl_nopens, in dump_openstate()
142 dp[cnt].ndcl_nlockowners, in dump_openstate()
143 dp[cnt].ndcl_nlocks, in dump_openstate()
144 dp[cnt].ndcl_ndelegs, in dump_openstate()
145 dp[cnt].ndcl_nolddelegs); in dump_openstate()
[all …]
/freebsd/usr.bin/tail/
H A Dread.c143 int blen, cnt, recno, wrap; in lines() local
148 blen = cnt = recno = wrap = 0; in lines()
152 if (++cnt > blen) { in lines()
155 p = sp + cnt - 1; in lines()
159 if ((int)llines[recno].blen < cnt) { in lines()
160 llines[recno].blen = cnt + 256; in lines()
165 bcopy(sp, llines[recno].l, llines[recno].len = cnt); in lines()
166 cnt = 0; in lines()
179 if (cnt) { in lines()
182 llines[recno].len = cnt; in lines()
[all …]
/freebsd/lib/libcrypt/
H A Dcrypt-sha256.c69 size_t salt_len, key_len, cnt, rounds; in crypt_sha256() local
127 for (cnt = key_len; cnt > 32; cnt -= 32) in crypt_sha256()
129 SHA256_Update(&ctx, alt_result, cnt); in crypt_sha256()
133 for (cnt = key_len; cnt > 0; cnt >>= 1) in crypt_sha256()
134 if ((cnt & 1) != 0) in crypt_sha256()
146 for (cnt = 0; cnt < key_len; ++cnt) in crypt_sha256()
154 for (cnt = key_len; cnt >= 32; cnt -= 32) { in crypt_sha256()
158 memcpy(cp, temp_result, cnt); in crypt_sha256()
164 for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt) in crypt_sha256()
172 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in crypt_sha256()
[all …]
H A Dcrypt-sha512.c69 size_t salt_len, key_len, cnt, rounds; in crypt_sha512() local
127 for (cnt = key_len; cnt > 64; cnt -= 64) in crypt_sha512()
129 SHA512_Update(&ctx, alt_result, cnt); in crypt_sha512()
133 for (cnt = key_len; cnt > 0; cnt >>= 1) in crypt_sha512()
134 if ((cnt & 1) != 0) in crypt_sha512()
146 for (cnt = 0; cnt < key_len; ++cnt) in crypt_sha512()
154 for (cnt = key_len; cnt >= 64; cnt -= 64) { in crypt_sha512()
158 memcpy(cp, temp_result, cnt); in crypt_sha512()
164 for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt) in crypt_sha512()
172 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in crypt_sha512()
[all …]
/freebsd/bin/pax/
H A Dbuf_subs.c205 off_t cnt; in appnd_start() local
234 if ((cnt = (skcnt/blksz) * blksz) < skcnt) in appnd_start()
235 cnt += blksz; in appnd_start()
236 if (ar_rev((off_t)cnt) < 0) in appnd_start()
244 if ((cnt -= skcnt) > 0) { in appnd_start()
260 bufpt = buf + cnt; in appnd_start()
369 pback(char *pt, int cnt) in pback() argument
371 bufpt -= cnt; in pback()
372 memcpy(bufpt, pt, cnt); in pback()
388 off_t cnt; in rd_skip() local
[all …]
/freebsd/contrib/ofed/libibmad/
H A Ddump.c799 int cnt; in mad_dump_portinfo() local
801 cnt = _dump_fields(buf, bufsz, val, IB_PORT_FIRST_F, IB_PORT_LAST_F); in mad_dump_portinfo()
802 if (cnt < 0) in mad_dump_portinfo()
805 _dump_fields(buf + cnt, bufsz - cnt, val, in mad_dump_portinfo()
821 int cnt, cnt2; in mad_dump_perfcounters() local
823 cnt = _dump_fields(buf, bufsz, val, in mad_dump_perfcounters()
825 if (cnt < 0) in mad_dump_perfcounters()
828 cnt2 = _dump_fields(buf + cnt, bufsz - cnt, val, in mad_dump_perfcounters()
833 _dump_fields(buf + cnt + cnt2, bufsz - cnt - cnt2, val, in mad_dump_perfcounters()
839 int cnt; in mad_dump_perfcounters_ext() local
[all …]
/freebsd/crypto/libecc/src/nn/
H A Dnn_logical.c20 * nn_lshift_fixedlen: left logical shift in N, i.e. compute out = (in << cnt).
22 * Aliasing is possible for 'in' and 'out', i.e. x <<= cnt can be computed
23 * using nn_lshift_fixedlen(x, x, cnt).
28 * 'out' parameters and the value of 'cnt'. It does not depend on the
39 int nn_lshift_fixedlen(nn_t out, nn_src_t in, bitcnt_t cnt) in nn_lshift_fixedlen() argument
50 dec = cnt / WORD_BITS; in nn_lshift_fixedlen()
51 hshift = cnt % WORD_BITS; in nn_lshift_fixedlen()
75 * nn_lshift: left logical shift in N, i.e. compute out = (in << cnt).
77 * Aliasing is possible for 'in' and 'out', i.e. x <<= cnt can be computed
78 * using nn_lshift(x, x, cnt).
[all …]
/freebsd/bin/dd/
H A Dconv.c56 size_t cnt; in def() local
59 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp) in def()
100 size_t cnt, maxlen; in block() local
111 for (inp = in.db, cnt = in.dbrcnt; cnt && *inp++ != '\n'; --cnt) in block()
113 if (!cnt) { in block()
120 in.dbcnt = cnt - 1; in block()
121 in.dbp = inp + cnt - 1; in block()
132 for (cnt = 0; cnt < maxlen && (ch = *inp++) != '\n'; in block()
133 ++cnt) in block()
136 for (cnt = 0; cnt < maxlen && (ch = *inp++) != '\n'; in block()
[all …]
H A Ddd.c134 u_int cnt; in setup() local
259 for (cnt = 0; cnt <= 0377; ++cnt) in setup()
260 casetab[cnt] = ctab[cnt]; in setup()
262 for (cnt = 0; cnt <= 0377; ++cnt) in setup()
263 casetab[cnt] = cnt; in setup()
270 for (cnt = 200; cnt <= 0377; ++cnt) in setup()
271 casetab[cnt] = casetab[cnt & 0x7f]; in setup()
274 for (cnt = 0; cnt <= 0377; ++cnt) in setup()
275 casetab[cnt] = tolower(casetab[cnt]); in setup()
277 for (cnt = 0; cnt <= 0377; ++cnt) in setup()
[all …]
/freebsd/usr.bin/paste/
H A Dpaste.c111 int cnt; member
119 int cnt; in parallel() local
126 for (cnt = 0, head = tmp = NULL; (p = *argv); ++argv, ++cnt) { in parallel()
134 lp->cnt = cnt; in parallel()
144 for (opencnt = cnt; opencnt;) { in parallel()
147 if (output && lp->cnt && in parallel()
148 (ch = delim[(lp->cnt - 1) % delimcnt])) in parallel()
156 if (output && lp->cnt && in parallel()
157 (ch = delim[(lp->cnt - 1) % delimcnt])) in parallel()
167 for (cnt = 0; cnt < lp->cnt; ++cnt) in parallel()
[all …]
/freebsd/contrib/nvi/ex/
H A Dex_z.c34 recno_t cnt, equals, lno; in ex_z() local
47 * a line from the cnt if using the window size to leave room for in ex_z()
51 cnt = cmdp->count; in ex_z()
53 cnt = O_VAL(sp, O_WINDOW) - 1; in ex_z()
61 case E_C_CARAT: /* Display cnt * 2 before the line. */ in ex_z()
63 if (lno > cnt * 2) in ex_z()
64 cmdp->addr1.lno = (lno - cnt * 2) + 1; in ex_z()
67 cmdp->addr2.lno = (cmdp->addr1.lno + cnt) - 1; in ex_z()
70 cmdp->addr1.lno = lno > cnt ? (lno - cnt) + 1 : 1; in ex_z()
82 cnt = (cnt - 1) / 2; in ex_z()
[all …]
/freebsd/share/doc/usd/12.vi/viapwh/
H A Dvi.apwh.ms67 Many \fBvi\fR commands have an optional count. \fB[cnt]\fR
230 .IP "[cnt]<bs> or [cnt]h or [cnt]\(<-" 16
234 If cnt is given, these commands move that many spaces.
235 .IP "[cnt]^N or [cnt]j or [cnt]\(da or [cnt]<lf>" 16
241 .IP "[cnt]^P or [cnt]k or [cnt]\(ua" 16
246 .IP "[cnt]<sp> or [cnt]l or [cnt]\(->" 16
250 .IP [cnt]- 16
253 .IP "[cnt]+ or [cnt]<cr>" 16
257 .IP "[cnt]$" 16
259 If there is a count, move to the end of the line "cnt" lines
[all …]
/freebsd/usr.bin/tr/
H A Dtr.c66 wint_t ch, cnt, lastch; in main() local
213 s1.cnt == 1 && s2.cnt == 1) { in main()
221 } while (s1.state == CCLASS_LOWER && s1.cnt > 1); in main()
226 } while (s2.state == CCLASS_UPPER && s2.cnt > 1); in main()
230 s1.cnt == 1 && s2.cnt == 1) { in main()
238 } while (s1.state == CCLASS_UPPER && s1.cnt > 1); in main()
243 } while (s2.state == CCLASS_LOWER && s2.cnt > 1); in main()
267 for (cnt = 0; cnt < WINT_MAX; cnt++) { in main()
268 if (Cflag && !iswrune(cnt)) in main()
270 if (cmap_lookup(map, cnt) == OOBCH) { in main()
[all …]
/freebsd/contrib/netcat/
H A Dsocks.c134 size_t cnt; in socks_connect() local
168 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
169 if (cnt != 3) in socks_connect()
170 err(1, "write failed (%zu/3)", cnt); in socks_connect()
172 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect()
173 if (cnt != 2) in socks_connect()
174 err(1, "read failed (%zu/3)", cnt); in socks_connect()
221 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
222 if (cnt != wlen) in socks_connect()
223 err(1, "write failed (%zu/%zu)", cnt, wlen); in socks_connect()
[all …]
/freebsd/sys/i386/i386/
H A Duio_machdep.c63 size_t cnt; in uiomove_fromphys() local
81 cnt = iov->iov_len; in uiomove_fromphys()
82 if (cnt == 0) { in uiomove_fromphys()
87 if (cnt > n) in uiomove_fromphys()
88 cnt = n; in uiomove_fromphys()
90 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
99 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
102 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
114 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
117 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/sys/arm/arm/
H A Duio_machdep.c63 size_t cnt; in uiomove_fromphys() local
82 cnt = iov->iov_len; in uiomove_fromphys()
83 if (cnt == 0) { in uiomove_fromphys()
88 if (cnt > n) in uiomove_fromphys()
89 cnt = n; in uiomove_fromphys()
91 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
99 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
102 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
113 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
116 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_safe_c_api.h36 #define KMP_MEMCPY(dst, src, cnt) memcpy_s(dst, cnt, src, cnt) argument
49 #define KMP_STRNCPY(dst, src, cnt) strncpy_s(dst, cnt, src, cnt)
52 #define KMP_VSNPRINTF(dst, cnt, fmt, arg) \
53 vsnprintf_s(dst, cnt, _TRUNCATE, fmt, arg)
64 #define KMP_MEMCPY_S(dst, bsz, src, cnt) memcpy(dst, src, cnt)
[all...]
/freebsd/sys/riscv/riscv/
H A Duio_machdep.c60 size_t cnt; in uiomove_fromphys() local
80 cnt = iov->iov_len; in uiomove_fromphys()
81 if (cnt == 0) { in uiomove_fromphys()
86 if (cnt > n) in uiomove_fromphys()
87 cnt = n; in uiomove_fromphys()
89 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
100 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
103 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
112 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
115 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/sys/arm64/arm64/
H A Duio_machdep.c60 size_t cnt; in uiomove_fromphys() local
80 cnt = iov->iov_len; in uiomove_fromphys()
81 if (cnt == 0) { in uiomove_fromphys()
86 if (cnt > n) in uiomove_fromphys()
87 cnt = n; in uiomove_fromphys()
89 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
100 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
103 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
112 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
115 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/sys/amd64/amd64/
H A Duio_machdep.c62 size_t cnt; in uiomove_fromphys() local
82 cnt = iov->iov_len; in uiomove_fromphys()
83 if (cnt == 0) { in uiomove_fromphys()
88 if (cnt > n) in uiomove_fromphys()
89 cnt = n; in uiomove_fromphys()
91 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
102 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
105 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
114 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
117 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dt-sem.c165 int cnt = 0; local
208 cnt = 0;
215 ++cnt;
217 } while (r < 0 && cnt <= MAX_CNT);
223 cnt = 0;
230 ++cnt;
232 } while (r < 0 && cnt <= MAX_CNT);
238 cnt = 0;
245 ++cnt;
247 } while (r <= 0 && cnt <= MAX_CNT);
[all …]
/freebsd/sys/dev/sound/pcm/
H A Dfeeder_mixer.c136 uint32_t cnt, maxfeed; in feed_mixer_rec() local
148 cnt = sndbuf_getsize(b); in feed_mixer_rec()
152 cnt = FEEDER_FEED(c->feeder->source, c, b->tmpbuf, in feed_mixer_rec()
153 min(cnt, maxfeed), c->bufhard); in feed_mixer_rec()
154 if (cnt != 0) { in feed_mixer_rec()
155 sndbuf_acquire(b, b->tmpbuf, cnt); in feed_mixer_rec()
156 cnt = sndbuf_getfree(b); in feed_mixer_rec()
158 } while (cnt != 0); in feed_mixer_rec()
189 cnt = sndbuf_getfree(bs); in feed_mixer_rec()
190 if (cnt < sndbuf_getalign(bs)) { in feed_mixer_rec()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_uio.c69 ulong_t cnt; in zfs_uiomove_iov() local
73 cnt = MIN(iov->iov_len - skip, n); in zfs_uiomove_iov()
75 memcpy(iov->iov_base + skip, p, cnt); in zfs_uiomove_iov()
77 memcpy(p, iov->iov_base + skip, cnt); in zfs_uiomove_iov()
78 skip += cnt; in zfs_uiomove_iov()
85 uio->uio_resid -= cnt; in zfs_uiomove_iov()
86 uio->uio_loffset += cnt; in zfs_uiomove_iov()
87 p = (caddr_t)p + cnt; in zfs_uiomove_iov()
88 n -= cnt; in zfs_uiomove_iov()
98 ulong_t cnt; in zfs_uiomove_bvec_impl() local
[all …]

12345678910>>...50