| /freebsd/sbin/ipf/libipf/ |
| H A D | printpoolfield.c | 24 printpoolfield(void *p, int ptype, int fieldnum) in printpoolfield() argument 35 printpoolfield(p, ptype, i); in printpoolfield() 43 if (ptype == IPLT_POOL) { in printpoolfield() 51 } else if (ptype == IPLT_HASH) { in printpoolfield() 57 } else if (ptype == IPLT_DSTLIST) { in printpoolfield() 67 if (ptype == IPLT_POOL) { in printpoolfield() 73 } else if (ptype == IPLT_HASH) { in printpoolfield() 79 } else if (ptype == IPLT_DSTLIST) { in printpoolfield() 85 if (ptype == IPLT_POOL) { in printpoolfield() 87 } else if (ptype == IPLT_HASH) { in printpoolfield() [all …]
|
| /freebsd/contrib/ntp/include/ |
| H A D | safecast.h | 30 #define UA_PTR(ptype,pval) ((ptype *)(void*)(pval)) argument 31 #define UAC_PTR(ptype,pval) ((const ptype *)(const void*)(pval)) argument 32 #define UAV_PTR(ptype,pval) ((volatile ptype *)(volatile void*)(pval)) argument
|
| /freebsd/contrib/smbfs/lib/smb/ |
| H A D | rap.c | 165 smb_rap_rqparam(struct smb_rap *rap, char ptype, char plen, long value) in smb_rap_rqparam() argument 170 switch (ptype) { in smb_rap_rqparam() 237 char ptype = *p; in smb_rap_setNparam() local 243 switch (ptype) { in smb_rap_setNparam() 250 error = smb_rap_rqparam(rap, ptype, plen, value); in smb_rap_setNparam() 263 char ptype = *p; in smb_rap_setPparam() local 269 switch (ptype) { in smb_rap_setPparam() 284 char ptype = *p; in smb_rap_getNparam() local 290 switch (ptype) { in smb_rap_getNparam() 308 char ptype; in smb_rap_request() local [all …]
|
| /freebsd/crypto/openssl/crypto/dsa/ |
| H A D | dsa_ameth.c | 33 int ptype; in dsa_pub_decode() local 43 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in dsa_pub_decode() 45 if (ptype == V_ASN1_SEQUENCE) { in dsa_pub_decode() 55 } else if ((ptype == V_ASN1_NULL) || (ptype == V_ASN1_UNDEF)) { in dsa_pub_decode() 89 int ptype; in dsa_pub_encode() local 111 ptype = V_ASN1_SEQUENCE; in dsa_pub_encode() 113 ptype = V_ASN1_UNDEF; in dsa_pub_encode() 134 if (X509_PUBKEY_set0_param(pk, aobj, ptype, str, penc, penclen)) in dsa_pub_encode() 271 static int do_dsa_print(BIO *bp, const DSA *x, int off, int ptype) in do_dsa_print() argument 281 if (ptype == 2) in do_dsa_print() [all …]
|
| H A D | dsa_backend.c | 126 int ptype; in ossl_dsa_key_from_pkcs8() local 139 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_dsa_key_from_pkcs8() 143 if (privkey->type == V_ASN1_NEG_INTEGER || ptype != V_ASN1_SEQUENCE) in ossl_dsa_key_from_pkcs8()
|
| /freebsd/crypto/openssl/crypto/asn1/ |
| H A D | x_algor.c | 30 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval) 35 if (ptype != V_ASN1_UNDEF && alg->parameter == NULL 42 if (ptype == V_ASN1_EOC) 44 if (ptype == V_ASN1_UNDEF) { 48 ASN1_TYPE_set(alg->parameter, ptype, pval); 52 X509_ALGOR *ossl_X509_ALGOR_from_nid(int nid, int ptype, void *pval) in ossl_X509_ALGOR_from_nid() argument 61 if (X509_ALGOR_set0(alg, algo, ptype, pval)) in ossl_X509_ALGOR_from_nid()
|
| /freebsd/crypto/openssl/crypto/dh/ |
| H A D | dh_ameth.c | 64 int ptype; in dh_pub_decode() local 74 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in dh_pub_decode() 76 if (ptype != V_ASN1_SEQUENCE) { in dh_pub_decode() 114 int ptype; in dh_pub_encode() local 132 ptype = V_ASN1_SEQUENCE; in dh_pub_encode() 148 ptype, str, penc, penclen)) in dh_pub_encode() 244 static int do_dh_print(BIO *bp, const DH *x, int indent, int ptype) in do_dh_print() argument 250 if (ptype == 2) in do_dh_print() 255 if (ptype > 0) in do_dh_print() 260 if (x->params.p == NULL || (ptype == 2 && priv_key == NULL) in do_dh_print() [all …]
|
| /freebsd/usr.bin/rpcgen/ |
| H A D | rpc_clntout.c | 78 ptype(proc->res_prefix, proc->res_type, 1); in write_program() 114 ptype(proc->args.decls->decl.prefix, in printarglist() 119 ptype(proc->res_prefix, proc->res_type, 1); in printarglist() 128 ptype(proc->res_prefix, proc->res_type, 1); in printarglist() 140 ptype(proc->res_prefix, proc->res_type, 1); in printarglist() 181 ptype(proc->res_prefix, proc->res_type, 0); in printbody()
|
| H A D | rpc_sample.c | 92 ptype(proc->res_prefix, proc->res_type, 1); in write_sample_client() 95 ptype(proc->res_prefix, proc->res_type, 1); in write_sample_client() 102 ptype(proc->args.decls->decl.prefix, in write_sample_client() 112 ptype(l->decl.prefix, l->decl.type, 1); in write_sample_client() 173 ptype(proc->res_prefix, proc->res_type, 1); in write_sample_client() 247 ptype(plist->res_prefix, plist->res_type, 1); in return_type()
|
| /freebsd/sys/dev/iavf/ |
| H A D | iavf_txrx_common.h | 44 static inline int iavf_ptype_to_hash(u8 ptype); 55 iavf_ptype_to_hash(u8 ptype) in iavf_ptype_to_hash() argument 59 decoded = decode_rx_desc_ptype(ptype); in iavf_ptype_to_hash()
|
| H A D | iavf_txrx_iflib.c | 47 static void iavf_rx_checksum(if_rxd_info_t ri, u32 status, u32 error, u8 ptype); 675 u8 ptype; in iavf_isc_rxd_pkt_get() local 693 ptype = (qword & IAVF_RXD_QW1_PTYPE_MASK) in iavf_isc_rxd_pkt_get() 727 iavf_rx_checksum(ri, status, error, ptype); in iavf_isc_rxd_pkt_get() 729 ri->iri_rsstype = iavf_ptype_to_hash(ptype); in iavf_isc_rxd_pkt_get() 750 iavf_rx_checksum(if_rxd_info_t ri, u32 status, u32 error, u8 ptype) in iavf_rx_checksum() argument 760 decoded = decode_rx_desc_ptype(ptype); in iavf_rx_checksum()
|
| /freebsd/lib/libc/gen/ |
| H A D | disklabel.c | 67 pfsize[3], poffset[3], ptype[3]; in getdiskbyname() local 121 strcpy(ptype, "tx"); in getdiskbyname() 126 psize[1] = pbsize[1] = pfsize[1] = poffset[1] = ptype[1] = p; in getdiskbyname() 142 getnumdflt(pp->p_fstype, ptype, 0); in getdiskbyname() 144 if (cgetstr(buf, ptype, &cq) >= 0) { in getdiskbyname()
|
| /freebsd/contrib/tcpdump/ |
| H A D | print-ppp.c | 1747 uint16_t ptype; in ppp_bsdos_if_print() local 1776 ptype = GET_U_1(p); in ppp_bsdos_if_print() 1778 ND_PRINT("%02x ", ptype); in ppp_bsdos_if_print() 1783 ptype = GET_BE_U_2(p); in ppp_bsdos_if_print() 1785 ND_PRINT("%04x ", ptype); in ppp_bsdos_if_print() 1790 ptype = 0; /*XXX*/ in ppp_bsdos_if_print() 1805 ptype = GET_BE_U_2(&ph->phdr_type); in ppp_bsdos_if_print() 1806 if (ndo->ndo_eflag && (ptype == PPP_VJC || ptype == PPP_VJNC)) { in ppp_bsdos_if_print() 1808 "proto-#%u", ptype)); in ppp_bsdos_if_print() 1824 switch (ptype) { in ppp_bsdos_if_print() [all …]
|
| /freebsd/crypto/openssl/crypto/pem/ |
| H A D | pem_info.c | 65 unsigned int i, raw, ptype; in STACK_OF() local 80 ptype = 0; in STACK_OF() 131 ptype = EVP_PKEY_NONE; in STACK_OF() 135 ptype = evp_pkey_name2type(name); in STACK_OF() 162 if (ptype) { in STACK_OF() 163 if (d2i_PrivateKey_ex(ptype, pp, &p, len, in STACK_OF()
|
| /freebsd/sys/sys/ |
| H A D | linker_set.h | 88 #define SET_DECLARE(set, ptype) \ argument 89 extern ptype __weak_symbol *__CONCAT(__start_set_,set); \ 90 extern ptype __weak_symbol *__CONCAT(__stop_set_,set)
|
| /freebsd/sys/dev/ice/ |
| H A D | ice_common_txrx.h | 265 * @ptype: packet type 273 u16 status0, u16 ptype) in ice_rx_checksum() argument 289 decoded = ice_decode_rx_desc_ptype(ptype); in ice_rx_checksum() 375 * @ptype: the packet type to convert 383 ice_ptype_to_hash(u16 ptype) in ice_ptype_to_hash() argument 387 if (ptype >= ARRAY_SIZE(ice_ptype_lkup)) in ice_ptype_to_hash() 390 decoded = ice_decode_rx_desc_ptype(ptype); in ice_ptype_to_hash()
|
| /freebsd/crypto/openssl/crypto/cms/ |
| H A D | cms_ec.c | 20 static EVP_PKEY *pkey_type2param(int ptype, const void *pval, in pkey_type2param() argument 27 if (ptype == V_ASN1_SEQUENCE) { in pkey_type2param() 44 } else if (ptype == V_ASN1_OBJECT) { in pkey_type2param() 170 int ptype = 0; in ecdh_cms_set_shared_info() local 178 X509_ALGOR_get0(&aoid, &ptype, ¶meter, alg); in ecdh_cms_set_shared_info() 185 if (ptype != V_ASN1_SEQUENCE) in ecdh_cms_set_shared_info()
|
| /freebsd/crypto/openssl/crypto/ec/ |
| H A D | ec_ameth.c | 72 int ptype; in eckey_pub_encode() local 76 if (!eckey_param2type(&ptype, &pval, ec_key)) { in eckey_pub_encode() 91 ptype, pval, penc, penclen)) in eckey_pub_encode() 94 if (ptype == V_ASN1_SEQUENCE) in eckey_pub_encode() 166 int eplen, ptype; in eckey_priv_encode() local 170 if (!eckey_param2type(&ptype, &pval, &ec_key)) { in eckey_priv_encode() 191 ptype, pval, ep, eplen)) { in eckey_priv_encode() 200 if (ptype == V_ASN1_SEQUENCE) in eckey_priv_encode()
|
| H A D | ec_backend.c | 732 int ptype = 0; in ossl_x509_algor_is_sm2() local 735 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_x509_algor_is_sm2() 737 if (ptype == V_ASN1_OBJECT) in ossl_x509_algor_is_sm2() 740 if (ptype == V_ASN1_SEQUENCE) { in ossl_x509_algor_is_sm2() 762 int ptype = 0; in ossl_ec_key_param_from_x509_algor() local 767 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_ec_key_param_from_x509_algor() 773 if (ptype == V_ASN1_SEQUENCE) { in ossl_ec_key_param_from_x509_algor() 782 } else if (ptype == V_ASN1_OBJECT) { in ossl_ec_key_param_from_x509_algor()
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | X509_ALGOR_dup.pod | 15 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval); 27 associated parameter type to I<ptype> with value I<pval>. If I<ptype> is 28 B<V_ASN1_UNDEF> the parameter is omitted, otherwise I<ptype> and I<pval> have
|
| /freebsd/sbin/nvmecontrol/ |
| H A D | identify.c | 66 uint8_t thin_prov, ptype; in print_namespace() local 106 ptype = NVMEV(NVME_NS_DATA_DPS_PIT, nsdata->dps); in print_namespace() 107 if (ptype != 0) { in print_namespace() 108 printf("Type %d, %s Bytes\n", ptype, in print_namespace()
|
| /freebsd/tools/boot/ |
| H A D | boot-test.sh | 732 ufs) fsimg=${IMGDIR}/bootable-ufs-lua.img; ptype="freebsd-ufs" ;; 733 zfs) fsimg=${IMGDIR}/bootable-zfs-lua.img; ptype="freebsd-zfs" ;; 738 -p ${ptype}:=${fsimg} \ 827 ptype="freebsd-ufs" 832 ptype="freebsd-zfs" 840 -p ${ptype}:=${fsimg} \ 955 ufs) fsimg=${IMGDIR}/bootable-ufs-lua.img; ptype="freebsd-ufs" ;; 956 zfs) fsimg=${IMGDIR}/bootable-zfs-lua.img; ptype="freebsd-zfs" ;; 961 -p ${ptype}:=${fsimg} \ 1061 ufs) fsimg=${IMGDIR}/bootable-ufs-lua.img; ptype="freebsd-ufs" ;; [all …]
|
| /freebsd/sys/dev/gve/ |
| H A D | gve_rx_dqo.c | 480 gve_rx_set_hashtype_dqo(struct mbuf *mbuf, struct gve_ptype *ptype, bool *is_tcp) in gve_rx_set_hashtype_dqo() argument 482 switch (ptype->l3_type) { in gve_rx_set_hashtype_dqo() 484 switch (ptype->l4_type) { in gve_rx_set_hashtype_dqo() 497 switch (ptype->l4_type) { in gve_rx_set_hashtype_dqo() 517 struct gve_ptype *ptype) in gve_rx_set_csum_flags_dqo() argument 523 if (ptype->l3_type == GVE_L3_TYPE_IPV4) { in gve_rx_set_csum_flags_dqo() 527 } else if (ptype->l3_type == GVE_L3_TYPE_IPV6) { in gve_rx_set_csum_flags_dqo() 536 switch (ptype->l4_type) { in gve_rx_set_csum_flags_dqo() 558 struct gve_ptype *ptype; in gve_rx_input_mbuf_dqo() local 562 ptype = &rx->com.priv->ptype_lut_dqo->ptypes[compl_desc->packet_type]; in gve_rx_input_mbuf_dqo() [all …]
|
| /freebsd/sys/dev/ixgbe/ |
| H A D | ix_txrx.c | 407 uint32_t ptype; in ixgbe_isc_rxd_pkt_get() local 422 ptype = le32toh(rxd->wb.lower.lo_dword.data) & in ixgbe_isc_rxd_pkt_get() 455 ixgbe_rx_checksum(staterr, ri, ptype); in ixgbe_isc_rxd_pkt_get() 495 ixgbe_rx_checksum(uint32_t staterr, if_rxd_info_t ri, uint32_t ptype) in ixgbe_rx_checksum() argument 512 if (__predict_false((ptype & IXGBE_RXDADV_PKTTYPE_ETQF) == 0 && in ixgbe_rx_checksum() 513 (ptype & IXGBE_RXDADV_PKTTYPE_SCTP) != 0)) { in ixgbe_rx_checksum()
|
| /freebsd/sys/dev/ixl/ |
| H A D | ixl_txrx.c | 53 static u8 ixl_rx_checksum(if_rxd_info_t ri, u32 status, u32 error, u8 ptype); 612 ixl_ptype_to_hash(u8 ptype) in ixl_ptype_to_hash() argument 616 decoded = decode_rx_desc_ptype(ptype); in ixl_ptype_to_hash() 668 u8 ptype; in ixl_isc_rxd_pkt_get() local 686 ptype = (qword & I40E_RXD_QW1_PTYPE_MASK) in ixl_isc_rxd_pkt_get() 720 rxr->csum_errs += ixl_rx_checksum(ri, status, error, ptype); in ixl_isc_rxd_pkt_get() 725 ri->iri_rsstype = ixl_ptype_to_hash(ptype); in ixl_isc_rxd_pkt_get() 743 ixl_rx_checksum(if_rxd_info_t ri, u32 status, u32 error, u8 ptype) in ixl_rx_checksum() argument 753 decoded = decode_rx_desc_ptype(ptype); in ixl_rx_checksum()
|