Searched refs:iobuf (Results 1 - 25 of 29) sorted by relevance

12

/netbsd-current/sys/dev/isa/
H A Daps.c238 unsigned char iobuf[16]; local
263 iobuf[APS_CMD] = 0x13;
264 if (aps_do_io(iot, ioh, iobuf, APS_WRITE_0, APS_READ_1)) {
277 cr = iobuf[APS_ARG1];
282 if (iobuf[APS_RET] != 0 || cr < 1 || cr > 5) {
384 unsigned char iobuf[16]; local
387 iobuf[APS_CMD] = 0x17;
388 iobuf[APS_ARG1] = 0x81;
390 if (aps_do_io(sc->sc_iot, sc->sc_ioh, iobuf, APS_WRITE_1, APS_READ_3))
392 if (iobuf[APS_RE
448 unsigned char iobuf[16]; local
534 unsigned char iobuf[16]; local
[all...]
/netbsd-current/external/bsd/pcc/dist/pcc/cc/cpp/
H A Dcpp.h142 struct iobuf { struct
148 extern struct iobuf *obufp;
149 extern struct iobuf *ibufp;
176 struct iobuf *submac(struct symtab *nl, int, struct iobuf *, struct blocker *);
H A Dcpp.c150 static struct iobuf *exparg(int, struct iobuf *, struct iobuf *, struct blocker *);
151 static struct iobuf *subarg(struct symtab *sp, const usch **args, int, struct blocker *);
156 static int skipws(struct iobuf *ib);
352 putob(struct iobuf *ob, int ch)
368 static struct iobuf *
371 struct iobuf *iob = xmalloc(sizeof(struct iobuf));
383 static struct iobuf *
[all...]
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/ocsp/
H A Docsp_ht.c26 unsigned char *iobuf; /* Line buffer */ member in struct:ocsp_req_ctx_st
78 rctx->iobuf = OPENSSL_malloc(rctx->iobuflen);
79 if (rctx->iobuf == NULL || rctx->mem == NULL) {
91 OPENSSL_free(rctx->iobuf);
278 n = BIO_read(rctx->io, rctx->iobuf, rctx->iobuflen);
288 if (BIO_write(rctx->mem, rctx->iobuf, n) != n)
366 n = BIO_gets(rctx->mem, (char *)rctx->iobuf, rctx->iobuflen);
383 if (parse_http_line1((char *)rctx->iobuf)) {
392 for (p = rctx->iobuf; *p; p++) {
/netbsd-current/sys/arch/sandpoint/stand/altboot/
H A Ddsk.c132 drive_ident(d, l->iobuf);
133 decode_dlabel(d, l->iobuf);
233 p = (uint16_t *)l->iobuf;
305 decode_dlabel(struct disk *d, char *iobuf) argument
313 (*d->lba_read)(d, 0, 1, iobuf);
314 if (bswap16(*(uint16_t *)(iobuf + MBR_MAGIC_OFFSET)) != MBR_MAGIC)
316 mp = (struct mbr_partition *)(iobuf + MBR_PART_OFFSET);
326 (*d->lba_read)(d, first + LABELSECTOR, 1, iobuf);
327 dlp = search_dmagic(iobuf);
335 (*d->lba_read)(d, rf_offset + LABELSECTOR, 1, iobuf);
[all...]
H A Dglobals.h248 char *iobuf; member in struct:dkdev_ata
H A Dpciide.c92 l->iobuf = allocaligned(512, 16);
H A Dsiisata.c74 l->iobuf = allocaligned(512, 16);
/netbsd-current/sbin/newfs/
H A Dmkfs.c162 char *iobuf; variable
582 iobuf = mmap(0, iobuf_memsize, PROT_READ|PROT_WRITE,
584 if (iobuf != MAP_FAILED)
594 memset(iobuf, 0, iobuf_memsize);
610 wtfs(fssize - 1, sectorsize, iobuf);
662 memcpy(iobuf, &sblock, sizeof sblock);
664 ffs_sb_swap(&sblock, (struct fs *)iobuf);
666 memset(iobuf + offsetof(struct fs, fs_old_postbl_start),
746 memcpy(iobuf, &sblock, sizeof(sblock));
747 memset(iobuf
972 wtfs(FFS_FSBTODB(&sblock, cgsblock(&sblock, cylno)), iobufsize, iobuf); local
990 d * sblock.fs_bsize / sblock.fs_frag, &iobuf[start]); local
[all...]
/netbsd-current/tests/lib/libnvmm/
H A Dh_io_assist.c51 static char iobuf[IO_SIZE]; variable
220 memcpy(io->data, iobuf + iobuf_off, io->size);
222 memcpy(iobuf + iobuf_off, io->data, io->size);
295 memset(iobuf, 0, IO_SIZE);
300 strcpy(iobuf, test->wanted);
310 res = iobuf;
/netbsd-current/lib/libkvm/
H A Dkvm_private.h92 uint8_t *iobuf; member in struct:__kvm
H A Dkvm.c203 newbuf = realloc(kd->iobuf, dsize);
208 kd->iobuf = newbuf;
211 rv = pread(fd, kd->iobuf, dsize, doff);
214 memcpy(buf, kd->iobuf + moff, size);
279 kd->iobuf = NULL;
787 if (kd->iobuf != 0)
788 free(kd->iobuf);
838 newbuf = realloc(kd->iobuf, dsize);
843 kd->iobuf = newbuf;
846 memset(kd->iobuf,
[all...]
/netbsd-current/sys/arch/mvme68k/stand/libsa/
H A Dbugdev.c58 static int iobuf[DEV_BSIZE / sizeof(int)]; local
96 error = bugscstrategy(pp, F_READ, LABELSECTOR, DEV_BSIZE, iobuf, &nrd);
103 cputobsdlabel(&sdlabel, (struct cpu_disklabel *)&(iobuf[0]));
/netbsd-current/sys/dev/raidframe/
H A Drf_driver.c419 raidPtr->iobuf = NULL;
502 vple->next = raidPtr->iobuf;
503 raidPtr->iobuf = vple;
540 while (raidPtr->iobuf != NULL) {
541 tmp = raidPtr->iobuf;
542 raidPtr->iobuf = raidPtr->iobuf->next;
H A Drf_raid.h170 RF_VoidPointerListElem_t *iobuf; /* I/O buffer free list */ member in struct:RF_Raid_s
/netbsd-current/usr.sbin/makefs/ffs/
H A Dmkfs.c102 char *iobuf; variable
527 iobuf = ecalloc(1, iobufsize);
533 memcpy(iobuf, writebuf, SBLOCKSIZE);
761 memcpy(&iobuf[start], &acg, sblock.fs_cgsize);
763 ffs_cg_swap(&acg, (struct cg*)&iobuf[start], &sblock);
765 dp1 = (struct ufs1_dinode *)(&iobuf[start]);
766 dp2 = (struct ufs2_dinode *)(&iobuf[start]);
777 ffs_wtfs(FFS_FSBTODB(&sblock, cgsblock(&sblock, cylno)), iobufsize, iobuf, local
786 dp1 = (struct ufs1_dinode *)(&iobuf[start]);
792 sblock.fs_bsize, &iobuf[star local
[all...]
/netbsd-current/sbin/newfs_ext2fs/
H A Dmke2fs.c175 static uint8_t *iobuf; /* for superblock and group descriptors */ variable
546 iobuf = mmap(0, iobufsize, PROT_READ|PROT_WRITE,
548 if (iobuf == NULL)
550 memset(iobuf, 0, iobufsize);
567 wtfs(fssize - 1, sectorsize, iobuf);
678 e2fs_sbsave(&sblock.e2fs, (struct ext2fs *)(iobuf + sboff));
679 e2fs_cgsave(gd, (struct ext2_gd *)(iobuf + sblock.e2fs_bsize),
682 iobufsize - sboff, iobuf + sboff);
684 munmap(iobuf, iobufsize);
709 e2fs_sbsave(&sblock.e2fs, (struct ext2fs *)(iobuf
[all...]
/netbsd-current/usr.sbin/isibootd/
H A Disibootd.c128 uint8_t *iobuf; local
167 createbpfport(ifname, &iobuf, &iolen, &station);
187 read(pollfd.fd, iobuf, iolen); /* returns 1468 */
188 fp = (struct frame *)ISIBOOT_FRAME(iobuf);
/netbsd-current/external/bsd/am-utils/dist/amd/
H A Dops_nfs.c539 char iobuf[UDPMSGSIZE]; local
570 len = make_rpc_packet(iobuf,
571 sizeof(iobuf),
580 iobuf,
610 char iobuf[UDPMSGSIZE]; local
667 len = make_rpc_packet(iobuf,
668 sizeof(iobuf),
677 iobuf,
H A Dsrvr_nfs.c241 char iobuf[UDPMSGSIZE]; local
250 len = make_rpc_packet(iobuf,
251 sizeof(iobuf),
262 error = fwd_packet(RPC_XID_PORTMAP, iobuf, len,
/netbsd-current/sys/arch/x68k/stand/libdos/
H A Ddos.h70 void *iobuf; member in struct:dos_fcb::__anon9316
/netbsd-current/sys/lib/libsa/
H A Ddosfs.c156 static int iobuf(DOS_FS *, u_int);
751 if ((err = iobuf(fs, bytsec(offset))))
768 if ((err = iobuf(fs, bytsec(offset))))
779 iobuf(DOS_FS *fs, u_int lsec) function
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/asn1/
H A Dasn_mime.c539 char iobuf[4096]; local
561 while ((len = BIO_read(in, iobuf, sizeof(iobuf))) > 0)
562 BIO_write(out, iobuf, len);
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/asn1/
H A Dasn_mime.c574 char iobuf[4096]; local
596 while ((len = BIO_read(in, iobuf, sizeof(iobuf))) > 0)
597 BIO_write(out, iobuf, len);
/netbsd-current/usr.sbin/sysinst/
H A Dmbr.c249 char *iobuf; local
256 iobuf = malloc(secsize);
257 if (iobuf == NULL)
259 nr = pread(fd, iobuf, secsize, rnd);
261 memcpy(buf, &iobuf[mod], nbytes);
262 free(iobuf);
279 char *iobuf; local
286 iobuf = malloc(secsize);
287 if (iobuf == NULL)
289 nr = pread(fd, iobuf, secsiz
[all...]

Completed in 266 milliseconds

12