Home
last modified time | relevance | path

Searched refs:bio (Results 1 – 25 of 70) sorted by relevance

123

/external/kernel-headers/original/linux/
Dbio.h64 struct bio;
65 typedef int (bio_end_io_t) (struct bio *, unsigned int, int);
66 typedef void (bio_destructor_t) (struct bio *);
72 struct bio { struct
74 struct bio *bi_next; /* request queue link */ argument
127 #define bio_flagged(bio, flag) ((bio)->bi_flags & (1 << (flag))) argument
135 #define BIO_POOL_IDX(bio) ((bio)->bi_flags >> BIO_POOL_OFFSET) argument
156 #define bio_prio(bio) ((bio)->bi_rw >> BIO_PRIO_SHIFT) argument
157 #define bio_prio_valid(bio) ioprio_valid(bio_prio(bio)) argument
159 #define bio_set_prio(bio, prio) do { \ argument
[all …]
Dblk_types.h13 struct bio;
17 typedef void (bio_end_io_t) (struct bio *, int);
18 typedef void (bio_destructor_t) (struct bio *);
33 struct bio { struct
36 struct bio *bi_next; /* request queue link */ argument
101 #define bio_flagged(bio, flag) ((bio)->bi_flags & (1 << (flag))) argument
110 #define BIO_POOL_IDX(bio) ((bio)->bi_flags >> BIO_POOL_OFFSET) argument
Delevator.h5 struct bio *);
17 typedef int (elevator_may_queue_fn) (request_queue_t *, int, struct bio *);
19 typedef int (elevator_set_req_fn) (request_queue_t *, struct request *, struct bio *, gfp_t);
94 extern int elv_merge(request_queue_t *, struct request **, struct bio *);
106 extern int elv_may_queue(request_queue_t *, int, struct bio *);
108 extern int elv_set_request(request_queue_t *, struct request *, struct bio *, gfp_t);
125 extern int elv_rq_merge_ok(struct request *, struct bio *);
Dblkdev.h148 struct bio *bio; member
149 struct bio *biotail;
286 struct bio *);
290 typedef int (make_request_fn) (request_queue_t *q, struct bio *bio);
295 typedef int (merge_bvec_fn) (request_queue_t *, struct bio *, struct bio_vec *);
574 extern void blk_queue_bounce(request_queue_t *q, struct bio **bio);
580 static inline void blk_queue_bounce(request_queue_t *q, struct bio **bio) in blk_queue_bounce() argument
586 if ((rq->bio)) \
587 for (_bio = (rq)->bio; _bio; _bio = _bio->bi_next)
597 extern void generic_make_request(struct bio *bio);
[all …]
/external/openssl/crypto/bio/
Dbio_lib.c84 int BIO_set(BIO *bio, BIO_METHOD *method) in BIO_set() argument
86 bio->method=method; in BIO_set()
87 bio->callback=NULL; in BIO_set()
88 bio->cb_arg=NULL; in BIO_set()
89 bio->init=0; in BIO_set()
90 bio->shutdown=1; in BIO_set()
91 bio->flags=0; in BIO_set()
92 bio->retry_reason=0; in BIO_set()
93 bio->num=0; in BIO_set()
94 bio->ptr=NULL; in BIO_set()
[all …]
Dbss_bio.c96 static int bio_new(BIO *bio);
97 static int bio_free(BIO *bio);
98 static int bio_read(BIO *bio, char *buf, int size);
99 static int bio_write(BIO *bio, const char *buf, int num);
100 static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr);
101 static int bio_puts(BIO *bio, const char *str);
104 static void bio_destroy_pair(BIO *bio);
145 static int bio_new(BIO *bio) in bio_new() argument
157 bio->ptr = b; in bio_new()
162 static int bio_free(BIO *bio) in bio_free() argument
[all …]
Dbio_cb.c66 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()
84 BIO_snprintf(p,p_maxlen,"Free - %s\n",bio->method->name); in BIO_debug_callback()
87 if (bio->method->type & BIO_TYPE_DESCRIPTOR) in BIO_debug_callback()
89 bio->num,(unsigned long)argi, in BIO_debug_callback()
90 bio->method->name,bio->num); in BIO_debug_callback()
93 bio->num,(unsigned long)argi, in BIO_debug_callback()
94 bio->method->name); in BIO_debug_callback()
97 if (bio->method->type & BIO_TYPE_DESCRIPTOR) in BIO_debug_callback()
99 bio->num,(unsigned long)argi, in BIO_debug_callback()
[all …]
Dbss_acpt.c168 static void acpt_close_socket(BIO *bio) in acpt_close_socket() argument
172 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
253 bio=BIO_new_socket(i,BIO_CLOSE); in acpt_state()
254 if (bio == NULL) goto err; in acpt_state()
256 BIO_set_callback(bio,BIO_get_callback(b)); in acpt_state()
257 BIO_set_callback_arg(bio,BIO_get_callback_arg(b)); in acpt_state()
274 if (!BIO_push(dbio,bio)) goto err; in acpt_state()
275 bio=dbio; in acpt_state()
[all …]
Dbio.h480 #define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(char *)bio) argument
614 int BIO_set_ex_data(BIO *bio,int idx,void *data);
615 void *BIO_get_ex_data(BIO *bio,int idx);
618 unsigned long BIO_number_read(BIO *bio);
619 unsigned long BIO_number_written(BIO *bio);
655 BIO * BIO_get_retry_BIO(BIO *bio, int *reason);
656 int BIO_get_retry_reason(BIO *bio);
659 int BIO_nread0(BIO *bio, char **buf);
660 int BIO_nread(BIO *bio, char **buf, int num);
661 int BIO_nwrite0(BIO *bio, char **buf);
[all …]
Dbss_conn.c98 int (*info_callback)(const BIO *bio,int state,int ret);
369 static void conn_close_socket(BIO *bio) in conn_close_socket() argument
373 c=(BIO_CONNECT *)bio->ptr; in conn_close_socket()
374 if (bio->num != INVALID_SOCKET) in conn_close_socket()
378 shutdown(bio->num,2); in conn_close_socket()
379 closesocket(bio->num); in conn_close_socket()
380 bio->num=INVALID_SOCKET; in conn_close_socket()
593 int (**fptr)(const BIO *bio,int state,int xret); in conn_ctrl()
595 fptr=(int (**)(const BIO *bio,int state,int xret))ptr; in conn_ctrl()
/external/openssl/crypto/asn1/
Dasn_mime.c97 static STACK_OF(MIME_HEADER) *mime_parse_hdr(BIO *bio);
104 static int multi_split(BIO *bio, char *bound, STACK_OF(BIO) **ret);
121 BIO *bio, *tbio; in i2d_ASN1_bio_stream() local
122 bio = BIO_new_NDEF(out, val, it); in i2d_ASN1_bio_stream()
123 if (!bio) in i2d_ASN1_bio_stream()
128 SMIME_crlf_copy(in, bio, flags); in i2d_ASN1_bio_stream()
129 (void)BIO_flush(bio); in i2d_ASN1_bio_stream()
133 tbio = BIO_pop(bio); in i2d_ASN1_bio_stream()
134 BIO_free(bio); in i2d_ASN1_bio_stream()
135 bio = tbio; in i2d_ASN1_bio_stream()
[all …]
/external/chromium/third_party/libjingle/source/talk/base/
Dopensslidentity.cc209 BIO* bio = BIO_new_mem_buf(const_cast<char*>(pem_string.c_str()), -1); in FromPEMString() local
210 if (!bio) in FromPEMString()
212 (void)BIO_set_close(bio, BIO_NOCLOSE); in FromPEMString()
213 BIO_set_mem_eof_return(bio, 0); in FromPEMString()
214 X509 *x509 = PEM_read_bio_X509(bio, NULL, NULL, in FromPEMString()
217 int remaining_length = BIO_get_mem_data(bio, &ptr); in FromPEMString()
218 BIO_free(bio); in FromPEMString()
232 BIO* bio = BIO_new(BIO_s_mem()); in ToPEMString() local
233 if (!bio) in ToPEMString()
235 if (!PEM_write_bio_X509(bio, x509_)) { in ToPEMString()
[all …]
/external/openssl/crypto/pkcs7/
Dpk7_doit.c263 BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) in PKCS7_dataInit() argument
377 if (bio == NULL) in PKCS7_dataInit()
380 bio=BIO_new(BIO_s_null()); in PKCS7_dataInit()
382 bio = BIO_new_mem_buf(os->data, os->length); in PKCS7_dataInit()
383 if(bio == NULL) in PKCS7_dataInit()
385 bio=BIO_new(BIO_s_mem()); in PKCS7_dataInit()
386 if (bio == NULL) in PKCS7_dataInit()
388 BIO_set_mem_eof_return(bio,0); in PKCS7_dataInit()
392 BIO_push(out,bio); in PKCS7_dataInit()
394 out = bio; in PKCS7_dataInit()
[all …]
Dpk7_mime.c77 int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags) in SMIME_write_PKCS7() argument
89 return SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags, in SMIME_write_PKCS7()
94 PKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont) in SMIME_read_PKCS7() argument
96 return (PKCS7 *)SMIME_read_ASN1(bio, bcont, ASN1_ITEM_rptr(PKCS7)); in SMIME_read_PKCS7()
/external/openssl/apps/
Ds_cb.c281 long MS_CALLBACK bio_dump_callback(BIO *bio, int cmd, const char *argp, in bio_dump_callback() argument
286 out=(BIO *)BIO_get_callback_arg(bio); in bio_dump_callback()
292 (void *)bio,argp,(unsigned long)argi,ret,ret); in bio_dump_callback()
299 (void *)bio,argp,(unsigned long)argi,ret,ret); in bio_dump_callback()
344 BIO *bio = arg; in msg_cb() local
633 …BIO_printf(bio, "%s %s%s [length %04lx]%s%s\n", str_write_p, str_version, str_content_type, (unsig… in msg_cb()
639 BIO_printf(bio, " "); in msg_cb()
648 BIO_printf(bio, "\n "); in msg_cb()
649 BIO_printf(bio, " %02x", ((const unsigned char*)buf)[i]); in msg_cb()
652 BIO_printf(bio, " ..."); in msg_cb()
[all …]
Ds_client.c1940 static void print_stuff(BIO *bio, SSL *s, int full) in print_stuff() argument
1965 BIO_printf(bio,"---\nCertificate chain\n"); in print_stuff()
1970 BIO_printf(bio,"%2d s:%s\n",i,buf); in print_stuff()
1973 BIO_printf(bio," i:%s\n",buf); in print_stuff()
1975 PEM_write_bio_X509(bio,sk_X509_value(sk,i)); in print_stuff()
1979 BIO_printf(bio,"---\n"); in print_stuff()
1983 BIO_printf(bio,"Server certificate\n"); in print_stuff()
1985 PEM_write_bio_X509(bio,peer); in print_stuff()
1988 BIO_printf(bio,"subject=%s\n",buf); in print_stuff()
1991 BIO_printf(bio,"issuer=%s\n",buf); in print_stuff()
[all …]
Dsrp.c143 static void print_entry(CA_DB *db, BIO *bio, int indx, int verbose, char *s) in print_entry() argument
149 BIO_printf(bio, "%s \"%s\"\n", s, pp[DB_srpid]); in print_entry()
157 static void print_index(CA_DB *db, BIO *bio, int indexindex, int verbose) in print_index() argument
159 print_entry(db, bio, indexindex, verbose, "g N entry") ; in print_index()
162 static void print_user(CA_DB *db, BIO *bio, int userindex, int verbose) in print_user() argument
170 print_entry(db, bio, userindex, verbose, "User entry"); in print_user()
171 print_entry(db, bio, get_index(db, pp[DB_srpgN], 'I'), verbose, "g N entry"); in print_user()
177 static int update_index(CA_DB *db, BIO *bio, char **row) in update_index() argument
197 BIO_printf(bio,"failed to update srpvfile\n"); in update_index()
198 BIO_printf(bio,"TXT_DB error number %ld\n",db->db->error); in update_index()
[all …]
/external/chromium/crypto/
Drsa_private_key_openssl.cc33 ScopedOpenSSL<BIO, BIO_free_all> bio(BIO_new(BIO_s_mem())); in ExportKey() local
35 int res = export_fn(bio.get(), key); in ExportKey()
40 long len = BIO_get_mem_data(bio.get(), &data); in ExportKey()
84 ScopedOpenSSL<BIO, BIO_free_all> bio(BIO_new_mem_buf(data, input.size())); in CreateFromPrivateKeyInfo() local
85 if (!bio.get()) in CreateFromPrivateKeyInfo()
92 d2i_PKCS8_PRIV_KEY_INFO_bio(bio.get(), NULL)); in CreateFromPrivateKeyInfo()
Dsignature_verifier_openssl.cc54 ScopedOpenSSL<BIO, BIO_free_all> bio(BIO_new_mem_buf(data, in VerifyInit() local
56 if (!bio.get()) in VerifyInit()
59 verify_context_->public_key.reset(d2i_PUBKEY_bio(bio.get(), NULL)); in VerifyInit()
/external/openssl/crypto/err/
Derr_prn.c92 BIO bio; in print_fp() local
94 BIO_set(&bio,BIO_s_file()); in print_fp()
95 BIO_set_fp(&bio,fp,BIO_NOCLOSE); in print_fp()
97 return BIO_printf(&bio, "%s", str); in print_fp()
/external/ipsec-tools/src/racoon/
Dcrypto_openssl.c478 BIO *bio = BIO_from_android(CAfile); local
483 if (!bio) {
486 stack = PEM_X509_INFO_read_bio(bio, NULL, NULL, NULL);
487 BIO_free(bio);
797 BIO *bio = NULL; local
807 bio = BIO_new(BIO_s_mem());
808 if (bio == NULL)
811 error = X509_print(bio, x509);
817 len = BIO_get_mem_data(bio, &bp);
834 if (bio)
[all …]
/external/openssl/include/openssl/
Dbio.h480 #define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(char *)bio) argument
614 int BIO_set_ex_data(BIO *bio,int idx,void *data);
615 void *BIO_get_ex_data(BIO *bio,int idx);
618 unsigned long BIO_number_read(BIO *bio);
619 unsigned long BIO_number_written(BIO *bio);
655 BIO * BIO_get_retry_BIO(BIO *bio, int *reason);
656 int BIO_get_retry_reason(BIO *bio);
659 int BIO_nread0(BIO *bio, char **buf);
660 int BIO_nread(BIO *bio, char **buf, int num);
661 int BIO_nwrite0(BIO *bio, char **buf);
[all …]
/external/wpa_supplicant_8/src/crypto/
Dtls_openssl.c53 BIO *bio = NULL; in BIO_from_keystore() local
56 if (length != -1 && (bio = BIO_new(BIO_s_mem())) != NULL) { in BIO_from_keystore()
57 BIO_write(bio, value, length); in BIO_from_keystore()
60 return bio; in BIO_from_keystore()
1440 BIO *bio = BIO_from_keystore(&ca_cert[11]); in tls_connection_ca_cert() local
1444 if (bio) { in tls_connection_ca_cert()
1445 stack = PEM_X509_INFO_read_bio(bio, NULL, NULL, NULL); in tls_connection_ca_cert()
1446 BIO_free(bio); in tls_connection_ca_cert()
1640 BIO *bio = BIO_from_keystore(&client_cert[11]); in tls_connection_client_cert() local
1643 if (bio) { in tls_connection_client_cert()
[all …]
/external/openssl/
DCrypto-config.mk123 crypto/bio/b_dump.c \
124 crypto/bio/b_print.c \
125 crypto/bio/b_sock.c \
126 crypto/bio/bf_buff.c \
127 crypto/bio/bf_nbio.c \
128 crypto/bio/bf_null.c \
129 crypto/bio/bio_cb.c \
130 crypto/bio/bio_err.c \
131 crypto/bio/bio_lib.c \
132 crypto/bio/bss_acpt.c \
[all …]
/external/openssh/
Dauthfile.c181 BIO *bio; in key_private_pem_to_blob() local
187 if ((bio = BIO_new(BIO_s_mem())) == NULL) { in key_private_pem_to_blob()
193 success = PEM_write_bio_DSAPrivateKey(bio, key->dsa, in key_private_pem_to_blob()
198 success = PEM_write_bio_ECPrivateKey(bio, key->ecdsa, in key_private_pem_to_blob()
203 success = PEM_write_bio_RSAPrivateKey(bio, key->rsa, in key_private_pem_to_blob()
208 if ((blen = BIO_get_mem_data(bio, &bptr)) <= 0) in key_private_pem_to_blob()
213 BIO_free(bio); in key_private_pem_to_blob()
525 BIO *bio; in key_parse_private_pem() local
527 if ((bio = BIO_new_mem_buf(buffer_ptr(blob), in key_parse_private_pem()
533 pk = PEM_read_bio_PrivateKey(bio, NULL, NULL, (char *)passphrase); in key_parse_private_pem()
[all …]

123