| /netbsd-src/tests/crypto/opencrypto/ |
| H A D | h_gcm.c | 57 unsigned char databuf[16]; in main() local 76 memset(databuf, 0, sizeof(databuf)); in main() 82 co.dst = databuf; in main() 96 for (i = 0; i < sizeof(databuf); i++) in main() 97 printf("%02x ", databuf[i]); in main() 111 co.len = sizeof(databuf); in main() 112 co.src = databuf; in main()
|
| /netbsd-src/sys/dev/ |
| H A D | efi.c | 338 void *databuf = NULL; in efi_ioctl_var_get() local 366 databuf = kmem_alloc(databufsize, KM_SLEEP); in efi_ioctl_var_get() 367 error = copyin(var->data, databuf, databufsize); in efi_ioctl_var_get() 375 &datasize, databuf); in efi_ioctl_var_get() 382 error = copyout(databuf, var->data, in efi_ioctl_var_get() 390 if (databuf != NULL) { in efi_ioctl_var_get() 391 kmem_free(databuf, databufsize); in efi_ioctl_var_get() 444 uint16_t *databuf = NULL; in efi_ioctl_var_set() local 461 databuf = kmem_alloc(var->datasize, KM_SLEEP); in efi_ioctl_var_set() 462 error = copyin(var->data, databuf, var->datasize); in efi_ioctl_var_set() [all …]
|
| /netbsd-src/external/mpl/bind/dist/lib/dns/ |
| H A D | tsig.c | 581 isc_buffer_t databuf, sigbuf; in dump_key() 628 isc_buffer_init(&databuf, data, sizeof(data)); in dns_tsigkeyring_dumpanddetach() 682 isc_buffer_putuint16(&databuf, querytsig.siglen); in dns_tsigkey_create() 683 if (isc_buffer_availablelength(&databuf) < in dns_tsigkey_create() 689 isc_buffer_putmem(&databuf, querytsig.signature, in dns_tsigkey_create() 691 isc_buffer_usedregion(&databuf, &r); in dns_tsigkey_create() 730 isc_buffer_clear(&databuf); in tsigkey_free() 731 isc_buffer_putuint16(&databuf, dns_rdataclass_any); in tsigkey_free() 732 isc_buffer_putuint32(&databuf, 0); /* ttl */ in tsigkey_free() 733 isc_buffer_usedregion(&databuf, in tsigkey_free() 768 isc_buffer_t databuf, sigbuf; dns_tsig_sign() local 1085 isc_buffer_t databuf; dns_tsig_verify() local 1441 isc_buffer_t databuf; tsig_verify_tcp() local [all...] |
| H A D | rootns.c | 312 char databuf[sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:123.123.123.123")]; in report() 325 isc_buffer_init(&buffer, databuf, sizeof(databuf) - 1); in report() 328 databuf[isc_buffer_usedlength(&buffer)] = '\0'; in report() 334 sep, viewname, namebuf, typebuf, databuf); in report() 340 sep, viewname, namebuf, typebuf, databuf); in report() 314 char databuf[sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:123.123.123.123")]; report() local
|
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
| H A D | tsig.c | 766 isc_buffer_t databuf, sigbuf; in dns_tsig_sign() local 811 isc_buffer_init(&databuf, data, sizeof(data)); in dns_tsig_sign() 874 isc_buffer_putuint16(&databuf, querytsig.siglen); in dns_tsig_sign() 875 if (isc_buffer_availablelength(&databuf) < in dns_tsig_sign() 881 isc_buffer_putmem(&databuf, querytsig.signature, in dns_tsig_sign() 883 isc_buffer_usedregion(&databuf, &r); in dns_tsig_sign() 922 isc_buffer_clear(&databuf); in dns_tsig_sign() 923 isc_buffer_putuint16(&databuf, dns_rdataclass_any); in dns_tsig_sign() 924 isc_buffer_putuint32(&databuf, 0); /* ttl */ in dns_tsig_sign() 925 isc_buffer_usedregion(&databuf, &r); in dns_tsig_sign() [all …]
|
| H A D | rootns.c | 293 char databuf[sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:123.123.123.123")]; in report() local 306 isc_buffer_init(&buffer, databuf, sizeof(databuf) - 1); in report() 309 databuf[isc_buffer_usedlength(&buffer)] = '\0'; in report() 315 sep, viewname, namebuf, typebuf, databuf); in report() 321 sep, viewname, namebuf, typebuf, databuf); in report()
|
| /netbsd-src/tests/lib/libnvmm/ |
| H A D | h_io_assist.c | 53 static char *databuf; variable 134 databuf = mmap(NULL, PAGE_SIZE, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, in map_pages() 136 if (databuf == MAP_FAILED) in map_pages() 141 if (nvmm_hva_map(mach, (uintptr_t)databuf, PAGE_SIZE) == -1) in map_pages() 147 ret = nvmm_gpa_map(mach, (uintptr_t)databuf, 0x1000, PAGE_SIZE, in map_pages() 296 memset(databuf, 0, PAGE_SIZE); in run_test() 302 strcpy(databuf, test->wanted); in run_test() 308 res = databuf; in run_test()
|
| /netbsd-src/external/mpl/bind/dist/tests/dns/ |
| H A D | tsig_test.c | 79 isc_buffer_t databuf; in add_mac() 87 isc_buffer_init(&databuf, tsigbuf, sizeof(tsigbuf)); in add_mac() 89 isc_buffer_putuint16(&databuf, tsig.siglen); in add_mac() 90 isc_buffer_putmem(&databuf, tsig.signature, tsig.siglen); 91 isc_buffer_usedregion(&databuf, &r); 107 isc_buffer_t databuf; in add_tsig() 132 isc_buffer_init(&databuf, tsigbuf, sizeof(tsigbuf)); in add_tsig() 133 isc_buffer_putuint48(&databuf, tsig.timesigned); in add_tsig() 134 isc_buffer_putuint16(&databuf, tsig.fudge); in add_tsig() 135 isc_buffer_usedregion(&databuf, in add_tsig() 72 isc_buffer_t databuf; add_mac() local 99 isc_buffer_t databuf; add_tsig() local [all...] |
| H A D | dst_test.c | 148 isc_buffer_t databuf, sigbuf; in check_sig() local 188 isc_buffer_init(&databuf, data, (unsigned int)size); in check_sig() 189 isc_buffer_add(&databuf, (unsigned int)size); in check_sig() 190 isc_buffer_usedregion(&databuf, &datareg); in check_sig()
|
| /netbsd-src/include/ |
| H A D | res_update.h | 46 struct databuf *r_dp; /*%< databuf to process */ 47 struct databuf *r_deldp; /*%< databuf's deleted/overwritten */
|
| /netbsd-src/external/bsd/libbind/dist/include/ |
| H A D | res_update.h | 48 struct databuf *r_dp; /*%< databuf to process */ 49 struct databuf *r_deldp; /*%< databuf's deleted/overwritten */
|
| /netbsd-src/sys/arch/amiga/dev/ |
| H A D | siop.c | 826 acb->ds.chain[nchain].databuf = (char *) kvtop (addr); in siop_start() 832 if (acb->ds.chain[nchain].databuf == dmaend) { in siop_start() 841 dmaend = acb->ds.chain[nchain].databuf + in siop_start() 855 printf (" [%d] %8p %lx\n", i, acb->ds.chain[i].databuf, in siop_start() 1071 i, acb->ds.chain[i].databuf, in siop_checkintr() 1164 acb->ds.chain[0].databuf, acb->ds.chain[0].datalen, dfifo, dbc, sstat1, siopstarts, acb); in siop_checkintr() 1185 acb->ds.chain[0].databuf, acb->ds.chain[0].datalen); in siop_checkintr() 1193 acb->iob_curbuf = (u_long)acb->ds.chain[n].databuf; in siop_checkintr() 1227 if (acb->iob_curbuf >= (long)acb->ds.chain[i].databuf && in siop_checkintr() 1228 acb->iob_curbuf < (long)(acb->ds.chain[i].databuf + in siop_checkintr() [all …]
|
| H A D | siop2.c | 880 acb->ds.chain[nchain].databuf = (char *) kvtop (addr); in siopng_start() 887 acb->ds.chain[nchain].databuf); in siopng_start() 892 if (acb->ds.chain[nchain].databuf == dmaend) { in siopng_start() 901 dmaend = acb->ds.chain[nchain].databuf + in siopng_start() 915 printf (" [%d] %8p %lx\n", i, acb->ds.chain[i].databuf, in siopng_start() 1197 i, acb->ds.chain[i].databuf, in siopng_checkintr() 1299 acb->ds.chain[0].databuf, acb->ds.chain[0].datalen, dfifo, dbc, sstat1, siopngstarts, acb); in siopng_checkintr() 1320 acb->ds.chain[0].databuf, acb->ds.chain[0].datalen); in siopng_checkintr() 1328 acb->iob_curbuf = (u_long)acb->ds.chain[n].databuf; in siopng_checkintr() 1360 if (acb->iob_curbuf >= (long)acb->ds.chain[i].databuf && in siopng_checkintr() [all …]
|
| /netbsd-src/sys/arch/arm/broadcom/ |
| H A D | bcm2835_bsc.c | 391 sc->sc_buf = sc->sc_exec.databuf; in bsciic_exec_func_send_data() 411 sc->sc_buf = sc->sc_exec.databuf; in bsciic_exec_func_recv_data() 442 size_t cmdlen, void *databuf, size_t datalen, int flags) in bsciic_exec() argument 461 sc->sc_exec.databuf = databuf; in bsciic_exec()
|
| H A D | bcm2835_bscvar.h | 71 void *databuf; member
|
| /netbsd-src/sys/dev/pci/ |
| H A D | geodeide.c | 266 geodeide_dma_init(void *v, int channel, int drive, void *databuf, in geodeide_dma_init() argument 274 if (((uintptr_t)databuf) & 0xf) in geodeide_dma_init() 277 return (pciide_dma_init(v, channel, drive, databuf, datalen, flags)); in geodeide_dma_init()
|
| /netbsd-src/sys/dev/i2c/ |
| H A D | motoi2c.c | 229 void *databuf, size_t datalen, in motoi2c_exec() argument 242 __func__, op, addr, cmdbuf, cmdlen, databuf, datalen, flags, in motoi2c_exec() 330 uint8_t *dataptr = databuf; in motoi2c_exec() 374 const uint8_t *dataptr = databuf; in motoi2c_exec()
|
| H A D | i2cmux.c | 111 const void * const cmdbuf, size_t const cmdlen, void * const databuf, in iicmux_exec() argument 118 databuf, datalen, flags); in iicmux_exec()
|
| /netbsd-src/sys/dev/ic/ |
| H A D | ninjaata32.c | 58 void *databuf, size_t datalen, int flags); 362 njata32_dma_init(void *v, int channel, int drive, void *databuf, in njata32_dma_init() argument 385 if (((uintptr_t)databuf & 1) || (datalen & 1)) { in njata32_dma_init() 387 NJATA32NAME(sc), databuf, (unsigned)datalen)); in njata32_dma_init() 393 databuf, (unsigned)datalen)); in njata32_dma_init() 396 databuf, datalen, NULL, BUS_DMA_NOWAIT | BUS_DMA_STREAMING | in njata32_dma_init()
|
| /netbsd-src/lib/libc/net/ |
| H A D | ip6opt.c | 547 inet6_opt_set_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_set_val() argument 550 memcpy((uint8_t *)databuf + offset, val, vallen); in inet6_opt_set_val() 650 inet6_opt_get_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_get_val() argument 654 memcpy(val, (uint8_t *)databuf + offset, vallen); in inet6_opt_get_val()
|
| /netbsd-src/sys/arch/arm/rockchip/ |
| H A D | rk_i2c.c | 342 uint8_t *databuf = buf; in rk_i2c_exec() local 346 error = rk_i2c_read(sc, addr, cmdbuf, cmdlen, databuf, datalen, flags, send_start, last_ack); in rk_i2c_exec() 349 databuf += datalen; in rk_i2c_exec()
|
| /netbsd-src/sbin/atactl/ |
| H A D | atactl.c | 705 sreq.databuf = req->databuf; in satl_command() 1179 req.databuf = &inbuf; in fillataparams() 1730 req.databuf = (caddr_t) inbuf; in device_smart() 1743 req.databuf = (caddr_t) inbuf2; in device_smart() 1788 req.databuf = (caddr_t) inbuf; in device_smart() 1810 req.databuf = (caddr_t) inbuf; in device_smart() 1868 req.databuf = data; in device_security()
|
| /netbsd-src/sys/compat/linux/common/ |
| H A D | linux_sg.c | 141 req.databuf = lreq.dxferp; in linux_ioctl_sg() 292 br->cmdlen, br->databuf, br->datalen, br->datalen_used); in dump_scsireq()
|
| /netbsd-src/sys/sys/ |
| H A D | ataio.h | 18 void * databuf; /* Pointer to I/O data buffer */ member
|
| /netbsd-src/sys/dev/isa/ |
| H A D | wdc_isa.c | 262 wdc_isa_dma_init(void *v, int channel, int drive, void *databuf, 267 isa_dmastart(sc->sc_ic, sc->sc_drq, databuf, datalen, NULL,
|