Searched refs:cnt (Results 426 - 450 of 1640) sorted by relevance

<<11121314151617181920>>

/netbsd-current/bin/dd/
H A Dmisc.c166 static size_t cnt = 0; /* Internal counter to allow wbuf to wrap */ local
172 wbuf[cnt++] = str[i];
174 if (cnt >= sizeof(wbuf)) {
175 (void)write(STDERR_FILENO, wbuf, cnt);
176 cnt = 0;
181 (void)write(STDERR_FILENO, wbuf, cnt);
182 cnt = 0;
/netbsd-current/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/
H A Dnouveau_nvkm_subdev_bios_i2c.c34 dcb_i2c_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument
37 u16 dcb = dcb_table(bios, ver, hdr, cnt, len);
53 *cnt = nvbios_rd08(bios, i2c + 2);
58 *cnt = 16;
68 u8 hdr, cnt; local
69 u16 i2c = dcb_i2c_table(bios, ver, &hdr, &cnt, len);
70 if (i2c && idx < cnt)
H A Dnouveau_nvkm_subdev_bios_dcb.c33 dcb_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) argument
55 *cnt = nvbios_rd08(bios, dcb + 2);
64 *cnt = (i2c - dcb) / 8;
73 *cnt = (i2c - dcb) / 10;
106 u8 hdr, cnt; local
107 u16 dcb = dcb_table(bios, ver, &hdr, &cnt, len);
108 if (dcb && idx < cnt)
/netbsd-current/sys/kern/
H A Dsys_pipe.c296 pipe->pipe_buffer.cnt = 0;
322 pipe->pipe_buffer.cnt = 0;
429 if (atomic_load_relaxed(&bp->cnt) == 0 &&
436 ocnt = bp->cnt;
447 if (bp->cnt > 0) {
449 if (size > bp->cnt)
450 size = bp->cnt;
464 bp->cnt -= size;
471 if (bp->cnt == 0) {
542 if (bp->cnt < MINPIPESIZ
[all...]
/netbsd-current/external/bsd/elftoolchain/dist/libdwarf/
H A Dlibdwarf_init.c40 Dwarf_Unsigned cnt; local
66 cnt = m->get_section_count(obj);
68 if (cnt == 0) {
73 dbg->dbg_seccnt = cnt;
75 if ((dbg->dbg_section = calloc(cnt + 1, sizeof(Dwarf_Section))) ==
81 for (i = 0; i < cnt; i++) {
97 dbg->dbg_section[cnt].ds_name = NULL;
/netbsd-current/sys/arch/rs6000/mca/
H A Dmca_machdep.c280 bus_size_t cnt; local
302 cnt = map->dm_segs[0].ds_len;
313 if ((cnt % 2) != 0) {
314 panic("_mca_bus_dmamap_sync: 16bit DMA and cnt %lu odd",
315 cnt);
319 cnt /= 2;
346 bus_space_write_1(dmaiot, dmaexech, 0, ((cnt - 1) >> 0) & 0xff);
348 bus_space_write_1(dmaiot, dmaexech, 0, ((cnt - 1) >> 8) & 0xff);
/netbsd-current/sys/arch/hpc/stand/hpcboot/
H A Dfile_http.cpp305 int cnt, ret; local
329 for (cnt = 0; ret = _recv_buffer(h, buf, TMP_BUFFER_SIZE - 1);
330 cnt += ret) {
347 header_size = cnt;
364 size_t cnt, total = 0; local
367 cnt = recv(h, buf + total, size - total, 0);
368 total += cnt;
370 size, total, cnt));
371 } while (total < size && cnt > 0);
/netbsd-current/sys/arch/alpha/common/
H A Dshared_intr.c400 unsigned int cnt = 0; local
404 cnt++;
407 return cnt;
415 unsigned int cnt = alpha_shared_intr_q_count_handlers(intr_q); local
419 ci->ci_nintrhand += cnt;
420 KASSERT(cnt <= ci->ci_nintrhand);
428 unsigned int cnt = alpha_shared_intr_q_count_handlers(intr_q); local
432 KASSERT(cnt <= ci->ci_nintrhand);
433 ci->ci_nintrhand -= cnt;
/netbsd-current/bin/rcp/
H A Dutil.c162 if (bp->cnt >= size)
167 bp->cnt = 0;
172 bp->cnt = size;
/netbsd-current/external/bsd/kyua-cli/dist/utils/process/
H A Dsystembuf_test.cpp49 std::size_t cnt = 0; local
56 cnt++;
58 ATF_REQUIRE_EQ(cnt, length);
/netbsd-current/sys/arch/ews4800mips/stand/common/
H A Ddevice_test.c205 int i, err, cnt; local
210 blk_to_2d_position(i, &pos, &cnt);
211 err = ROM_FD_RW(0, pos, cnt, buf);
/netbsd-current/external/mpl/dhcp/dist/tests/
H A Dt_api.c745 int cnt; local
748 cnt = 0;
750 while ((p = strtok(line, "\t")) && (cnt < T_MAXTOKS)) {
753 ++cnt;
756 return(cnt);
761 int cnt; local
764 cnt = 1;
769 printf("\t%d\t%s\n", cnt, pts->func_name);
771 ++cnt;
785 int cnt; local
[all...]
/netbsd-current/sys/external/bsd/ena-com/
H A Dena_eth_com.h103 u16 tail, next_to_comp, cnt; local
107 cnt = tail - next_to_comp;
109 return io_sq->q_depth - 1 - cnt;
/netbsd-current/external/lgpl3/gmp/dist/mpn/x86_64/coreihwl/
H A Dgcd_22.asm71 define(`cnt', `%rax')
89 rep;bsf t0, cnt C tzcnt!
102 sub cnt, t0
104 shrx( cnt, u0, u0)
105 shrx( cnt, u1, u1)
128 rep;bsf t0, cnt C tzcnt!
/netbsd-current/external/lgpl3/gmp/dist/mpn/arm/
H A Dlshiftc.asm46 define(`cnt', `r3')
55 rsb tnc, cnt, #32
58 mov r7, r6, lsl cnt
77 mov r7, r6, lsl cnt
82 mov r7, r8, lsl cnt
88 mov r7, r6, lsl cnt
H A Dlshift.asm46 define(`cnt', `r3')
55 rsb tnc, cnt, #32
57 mov r7, r4, lsl cnt
73 mov r7, r6, lsl cnt
77 mov r7, r8, lsl cnt
83 mov r7, r6, lsl cnt
H A Drshift.asm46 define(`cnt', `r3')
53 rsb tnc, cnt, #32
55 mov r7, r4, lsr cnt
71 mov r7, r6, lsr cnt
75 mov r7, r8, lsr cnt
81 mov r7, r6, lsr cnt
/netbsd-current/external/bsd/openldap/dist/servers/slapd/
H A Dsyntax.c261 int cnt; local
263 for ( cnt = 0; def->sd_sups[cnt] != NULL; cnt++ )
266 ssyn->ssyn_sups = (Syntax **)SLAP_CALLOC( cnt + 1,
273 for ( cnt = 0; def->sd_sups[cnt] != NULL; cnt++ ) {
274 ssyn->ssyn_sups[cnt] = syn_find( def->sd_sups[cnt] );
[all...]
/netbsd-current/lib/libcurses/
H A Din_wchstr.c126 int x = 0, cw = 0, cnt = 0; local
142 while ((x < win->maxx) && ((n < 0) || ((n > 1) && (cnt < n - 1)))) {
155 cnt++;
/netbsd-current/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/pb_ds/detail/ov_tree_map_/
H A Derase_fn_imps.hpp149 _GLIBCXX_DEBUG_ONLY(size_type cnt = 0;)
155 _GLIBCXX_DEBUG_ONLY(++cnt;)
156 _GLIBCXX_DEBUG_ASSERT(cnt != m_size);
/netbsd-current/external/lgpl3/mpfr/dist/src/
H A Dsub1sp1_extracted.c114 uint32_t cnt = MPFR_Lib_Clz_count_leading_zeros(a0_base); local
116 if (cnt == (uint32_t)0U)
122 a0 = a0_base << cnt | sb_1 >> ((uint32_t)64U - cnt);
125 uint64_t sb_2 = sb_1 << cnt;
129 return MPFR_Add1sp1_mk_state(sh, bx - (int64_t)cnt, rb, sb);
247 uint32_t cnt = MPFR_Lib_Clz_count_leading_zeros(a0); local
256 ap[0U] = a0 << cnt;
258 int64_t bx1 = bx - (int64_t)cnt;
265 uint32_t cnt local
[all...]
/netbsd-current/external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/ov_tree_map_/
H A Derase_fn_imps.hpp149 _GLIBCXX_DEBUG_ONLY(size_type cnt = 0;)
155 _GLIBCXX_DEBUG_ONLY(++cnt;)
156 _GLIBCXX_DEBUG_ASSERT(cnt != m_size);
/netbsd-current/sys/arch/hp300/dev/
H A Dfhpib.c239 int cnt = origcnt; local
258 if (cnt) {
260 while (--cnt) {
289 printf("sent %d of %d bytes\n", origcnt-cnt-1, origcnt);
292 return origcnt - cnt - 1;
300 int cnt = origcnt; local
324 if (cnt) {
325 while (--cnt >= 0) {
350 printf("got %d of %d bytes\n", origcnt-cnt-1, origcnt);
353 return origcnt - cnt
482 int cnt; local
[all...]
/netbsd-current/common/lib/libc/arch/m68k/string/
H A Dbcmp.S129 lsrl #5,%d0 | cnt = len / 32
130 jeq .Lbclong | if (cnt)
160 lsrl #2,%d0 | cnt = len / 4
161 jeq .Lbcbyte | if (cnt)
/netbsd-current/external/bsd/top/dist/
H A Ddisplay.c199 register int cnt = 0; local
205 cnt++;
208 return(cnt);
239 int cnt = 0; local
249 cnt = CURSOR_COST;
253 while (cnt > 0 && curr_y < y)
260 cnt -= 5;
266 cnt--;
272 while (cnt > 0 && curr_x < x)
279 cnt
1867 register char cnt = 0; local
[all...]

Completed in 247 milliseconds

<<11121314151617181920>>