/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_sd.c | 73 CMS_SignerInfo *si; in cms_sd_set_version() local 102 si = sk_CMS_SignerInfo_value(sd->signerInfos, i); in cms_sd_set_version() 103 if (si->sid->type == CMS_SIGNERINFO_KEYIDENTIFIER) { in cms_sd_set_version() 104 if (si->version < 3) in cms_sd_set_version() 105 si->version = 3; in cms_sd_set_version() 108 } else if (si->version < 1) in cms_sd_set_version() 109 si->version = 1; in cms_sd_set_version() 129 static int cms_set_si_contentType_attr(CMS_ContentInfo *cms, CMS_SignerInfo *si) in cms_set_si_contentType_attr() argument 134 return CMS_signed_add1_attr_by_NID(si, NID_pkcs9_contentType, in cms_set_si_contentType_attr() 140 static int cms_copy_messageDigest(CMS_ContentInfo *cms, CMS_SignerInfo *si) in cms_copy_messageDigest() argument [all …]
|
H A D | cms_att.c | 70 int CMS_signed_get_attr_count(const CMS_SignerInfo *si) in CMS_signed_get_attr_count() argument 72 return X509at_get_attr_count(si->signedAttrs); in CMS_signed_get_attr_count() 75 int CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid, int lastpos) in CMS_signed_get_attr_by_NID() argument 77 return X509at_get_attr_by_NID(si->signedAttrs, nid, lastpos); in CMS_signed_get_attr_by_NID() 80 int CMS_signed_get_attr_by_OBJ(const CMS_SignerInfo *si, const ASN1_OBJECT *obj, in CMS_signed_get_attr_by_OBJ() argument 83 return X509at_get_attr_by_OBJ(si->signedAttrs, obj, lastpos); in CMS_signed_get_attr_by_OBJ() 86 X509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc) in CMS_signed_get_attr() argument 88 return X509at_get_attr(si->signedAttrs, loc); in CMS_signed_get_attr() 91 X509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc) in CMS_signed_delete_attr() argument 93 return X509at_delete_attr(si->signedAttrs, loc); in CMS_signed_delete_attr() [all …]
|
H A D | cms_ess.c | 26 int CMS_get1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest **prr) in IMPLEMENT_ASN1_FUNCTIONS() 34 str = CMS_signed_get0_data_by_OBJ(si, obj, -3, V_ASN1_SEQUENCE); in IMPLEMENT_ASN1_FUNCTIONS() 52 static int ossl_cms_signerinfo_get_signing_cert(const CMS_SignerInfo *si, in ossl_cms_signerinfo_get_signing_cert() argument 61 str = CMS_signed_get0_data_by_OBJ(si, obj, -3, V_ASN1_SEQUENCE); in ossl_cms_signerinfo_get_signing_cert() 79 static int ossl_cms_signerinfo_get_signing_cert_v2(const CMS_SignerInfo *si, in ossl_cms_signerinfo_get_signing_cert_v2() argument 88 str = CMS_signed_get0_data_by_OBJ(si, obj, -3, V_ASN1_SEQUENCE); in ossl_cms_signerinfo_get_signing_cert_v2() 102 int ossl_cms_check_signing_certs(const CMS_SignerInfo *si, in ossl_cms_check_signing_certs() argument 107 int ret = ossl_cms_signerinfo_get_signing_cert(si, &ss) >= 0 in ossl_cms_check_signing_certs() 108 && ossl_cms_signerinfo_get_signing_cert_v2(si, &ssv2) >= 0 in ossl_cms_check_signing_certs() 166 int CMS_add1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest *rr) in CMS_add1_ReceiptRequest() argument [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | socket_wrapper.c | 340 static int convert_in_un_remote(struct socket_info *si, const struct sockaddr *inaddr, struct socka… in convert_in_un_remote() argument 350 switch (si->family) { in convert_in_un_remote() 359 switch (si->type) { in convert_in_un_remote() 398 switch (si->type) { in convert_in_un_remote() 438 static int convert_in_un_alloc(struct socket_info *si, const struct sockaddr *inaddr, struct sockad… in convert_in_un_alloc() argument 449 switch (si->family) { in convert_in_un_alloc() 461 switch (si->type) { in convert_in_un_alloc() 505 switch (si->type) { in convert_in_un_alloc() 537 set_port(si->family, prt, si->myname); in convert_in_un_alloc() 557 static int sockaddr_convert_to_un(struct socket_info *si, const struct sockaddr *in_addr, socklen_t… in sockaddr_convert_to_un() argument [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_wait.c | 61 siginfo_t si; in ATF_TC_BODY() local 64 ATF_REQUIRE(wait6(P_ALL, 0, &st, 0, &wru, &si) == -1 in ATF_TC_BODY() 77 siginfo_t si; in ATF_TC_BODY() local 89 ATF_REQUIRE(wait6(P_PID, pid, &st, WEXITED, &wru, &si) == pid); in ATF_TC_BODY() 91 ATF_REQUIRE(si.si_status == 0x5a5a5a5a); in ATF_TC_BODY() 92 ATF_REQUIRE(si.si_pid == pid); in ATF_TC_BODY() 93 ATF_REQUIRE(si.si_uid == getuid()); in ATF_TC_BODY() 94 ATF_REQUIRE(si.si_code == CLD_EXITED); in ATF_TC_BODY() 96 printf("user: %ju system: %ju\n", (uintmax_t)si.si_utime, in ATF_TC_BODY() 97 (uintmax_t)si.si_utime); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | Object.cpp | 33 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) { in unwrap() argument 34 return reinterpret_cast<section_iterator*>(SI); in unwrap() 38 wrap(const section_iterator *SI) { in wrap() argument 40 (const_cast<section_iterator*>(SI)); in wrap() 43 inline symbol_iterator *unwrap(LLVMSymbolIteratorRef SI) { in unwrap() argument 44 return reinterpret_cast<symbol_iterator*>(SI); in unwrap() 48 wrap(const symbol_iterator *SI) { in wrap() argument 50 (const_cast<symbol_iterator*>(SI)); in wrap() 53 inline relocation_iterator *unwrap(LLVMRelocationIteratorRef SI) { in unwrap() argument 54 return reinterpret_cast<relocation_iterator*>(SI); in unwrap() [all …]
|
/freebsd/sys/netpfil/ipfw/ |
H A D | dn_sched_wf2q.c | 116 idle_check(struct wf2qp_si *si, int n, int force) in idle_check() argument 118 struct dn_heap *h = &si->idle_heap; in idle_check() 120 (force || DN_KEY_LT(HEAP_TOP(h)->key, si->V))) { in idle_check() 129 si->wsum -= q->fs->fs.par[0]; /* adjust sum of weights */ in idle_check() 130 if (si->wsum > 0) in idle_check() 131 si->inv_wsum = ONE_FP/si->wsum; in idle_check() 139 struct wf2qp_si *si = (struct wf2qp_si *)(_si + 1); in wf2qp_enqueue() local 155 alg_fq->S = si->V; /* init start time */ in wf2qp_enqueue() 156 si->wsum += fs->fs.par[0]; /* add weight of new queue. */ in wf2qp_enqueue() 157 si->inv_wsum = ONE_FP/si->wsum; in wf2qp_enqueue() [all …]
|
H A D | dn_sched_rr.c | 83 rr_append(struct rr_queue *q, struct rr_si *si) in rr_append() argument 89 if (si->head == NULL) in rr_append() 90 si->head = q; in rr_append() 92 si->tail->qnext = q; in rr_append() 93 si->tail = q; /* advance the tail pointer */ in rr_append() 94 q->qnext = si->head; /* make it circular */ in rr_append() 99 rr_remove_head(struct rr_si *si) in rr_remove_head() argument 101 if (si->head == NULL) in rr_remove_head() 103 si->head->status = 0; in rr_remove_head() 105 if (si->head == si->tail) { in rr_remove_head() [all …]
|
H A D | dn_sched_fq_codel.c | 155 codel_drop_head(struct fq_codel_flow *q, struct fq_codel_si *si) in codel_drop_head() argument 163 fq_update_stats(q, si, -m->m_pkthdr.len, 1); in codel_drop_head() 165 if (si->main_q.ni.length == 0) /* queue is now idle */ in codel_drop_head() 166 si->main_q.q_time = V_dn_cfg.curr_time; in codel_drop_head() 175 codel_enqueue(struct fq_codel_flow *q, struct mbuf *m, struct fq_codel_si *si) in codel_enqueue() argument 199 fq_update_stats(q, si, len, 0); in codel_enqueue() 203 fq_update_stats(q, si, len, 1); in codel_enqueue() 215 fq_codel_classify_flow(struct mbuf *m, uint16_t fcount, struct fq_codel_si *si) in fq_codel_classify_flow() argument 232 *((uint32_t *) &tuple[1]) = si->perturbation; in fq_codel_classify_flow() 259 *((uint32_t *) &tuple[1]) = si->perturbation; in fq_codel_classify_flow() [all …]
|
H A D | dn_sched_prio.c | 88 struct prio_si *si = (struct prio_si *)(_si + 1); in prio_enqueue() local 91 if (test_bit(prio, &si->bitmap) == 0) { in prio_enqueue() 93 __set_bit(prio, &si->bitmap); in prio_enqueue() 94 si->q_array[prio] = q; in prio_enqueue() 96 q = si->q_array[prio]; in prio_enqueue() 117 struct prio_si *si = (struct prio_si *)(_si + 1); in prio_dequeue() local 122 if (si->bitmap == 0) /* scheduler idle */ in prio_dequeue() 125 prio = ffs(si->bitmap) - 1; in prio_dequeue() 128 q = si->q_array[prio]; in prio_dequeue() 136 si->q_array[prio] = NULL; in prio_dequeue() [all …]
|
H A D | dn_sched_fq_pie.c | 135 struct dn_queue main_q; /* main queue is after si directly */ 286 fq_update_stats(struct fq_pie_flow *q, struct fq_pie_si *si, int len, in fq_update_stats() argument 297 si->main_q.ni.drops ++; in fq_update_stats() 299 si->_si.ni.drops ++; in fq_update_stats() 305 si->main_q.ni.length += inc; in fq_update_stats() 306 si->main_q.ni.len_bytes += len; in fq_update_stats() 313 si->_si.ni.length += inc; in fq_update_stats() 314 si->_si.ni.len_bytes += len; in fq_update_stats() 318 si->main_q.ni.tot_bytes += len; in fq_update_stats() 319 si->main_q.ni.tot_pkts ++; in fq_update_stats() [all …]
|
H A D | dn_sched_fq_codel.h | 76 struct dn_queue main_q; /* main queue is after si directly */ 91 fq_update_stats(struct fq_codel_flow *q, struct fq_codel_si *si, int len, in fq_update_stats() argument 102 si->main_q.ni.drops ++; in fq_update_stats() 104 si->_si.ni.drops ++; in fq_update_stats() 110 si->main_q.ni.length += inc; in fq_update_stats() 111 si->main_q.ni.len_bytes += len; in fq_update_stats() 118 si->_si.ni.length += inc; in fq_update_stats() 119 si->_si.ni.len_bytes += len; in fq_update_stats() 123 si->main_q.ni.tot_bytes += len; in fq_update_stats() 124 si->main_q.ni.tot_pkts ++; in fq_update_stats() [all …]
|
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | input.c | 53 symit_data_t *si; in built_source_types() local 55 if ((si = symit_new(elf, file)) == NULL) in built_source_types() 58 while (symit_next(si, STT_FILE) != NULL) { in built_source_types() 59 char *name = symit_name(si); in built_source_types() 82 symit_free(si); in built_source_types() 92 symit_data_t *si = NULL; in read_file() local 110 if ((si = symit_new(elf, file)) == NULL) { in read_file() 115 td = ctf_load(file, ctfdata->d_buf, ctfdata->d_size, si, label); in read_file() 118 symit_free(si); in read_file() 345 symit_data_t *si; in symit_new() local [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | CMS_signed_get_attr.pod | 23 int CMS_signed_get_attr_count(const CMS_SignerInfo *si); 24 int CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid, 26 int CMS_signed_get_attr_by_OBJ(const CMS_SignerInfo *si, const ASN1_OBJECT *obj, 28 X509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc); 29 X509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc); 30 int CMS_signed_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr); 31 int CMS_signed_add1_attr_by_OBJ(CMS_SignerInfo *si, 34 int CMS_signed_add1_attr_by_NID(CMS_SignerInfo *si, 37 int CMS_signed_add1_attr_by_txt(CMS_SignerInfo *si, 40 void *CMS_signed_get0_data_by_OBJ(const CMS_SignerInfo *si, [all …]
|
/freebsd/stand/i386/cdboot/ |
H A D | cdboot.S | 111 mov $msg_welcome,%si # %ds:(%si) -> welcome message 116 mov $msg_bootinfo,%si # %ds:(%si) -> boot args message 143 mov $msg_novd,%si # No VD 150 mov $loader_paths,%si # Point to start of array 151 lookup_path: push %si # Save file name pointer 159 mov %di,%si # Point %si at next path 160 mov (%si),%al # Get first char of next path 163 mov $msg_failed,%si # Failed message 175 mov $msg_load2big,%si # Error message 203 mov $msg_relocate,%si # Display the [all …]
|
/freebsd/stand/i386/pmbr/ |
H A D | pmbr.S | 75 movw $main-EXEC+LOAD,%si # Source 101 movw $lba,%si 114 movw $DPBUF+DPBUF_SEC,%si # %si = last sector + 1 116 main.3a: subl $1, (%si) # 0x0(%si) = last sec (0-31) 117 sbbl $0, 4(%si) 126 load_part: movw $GPT_ADDR+GPT_PART_LBA,%si 129 scan: movw %bx,%si # Compare partition UUID 138 leaw PART_START_LBA(%di),%si 142 load_boot: push %si # Save %si 144 pop %si # Restore [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_helpers.c | 1064 * @si: Pointer to wpa_signal_info to add to the message 1072 struct wpa_signal_info *si) in wpas_dbus_new_from_signal_information() argument 1080 si->data.signal) || in wpas_dbus_new_from_signal_information() 1082 si->data.current_tx_rate / 1000) || in wpas_dbus_new_from_signal_information() 1084 si->current_noise) || in wpas_dbus_new_from_signal_information() 1086 si->frequency) || in wpas_dbus_new_from_signal_information() 1087 (si->chanwidth != CHAN_WIDTH_UNKNOWN && in wpas_dbus_new_from_signal_information() 1090 channel_width_to_string(si->chanwidth))) || in wpas_dbus_new_from_signal_information() 1091 (si->center_frq1 > 0 && si->center_frq2 > 0 && in wpas_dbus_new_from_signal_information() 1093 si->center_frq1) || in wpas_dbus_new_from_signal_information() [all …]
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | cms.h.in | 131 CMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si, 272 EVP_PKEY_CTX *CMS_SignerInfo_get0_pkey_ctx(CMS_SignerInfo *si); 273 EVP_MD_CTX *CMS_SignerInfo_get0_md_ctx(CMS_SignerInfo *si); 276 void CMS_SignerInfo_set1_signer_cert(CMS_SignerInfo *si, X509 *signer); 277 int CMS_SignerInfo_get0_signer_id(CMS_SignerInfo *si, 280 int CMS_SignerInfo_cert_cmp(CMS_SignerInfo *si, X509 *cert); 283 void CMS_SignerInfo_get0_algs(CMS_SignerInfo *si, EVP_PKEY **pk, 286 ASN1_OCTET_STRING *CMS_SignerInfo_get0_signature(CMS_SignerInfo *si); 287 int CMS_SignerInfo_sign(CMS_SignerInfo *si); 288 int CMS_SignerInfo_verify(CMS_SignerInfo *si); [all …]
|
/freebsd/crypto/openssl/crypto/cmp/ |
H A D | cmp_status.c | 31 int ossl_cmp_pkisi_get_status(const OSSL_CMP_PKISI *si) in ossl_cmp_pkisi_get_status() argument 35 if (!ossl_assert(si != NULL && si->status != NULL)) in ossl_cmp_pkisi_get_status() 37 res = ossl_cmp_asn1_get_int(si->status); in ossl_cmp_pkisi_get_status() 65 OSSL_CMP_PKIFREETEXT *ossl_cmp_pkisi_get0_statusString(const OSSL_CMP_PKISI *si) in ossl_cmp_pkisi_get0_statusString() argument 67 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get0_statusString() 69 return si->statusString; in ossl_cmp_pkisi_get0_statusString() 72 int ossl_cmp_pkisi_get_pkifailureinfo(const OSSL_CMP_PKISI *si) in ossl_cmp_pkisi_get_pkifailureinfo() argument 77 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get_pkifailureinfo() 79 if (si->failInfo != NULL) in ossl_cmp_pkisi_get_pkifailureinfo() 81 if (ASN1_BIT_STRING_get_bit(si->failInfo, i)) in ossl_cmp_pkisi_get_pkifailureinfo() [all …]
|
/freebsd/stand/i386/mbr/ |
H A D | mbr.S | 42 movw $main-EXEC+LOAD,%si # Source 54 # the active partition in %si and scan the entire table to ensure that only 57 main: xorw %si,%si # No active partition 63 testw %si,%si # Active already found? 65 movw %bx,%si # Point to active 68 testw %si,%si # Active found? 81 main.4: movb (%si),%dl # Load drive 87 movb 0x1(%si),%dh # Load head 88 movw 0x2(%si),%cx # Load cylinder:sector 104 pushl 0x8(%si) # address [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 322 } else if (auto *SI = dyn_cast<SelectInst>(Inst)) { in collectUsersRecursive() local 323 if (!isa<Instruction>(SI->getTrueValue()) || in collectUsersRecursive() 324 !isa<Instruction>(SI->getFalseValue())) in collectUsersRecursive() 327 if (!isAvailable(cast<Instruction>(SI->getTrueValue())) || in collectUsersRecursive() 328 !isAvailable(cast<Instruction>(SI->getFalseValue()))) { in collectUsersRecursive() 332 Worklist.insert(SI); in collectUsersRecursive() 333 if (!collectUsersRecursive(*SI)) in collectUsersRecursive() 396 } else if (auto *SI = dyn_cast<SelectInst>(I)) { in replace() local 397 Value *TrueValue = SI->getTrueValue(); in replace() 398 Value *FalseValue = SI->getFalseValue(); in replace() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SelectOptimize.cpp | 331 Instruction *SI, bool ForSinking = false); 334 bool isSelectHighlyPredictable(const SelectLike SI); 354 Scaled64 getMispredictionCost(const SelectLike SI, const Scaled64 CondCost); 358 const SelectLike SI); 361 bool isSelectKindSupported(const SelectLike SI); 528 /// If \p isTrue is true, return the true value of \p SI, otherwise return 529 /// false value of \p SI. If the true/false value of \p SI is defined by any 533 getTrueOrFalseValue(SelectOptimizeImpl::SelectLike SI, bool isTrue, in getTrueOrFalseValue() argument 537 for (SelectInst *DefSI = dyn_cast<SelectInst>(SI.getI()); in getTrueOrFalseValue() 540 if (DefSI->getCondition() == SI.getCondition()) in getTrueOrFalseValue() [all …]
|
H A D | MacroFusion.cpp | 39 for (const SDep &SI : SU.Preds) in getPredClusterSU() local 40 if (SI.isCluster()) in getPredClusterSU() 41 return SI.getSUnit(); in getPredClusterSU() 57 for (SDep &SI : FirstSU.Succs) in fuseInstructionPair() 58 if (SI.isCluster()) in fuseInstructionPair() 61 for (SDep &SI : SecondSU.Preds) in fuseInstructionPair() 62 if (SI.isCluster()) in fuseInstructionPair() 82 for (SDep &SI : FirstSU.Succs) in fuseInstructionPair() 83 if (SI.getSUnit() == &SecondSU) in fuseInstructionPair() 84 SI in fuseInstructionPair() 99 for (const SDep &SI : FirstSU.Succs) { fuseInstructionPair() local 112 for (const SDep &SI : SecondSU.Preds) { fuseInstructionPair() local [all...] |
/freebsd/sys/dev/sound/pcm/ |
H A D | sound.c | 578 * @param si Pointer to oss_sysinfo struct where information about the 592 sound_oss_sysinfo(oss_sysinfo *si) in sound_oss_sysinfo() argument 605 strlcpy(si->product, si_product, sizeof(si->product)); in sound_oss_sysinfo() 606 strlcpy(si->version, si_version, sizeof(si->version)); in sound_oss_sysinfo() 607 si->versionnum = SOUND_VERSION; in sound_oss_sysinfo() 608 strlcpy(si->license, si_license, sizeof(si->license)); in sound_oss_sysinfo() 614 si->numaudioengines = 0; in sound_oss_sysinfo() 615 bzero((void *)&si->openedaudio, sizeof(si->openedaudio)); in sound_oss_sysinfo() 631 si->numaudioengines += PCM_CHANCOUNT(d); in sound_oss_sysinfo() 637 si->openedaudio[j / intnbits] |= in sound_oss_sysinfo() [all …]
|
/freebsd/stand/i386/zfsboot/ |
H A D | zfsldr.S | 64 mov $part4,%si # Dummy partition 69 main.1: mov $MEM_BUF+PRT_OFF,%si # Partition table 71 main.2: cmpb $PRT_BSD,0x4(%si) # Our partition type? 74 testb $0x80,(%si) # Active? 76 main.3: add $0x10,%si # Next entry 86 mov $msg_part,%si # Message 91 * load boot2. %si references the start of the slice we are looking 122 mov 0xa(%bx),%si # Get BTX length and set 123 add %bx,%si # %si to start of boot2 124 dec %si # Set %ds:%si to point at the [all …]
|