Home
last modified time | relevance | path

Searched refs:iobuf (Results 1 – 16 of 16) sorted by relevance

/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_iobuf.c63 BHND_NVRAM_IOPS_DEFN(iobuf) in BHND_NVRAM_IOPS_DEFN() argument
87 struct bhnd_nvram_iobuf *iobuf; in BHND_NVRAM_IOPS_DEFN() local
96 if (SIZE_MAX - sizeof(*iobuf) < capacity) { in BHND_NVRAM_IOPS_DEFN()
98 iosz = sizeof(*iobuf); in BHND_NVRAM_IOPS_DEFN()
101 iosz = sizeof(*iobuf) + capacity; in BHND_NVRAM_IOPS_DEFN()
105 iobuf = bhnd_nv_malloc(iosz); in BHND_NVRAM_IOPS_DEFN()
106 if (iobuf == NULL) in BHND_NVRAM_IOPS_DEFN()
109 iobuf->io.iops = &bhnd_nvram_iobuf_ops; in BHND_NVRAM_IOPS_DEFN()
110 iobuf->buf = NULL; in BHND_NVRAM_IOPS_DEFN()
111 iobuf->size = size; in BHND_NVRAM_IOPS_DEFN()
[all …]
/freebsd/stand/libsa/geli/
H A Dgelidev.c115 char *iobuf; in geli_dev_strategy() local
143 iobuf = buf; in geli_dev_strategy()
144 else if ((iobuf = malloc(alnsize)) == NULL) in geli_dev_strategy()
154 alnstart / DEV_BSIZE, alnsize, iobuf, NULL); in geli_dev_strategy()
157 rc = geli_io(gdesc->gdev, GELI_DECRYPT, alnstart, iobuf, in geli_dev_strategy()
166 if (iobuf != buf) in geli_dev_strategy()
167 memcpy(buf, iobuf + (reqstart - alnstart), size); in geli_dev_strategy()
173 if (iobuf != buf) { in geli_dev_strategy()
176 F_READ, alnstart / DEV_BSIZE, alnsize, iobuf, NULL); in geli_dev_strategy()
179 rc = geli_io(gdesc->gdev, GELI_DECRYPT, alnstart, iobuf, in geli_dev_strategy()
[all …]
/freebsd/contrib/sendmail/libsmutil/
H A Dt-lockfile.c18 char iobuf[IOBUFSZ];
74 r = write(fd, iobuf, sizeof(iobuf));
75 if (sizeof(iobuf) == r)
78 (int) pid, (long) time(NULL), iobuf);
103 r = read(fd, iobuf, sizeof(iobuf));
104 if (sizeof(iobuf) != r)
110 if (strncmp(iobuf, xbuf, strlen(xbuf)))
113 (int) pid, (long) time(NULL), iobuf, xbuf);
164 sm_strlcpy(iobuf, FIRSTLINE, sizeof(iobuf));
169 sm_strlcpy(iobuf, LASTLINE, sizeof(iobuf));
/freebsd/sys/dev/ips/
H A Dips_commands.c54 struct bio *iobuf = command->arg; in ips_io_request_finish() local
55 if(ips_read_request(iobuf)) { in ips_io_request_finish()
64 iobuf->bio_flags |=BIO_ERROR; in ips_io_request_finish()
65 iobuf->bio_error = EIO; in ips_io_request_finish()
69 ipsd_finish(iobuf); in ips_io_request_finish()
78 struct bio *iobuf = command->arg; in ips_io_request_callback() local
86 iobuf->bio_flags |= BIO_ERROR; in ips_io_request_callback()
87 iobuf->bio_error = ENOMEM; in ips_io_request_callback()
89 ipsd_finish(iobuf); in ips_io_request_callback()
94 command_struct->drivenum = (uintptr_t)iobuf->bio_driver1; in ips_io_request_callback()
[all …]
H A Dips_disk.c84 void ipsd_finish(struct bio *iobuf) in ipsd_finish() argument
87 dsc = iobuf->bio_disk->d_drv1; in ipsd_finish()
89 if (iobuf->bio_flags & BIO_ERROR) { in ipsd_finish()
91 dsc = iobuf->bio_disk->d_drv1; in ipsd_finish()
92 device_printf(dsc->dev, "iobuf error %d\n", iobuf->bio_error); in ipsd_finish()
94 iobuf->bio_resid = 0; in ipsd_finish()
96 biodone(iobuf); in ipsd_finish()
101 static void ipsd_strategy(struct bio *iobuf) in ipsd_strategy() argument
105 dsc = iobuf->bio_disk->d_drv1; in ipsd_strategy()
107 iobuf->bio_driver1 = (void *)(uintptr_t)dsc->sc->drives[dsc->disk_number].drivenum; in ipsd_strategy()
[all …]
H A Dips.h70 #define ips_read_request(iobuf) ((iobuf)->bio_cmd == BIO_READ) argument
160 extern void ipsd_finish(struct bio *iobuf);
/freebsd/contrib/bearssl/samples/
H A Dclient_basic.c246 unsigned char iobuf[BR_SSL_BUFSIZE_BIDI]; in main() local
292 br_ssl_engine_set_buffer(&sc.eng, iobuf, sizeof iobuf, 1); in main()
H A Dserver_basic.c317 unsigned char iobuf[BR_SSL_BUFSIZE_BIDI]; in main() local
386 br_ssl_engine_set_buffer(&sc.eng, iobuf, sizeof iobuf, 1); in main()
/freebsd/usr.sbin/makefs/ffs/
H A Dmkfs.c109 static char *iobuf; variable
534 iobuf = ecalloc(1, iobufsize); in ffs_mkfs()
542 memcpy(iobuf, writebuf, SBLOCKSIZE); in ffs_mkfs()
770 memcpy(&iobuf[start], &acg, sblock.fs_cgsize); in initcg()
772 ffs_cg_swap(&acg, (struct cg*)&iobuf[start], &sblock); in initcg()
774 dp1 = (struct ufs1_dinode *)(&iobuf[start]); in initcg()
775 dp2 = (struct ufs2_dinode *)(&iobuf[start]); in initcg()
786 ffs_wtfs(fsbtodb(&sblock, cgsblock(&sblock, cylno)), iobufsize, iobuf, in initcg()
795 dp1 = (struct ufs1_dinode *)(&iobuf[start]); in initcg()
801 sblock.fs_bsize, &iobuf[start], fsopts); in initcg()
/freebsd/sbin/newfs/
H A Dmkfs.c96 static caddr_t iobuf;
590 if ((iobuf = calloc(1, iobufsize)) == 0) { in mkfs()
848 dp1 = (struct ufs1_dinode *)(&iobuf[start]); in initcg()
849 dp2 = (struct ufs2_dinode *)(&iobuf[start]); in initcg()
859 wtfs(fsbtodb(&sblock, cgimin(&sblock, cylno)), iobufsize, iobuf); in initcg()
867 dp1 = (struct ufs1_dinode *)(&iobuf[start]); in initcg()
873 sblock.fs_bsize, &iobuf[start]); in initcg()
929 iobuf); in fsinit()
945 sblock.fs_fsize, iobuf); in fsinit()
966 iobuf); in fsinit()
100 static caddr_t iobuf; global() variable
[all...]
/freebsd/sbin/growfs/
H A Dgrowfs.c292 static caddr_t iobuf; in initcg()
302 if (iobuf == NULL) { in initcg()
304 if ((iobuf = malloc(iobufsize)) == NULL) in initcg()
306 memset(iobuf, '\0', iobufsize); in initcg()
374 dp1 = (struct ufs1_dinode *)(void *)iobuf; in initcg()
375 dp2 = (struct ufs2_dinode *)(void *)iobuf; in initcg()
385 wtfs(fsbtodb(&sblock, cgimin(&sblock, cylno)), iobufsize, iobuf, in initcg()
395 dp1 = (struct ufs1_dinode *)(void *)iobuf; in initcg()
401 sblock.fs_bsize, iobuf, fso, Nflag); in initcg()
/freebsd/contrib/bearssl/tools/
H A Dtwrch.c268 unsigned char *iobuf, *cache; in do_twrch() local
291 iobuf = NULL; in do_twrch()
660 iobuf = xmalloc(iobuf_len); in do_twrch()
893 br_ssl_engine_set_buffer(&cc.eng, iobuf, iobuf_len, bidi); in do_twrch()
1062 xfree(iobuf); in do_twrch()
H A Dclient.c536 unsigned char *iobuf; in do_client() local
561 iobuf = NULL; in do_client()
887 iobuf = xmalloc(iobuf_len); in do_client()
1057 br_ssl_engine_set_buffer(&cc.eng, iobuf, iobuf_len, bidi); in do_client()
1099 xfree(iobuf); in do_client()
H A Dserver.c653 unsigned char *iobuf, *cache; in do_server() local
674 iobuf = NULL; in do_server()
1005 iobuf = xmalloc(iobuf_len); in do_server()
1157 br_ssl_engine_set_buffer(&cc.eng, iobuf, iobuf_len, bidi); in do_server()
1214 xfree(iobuf); in do_server()
/freebsd/crypto/openssl/crypto/asn1/
H A Dasn_mime.c576 char iobuf[4096]; in SMIME_text() local
598 while ((len = BIO_read(in, iobuf, sizeof(iobuf))) > 0) in SMIME_text()
599 BIO_write(out, iobuf, len); in SMIME_text()
/freebsd/contrib/bearssl/inc/
H A Dbearssl_ssl.h1808 void *iobuf, size_t iobuf_len, int bidi);