| /freebsd-9-stable/crypto/openssl/crypto/bio/ |
| D | bio_lib.c | 82 int BIO_set(BIO *bio, BIO_METHOD *method) in BIO_set() argument 84 bio->method = method; in BIO_set() 85 bio->callback = NULL; in BIO_set() 86 bio->cb_arg = NULL; in BIO_set() 87 bio->init = 0; in BIO_set() 88 bio->shutdown = 1; in BIO_set() 89 bio->flags = 0; in BIO_set() 90 bio->retry_reason = 0; in BIO_set() 91 bio->num = 0; in BIO_set() 92 bio->ptr = NULL; in BIO_set() [all …]
|
| D | bss_bio.c | 97 static int bio_new(BIO *bio); 98 static int bio_free(BIO *bio); 99 static int bio_read(BIO *bio, char *buf, int size); 100 static int bio_write(BIO *bio, const char *buf, int num); 101 static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr); 102 static int bio_puts(BIO *bio, const char *str); 105 static void bio_destroy_pair(BIO *bio); 143 static int bio_new(BIO *bio) in bio_new() argument 156 bio->ptr = b; in bio_new() 160 static int bio_free(BIO *bio) in bio_free() argument [all …]
|
| D | bio_cb.c | 66 long MS_CALLBACK BIO_debug_callback(BIO *bio, int cmd, const char *argp, in BIO_debug_callback() argument 78 BIO_snprintf(buf, sizeof buf, "BIO[%08lX]:", (unsigned long)bio); in BIO_debug_callback() 83 BIO_snprintf(p, p_maxlen, "Free - %s\n", bio->method->name); in BIO_debug_callback() 86 if (bio->method->type & BIO_TYPE_DESCRIPTOR) in BIO_debug_callback() 88 bio->num, argi, bio->method->name, bio->num); in BIO_debug_callback() 91 bio->num, argi, bio->method->name); in BIO_debug_callback() 94 if (bio->method->type & BIO_TYPE_DESCRIPTOR) in BIO_debug_callback() 96 bio->num, argi, bio->method->name, bio->num); in BIO_debug_callback() 99 bio->num, argi, bio->method->name); in BIO_debug_callback() 102 BIO_snprintf(p, p_maxlen, "puts() - %s\n", bio->method->name); in BIO_debug_callback() [all …]
|
| D | bss_acpt.c | 169 static void acpt_close_socket(BIO *bio) in acpt_close_socket() argument 173 c = (BIO_ACCEPT *)bio->ptr; in acpt_close_socket() 178 bio->num = INVALID_SOCKET; in acpt_close_socket() 202 BIO *bio = NULL, *dbio; in acpt_state() local 249 bio = BIO_new_socket(i, BIO_CLOSE); in acpt_state() 250 if (bio == NULL) in acpt_state() 253 BIO_set_callback(bio, BIO_get_callback(b)); in acpt_state() 254 BIO_set_callback_arg(bio, BIO_get_callback_arg(b)); in acpt_state() 271 if (!BIO_push(dbio, bio)) in acpt_state() 273 bio = dbio; in acpt_state() [all …]
|
| /freebsd-9-stable/sys/sys/ |
| D | bio.h | 63 struct bio; 74 struct bio { struct 86 void (*bio_done)(struct bio *); argument 91 TAILQ_ENTRY(bio) bio_queue; /* Disksort queue. */ 99 struct bio *bio_parent; /* Pointer to parent */ argument 127 TAILQ_HEAD(bio_queue, bio) queue; 129 struct bio *insert_point; 135 void biodone(struct bio *bp); 136 void biofinish(struct bio *bp, struct devstat *stat, int error); 137 int biowait(struct bio *bp, const char *wchan); [all …]
|
| /freebsd-9-stable/sys/dev/mfi/ |
| D | mfi_disk.c | 258 mfi_disk_strategy(struct bio *bio) in mfi_disk_strategy() argument 263 sc = bio->bio_disk->d_drv1; in mfi_disk_strategy() 266 bio->bio_error = EINVAL; in mfi_disk_strategy() 267 bio->bio_flags |= BIO_ERROR; in mfi_disk_strategy() 268 bio->bio_resid = bio->bio_bcount; in mfi_disk_strategy() 269 biodone(bio); in mfi_disk_strategy() 275 bio->bio_error = EBUSY; in mfi_disk_strategy() 280 bio->bio_error = EBUSY; in mfi_disk_strategy() 285 bio->bio_error = EBUSY; in mfi_disk_strategy() 289 bio->bio_driver1 = (void *)(uintptr_t)sc->ld_id; in mfi_disk_strategy() [all …]
|
| D | mfi_syspd.c | 237 mfi_syspd_strategy(struct bio *bio) in mfi_syspd_strategy() argument 242 sc = bio->bio_disk->d_drv1; in mfi_syspd_strategy() 245 bio->bio_error = EINVAL; in mfi_syspd_strategy() 246 bio->bio_flags |= BIO_ERROR; in mfi_syspd_strategy() 247 bio->bio_resid = bio->bio_bcount; in mfi_syspd_strategy() 248 biodone(bio); in mfi_syspd_strategy() 253 bio->bio_driver1 = (void *)(uintptr_t)sc->pd_id; in mfi_syspd_strategy() 255 bio->bio_driver2 = (void *)MFI_SYS_PD_IO; in mfi_syspd_strategy() 257 mfi_enqueue_bio(controller, bio); in mfi_syspd_strategy()
|
| /freebsd-9-stable/crypto/openssl/crypto/asn1/ |
| D | asn_mime.c | 96 static STACK_OF(MIME_HEADER) *mime_parse_hdr(BIO *bio); 103 static int multi_split(BIO *bio, char *bound, STACK_OF(BIO) **ret); 135 static ASN1_VALUE *b64_read_asn1(BIO *bio, const ASN1_ITEM *it) in b64_read_asn1() argument 143 bio = BIO_push(b64, bio); in b64_read_asn1() 144 val = ASN1_item_d2i_bio(it, bio, NULL); in b64_read_asn1() 147 (void)BIO_flush(bio); in b64_read_asn1() 148 bio = BIO_pop(bio); in b64_read_asn1() 204 int int_smime_write_ASN1(BIO *bio, ASN1_VALUE *val, BIO *data, int flags, in int_smime_write_ASN1() argument 235 BIO_printf(bio, "MIME-Version: 1.0%s", mime_eol); in int_smime_write_ASN1() 236 BIO_printf(bio, "Content-Type: multipart/signed;"); in int_smime_write_ASN1() [all …]
|
| /freebsd-9-stable/sys/dev/nvme/ |
| D | nvme_test.c | 73 nvme_ns_bio_test_cb(struct bio *bio) in nvme_ns_bio_test_cb() argument 77 mtx = mtx_pool_find(mtxpool_sleep, bio); in nvme_ns_bio_test_cb() 79 wakeup(bio); in nvme_ns_bio_test_cb() 89 struct bio *bio; in nvme_ns_bio_test() local 107 bio = g_alloc_bio(); in nvme_ns_bio_test() 109 memset(bio, 0, sizeof(*bio)); in nvme_ns_bio_test() 110 bio->bio_cmd = (io_test->opc == NVME_OPC_READ) ? in nvme_ns_bio_test() 112 bio->bio_done = nvme_ns_bio_test_cb; in nvme_ns_bio_test() 113 bio->bio_dev = dev; in nvme_ns_bio_test() 114 bio->bio_offset = offset; in nvme_ns_bio_test() [all …]
|
| D | nvme_ns.c | 48 static void nvme_bio_child_inbed(struct bio *parent, int bio_error); 54 struct bio **child_bios); 55 static struct bio ** nvme_allocate_child_bios(int num_bios); 56 static struct bio ** nvme_construct_child_bios(struct bio *bp, 60 struct bio *bp, 119 struct bio *bp = arg; in nvme_ns_strategy_done() 136 nvme_ns_strategy(struct bio *bp) in nvme_ns_strategy() 216 struct bio *bp = arg; in nvme_ns_bio_done() 239 nvme_bio_child_inbed(struct bio *parent, int bio_error) in nvme_bio_child_inbed() 265 struct bio *child = arg; in nvme_bio_child_done() [all …]
|
| /freebsd-9-stable/sys/dev/amr/ |
| D | amr_disk.c | 161 amrd_strategy(struct bio *bio) in amrd_strategy() argument 163 struct amrd_softc *sc = (struct amrd_softc *)bio->bio_disk->d_drv1; in amrd_strategy() 167 bio->bio_error = EINVAL; in amrd_strategy() 171 amr_submit_bio(sc->amrd_controller, bio); in amrd_strategy() 175 bio->bio_flags |= BIO_ERROR; in amrd_strategy() 180 bio->bio_resid = bio->bio_bcount; in amrd_strategy() 181 biodone(bio); in amrd_strategy() 188 struct bio *bio = (struct bio *)data; in amrd_intr() local 192 if (bio->bio_flags & BIO_ERROR) { in amrd_intr() 193 bio->bio_error = EIO; in amrd_intr() [all …]
|
| D | amrvar.h | 142 struct bio *ac_bio; 296 extern int amr_submit_bio(struct amr_softc *sc, struct bio *bio); 304 amr_enqueue_bio(struct amr_softc *sc, struct bio *bio) in amr_enqueue_bio() argument 307 bioq_insert_tail(&sc->amr_bioq, bio); in amr_enqueue_bio() 310 static __inline struct bio * 313 struct bio *bio; in amr_dequeue_bio() local 315 if ((bio = bioq_first(&sc->amr_bioq)) != NULL) in amr_dequeue_bio() 316 bioq_remove(&sc->amr_bioq, bio); in amr_dequeue_bio() 317 return(bio); in amr_dequeue_bio()
|
| /freebsd-9-stable/crypto/openssl/doc/crypto/ |
| D | BIO_f_md.pod | 9 #include <openssl/bio.h> 74 BIO *bio, *mdtmp; 76 bio = BIO_new(BIO_s_null()); 82 bio = BIO_push(mdtmp, bio); 85 bio = BIO_push(mdtmp, bio); 87 BIO_write(bio, message, strlen(message)); 91 BIO *bio, *mdtmp; 94 bio = BIO_new_file(file, "rb"); 97 bio = BIO_push(mdtmp, bio); 100 bio = BIO_push(mdtmp, bio); [all …]
|
| /freebsd-9-stable/sys/geom/sched/ |
| D | subr_disk.c | 115 gs_bioq_remove(struct bio_queue_head *head, struct bio *bp) in gs_bioq_remove() 130 struct bio *bp; in gs_bioq_flush() 137 gs_bioq_insert_head(struct bio_queue_head *head, struct bio *bp) in gs_bioq_insert_head() 146 gs_bioq_insert_tail(struct bio_queue_head *head, struct bio *bp) in gs_bioq_insert_tail() 154 struct bio * 161 struct bio * 164 struct bio *bp; in gs_bioq_takefirst() 178 gs_bioq_bio_key(struct bio_queue_head *head, struct bio *bp) in gs_bioq_bio_key() 192 gs_bioq_disksort(struct bio_queue_head *head, struct bio *bp) in gs_bioq_disksort() 194 struct bio *cur, *prev; in gs_bioq_disksort()
|
| D | g_sched.h | 128 void gs_bioq_remove(struct bio_queue_head *, struct bio *); 130 void gs_bioq_insert_head(struct bio_queue_head *, struct bio *); 131 void gs_bioq_insert_tail(struct bio_queue_head *, struct bio *); 132 struct bio *gs_bioq_first(struct bio_queue_head *); 133 struct bio *gs_bioq_takefirst(struct bio_queue_head *); 134 void gs_bioq_disksort(struct bio_queue_head *, struct bio *);
|
| D | gs_scheduler.h | 98 typedef int gs_start_t (void *data, struct bio *bio); 99 typedef void gs_done_t (void *data, struct bio *bio); 100 typedef struct bio *gs_next_t (void *data, int force); 151 void *g_sched_get_class(struct g_geom *gp, struct bio *bp);
|
| /freebsd-9-stable/sys/geom/ |
| D | geom.h | 55 struct bio; 76 typedef void g_start_t (struct bio *); 155 TAILQ_HEAD(, bio) bio_queue; 218 int (*func)(void *arg, struct bio *bp); 265 int g_handleattr(struct bio *bp, const char *attribute, const void *val, 267 int g_handleattr_int(struct bio *bp, const char *attribute, int val); 268 int g_handleattr_off_t(struct bio *bp, const char *attribute, off_t val); 269 int g_handleattr_str(struct bio *bp, const char *attribute, const char *str); 278 void g_std_done(struct bio *bp); 306 struct bio * g_clone_bio(struct bio *); [all …]
|
| D | geom_io.c | 116 static struct bio * 119 struct bio *bp; in g_bioq_first() 132 struct bio * 135 struct bio *bp; in g_new_bio() 150 struct bio * 153 struct bio *bp; in g_alloc_bio() 169 g_destroy_bio(struct bio *bp) in g_destroy_bio() 183 struct bio * 184 g_clone_bio(struct bio *bp) in g_clone_bio() 186 struct bio *bp2; in g_clone_bio() [all …]
|
| /freebsd-9-stable/sys/geom/vinum/ |
| D | geom_vinum.h | 131 void gv_start(struct bio *); 136 void gv_done(struct bio *); 137 void gv_volume_start(struct gv_softc *, struct bio *); 139 void gv_bio_done(struct gv_softc *, struct bio *); 142 void gv_plex_start(struct gv_plex *, struct bio *); 143 void gv_plex_raid5_done(struct gv_plex *, struct bio *); 144 void gv_plex_normal_done(struct gv_plex *, struct bio *); 146 void gv_grow_complete(struct gv_plex *, struct bio *); 148 void gv_init_complete(struct gv_plex *, struct bio *); 150 void gv_parity_complete(struct gv_plex *, struct bio *); [all …]
|
| D | geom_vinum_raid5.h | 43 struct bio *bio; /* Pointer to the original bio. */ member 44 struct bio *parity; /* The bio containing the parity data. */ 45 struct bio *waiting; /* A bio that need to wait for other bios. */ 51 struct gv_raid5_packet * gv_raid5_start(struct gv_plex *, struct bio *, 53 int gv_stripe_active(struct gv_plex *, struct bio *);
|
| D | geom_vinum_raid5.c | 43 static struct bio * gv_raid5_clone_bio(struct bio *, struct gv_sd *, 46 struct bio *, caddr_t, off_t, off_t, int *); 48 struct bio *, caddr_t, off_t, off_t); 50 struct bio *, caddr_t, off_t, off_t); 53 gv_raid5_start(struct gv_plex *p, struct bio *bp, caddr_t addr, off_t boff, in gv_raid5_start() 56 struct bio *cbp; in gv_raid5_start() 63 wp->bio = bp; in gv_raid5_start() 103 if (wp->bio != bp) in gv_raid5_start() 144 gv_stripe_active(struct gv_plex *p, struct bio *bp) in gv_stripe_active() 173 gv_raid5_check(struct gv_plex *p, struct gv_raid5_packet *wp, struct bio *bp, in gv_raid5_check() [all …]
|
| /freebsd-9-stable/sys/kern/ |
| D | subr_disk.c | 34 disk_err(struct bio *bp, const char *what, int blkdone, int nl) in disk_err() 156 bioq_remove(struct bio_queue_head *head, struct bio *bp) in bioq_remove() 171 struct bio *bp; in bioq_flush() 178 bioq_insert_head(struct bio_queue_head *head, struct bio *bp) in bioq_insert_head() 187 bioq_insert_tail(struct bio_queue_head *head, struct bio *bp) in bioq_insert_tail() 195 struct bio * 202 struct bio * 205 struct bio *bp; in bioq_takefirst() 219 bioq_bio_key(struct bio_queue_head *head, struct bio *bp) in bioq_bio_key() 233 bioq_disksort(struct bio_queue_head *head, struct bio *bp) in bioq_disksort() [all …]
|
| /freebsd-9-stable/crypto/openssl/apps/ |
| D | s_cb.c | 261 long MS_CALLBACK bio_dump_callback(BIO *bio, int cmd, const char *argp, in bio_dump_callback() argument 266 out = (BIO *)BIO_get_callback_arg(bio); in bio_dump_callback() 272 (void *)bio, argp, argi, ret, ret); in bio_dump_callback() 277 (void *)bio, argp, argi, ret, ret); in bio_dump_callback() 319 BIO *bio = arg; in msg_cb() local 567 BIO_printf(bio, "%s %s%s [length %04lx]%s%s\n", str_write_p, str_version, in msg_cb() 574 BIO_printf(bio, " "); in msg_cb() 582 BIO_printf(bio, "\n "); in msg_cb() 583 BIO_printf(bio, " %02x", ((const unsigned char *)buf)[i]); in msg_cb() 586 BIO_printf(bio, " ..."); in msg_cb() [all …]
|
| /freebsd-9-stable/crypto/openssl/crypto/pkcs7/ |
| D | pk7_doit.c | 137 BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) in PKCS7_dataInit() argument 295 if (bio == NULL) { in PKCS7_dataInit() 297 bio = BIO_new(BIO_s_null()); in PKCS7_dataInit() 299 bio = BIO_new_mem_buf(os->data, os->length); in PKCS7_dataInit() 300 if (bio == NULL) { in PKCS7_dataInit() 301 bio = BIO_new(BIO_s_mem()); in PKCS7_dataInit() 302 if (bio == NULL) in PKCS7_dataInit() 304 BIO_set_mem_eof_return(bio, 0); in PKCS7_dataInit() 307 BIO_push(out, bio); in PKCS7_dataInit() 308 bio = NULL; in PKCS7_dataInit() [all …]
|
| /freebsd-9-stable/share/doc/papers/bufbio/ |
| D | Makefile | 4 DOC= bio 5 SRCS= bio.ms-patched 9 CLEANFILES= bio.ms-patched 11 bio.ms-patched: bio.ms
|