Home
last modified time | relevance | path

Searched refs:serial (Results 1 – 25 of 152) sorted by relevance

1234567

/dragonfly/contrib/gdb-7/gdb/
HDserial.h36 struct serial;
45 extern struct serial *serial_open (const char *name);
49 extern int serial_is_open (struct serial *scb);
53 extern struct serial *serial_for_fd (int fd);
57 extern struct serial *serial_fdopen (const int fd);
61 extern void serial_close (struct serial *scb);
65 extern void serial_ref (struct serial *scb);
69 extern void serial_unref (struct serial *scb);
82 extern int serial_pipe (struct serial *scbs[2]);
86 extern void serial_un_fdopen (struct serial *scb);
[all …]
HDser-base.h23 struct serial;
26 extern int generic_readchar (struct serial *scb, int timeout,
27 int (*do_readchar) (struct serial *scb,
29 extern int ser_base_flush_output (struct serial *scb);
30 extern int ser_base_flush_input (struct serial *scb);
31 extern int ser_base_send_break (struct serial *scb);
32 extern void ser_base_raw (struct serial *scb);
33 extern serial_ttystate ser_base_get_tty_state (struct serial *scb);
34 extern serial_ttystate ser_base_copy_tty_state (struct serial *scb,
36 extern int ser_base_set_tty_state (struct serial *scb,
[all …]
HDserial.c39 static struct serial *scb_base;
168 struct serial *
171 struct serial *scb; in serial_for_fd()
182 struct serial *
185 struct serial *scb; in serial_open()
211 scb = XMALLOC (struct serial); in serial_open()
248 static struct serial *
251 struct serial *scb; in serial_fdopen_ops()
263 scb = XCALLOC (1, struct serial); in serial_fdopen_ops()
288 struct serial *
[all …]
HDser-base.c67 reschedule (struct serial *scb) in reschedule()
130 run_async_handler_and_reschedule (struct serial *scb) in run_async_handler_and_reschedule()
158 struct serial *scb = context; in fd_event()
195 struct serial *scb = context; in push_event()
205 ser_base_wait_for (struct serial *scb, int timeout) in ser_base_wait_for()
248 ser_base_read_error_fd (struct serial *scb, int close_fd) in ser_base_read_error_fd()
309 do_ser_base_readchar (struct serial *scb, int timeout) in do_ser_base_readchar()
395 generic_readchar (struct serial *scb, int timeout, in generic_readchar()
396 int (do_readchar) (struct serial *scb, int timeout)) in generic_readchar()
437 ser_base_readchar (struct serial *scb, int timeout) in ser_base_readchar()
[all …]
HDser-unix.c79 static int hardwire_open (struct serial *scb, const char *name);
80 static void hardwire_raw (struct serial *scb);
81 static int wait_for (struct serial *scb, int timeout);
82 static int hardwire_readchar (struct serial *scb, int timeout);
83 static int do_hardwire_readchar (struct serial *scb, int timeout);
85 static int hardwire_setbaudrate (struct serial *scb, int rate);
86 static void hardwire_close (struct serial *scb);
87 static int get_tty_state (struct serial *scb,
89 static int set_tty_state (struct serial *scb,
91 static serial_ttystate hardwire_get_tty_state (struct serial *scb);
[all …]
HDser-tcp.h23 struct serial;
25 extern int net_open (struct serial *scb, const char *name);
26 extern void net_close (struct serial *scb);
27 extern int net_read_prim (struct serial *scb, size_t count);
28 extern int net_write_prim (struct serial *scb, const void *buf, size_t count);
29 extern int ser_tcp_send_break (struct serial *scb);
HDser-tcp.c86 wait_for_connect (struct serial *scb, int *polls) in wait_for_connect()
156 net_open (struct serial *scb, const char *name) in net_open()
329 net_close (struct serial *scb) in net_close()
339 net_read_prim (struct serial *scb, size_t count) in net_read_prim()
345 net_write_prim (struct serial *scb, const void *buf, size_t count) in net_write_prim()
351 ser_tcp_send_break (struct serial *scb) in ser_tcp_send_break()
HDser-pipe.c36 static int pipe_open (struct serial *scb, const char *name);
37 static void pipe_close (struct serial *scb);
49 pipe_open (struct serial *scb, const char *name) in pipe_open()
155 pipe_close (struct serial *scb) in pipe_close()
HDser-unix.h23 extern int ser_unix_read_prim (struct serial *scb, size_t count);
24 extern int ser_unix_write_prim (struct serial *scb, const void *buf,
/dragonfly/sys/dev/disk/nata/chipsets/
HData-acard.c211 struct ata_serialize *serial; in ata_serialize() local
216 serial = kmalloc(sizeof(struct ata_serialize), in ata_serialize()
218 lockinit(&serial->locked_mtx, "ataserialize", 0, 0); in ata_serialize()
219 serial->locked_ch = -1; in ata_serialize()
220 serial->restart_ch = -1; in ata_serialize()
221 device_set_ivars(ctlr->dev, serial); in ata_serialize()
225 serial = device_get_ivars(ctlr->dev); in ata_serialize()
227 lockmgr(&serial->locked_mtx, LK_EXCLUSIVE); in ata_serialize()
230 if (serial->locked_ch == -1) in ata_serialize()
231 serial->locked_ch = ch->unit; in ata_serialize()
[all …]
/dragonfly/crypto/libressl/crypto/x509/
HDx509_akey.c118 if (akeyid->serial != NULL) { in STACK_OF()
119 if ((tmpstr = hex_to_string(akeyid->serial->data, in STACK_OF()
120 akeyid->serial->length)) == NULL) in STACK_OF()
159 ASN1_INTEGER *serial = NULL; in v2i_AUTHORITY_KEYID() local
202 serial = ASN1_INTEGER_dup(X509_get_serialNumber(cert)); in v2i_AUTHORITY_KEYID()
203 if (!isname || !serial) { in v2i_AUTHORITY_KEYID()
224 akeyid->serial = serial; in v2i_AUTHORITY_KEYID()
234 ASN1_INTEGER_free(serial); in v2i_AUTHORITY_KEYID()
HDx509cset.c197 X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial) in X509_REVOKED_set_serialNumber() argument
204 if (in != serial) { in X509_REVOKED_set_serialNumber()
205 in = ASN1_INTEGER_dup(serial); in X509_REVOKED_set_serialNumber()
HDx509_set.c99 X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial) in X509_set_serialNumber() argument
106 if (in != serial) { in X509_set_serialNumber()
107 in = ASN1_INTEGER_dup(serial); in X509_set_serialNumber()
/dragonfly/crypto/libressl/apps/openssl/
HDts.c104 static int save_ts_serial(const char *serialfile, ASN1_INTEGER *serial);
983 ASN1_INTEGER *serial = next_serial(serial_file); in serial_cb() local
985 if (serial == NULL) { in serial_cb()
992 save_ts_serial(serial_file, serial); in serial_cb()
994 return serial; in serial_cb()
1002 ASN1_INTEGER *serial = NULL; in next_serial() local
1005 if ((serial = ASN1_INTEGER_new()) == NULL) in next_serial()
1012 if (!ASN1_INTEGER_set(serial, 1)) in next_serial()
1016 if (!a2i_ASN1_INTEGER(in, serial, buf, sizeof(buf))) { in next_serial()
1021 if ((bn = ASN1_INTEGER_to_BN(serial, NULL)) == NULL) in next_serial()
[all …]
HDca.c126 STACK_OF(CONF_VALUE) *policy, CA_DB *db, BIGNUM *serial, char *subj,
133 STACK_OF(CONF_VALUE) *policy, CA_DB *db, BIGNUM *serial, char *subj,
140 STACK_OF(CONF_VALUE) *policy, CA_DB *db, BIGNUM *serial, char *subj,
148 STACK_OF(CONF_VALUE) *policy, CA_DB *db, BIGNUM *serial, char *subj,
154 static int get_certificate_status(const char *serial, CA_DB *db);
664 BIGNUM *serial = NULL; in ca_main() local
1151 if ((serial = load_serial(serialfile, ca_config.create_serial, in ca_main()
1158 if (BN_is_zero(serial)) in ca_main()
1162 if ((f = BN_bn2hex(serial)) == NULL) in ca_main()
1182 dgst, ca_config.sigopts, attribs, db, serial, in ca_main()
[all …]
/dragonfly/crypto/libressl/crypto/ts/
HDts_rsp_utils.c200 TS_TST_INFO_set_serial(TS_TST_INFO *a, const ASN1_INTEGER *serial) in TS_TST_INFO_set_serial() argument
204 if (a->serial == serial) in TS_TST_INFO_set_serial()
206 new_serial = ASN1_INTEGER_dup(serial); in TS_TST_INFO_set_serial()
211 ASN1_INTEGER_free(a->serial); in TS_TST_INFO_set_serial()
212 a->serial = new_serial; in TS_TST_INFO_set_serial()
219 return a->serial; in TS_TST_INFO_get_serial()
HDts_rsp_print.c202 const ASN1_INTEGER *serial; in TS_TST_INFO_print_bio() local
225 serial = TS_TST_INFO_get_serial(a); in TS_TST_INFO_print_bio()
226 if (serial == NULL) in TS_TST_INFO_print_bio()
229 TS_ASN1_INTEGER_print_bio(bio, serial); in TS_TST_INFO_print_bio()
HDts_rsp_sign.c101 ASN1_INTEGER *serial = ASN1_INTEGER_new(); in def_serial_cb() local
103 if (!serial) in def_serial_cb()
105 if (!ASN1_INTEGER_set(serial, 1)) in def_serial_cb()
107 return serial; in def_serial_cb()
610 ASN1_INTEGER *serial = NULL; in TS_RESP_create_tst_info() local
626 if (!(serial = (*ctx->serial_cb)(ctx, ctx->serial_cb_data)) || in TS_RESP_create_tst_info()
627 !TS_TST_INFO_set_serial(tst_info, serial)) in TS_RESP_create_tst_info()
686 ASN1_INTEGER_free(serial); in TS_RESP_create_tst_info()
891 ASN1_INTEGER_free(cid->issuer_serial->serial); in ESS_CERT_ID_new_init()
892 if (!(cid->issuer_serial->serial = in ESS_CERT_ID_new_init()
/dragonfly/crypto/openssh/
HDPROTOCOL.krl45 serial number or key ID. The consist of the CA key that issued the
70 2.1 Certificate serial list section
73 certificates by listing their serial numbers. The cert_section_data in this
81 2.2. Certificate serial range section
84 a range of serial numbers of certificates:
89 All certificates in the range serial_min <= serial <= serial_max are
94 2.3. Certificate serial bitmap section
97 by listing their serial number in a bitmap.
103 serial number (serial_offset + N).
145 (not certificates). They are less space efficient than serial numbers,
HDkrl.c321 u_int64_t serial) in ssh_krl_revoke_cert_by_serial() argument
323 return ssh_krl_revoke_cert_by_serial_range(krl, ca_key, serial, serial); in ssh_krl_revoke_cert_by_serial()
458 if (key->cert->serial == 0) { in ssh_krl_revoke_key()
465 key->cert->serial); in ssh_krl_revoke_key()
872 u_int64_t serial, serial_lo, serial_hi; in parse_revoked_certs() local
899 if ((r = sshbuf_get_u64(subsect, &serial)) != 0) in parse_revoked_certs()
902 ca_key, serial)) != 0) in parse_revoked_certs()
928 for (serial = 0; serial < (u_int64_t)nbits; serial++) { in parse_revoked_certs()
929 if (serial > 0 && serial_lo + serial == 0) { in parse_revoked_certs()
934 if (!bitmap_test_bit(bitmap, serial)) in parse_revoked_certs()
[all …]
/dragonfly/crypto/libressl/crypto/ocsp/
HDocsp_lib.c85 const ASN1_INTEGER *serial; in OCSP_cert_to_id() local
94 serial = X509_get0_serialNumber(subject); in OCSP_cert_to_id()
97 serial = NULL; in OCSP_cert_to_id()
102 return OCSP_cert_id_new(dgst, iname, ikey, serial); in OCSP_cert_to_id()
/dragonfly/sys/dev/disk/nvme/
HDnvme_disk.c73 char serial[20+16]; in nvme_disk_attach() local
96 bzero(serial, sizeof(serial)); in nvme_disk_attach()
97 bcopy(sc->idctlr.serialno, serial, sizeof(sc->idctlr.serialno)); in nvme_disk_attach()
98 len = string_cleanup(serial, 1); in nvme_disk_attach()
100 ksnprintf(serial + len, sizeof(serial) - len, "-%u", nsc->nsid); in nvme_disk_attach()
102 info.d_serialno = serial; in nvme_disk_attach()
109 nsc->blksize, nsc->idns.size, cap_gb, serial); in nvme_disk_attach()
/dragonfly/usr.bin/diff/
HDdiffreg.c163 int serial; member
540 sfile[j][i].serial = i; in prune()
563 c[j] = -b[j].serial; in equiv()
566 c[j] = b[j].serial; in equiv()
821 aim->serial > ai[0].serial)) in sort()
826 w.serial = ai[0].serial; in sort()
827 ai[0].serial = aim->serial; in sort()
828 aim->serial = w.serial; in sort()
841 a[f[i].serial] = f[i].value; in unsort()
/dragonfly/stand/boot/common/
HDisapnp.h240 u_int serial; /* Board's Serial Number */ member
269 u_long serial; member
/dragonfly/crypto/libressl/crypto/asn1/
HDx_crl.c105 ASN1_INTEGER *serial, X509_NAME *issuer);
558 ASN1_INTEGER *serial) in X509_CRL_get0_by_serial() argument
561 return crl->meth->crl_lookup(crl, ret, serial, NULL); in X509_CRL_get0_by_serial()
609 def_crl_lookup(X509_CRL *crl, X509_REVOKED **ret, ASN1_INTEGER *serial, in def_crl_lookup() argument
615 rtmp.serialNumber = serial; in def_crl_lookup()
630 if (ASN1_INTEGER_cmp(rev->serialNumber, serial)) in def_crl_lookup()

1234567