/freebsd/crypto/openssl/test/helpers/ |
H A D | pkcs12.c | 38 static void generate_p12(PKCS12_BUILDER *pb, const PKCS12_ENC *mac); 105 PKCS12_BUILDER *pb = OPENSSL_malloc(sizeof(PKCS12_BUILDER)); in new_pkcs12_builder() local 106 if (!TEST_ptr(pb)) in new_pkcs12_builder() 109 pb->filename = filename; in new_pkcs12_builder() 110 pb->success = 1; in new_pkcs12_builder() 111 return pb; in new_pkcs12_builder() 114 int end_pkcs12_builder(PKCS12_BUILDER *pb) in end_pkcs12_builder() argument 116 int result = pb->success; in end_pkcs12_builder() 118 OPENSSL_free(pb); in end_pkcs12_builder() 123 void start_pkcs12(PKCS12_BUILDER *pb) in start_pkcs12() argument [all …]
|
H A D | pkcs12.h | 68 int end_pkcs12_builder(PKCS12_BUILDER *pb); 71 void start_pkcs12(PKCS12_BUILDER *pb); 72 void end_pkcs12(PKCS12_BUILDER *pb); 73 void end_pkcs12_with_mac(PKCS12_BUILDER *pb, const PKCS12_ENC *mac); 75 void start_contentinfo(PKCS12_BUILDER *pb); 76 void end_contentinfo(PKCS12_BUILDER *pb); 77 void end_contentinfo_encrypted(PKCS12_BUILDER *pb, const PKCS12_ENC *enc); 79 void add_certbag(PKCS12_BUILDER *pb, const unsigned char *bytes, int len, 81 void add_keybag(PKCS12_BUILDER *pb, const unsigned char *bytes, int len, 83 void add_secretbag(PKCS12_BUILDER *pb, int secret_nid, const char *secret, [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/opt/ |
H A D | NewPMDriver.cpp | 235 bool tryParsePipelineText(PassBuilder &PB, in tryParsePipelineText() argument 242 if (auto Err = PB.parsePassPipeline(PM, PipelineOpt)) { in tryParsePipelineText() 253 static void registerEPCallbacks(PassBuilder &PB) { in registerEPCallbacks() argument 254 if (tryParsePipelineText<FunctionPassManager>(PB, PeepholeEPPipeline)) in registerEPCallbacks() 255 PB.registerPeepholeEPCallback( in registerEPCallbacks() 256 [&PB](FunctionPassManager &PM, OptimizationLevel Level) { in registerEPCallbacks() 258 Err(PB.parsePassPipeline(PM, PeepholeEPPipeline)); in registerEPCallbacks() 260 if (tryParsePipelineText<LoopPassManager>(PB, in registerEPCallbacks() 262 PB.registerLateLoopOptimizationsEPCallback( in registerEPCallbacks() 263 [&PB](LoopPassManager &PM, OptimizationLevel Level) { in registerEPCallbacks() [all …]
|
/freebsd/contrib/elftoolchain/libpe/ |
H A D | libpe_buffer.c | 110 PE_Buffer *pb; in libpe_resync_buffers() local 122 pb = (PE_Buffer *) sb; in libpe_resync_buffers() 123 if (pb->pb_align > ps->ps_falign) in libpe_resync_buffers() 124 pb->pb_align = ps->ps_falign; in libpe_resync_buffers() 125 if (pb->pb_buf == NULL || pb->pb_size == 0) in libpe_resync_buffers() 128 sz = roundup(sz, pb->pb_align); in libpe_resync_buffers() 130 if (pb->pb_off != (off_t) sz) { in libpe_resync_buffers() 131 pb->pb_off = sz; in libpe_resync_buffers() 134 sz += pb->pb_size; in libpe_resync_buffers() 145 PE_Buffer *pb; in libpe_write_buffers() local [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | pkcs12_format_test.c | 329 PKCS12_BUILDER *pb = new_pkcs12_builder("1cert.p12"); in test_single_cert_no_attrs() local 332 start_pkcs12(pb); in test_single_cert_no_attrs() 334 start_contentinfo(pb); in test_single_cert_no_attrs() 336 add_certbag(pb, CERT1, sizeof(CERT1), NULL); in test_single_cert_no_attrs() 338 end_contentinfo(pb); in test_single_cert_no_attrs() 340 end_pkcs12(pb); in test_single_cert_no_attrs() 343 start_check_pkcs12(pb); in test_single_cert_no_attrs() 345 start_check_contentinfo(pb); in test_single_cert_no_attrs() 347 check_certbag(pb, CERT1, sizeof(CERT1), NULL); in test_single_cert_no_attrs() 349 end_check_contentinfo(pb); in test_single_cert_no_attrs() [all …]
|
/freebsd/tools/tools/netmap/ |
H A D | bridge.c | 200 struct nmport_d *pa = NULL, *pb = NULL; in main() local 283 pb = nmport_open(ifb); in main() 284 if (pb == NULL) { in main() 289 zerocopy = zerocopy && (pa->mem == pb->mem); in main() 295 pollfd[1].fd = pb->fd; in main() 301 pb->hdr.nr_name, pb->first_rx_ring, pb->reg.nr_rx_rings); in main() 305 pb_sw_rings = (pb->reg.nr_mode == NR_REG_SW || in main() 306 pb->reg.nr_mode == NR_REG_ONE_SW); in main() 310 pb->hdr.nr_name, pb_sw_rings ? "host" : "nic"); in main() 313 pb->hdr.nr_name, pb_sw_rings ? "host" : "nic", in main() [all …]
|
/freebsd/sys/dev/atkbdc/ |
H A D | psm.c | 384 #define ELANTECH_FINGER_SET_XYP(pb) (finger_t) { \ argument 385 .x = (((pb)->ipacket[1] & 0x0f) << 8) | (pb)->ipacket[2], \ 386 .y = (((pb)->ipacket[4] & 0x0f) << 8) | (pb)->ipacket[5], \ 387 .p = ((pb)->ipacket[1] & 0xf0) | (((pb)->ipacket[4] >> 4) & 0x0f), \ 403 #define ELANTECH_PKT_IS_TRACKPOINT(pb) (((pb)->ipacket[3] & 0x0f) == 0x06) argument 404 #define ELANTECH_PKT_IS_DEBOUNCE(pb, hwversion) ((hwversion) == 4 ? 0 : \ argument 405 (pb)->ipacket[0] == ((hwversion) == 2 ? 0x84 : 0xc4) && \ 406 (pb)->ipacket[1] == 0xff && (pb)->ipacket[2] == 0xff && \ 407 (pb)->ipacket[3] == 0x02 && (pb)->ipacket[4] == 0xff && \ 408 (pb)->ipacket[5] == 0xff) [all …]
|
/freebsd/sys/dev/mlx5/mlx5_accel/ |
H A D | mlx5_ipsec.c | 74 mlx5e_ipsec_other_sa_entry(struct mlx5e_ipsec_priv_bothdir *pb, in mlx5e_ipsec_other_sa_entry() argument 77 return (pb->priv_in == sa_entry ? pb->priv_out : pb->priv_in); in mlx5e_ipsec_other_sa_entry() 91 other_sa_entry = mlx5e_ipsec_other_sa_entry(dwork->pb, sa_entry); in mlx5e_ipsec_handle_counters() 111 struct mlx5e_ipsec_priv_bothdir *pb) in mlx5e_ipsec_create_dwork() argument 120 dwork->pb = pb; in mlx5e_ipsec_create_dwork() 328 struct mlx5e_ipsec_sa_entry **privp, struct mlx5e_ipsec_priv_bothdir *pb, in mlx5e_if_sa_newkey_onedir() argument 383 err = mlx5e_ipsec_create_dwork(sa_entry, pb); in mlx5e_if_sa_newkey_onedir() 433 struct mlx5e_ipsec_priv_bothdir *pb; in mlx5e_if_sa_newkey() local 440 pb = malloc(sizeof(struct mlx5e_ipsec_priv_bothdir), M_DEVBUF, in mlx5e_if_sa_newkey() 443 ifp, sav, IPSEC_DIR_INBOUND, dev_spi, &pb->priv_in, pb, ifpo); in mlx5e_if_sa_newkey() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Passes/ |
H A D | TargetPassRegistry.inc | 24 auto *PIC = PB.getPassInstrumentationCallbacks(); 95 PB.registerPipelineParsingCallback([=](StringRef Name, ModulePassManager &PM, 103 PB.registerPipelineParsingCallback([=](StringRef Name, ModulePassManager &PM, 112 PB.registerPipelineParsingCallback([=](StringRef Name, FunctionPassManager &PM, 120 PB.registerPipelineParsingCallback([=](StringRef Name, FunctionPassManager &PM, 129 PB.registerPipelineParsingCallback([=](StringRef Name, LoopPassManager &PM, 136 PB.registerPipelineParsingCallback([=](StringRef Name, 144 PB.registerPipelineParsingCallback([=](StringRef Name, FunctionPassManager &PM, 157 PB.registerAnalysisRegistrationCallback([](ModuleAnalysisManager &AM) { 164 PB.registerAnalysisRegistrationCallback([](FunctionAnalysisManager &AM) { [all …]
|
/freebsd/contrib/bearssl/src/int/ |
H A D | i15_moddiv.c | 110 * a <- (a*pa+b*pb)/(2^15) 118 * Factors pa, pb, qa and qb must be at most 2^15 in absolute value. 124 int32_t pa, int32_t pb, int32_t qa, int32_t qb) in co_reduce() argument 139 * |pb| <= 2^15 in co_reduce() 151 za = wa * (uint32_t)pa + wb * (uint32_t)pb + (uint32_t)cca; in co_reduce() 173 * a <- (a*pa+b*pb)/(2^15) mod m 178 * Factors pa, pb, qa and qb must be at most 2^15 in absolute value. 184 int32_t pa, int32_t pb, int32_t qa, int32_t qb, in co_reduce_mod() argument 192 fa = ((a[0] * (uint32_t)pa + b[0] * (uint32_t)pb) * m0i) & 0x7FFF; in co_reduce_mod() 204 za = wa * (uint32_t)pa + wb * (uint32_t)pb in co_reduce_mod() [all …]
|
H A D | i31_moddiv.c | 113 * a <- (a*pa+b*pb)/(2^31) 121 * Factors pa, pb, qa and qb must be at most 2^31 in absolute value. 127 int64_t pa, int64_t pb, int64_t qa, int64_t qb) in co_reduce() argument 143 * |pb| <= 2^31 in co_reduce() 155 za = wa * (uint64_t)pa + wb * (uint64_t)pb + (uint64_t)cca; in co_reduce() 189 * a <- (a*pa+b*pb)/(2^31) mod m 194 * Factors pa, pb, qa and qb must be at most 2^31 in absolute value. 200 int64_t pa, int64_t pb, int64_t qa, int64_t qb, in co_reduce_mod() argument 209 fa = ((a[0] * (uint32_t)pa + b[0] * (uint32_t)pb) * m0i) & 0x7FFFFFFF; in co_reduce_mod() 222 za = wa * (uint64_t)pa + wb * (uint64_t)pb in co_reduce_mod() [all …]
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | qsort.c | 119 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in rk_qsort_r() local 147 pa = pb = (char *)a + es; in rk_qsort_r() 151 while (pb <= pc && (cmp_result = CMP(thunk, pb, a)) <= 0) { in rk_qsort_r() 154 swap(pa, pb); in rk_qsort_r() 157 pb += es; in rk_qsort_r() 159 while (pb <= pc && (cmp_result = CMP(thunk, pc, a)) >= 0) { in rk_qsort_r() 167 if (pb > pc) in rk_qsort_r() 169 swap(pb, pc); in rk_qsort_r() 171 pb += es; in rk_qsort_r() 184 r = min(pa - (char *)a, pb - pa); in rk_qsort_r() [all …]
|
/freebsd/sys/kern/ |
H A D | link_elf_obj.c | 354 int error, i, j, pb, ra, rl, shstrindex, symstrindex, symtabindex; in link_elf_link_preload() local 481 pb = 0; in link_elf_link_preload() 495 ef->progtab[pb].addr = (void *)shdr[i].sh_addr; in link_elf_link_preload() 497 ef->progtab[pb].name = "<<PROGBITS>>"; in link_elf_link_preload() 500 ef->progtab[pb].name = "<<UNWIND>>"; in link_elf_link_preload() 503 ef->progtab[pb].name = "<<INIT_ARRAY>>"; in link_elf_link_preload() 505 ef->progtab[pb].name = "<<FINI_ARRAY>>"; in link_elf_link_preload() 507 ef->progtab[pb].name = "<<NOBITS>>"; in link_elf_link_preload() 508 ef->progtab[pb].size = shdr[i].sh_size; in link_elf_link_preload() 509 ef->progtab[pb].flags = shdr[i].sh_flags; in link_elf_link_preload() [all …]
|
/freebsd/sys/libkern/ |
H A D | qsort.c | 114 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; variable 144 pa = pb = (char *)a + es; 148 while (pb <= pc && (cmp_result = CMP(thunk, pb, a)) <= 0) { 151 swap(pa, pb); 154 pb += es; 156 while (pb <= pc && (cmp_result = CMP(thunk, pc, a)) >= 0) { 164 if (pb > pc) 166 swap(pb, pc); 168 pb += es; 181 d1 = MIN(pa - (char *)a, pb - pa); [all …]
|
/freebsd/sys/contrib/dpdk_rte_lpm/ |
H A D | rte_jhash.h | 76 uint32_t *pb, unsigned check_align) in __rte_jhash_2hashes() argument 82 c += *pb; in __rte_jhash_2hashes() 135 *pb = b; in __rte_jhash_2hashes() 203 *pb = b; in __rte_jhash_2hashes() 211 *pb = b; in __rte_jhash_2hashes() 216 * pc and pb must be non-null, and *pc and *pb must both be initialized 217 * with seeds. If you pass in (*pb)=0, the output (*pc) will be 226 * @param pb 230 rte_jhash_2hashes(const void *key, uint32_t length, uint32_t *pc, uint32_t *pb) in rte_jhash_2hashes() argument 232 __rte_jhash_2hashes(key, length, pc, pb, 1); in rte_jhash_2hashes() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | PredicateInfo.h | 99 static bool classof(const PredicateBase *PB) { 100 return PB->Type == PT_Assume || PB->Type == PT_Branch || in classof() argument 101 PB->Type == PT_Switch; in classof() 121 static bool classof(const PredicateBase *PB) { 122 return PB->Type == PT_Assume; in classof() argument 134 static bool classof(const PredicateBase *PB) { 135 return PB->Type == PT_Branch || PB->Type == PT_Switch; in classof() argument 154 static bool classof(const PredicateBase *PB) { 155 classof(const PredicateBase * PB) classof() argument 171 classof(const PredicateBase * PB) classof() argument [all...] |
/freebsd/lib/libc/stdlib/ |
H A D | qsort.c | 106 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in local_qsort() local 138 pa = pb = (char *)a + es; in local_qsort() 142 while (pb <= pc && (cmp_result = CMP(thunk, pb, a)) <= 0) { in local_qsort() 145 swapfunc(pa, pb, es); in local_qsort() 148 pb += es; in local_qsort() 150 while (pb <= pc && (cmp_result = CMP(thunk, pc, a)) >= 0) { in local_qsort() 158 if (pb > pc) in local_qsort() 160 swapfunc(pb, pc, es); in local_qsort() 162 pb += es; in local_qsort() 175 d1 = MIN(pa - (char *)a, pb - pa); in local_qsort() [all …]
|
/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_vnops.c | 69 char pb[MAXPATHLEN], final[MAXPATHLEN]; in lookup_simple() local 73 snprintf(pb, sizeof(pb), "%s/../%s", mountpath, basename(final)); in lookup_simple() 74 if (rump_sys_stat(pb, &sb1) == -1) in lookup_simple() 77 snprintf(pb, sizeof(pb), "%s/./../%s", mountpath, basename(final)); in lookup_simple() 78 if (rump_sys_stat(pb, &sb2) == -1) in lookup_simple() 87 char pb[MAXPATHLEN]; in lookup_complex() local 93 snprintf(pb, sizeof(pb), "%s/dir", mountpath); in lookup_complex() 94 if (rump_sys_mkdir(pb, 0777) == -1) in lookup_complex() 96 if (rump_sys_stat(pb, &sb1) == -1) in lookup_complex() 99 snprintf(pb, sizeof(pb), "%s/./dir/../././dir/.", mountpath); in lookup_complex() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/pool_checkpoint/ |
H A D | checkpoint_sm_scale.ksh | 24 # top-level vdev to 64PB whenever a vdev-wide space map is used. 29 # vdev with more than 64PB of allocatable space. 37 # 1. Create pool with a disk of exactly 64PB 38 # (so ~63.5PB of allocatable space) and 42 # 3. Create pool with a disk of exactly 65PB 43 # (so ~64.5PB of allocatable space) with 92 " and a vdev that's more than 64PB."
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_interceptors_vfork_i386.inc.S | 17 call .L0$pb 18 .L0$pb: 21 add $_GLOBAL_OFFSET_TABLE_+(.Ltmp0-.L0$pb), %eax 34 call .L1$pb 35 .L1$pb: 38 add $_GLOBAL_OFFSET_TABLE_+(.Ltmp1-.L1$pb), %ebx
|
/freebsd/contrib/tcsh/ |
H A D | tc.who.c | 521 char *pb; local 555 pb = wp->who_host; 556 wbuf = xmalloc(strlen(pb) + 1); 559 for (flg = isdigit((unsigned char)*pb) ? '\0' : '.'; 560 *pb != '\0' && (*pb != flg || ((pb = strchr(pb, ':')) != 0)); 561 pb++) { 562 if (*pb == ':') 564 *wb++ = isupper((unsigned char)*pb) ? 565 tolower((unsigned char)*pb) : *pb; 575 pb = wp->who_host; [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-extract/ |
H A D | llvm-extract.cpp | 331 PassBuilder PB; in main() local 333 PB.registerModuleAnalyses(MAM); in main() 334 PB.registerCGSCCAnalyses(CGAM); in main() 335 PB.registerFunctionAnalyses(FAM); in main() 336 PB.registerLoopAnalyses(LAM); in main() 337 PB.crossRegisterProxies(LAM, FAM, CGAM, MAM); in main() 378 PassBuilder PB; in main() local 380 PB.registerModuleAnalyses(MAM); in main() 381 PB.registerCGSCCAnalyses(CGAM); in main() 382 PB.registerFunctionAnalyses(FAM); in main() [all …]
|
/freebsd/contrib/libpcap/ |
H A D | pcap-bpf.c | 253 * pb->nonblock so we don't call select(2) if the pcap handle is in non- 260 struct pcap_bpf *pb = p->priv; in pcap_getnonblock_bpf() local 262 if (pb->zerocopy) in pcap_getnonblock_bpf() 263 return (pb->nonblock); in pcap_getnonblock_bpf() 272 struct pcap_bpf *pb = p->priv; in pcap_setnonblock_bpf() local 274 if (pb->zerocopy) { in pcap_setnonblock_bpf() 275 pb->nonblock = nonblock; in pcap_setnonblock_bpf() 295 struct pcap_bpf *pb = p->priv; in pcap_next_zbuf_shm() local 298 if (pb->zbuffer == pb->zbuf2 || pb->zbuffer == NULL) { in pcap_next_zbuf_shm() 299 bzh = (struct bpf_zbuf_header *)pb->zbuf1; in pcap_next_zbuf_shm() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Passes/ |
H A D | PassBuilderBindings.cpp | 57 PassBuilder PB(Machine, PassOpts->PTO, std::nullopt, &PIC); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() local 63 PB.registerLoopAnalyses(LAM); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 64 PB.registerFunctionAnalyses(FAM); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 65 PB.registerCGSCCAnalyses(CGAM); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 66 PB.registerModuleAnalyses(MAM); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 67 PB.crossRegisterProxies(LAM, FAM, CGAM, MAM); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 75 if (auto Err = PB.parsePassPipeline(MPM, Passes)) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
|
/freebsd/contrib/tcpdump/ |
H A D | print-babel.c | 204 unsigned pb; in network_prefix() local 209 pb = (plen + 7) / 8; in network_prefix() 211 pb = 4; in network_prefix() 213 pb = 16; in network_prefix() 215 if(pb > 16) in network_prefix() 223 if(omitted > 4 || pb > 4 || (pb > omitted && len < pb - omitted)) in network_prefix() 230 if(pb > omitted) { in network_prefix() 231 memcpy(prefix + 12 + omitted, p, pb - omitted); in network_prefix() 232 consumed = pb - omitted; in network_prefix() 236 if(omitted > 16 || (pb > omitted && len < pb - omitted)) in network_prefix() [all …]
|