/freebsd/crypto/openssl/crypto/ess/ |
H A D | ess_lib.c | 28 ESS_CERT_ID *cid = NULL; in OSSL_ESS_signing_cert_new_init() local 38 if ((cid = ESS_CERT_ID_new_init(signcert, set_issuer_serial)) == NULL in OSSL_ESS_signing_cert_new_init() 39 || !sk_ESS_CERT_ID_push(sc->cert_ids, cid)) in OSSL_ESS_signing_cert_new_init() 44 if ((cid = ESS_CERT_ID_new_init(cert, 1)) == NULL in OSSL_ESS_signing_cert_new_init() 45 || !sk_ESS_CERT_ID_push(sc->cert_ids, cid)) in OSSL_ESS_signing_cert_new_init() 52 ESS_CERT_ID_free(cid); in OSSL_ESS_signing_cert_new_init() 60 ESS_CERT_ID *cid = NULL; in ESS_CERT_ID_new_init() local 64 if ((cid = ESS_CERT_ID_new()) == NULL) in ESS_CERT_ID_new_init() 68 if (!ASN1_OCTET_STRING_set(cid->hash, cert_sha1, SHA_DIGEST_LENGTH)) in ESS_CERT_ID_new_init() 73 return cid; in ESS_CERT_ID_new_init() 105 ESS_CERT_ID_V2 *cid = NULL; OSSL_ESS_signing_cert_v2_new_init() local 140 ESS_CERT_ID_V2 *cid; ESS_CERT_ID_V2_new_init() local 217 find(const ESS_CERT_ID * cid,const ESS_CERT_ID_V2 * cid_v2,int index,const STACK_OF (X509)* certs) find() argument [all...] |
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_ooo.c | 45 ecore_ooo_seek_archipelago(struct ecore_ooo_info *p_ooo_info, u32 cid) in ecore_ooo_seek_archipelago() argument 47 u32 idx = (cid & 0xffff) - p_ooo_info->cid_base; in ecore_ooo_seek_archipelago() 63 u32 cid, u8 isle) in ecore_ooo_seek_isle() argument 69 p_archipelago = ecore_ooo_seek_archipelago(p_ooo_info, cid); in ecore_ooo_seek_isle() 72 "Connection %d is not found in OOO list\n", cid); in ecore_ooo_seek_isle() 206 u32 cid) in ecore_ooo_release_connection_isles() argument 212 p_archipelago = ecore_ooo_seek_archipelago(p_ooo_info, cid); in ecore_ooo_release_connection_isles() 403 u32 cid, in ecore_ooo_delete_isles() argument 411 p_archipelago = ecore_ooo_seek_archipelago(p_ooo_info, cid); in ecore_ooo_delete_isles() 414 cid, drop_isle); in ecore_ooo_delete_isles() [all …]
|
H A D | ecore_ooo.h | 104 u32 cid); 122 u32 cid, 128 u32 cid, 134 u32 cid, 141 u32 cid,
|
H A D | ecore_iwarp.c | 100 ecore_iwarp_get_curr_fpdu(struct ecore_hwfn *p_hwfn, u16 cid); 147 ecore_iwarp_alloc_cid(struct ecore_hwfn *p_hwfn, u32 *cid) in ecore_iwarp_alloc_cid() argument 155 cid); in ecore_iwarp_alloc_cid() 158 *cid += ecore_cxt_get_proto_cid_start(p_hwfn, in ecore_iwarp_alloc_cid() 165 rc = ecore_cxt_dynamic_ilt_alloc(p_hwfn, ECORE_ELEM_CXT, *cid); in ecore_iwarp_alloc_cid() 169 *cid -= ecore_cxt_get_proto_cid_start(p_hwfn, in ecore_iwarp_alloc_cid() 174 *cid); in ecore_iwarp_alloc_cid() 183 ecore_iwarp_set_tcp_cid(struct ecore_hwfn *p_hwfn, u32 cid) in ecore_iwarp_set_tcp_cid() argument 185 cid -= ecore_cxt_get_proto_cid_start(p_hwfn, in ecore_iwarp_set_tcp_cid() 191 cid); in ecore_iwarp_set_tcp_cid() [all …]
|
H A D | ecore_roce.c | 71 data->rdma_data.rdma_destroy_qp_data.cid); in ecore_roce_async_event() 263 static void ecore_roce_free_cid_pair(struct ecore_hwfn *p_hwfn, u16 cid) 266 ecore_bmap_release_id(p_hwfn, &p_hwfn->p_rdma_info->qp_map, cid); 267 ecore_bmap_release_id(p_hwfn, &p_hwfn->p_rdma_info->qp_map, cid + 1); 329 u32 start_cid, icid, cid, qp_idx; in ecore_roce_alloc_qp_idx() local 356 cid = start_cid + icid; in ecore_roce_alloc_qp_idx() 358 rc = ecore_cxt_dynamic_ilt_alloc(p_hwfn, ECORE_ELEM_CXT, cid); in ecore_roce_alloc_qp_idx() 362 rc = ecore_cxt_dynamic_ilt_alloc(p_hwfn, ECORE_ELEM_CXT, cid + 1); in ecore_roce_alloc_qp_idx() 380 u32 cid) in ecore_roce_set_cid() argument 385 cid); in ecore_roce_set_cid() [all …]
|
/freebsd/contrib/libfido2/src/ |
H A D | io.c | 13 uint32_t cid; /* channel id */ in PACKED_TYPE() 60 fp->cid = d->cid; in tx_empty() 83 fp->cid = d->cid; in tx_preamble() 110 fp->cid = d->cid; in tx_frame() 205 fp->cid = d->cid; in rx_preamble() 207 } while (fp->cid != d->cid || (fp->cid == d->cid && in rx_preamble() 218 if (fp->cid != d->cid || fp->body.init.cmd != (CTAP_FRAME_INIT | cmd)) { in rx_preamble() 220 __func__, fp->cid, d->cid, fp->body.init.cmd, cmd); in rx_preamble() 273 f.cid = d->cid; in rx() 277 if (f.cid != d->cid || f.body.cont.seq != seq) { in rx() [all …]
|
/freebsd/sys/dev/nvmf/host/ |
H A D | nvmf_qpair.c | 23 uint16_t cid; member 94 nvmf_abort_request(struct nvmf_request *req, uint16_t cid) in nvmf_abort_request() argument 99 cqe.cid = cid; in nvmf_abort_request() 143 sqe->cid = cmd->cid; in nvmf_dispatch_command() 178 uint16_t cid; in nvmf_receive_capsule() local 189 cid = cqe->cid; in nvmf_receive_capsule() 191 if (cid > qp->num_commands) { in nvmf_receive_capsule() 193 "received invalid CID %u, disconnecting\n", cid); in nvmf_receive_capsule() 218 "received completion for CID %u on shutdown %s\n", cid, in nvmf_receive_capsule() 225 cmd = qp->active_commands[cid]; in nvmf_receive_capsule() [all …]
|
/freebsd/sys/dev/bhnd/cores/pmu/ |
H A D | bhnd_pmu_subr.c | 122 query->cid = id; in bhnd_pmu_query_init() 201 switch (sc->cid.chip_id) { in bhnd_pmu_set_ldo_voltage() 335 sc->cid.chip_id); in bhnd_pmu_set_ldo_voltage() 356 switch (sc->cid.chip_id) { in bhnd_pmu_fast_pwrup_delay() 682 if (sc->cid.chip_id == BHND_CHIPID_BCM4325 && sc->cid.chip_rev <= 1) in bhnd_pmu_res_depfltr_ncb() 719 switch (sc->cid.chip_id) { in bhnd_pmu_res_masks() 763 if (sc->cid.chip_rev >= 2) in bhnd_pmu_res_masks() 816 if (sc->cid.chip_rev >= 0x2) { in bhnd_pmu_res_masks() 928 switch (sc->cid.chip_id) { in bhnd_pmu_res_init() 1370 switch (sc->cid.chip_id) { in bhnd_pmu1_xtaltab0() [all …]
|
/freebsd/sys/dev/bhnd/ |
H A D | bhnd_erom.c | 101 struct bhnd_chipid *cid) in bhnd_erom_probe_driver_classes() argument 144 *cid = pcid; in bhnd_erom_probe_driver_classes() 171 bhnd_erom_alloc(bhnd_erom_class_t *cls, const struct bhnd_chipid *cid, in bhnd_erom_alloc() argument 180 if ((error = BHND_EROM_INIT(erom, cid, eio))) { in bhnd_erom_alloc() 182 (uintmax_t)cid->enum_addr, error); in bhnd_erom_alloc() 214 const struct bhnd_chipid *cid, struct bhnd_erom_io *eio) in bhnd_erom_init_static() argument 226 return (BHND_EROM_INIT(erom, cid, eio)); in bhnd_erom_init_static() 271 bhnd_erom_read_chipid(struct bhnd_erom_io *eio, struct bhnd_chipid *cid) in bhnd_erom_read_chipid() argument 286 cid->chip_id = CHIPC_GET_BITS(idreg, CHIPC_ID_CHIP); in bhnd_erom_read_chipid() 287 cid->chip_pkg = CHIPC_GET_BITS(idreg, CHIPC_ID_PKG); in bhnd_erom_read_chipid() [all …]
|
H A D | bhnd_erom.h | 56 struct bhnd_chipid *cid); 59 const struct bhnd_chipid *cid, 64 const struct bhnd_chipid *cid, 145 const struct bhnd_chipid *hint, struct bhnd_chipid *cid) in bhnd_erom_probe() argument 147 return (BHND_EROM_PROBE(cls, eio, hint, cid)); in bhnd_erom_probe()
|
/freebsd/crypto/openssl/crypto/ocsp/ |
H A D | ocsp_lib.c | 50 OCSP_CERTID *cid = NULL; in OCSP_cert_id_new() local 53 if ((cid = OCSP_CERTID_new()) == NULL) in OCSP_cert_id_new() 56 alg = &cid->hashAlgorithm; in OCSP_cert_id_new() 70 if (!(ASN1_OCTET_STRING_set(&cid->issuerNameHash, md, i))) in OCSP_cert_id_new() 77 if (!(ASN1_OCTET_STRING_set(&cid->issuerKeyHash, md, i))) in OCSP_cert_id_new() 81 if (ASN1_STRING_copy(&cid->serialNumber, serialNumber) == 0) in OCSP_cert_id_new() 84 return cid; in OCSP_cert_id_new() 88 OCSP_CERTID_free(cid); in OCSP_cert_id_new()
|
H A D | ocsp_vfy.c | 22 static int ocsp_match_issuerid(X509 *cert, OCSP_CERTID *cid, 269 OCSP_CERTID *tmpid, *cid; in ocsp_check_ids() local 278 cid = sk_OCSP_SINGLERESP_value(sresp, 0)->certId; in ocsp_check_ids() 284 if (OCSP_id_issuer_cmp(cid, tmpid)) { in ocsp_check_ids() 287 cid->hashAlgorithm.algorithm)) in ocsp_check_ids() 295 *ret = cid; in ocsp_check_ids() 303 static int ocsp_match_issuerid(X509 *cert, OCSP_CERTID *cid, in ocsp_match_issuerid() argument 310 if (cid != NULL) { in ocsp_match_issuerid() 316 OBJ_obj2txt(name, sizeof(name), cid->hashAlgorithm.algorithm, 0); in ocsp_match_issuerid() 335 if (cid->issuerNameHash.length != mdlen || in ocsp_match_issuerid() [all …]
|
H A D | ocsp_srv.c | 40 ASN1_INTEGER **pserial, OCSP_CERTID *cid) in OCSP_id_get0_info() argument 42 if (!cid) in OCSP_id_get0_info() 45 *pmd = cid->hashAlgorithm.algorithm; in OCSP_id_get0_info() 47 *piNameHash = &cid->issuerNameHash; in OCSP_id_get0_info() 49 *pikeyHash = &cid->issuerKeyHash; in OCSP_id_get0_info() 51 *pserial = &cid->serialNumber; in OCSP_id_get0_info() 86 OCSP_CERTID *cid, in OCSP_basic_add1_status() argument 112 if ((single->certId = OCSP_CERTID_dup(cid)) == NULL) in OCSP_basic_add1_status()
|
H A D | ocsp_ext.c | 363 OCSP_CRLID *cid = NULL; in OCSP_crlID_new() local 365 if ((cid = OCSP_CRLID_new()) == NULL) in OCSP_crlID_new() 368 if ((cid->crlUrl = ASN1_IA5STRING_new()) == NULL) in OCSP_crlID_new() 370 if (!(ASN1_STRING_set(cid->crlUrl, url, -1))) in OCSP_crlID_new() 374 if ((cid->crlNum = ASN1_INTEGER_new()) == NULL) in OCSP_crlID_new() 376 if (!(ASN1_INTEGER_set(cid->crlNum, *n))) in OCSP_crlID_new() 380 if ((cid->crlTime = ASN1_GENERALIZEDTIME_new()) == NULL) in OCSP_crlID_new() 382 if (!(ASN1_GENERALIZEDTIME_set_string(cid->crlTime, tim))) in OCSP_crlID_new() 385 x = X509V3_EXT_i2d(NID_id_pkix_OCSP_CrlID, 0, cid); in OCSP_crlID_new() 387 OCSP_CRLID_free(cid); in OCSP_crlID_new()
|
/freebsd/sys/dev/bhnd/siba/ |
H A D | siba_erom.c | 66 struct bhnd_chipid *cid); 92 const struct bhnd_chipid *hint, struct bhnd_chipid *cid) in siba_erom_probe() argument 129 *cid = *hint; in siba_erom_probe() 137 if ((error = siba_eio_read_chipid(&io, SIBA_ENUM_ADDR, cid))) in siba_erom_probe() 141 if (cid->chip_type != BHND_CHIPTYPE_SIBA) in siba_erom_probe() 152 _Static_assert((2^sizeof(cid->ncores)) <= SIBA_MAX_CORES, in siba_erom_probe() 160 siba_erom_init(bhnd_erom_t *erom, const struct bhnd_chipid *cid, in siba_erom_init() argument 169 error = bhnd_erom_io_map(eio, cid->enum_addr, in siba_erom_init() 170 cid->ncores * SIBA_CORE_SIZE); in siba_erom_init() 173 cid->ncores, error); in siba_erom_init() [all …]
|
/freebsd/sys/netgraph/bluetooth/l2cap/ |
H A D | ng_l2cap_misc.c | 631 u_int16_t cid ; in ng_l2cap_get_cid() local 641 endcid = l2cap->cid; in ng_l2cap_get_cid() 646 cid = (endcid+1) & mask; in ng_l2cap_get_cid() 648 if (cid < NG_L2CAP_FIRST_CID) in ng_l2cap_get_cid() 649 cid = NG_L2CAP_FIRST_CID; in ng_l2cap_get_cid() 651 while (cid != endcid) { in ng_l2cap_get_cid() 652 if (ng_l2cap_chan_by_scid(l2cap, cid, idtype) == NULL) { in ng_l2cap_get_cid() 654 l2cap->cid = cid; in ng_l2cap_get_cid() 656 l2cap->lecid = cid; in ng_l2cap_get_cid() 658 return (cid); in ng_l2cap_get_cid() [all …]
|
/freebsd/sys/dev/bhnd/cores/chipc/pwrctl/ |
H A D | bhnd_pwrctl_subr.c | 82 bhnd_pwrctl_si_clkreg_m(const struct bhnd_chipid *cid, in bhnd_pwrctl_si_clkreg_m() argument 105 bhnd_pwrctl_si_clock_rate(const struct bhnd_chipid *cid, in bhnd_pwrctl_si_clock_rate() argument 110 KASSERT(bhnd_pwrctl_si_clkreg_m(cid, pll_type, NULL) != 0, in bhnd_pwrctl_si_clock_rate() 130 bhnd_pwrctl_cpu_clkreg_m(const struct bhnd_chipid *cid, in bhnd_pwrctl_cpu_clkreg_m() argument 147 if (cid->chip_id == BHND_CHIPID_BCM5365) { in bhnd_pwrctl_cpu_clkreg_m() 171 bhnd_pwrctl_cpu_clock_rate(const struct bhnd_chipid *cid, in bhnd_pwrctl_cpu_clock_rate() argument 174 KASSERT(bhnd_pwrctl_cpu_clkreg_m(cid, pll_type, NULL) != 0, in bhnd_pwrctl_cpu_clock_rate() 301 const struct bhnd_chipid *cid; in bhnd_pwrctl_getclk_speed() local 309 cid = bhnd_get_chipid(sc->chipc_dev); in bhnd_pwrctl_getclk_speed() 315 creg = bhnd_pwrctl_si_clkreg_m(cid, ccaps->pll_type, &rate); in bhnd_pwrctl_getclk_speed() [all …]
|
H A D | bhnd_pwrctlvar.h | 43 bus_size_t bhnd_pwrctl_si_clkreg_m(const struct bhnd_chipid *cid, 45 uint32_t bhnd_pwrctl_si_clock_rate(const struct bhnd_chipid *cid, 48 bus_size_t bhnd_pwrctl_cpu_clkreg_m(const struct bhnd_chipid *cid, 50 uint32_t bhnd_pwrctl_cpu_clock_rate(const struct bhnd_chipid *cid,
|
/freebsd/sys/dev/nvmf/controller/ |
H A D | nvmft_qpair.c | 78 qp->name, le16toh(cmd->cid), cmd->opc); in nvmft_receive_capsule() 91 if (BIT_TEST_SET_ATOMIC(NUM_CIDS, cmd->cid, qp->cids)) { in nvmft_receive_capsule() 225 KASSERT(BIT_ISSET(NUM_CIDS, cmd->cid, qp->cids), in nvmft_command_completed() 226 ("%s: CID %u not busy", __func__, cmd->cid)); in nvmft_command_completed() 228 BIT_CLR_ATOMIC(NUM_CIDS, cmd->cid, qp->cids); in nvmft_command_completed() 237 KASSERT(BIT_ISSET(NUM_CIDS, cpl->cid, qp->cids), in nvmft_send_response() 238 ("%s: CID %u not busy", __func__, cpl->cid)); in nvmft_send_response() 240 BIT_CLR_ATOMIC(NUM_CIDS, cpl->cid, qp->cids); in nvmft_send_response() 251 cpl->cid = cmd->cid; in nvmft_init_cqe() 303 rsp->cid = cmd->cid; in nvmft_init_connect_rsp()
|
/freebsd/crypto/openssl/crypto/crmf/ |
H A D | crmf_lib.c | 180 OSSL_CRMF_CERTID *cid = NULL; in IMPLEMENT_CRMF_CTRL_FUNC() local 187 if ((cid = OSSL_CRMF_CERTID_new()) == NULL) in IMPLEMENT_CRMF_CTRL_FUNC() 190 if (!X509_NAME_set(&cid->issuer->d.directoryName, issuer)) in IMPLEMENT_CRMF_CTRL_FUNC() 192 cid->issuer->type = GEN_DIRNAME; in IMPLEMENT_CRMF_CTRL_FUNC() 194 ASN1_INTEGER_free(cid->serialNumber); in IMPLEMENT_CRMF_CTRL_FUNC() 195 if ((cid->serialNumber = ASN1_INTEGER_dup(serial)) == NULL) in IMPLEMENT_CRMF_CTRL_FUNC() 198 return cid; in IMPLEMENT_CRMF_CTRL_FUNC() 201 OSSL_CRMF_CERTID_free(cid); in IMPLEMENT_CRMF_CTRL_FUNC() 560 const X509_NAME *OSSL_CRMF_CERTID_get0_issuer(const OSSL_CRMF_CERTID *cid) in OSSL_CRMF_CERTID_get0_issuer() argument 562 return cid != NULL && cid->issuer->type == GEN_DIRNAME ? in OSSL_CRMF_CERTID_get0_issuer() [all …]
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | pcy_data.c | 39 const ASN1_OBJECT *cid, int crit) in ossl_policy_data_new() argument 44 if (policy == NULL && cid == NULL) in ossl_policy_data_new() 46 if (cid) { in ossl_policy_data_new() 47 id = OBJ_dup(cid); in ossl_policy_data_new()
|
/freebsd/sys/dev/sdhci/ |
H A D | sdhci_fdt.c | 384 pcell_t cid; in sdhci_fdt_attach() local 394 if ((OF_getencprop(node, "quirks", &cid, sizeof(cid))) > 0) in sdhci_fdt_attach() 395 sc->quirks = cid; in sdhci_fdt_attach() 396 if ((OF_getencprop(node, "num-slots", &cid, sizeof(cid))) > 0) in sdhci_fdt_attach() 397 sc->num_slots = cid; in sdhci_fdt_attach() 398 if ((OF_getencprop(node, "max-frequency", &cid, sizeof(cid))) > 0) in sdhci_fdt_attach() 399 sc->max_clk = cid; in sdhci_fdt_attach()
|
/freebsd/sys/dev/mmc/ |
H A D | mmc.c | 95 struct mmc_cid cid; /* cid decoded */ member 177 static void mmc_decode_cid_mmc(uint32_t *raw_cid, struct mmc_cid *cid, 179 static void mmc_decode_cid_sd(uint32_t *raw_cid, struct mmc_cid *cid); 1084 mmc_decode_cid_sd(uint32_t *raw_cid, struct mmc_cid *cid) in mmc_decode_cid_sd() argument 1089 memset(cid, 0, sizeof(*cid)); in mmc_decode_cid_sd() 1090 cid->mid = mmc_get_bits(raw_cid, 128, 120, 8); in mmc_decode_cid_sd() 1091 cid->oid = mmc_get_bits(raw_cid, 128, 104, 16); in mmc_decode_cid_sd() 1093 cid->pnm[i] = mmc_get_bits(raw_cid, 128, 96 - i * 8, 8); in mmc_decode_cid_sd() 1094 cid->pnm[5] = 0; in mmc_decode_cid_sd() 1095 cid->prv = mmc_get_bits(raw_cid, 128, 56, 8); in mmc_decode_cid_sd() [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | OCSP_REQUEST_new.pod | 16 OCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid); 34 OCSP_request_add0_id() adds certificate ID B<cid> to B<req>. It returns 59 OCSP_request_add0_id() returns the B<OCSP_ONEREQ> structure containing B<cid> 85 OCSP_ID *cid; 90 cid = OCSP_cert_to_id(EVP_sha1(), cert, issuer); 91 if (cid == NULL) 94 if (OCSP_REQUEST_add0_id(req, cid) == NULL)
|
/freebsd/sys/dev/bhnd/bcma/ |
H A D | bcma_bhndb.c | 53 const struct bhnd_chipid *cid; in bcma_bhndb_probe() local 61 cid = BHNDB_GET_CHIPID(device_get_parent(dev), dev); in bcma_bhndb_probe() 62 if (cid->chip_type != BHND_CHIPTYPE_BCMA) in bcma_bhndb_probe() 66 bhnd_set_default_bus_desc(dev, cid); in bcma_bhndb_probe()
|