Home
last modified time | relevance | path

Searched refs:bptr (Results 1 – 25 of 28) sorted by relevance

12

/netbsd/src/sys/dev/tc/
Dif_le_ioasic.c198 volatile uint16_t *bptr; in le_ioasic_copytobuf_gap2() local
202 bptr = ((volatile uint16_t *)buf) + (boff - 1); in le_ioasic_copytobuf_gap2()
203 *bptr = (*from++ << 8) | (*bptr & 0xff); in le_ioasic_copytobuf_gap2()
204 bptr += 2; in le_ioasic_copytobuf_gap2()
207 bptr = ((volatile uint16_t *)buf) + boff; in le_ioasic_copytobuf_gap2()
209 *bptr = (from[1] << 8) | (from[0] & 0xff); in le_ioasic_copytobuf_gap2()
210 bptr += 2; in le_ioasic_copytobuf_gap2()
215 *bptr = (uint16_t)*from; in le_ioasic_copytobuf_gap2()
223 volatile uint16_t *bptr; in le_ioasic_copyfrombuf_gap2() local
228 bptr = ((volatile uint16_t *)buf) + (boff - 1); in le_ioasic_copyfrombuf_gap2()
[all …]
/netbsd/src/sys/arch/pmax/ibus/
Dif_le_ibus.c109 volatile uint16_t *bptr; in le_dec_copytobuf_gap2() local
113 bptr = ((volatile uint16_t *)buf) + (boff - 1); in le_dec_copytobuf_gap2()
114 *bptr = (*from++ << 8) | (*bptr & 0xff); in le_dec_copytobuf_gap2()
115 bptr += 2; in le_dec_copytobuf_gap2()
118 bptr = ((volatile uint16_t *)buf) + boff; in le_dec_copytobuf_gap2()
120 *bptr = (from[1] << 8) | (from[0] & 0xff); in le_dec_copytobuf_gap2()
121 bptr += 2; in le_dec_copytobuf_gap2()
126 *bptr = (uint16_t)*from; in le_dec_copytobuf_gap2()
134 volatile uint16_t *bptr; in le_dec_copyfrombuf_gap2() local
139 bptr = ((volatile uint16_t *)buf) + (boff - 1); in le_dec_copyfrombuf_gap2()
[all …]
/netbsd/src/sys/arch/vax/if/
Dif_le.c239 volatile uint16_t *bptr; in lance_copytobuf_gap2() local
243 bptr = ((volatile uint16_t *)buf) + (boff - 1); in lance_copytobuf_gap2()
244 *bptr = (*from++ << 8) | (*bptr & 0xff); in lance_copytobuf_gap2()
245 bptr += 2; in lance_copytobuf_gap2()
248 bptr = ((volatile uint16_t *)buf) + boff; in lance_copytobuf_gap2()
250 *bptr = (from[1] << 8) | (from[0] & 0xff); in lance_copytobuf_gap2()
251 bptr += 2; in lance_copytobuf_gap2()
256 *bptr = (uint16_t)*from; in lance_copytobuf_gap2()
264 volatile uint16_t *bptr; in lance_copyfrombuf_gap2() local
269 bptr = ((volatile uint16_t *)buf) + (boff - 1); in lance_copyfrombuf_gap2()
[all …]
/netbsd/src/usr.bin/fmt/
Dbuffer.h41 wchar_t *bptr; member
48 buf->ptr = buf->bptr = calloc(BUF_SIZE, sizeof(*buf->ptr)); in buf_init()
57 free(buf->bptr); in buf_end()
64 size_t len = (buf->eptr - buf->bptr) + in buf_grow()
66 wchar_t *nptr = realloc(buf->bptr, len * sizeof(*buf->ptr)); in buf_grow()
71 if (nptr == buf->bptr) { in buf_grow()
72 buf->eptr = buf->bptr + len; in buf_grow()
76 diff = nptr - buf->bptr; in buf_grow()
77 buf->bptr += diff; in buf_grow()
78 buf->eptr = buf->bptr + len; in buf_grow()
[all …]
Dfmt.c289 cp = lbuf.bptr; in fmt()
306 for (cp2 = cbuf.ptr - 1; cp2 >= cbuf.bptr && *cp2 == ' '; cp2--) in fmt()
334 if (buf->ptr == buf->bptr) { in prefix()
339 for (cp = buf->bptr; *cp == ' '; cp++) in prefix()
341 np = cp - buf->bptr; in prefix()
419 pack(word.bptr, wlen); in split()
453 if (outbuf.bptr == outbuf.ptr) in pack()
460 s = outbuf.ptr - outbuf.bptr; in pack()
486 if (outbuf.bptr == outbuf.ptr) in oflush()
507 for (cp = buf->ptr - 1; cp >= buf->bptr && *cp == ' '; cp--) in tabulate()
[all …]
/netbsd/src/sys/dev/ic/
Dlance.c685 volatile uint16_t *bptr;
689 bptr = ((volatile uint16_t *)buf) + (boff - 1);
690 *bptr = (*from++ << 8) | (*bptr & 0xff);
691 bptr += 2;
694 bptr = ((volatile uint16_t *)buf) + boff;
696 *bptr = (from[1] << 8) | (from[0] & 0xff);
697 bptr += 2;
702 *bptr = (uint16_t)*from;
710 volatile uint16_t *bptr;
715 bptr = ((volatile uint16_t *)buf) + (boff - 1);
[all …]
/netbsd/src/libexec/talkd/
Dannounce.c103 char *bptr, *lptr, vis_user[sizeof(request->l_name) * 4]; in print_mesg() local
139 bptr = big_buf; in print_mesg()
140 *bptr++ = '\a'; /* send something to wake them up */ in print_mesg()
141 *bptr++ = '\r'; /* add a \r in case of raw mode */ in print_mesg()
142 *bptr++ = '\n'; in print_mesg()
147 *(bptr++) = *(lptr++); in print_mesg()
150 *(bptr++) = ' '; in print_mesg()
151 *(bptr++) = '\r'; /* add a \r in case of raw mode */ in print_mesg()
152 *(bptr++) = '\n'; in print_mesg()
154 *bptr = '\0'; in print_mesg()
[all …]
/netbsd/src/sys/dev/mca/
Dif_elmc_mca.c281 u_int8_t* bptr = dst; in elmc_mca_copyin() local
284 *bptr = bus_space_read_1(sc->bt, sc->bh, offset); in elmc_mca_copyin()
285 offset++; bptr++; size--; in elmc_mca_copyin()
289 bus_space_read_region_2(sc->bt, sc->bh, offset, (u_int16_t *) bptr, in elmc_mca_copyin()
293 bptr += size - 1; in elmc_mca_copyin()
295 *bptr = bus_space_read_1(sc->bt, sc->bh, offset); in elmc_mca_copyin()
304 const u_int8_t* bptr = src; in elmc_mca_copyout() local
307 bus_space_write_1(sc->bt, sc->bh, offset, *bptr); in elmc_mca_copyout()
308 offset++; bptr++; size--; in elmc_mca_copyout()
313 (const u_int16_t *)bptr, size >> 1); in elmc_mca_copyout()
[all …]
/netbsd/src/sys/dev/isa/
Dif_ai.c140 uint8_t *bptr = dst; in ai_copyin() local
143 *bptr = bus_space_read_1(sc->bt, sc->bh, offset); in ai_copyin()
144 offset++; bptr++; size--; in ai_copyin()
148 bus_space_read_region_2(sc->bt, sc->bh, offset, (uint16_t *)bptr, in ai_copyin()
152 bptr += size - 1; in ai_copyin()
154 *bptr = bus_space_read_1(sc->bt, sc->bh, offset); in ai_copyin()
162 const uint8_t *bptr = src; in ai_copyout() local
165 bus_space_write_1(sc->bt, sc->bh, offset, *bptr); in ai_copyout()
166 offset++; bptr++; size--; in ai_copyout()
171 (const uint16_t *)bptr, size >> 1); in ai_copyout()
[all …]
Dif_ix.c241 uint8_t *bptr = dst; in ix_copyin() local
252 *bptr = bus_space_read_1(sc->bt, sc->bh, IX_DATAPORT); in ix_copyin()
254 *bptr = bus_space_read_1(sc->bt, sc->bh, offset); in ix_copyin()
255 offset++; bptr++; size--; in ix_copyin()
259 wptr = (uint16_t*)bptr; in ix_copyin()
268 (uint16_t *)bptr, size / 2); in ix_copyin()
271 bptr += size - 1; in ix_copyin()
275 *bptr = bus_space_read_1(sc->bt, sc->bh, IX_DATAPORT); in ix_copyin()
277 *bptr = bus_space_read_1(sc->bt, sc->bh, offset); in ix_copyin()
285 const uint8_t *bptr = src; in ix_copyout() local
[all …]
Dif_ef.c247 uint8_t *bptr = dst; in ef_copyin() local
250 *bptr = bus_space_read_1(sc->bt, sc->bh, offset); in ef_copyin()
251 offset++; bptr++; size--; in ef_copyin()
255 bus_space_read_region_2(sc->bt, sc->bh, offset, (uint16_t *) bptr, in ef_copyin()
259 bptr += size - 1; in ef_copyin()
261 *bptr = bus_space_read_1(sc->bt, sc->bh, offset); in ef_copyin()
269 const uint8_t *bptr = src; in ef_copyout() local
272 bus_space_write_1(sc->bt, sc->bh, offset, *bptr); in ef_copyout()
273 offset++; bptr++; size--; in ef_copyout()
278 (const uint16_t *)bptr, size >> 1); in ef_copyout()
[all …]
/netbsd/src/external/gpl2/xcvs/dist/diff/
Ddiff3.c1085 struct diff_block *block_list, **block_list_end, *bptr; local
1090 bptr = 0; /* Pacify `gcc -W'. */
1094 bptr = ALLOCATE (1, struct diff_block);
1095 bptr->lines[0] = bptr->lines[1] = 0;
1096 bptr->lengths[0] = bptr->lengths[1] = 0;
1098 dt = process_diff_control (&scan_diff, bptr);
1116 bptr->ranges[0][0]++;
1119 bptr->ranges[1][0]++;
1132 int numlines = D_NUMLINES (bptr, 0);
1133 bptr->lines[0] = ALLOCATE (numlines, char *);
[all …]
Dutil.c700 translate_range (file, a, b, aptr, bptr) in translate_range() argument
703 int *aptr, *bptr;
706 *bptr = translate_line_number (file, b + 1) - 1;
/netbsd/src/games/phantasia/
Dgamesupport.c33 phbool *bptr; /* pointer to bool item to change */ in changestats() local
371 bptr = &playerp->p_palantir; in changestats()
376 bptr = &playerp->p_blessing; in changestats()
381 bptr = &playerp->p_virgin; in changestats()
386 bptr = &playerp->p_blindness; in changestats()
438 mvprintw(23, 0, "%s = %c; %s = ", prompt, flag[(int)*bptr], in changestats()
442 *bptr = TRUE; in changestats()
445 *bptr = FALSE; in changestats()
/netbsd/src/external/bsd/openldap/dist/servers/slapd/
Dentry.c830 BerVarray bptr; in entry_decode() local
851 bptr = (BerVarray)eh->bv.bv_val; in entry_decode()
877 a->a_vals = bptr; in entry_decode()
881 bptr->bv_len = i; in entry_decode()
882 bptr->bv_val = (char *)ptr; in entry_decode()
884 bptr++; in entry_decode()
887 bptr->bv_val = NULL; in entry_decode()
888 bptr->bv_len = 0; in entry_decode()
889 bptr++; in entry_decode()
893 a->a_nvals = bptr; in entry_decode()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/bn/asm/
Dx86_64-mont.pl825 my $bptr="%rdx"; # not used
1110 my ($aptr, $bptr, $nptr, $tptr, $mi, $bi, $zero, $num)=
1112 my $rptr=$bptr;
1114 lea 8($bp),$bptr
1122 mov $bptr,8(%rsp) # off-load &b[i]
1127 mov $mi,$bptr # borrow $bptr
1138 adcx %rax,$bptr # discarded
1144 mov 48(%rsp),$bptr # counter value
1195 dec $bptr # of=0, pass cf
1199 mov 8(%rsp),$bptr # re-load &b[i]
[all …]
Darmv4-mont.pl309 my ($rptr,$aptr,$bptr,$nptr,$n0,$num)=map("r$_",(0..5));
331 vld1.32 {${Bi}[0]}, [$bptr,:32]!
384 vld1.32 {${Bi}[0]}, [$bptr,:32]!
475 vld1.32 {${Bi}[0]},[$bptr,:32]! @ *b++
498 vld1.32 {${Bi}[0]},[$bptr,:32]! @ *b++
688 add $bptr,sp,$num,lsl#2
697 teq $aptr,$bptr @ preserves carry
704 sub r11,$bptr,r11 @ this is num*4
708 mov $nptr,$bptr @ second 3/4th of frame
736 teq $aptr,$bptr @ preserves carry
Dx86_64-mont5.pl1089 my $bptr="%rdx"; # const void *table,
1197 movq $bptr,%xmm4
1211 movq %xmm4,$bptr
2241 my ($aptr, $bptr, $nptr, $tptr, $mi, $bi, $zero, $num)=
2243 my $rptr=$bptr;
2250 lea 128($bp),$bptr # size optimization
2302 pand `16*($i+0)-128`($bptr),%xmm0 # while it's still in register
2303 pand `16*($i+1)-128`($bptr),%xmm1
2304 pand `16*($i+2)-128`($bptr),%xmm2
2306 pand `16*($i+3)-128`($bptr),%xmm3
[all …]
/netbsd/src/lib/libedit/TEST/
Dwtc1.c62 char *buf, *bptr; in complete() local
76 buf = bptr = malloc(mblen); in complete()
81 bptr += wctomb(bptr, ptr[i]); in complete()
83 *bptr = 0; /* Terminate multibyte string */ in complete()
84 mblen = bptr - buf; in complete()
/netbsd/src/usr.bin/gencat/
Dgencat.c280 static char buf[BUFSIZ], *bptr = buf, *bend = buf; in get_line() local
292 for (; bptr < bend && cptr < cend; ++cptr, ++bptr) { in get_line()
293 if (*bptr == '\n') { in get_line()
295 ++bptr; in get_line()
298 *cptr = *bptr; in get_line()
304 if (bptr == bend) { in get_line()
314 bptr = buf; in get_line()
/netbsd/src/crypto/external/bsd/openssl/dist/test/
Dbio_pw_callback_test.c159 BUF_MEM *bptr = NULL; in re_encrypt_key() local
188 BIO_get_mem_ptr(bio, &bptr); in re_encrypt_key()
191 bptr->data = NULL; in re_encrypt_key()
194 BUF_MEM_free(bptr); in re_encrypt_key()
/netbsd/src/bin/csh/
Dexec.c640 struct biltins *bptr; in tellmewhat() local
683 for (bptr = bfunc; bptr < &bfunc[nbfunc]; bptr++) { in tellmewhat()
684 if (eq(sp->word, str2short(bptr->bname))) { in tellmewhat()
/netbsd/src/sys/dev/ir/
Dsir.c165 deframe_process(struct framestate *fstate, uint8_t const **bptr, size_t *blen) in deframe_process() argument
172 cptr = *bptr; in deframe_process()
/netbsd/src/sys/external/bsd/drm/dist/shared-core/
Dsis_ds.c159 #define ISFREE(bptr) ((bptr)->free) argument
/netbsd/src/external/bsd/file/dist/src/
Dreadelf.c989 char *bptr; in get_string_on_virtaddr() local
1008 for (bptr = buf; *bptr && isprint(CAST(unsigned char, *bptr)); bptr++) in get_string_on_virtaddr()
1010 if (*bptr != '\0') in get_string_on_virtaddr()
1013 return bptr - buf; in get_string_on_virtaddr()

12