/freebsd/sys/contrib/rdma/krping/ |
H A D | krping.c | 249 struct krping_cb *cb = cma_id->context; in krping_cma_event_handler() local 252 (cma_id == cb->cm_id) ? "parent" : "child"); in krping_cma_event_handler() 256 cb->state = ADDR_RESOLVED; in krping_cma_event_handler() 261 wake_up_interruptible(&cb->sem); in krping_cma_event_handler() 266 cb->state = ROUTE_RESOLVED; in krping_cma_event_handler() 267 wake_up_interruptible(&cb->sem); in krping_cma_event_handler() 271 cb->state = CONNECT_REQUEST; in krping_cma_event_handler() 272 cb->child_cm_id = cma_id; in krping_cma_event_handler() 273 DEBUG_LOG("child cma %p\n", cb->child_cm_id); in krping_cma_event_handler() 274 wake_up_interruptible(&cb->sem); in krping_cma_event_handler() [all …]
|
/freebsd/contrib/ofed/librdmacm/examples/ |
H A D | rping.c | 164 struct rping_cb *cb = cma_id->context; in rping_cma_event_handler() local 168 (cma_id == cb->cm_id) ? "parent" : "child"); in rping_cma_event_handler() 172 cb->state = ADDR_RESOLVED; in rping_cma_event_handler() 175 cb->state = ERROR; in rping_cma_event_handler() 177 sem_post(&cb->sem); in rping_cma_event_handler() 182 cb->state = ROUTE_RESOLVED; in rping_cma_event_handler() 183 sem_post(&cb->sem); in rping_cma_event_handler() 187 cb->state = CONNECT_REQUEST; in rping_cma_event_handler() 188 cb->child_cm_id = cma_id; in rping_cma_event_handler() 189 DEBUG_LOG("child cma %p\n", cb->child_cm_id); in rping_cma_event_handler() [all …]
|
/freebsd/crypto/openssl/crypto/bio/ |
H A D | ossl_core_bio.c | 26 OSSL_CORE_BIO *cb = OPENSSL_malloc(sizeof(*cb)); in core_bio_new() local 28 if (cb == NULL || (cb->ref_lock = CRYPTO_THREAD_lock_new()) == NULL) { in core_bio_new() 29 OPENSSL_free(cb); in core_bio_new() 32 cb->ref_cnt = 1; in core_bio_new() 33 return cb; in core_bio_new() 36 int ossl_core_bio_up_ref(OSSL_CORE_BIO *cb) in ossl_core_bio_up_ref() argument 40 return CRYPTO_UP_REF(&cb->ref_cnt, &ref, cb->ref_lock); in ossl_core_bio_up_ref() 43 int ossl_core_bio_free(OSSL_CORE_BIO *cb) in ossl_core_bio_free() argument 47 if (cb != NULL) { in ossl_core_bio_free() 48 CRYPTO_DOWN_REF(&cb->ref_cnt, &ref, cb->ref_lock); in ossl_core_bio_free() [all …]
|
/freebsd/sys/netlink/ |
H A D | netlink_snl_route_parsers.h | 61 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = snl_attr_get_uint32 }, 66 { .type = NL_RTA_GATEWAY, .off = _OUT(gw), .cb = snl_attr_get_ip }, 67 { .type = NL_RTA_METRICS, .arg = &_metrics_mp_nh_parser, .cb = snl_attr_get_nested }, 68 { .type = NL_RTA_RTFLAGS, .off = _OUT(rta_rtflags), .cb = snl_attr_get_uint32 }, 69 { .type = NL_RTA_VIA, .off = _OUT(gw), .cb = snl_attr_get_ipvia }, 73 { .off_in = _IN(rtnh_flags), .off_out = _OUT(rtnh_flags), .cb = snl_field_get_uint8 }, 74 { .off_in = _IN(rtnh_hops), .off_out = _OUT(rtnh_weight), .cb = snl_field_get_uint8 }, 75 { .off_in = _IN(rtnh_ifindex), .off_out = _OUT(ifindex), .cb = snl_field_get_uint32 }, 132 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = snl_attr_get_uint32 }, 137 { .type = NL_RTA_DST, .off = _OUT(rta_dst), .cb = snl_attr_get_ip }, [all …]
|
/freebsd/contrib/netbsd-tests/ipf/expected/ |
H A D | ni5 | 1 4500 002c 0000 4000 ff06 02fc 0101 0101 96cb e002 8032 0015 bd6b c9c8 0000 0000 6002 2238 f5a2 0000… 3 4500 002c ffdd 4000 ef06 5374 96cb e002 c0a8 0103 0015 8032 3786 76c4 bd6b c9c9 6012 269c 8369 0000… 5 4500 0028 0001 4000 ff06 02ff 0101 0101 96cb e002 8032 0015 bd6b c9c9 3786 76c5 5010 269c 5aa0 0000 8 4500 006f ffde 4000 ef06 5330 96cb e002 c0a8 0103 0015 8032 3786 76c5 bd6b c9c9 5018 269c 967e 0000… 10 4500 0028 0002 4000 ff06 02fe 0101 0101 96cb e002 8032 0015 bd6b c9c9 3786 770c 5010 269c 5a59 0000 12 4500 00c7 ffdf 4000 ef06 52d7 96cb e002 c0a8 0103 0015 8032 3786 770c bd6b c9c9 5018 269c 1087 0000… 14 4500 0028 0003 4000 ff06 02fd 0101 0101 96cb e002 8032 0015 bd6b c9c9 3786 77ab 5010 269c 59ba 0000 16 4500 0038 0004 4000 ff06 02ec 0101 0101 96cb e002 8032 0015 bd6b c9c9 3786 77ab 5018 269c d1c5 0000… 18 4500 0028 ffe0 4000 ef06 5375 96cb e002 c0a8 0103 0015 8032 3786 77ab bd6b c9d9 5010 269c 9a00 0000 20 4500 006c ffe1 4000 ef06 5330 96cb e002 c0a8 0103 0015 8032 3786 77ab bd6b c9d9 5018 269c b00f 0000… [all …]
|
/freebsd/sys/dev/usb/video/ |
H A D | udl.c | 367 struct udl_cmd_buf *cb = &sc->sc_cmd_buf_temp[i]; in udl_attach() local 369 TAILQ_INSERT_TAIL(&sc->sc_cmd_buf_free, cb, entry); in udl_attach() 508 struct udl_cmd_buf *cb; in udl_cmd_buf_alloc_locked() local 510 while ((cb = TAILQ_FIRST(&sc->sc_cmd_buf_free)) == NULL) { in udl_cmd_buf_alloc_locked() 515 if (cb != NULL) { in udl_cmd_buf_alloc_locked() 516 TAILQ_REMOVE(&sc->sc_cmd_buf_free, cb, entry); in udl_cmd_buf_alloc_locked() 517 cb->off = 0; in udl_cmd_buf_alloc_locked() 519 return (cb); in udl_cmd_buf_alloc_locked() 525 struct udl_cmd_buf *cb; in udl_cmd_buf_alloc() local 528 cb = udl_cmd_buf_alloc_locked(sc, flags); in udl_cmd_buf_alloc() [all …]
|
/freebsd/contrib/netbsd-tests/ipf/input/ |
H A D | ni5 | 4 96cb e002 8032 0015 bd6b c9c8 0000 0000 9 4500 002c ffdd 4000 ef06 131e 96cb e002 16 96cb e002 8032 0015 bd6b c9c9 3786 76c5 21 4500 006f ffde 4000 ef06 12da 96cb e002 31 4500 0028 10cb 4000 ff06 328b c0a8 0103 32 96cb e002 8032 0015 bd6b c9c9 3786 770c 40 4500 00c7 ffdf 4000 ef06 1281 96cb e002 57 96cb e002 8032 0015 bd6b c9c9 3786 77ab 63 96cb e002 8032 0015 bd6b c9c9 3786 77ab 69 4500 0028 ffe0 4000 ef06 131f 96cb e002 [all …]
|
/freebsd/sys/dev/nvmf/ |
H A D | nvmf_tcp.c | 179 struct nvmf_tcp_command_buffer *cb; in tcp_alloc_command_buffer() local 181 cb = malloc(sizeof(*cb), M_NVMF_TCP, M_WAITOK); in tcp_alloc_command_buffer() 182 cb->qp = qp; in tcp_alloc_command_buffer() 183 cb->io = *io; in tcp_alloc_command_buffer() 184 cb->data_offset = data_offset; in tcp_alloc_command_buffer() 185 cb->data_len = data_len; in tcp_alloc_command_buffer() 186 cb->data_xfered = 0; in tcp_alloc_command_buffer() 187 refcount_init(&cb->refs, 1); in tcp_alloc_command_buffer() 188 cb->error = 0; in tcp_alloc_command_buffer() 189 cb->cid = cid; in tcp_alloc_command_buffer() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zfs/ |
H A D | zfs_iter.c | 77 zfs_include_snapshots(zfs_handle_t *zhp, callback_data_t *cb) in zfs_include_snapshots() argument 81 if ((cb->cb_flags & ZFS_ITER_PROP_LISTSNAPS) == 0) in zfs_include_snapshots() 82 return (cb->cb_types & ZFS_TYPE_SNAPSHOT); in zfs_include_snapshots() 95 callback_data_t *cb = data; in zfs_callback() local 97 boolean_t include_snaps = zfs_include_snapshots(zhp, cb); in zfs_callback() 98 boolean_t include_bmarks = (cb->cb_types & ZFS_TYPE_BOOKMARK); in zfs_callback() 100 if ((zfs_get_type(zhp) & cb->cb_types) || in zfs_callback() 107 if (uu_avl_find(cb->cb_avl, node, cb->cb_sortcol, in zfs_callback() 109 if (cb->cb_proplist) { in zfs_callback() 110 if ((*cb->cb_proplist) && in zfs_callback() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_deadlock_detector2.cpp | 92 void MutexInit(DDCallback *cb, DDMutex *m); 93 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock); 94 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, 96 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock); 97 void MutexDestroy(DDCallback *cb, DDMutex *m); 99 DDReport *GetReport(DDCallback *cb); 103 u32 allocateId(DDCallback *cb); 148 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument 149 VPrintf(2, "#%llu: DD::MutexInit(%p)\n", cb->lt->ctx, m); in MutexInit() 168 u32 DD::allocateId(DDCallback *cb) { in allocateId() argument [all …]
|
H A D | sanitizer_deadlock_detector1.cpp | 48 void MutexInit(DDCallback *cb, DDMutex *m) override; 49 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock) override; 50 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, 52 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock) override; 53 void MutexDestroy(DDCallback *cb, DDMutex *m) override; 55 DDReport *GetReport(DDCallback *cb) override; 58 void ReportDeadlock(DDCallback *cb, DDMutex *m); 92 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument 94 m->stk = cb->Unwind(); in MutexInit() 103 void DD::MutexBeforeLock(DDCallback *cb, in MutexBeforeLock() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | CallSiteSplitting.cpp | 86 static void addNonNullAttribute(CallBase &CB, Value *Op) { in addNonNullAttribute() argument 88 for (auto &I : CB.args()) { in addNonNullAttribute() 90 CB.addParamAttr(ArgNo, Attribute::NonNull); in addNonNullAttribute() 95 static void setConstantInArgument(CallBase &CB, Value *Op, in setConstantInArgument() argument 98 for (auto &I : CB.args()) { in setConstantInArgument() 102 CB.removeParamAttr(ArgNo, Attribute::NonNull); in setConstantInArgument() 103 CB.setArgOperand(ArgNo, ConstValue); in setConstantInArgument() 109 static bool isCondRelevantToAnyCallArgument(ICmpInst *Cmp, CallBase &CB) { in isCondRelevantToAnyCallArgument() argument 113 for (auto I = CB.arg_begin(), E = CB.arg_end(); I != E; ++I, ++ArgNo) { in isCondRelevantToAnyCallArgument() 115 if (isa<Constant>(*I) || CB.paramHasAttr(ArgNo, Attribute::NonNull)) in isCondRelevantToAnyCallArgument() [all …]
|
/freebsd/crypto/openssl/crypto/pem/ |
H A D | pem_pk8.c | 24 pem_password_cb *cb, void *u, 31 pem_password_cb *cb, void *u, 43 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument 45 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u, NULL); in PEM_write_bio_PKCS8PrivateKey_nid() 50 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey() argument 52 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u, NULL); in PEM_write_bio_PKCS8PrivateKey() 57 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_bio() argument 59 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_bio() 64 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_bio() argument 66 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_nid_bio() [all …]
|
H A D | pem_pkey.c | 34 pem_password_cb *cb, void *u, in pem_read_bio_key_decoder() argument 53 if (cb == NULL) in pem_read_bio_key_decoder() 54 cb = PEM_def_callback; in pem_read_bio_key_decoder() 56 if (!OSSL_DECODER_CTX_set_pem_password_cb(dctx, cb, u)) in pem_read_bio_key_decoder() 100 pem_password_cb *cb, void *u, in pem_read_bio_key_legacy() argument 116 bp, cb, u)) { in pem_read_bio_key_legacy() 127 bp, cb, u)) { in pem_read_bio_key_legacy() 154 if (cb != NULL) in pem_read_bio_key_legacy() 155 klen = cb(psbuf, PEM_BUFSIZE, 0, u); in pem_read_bio_key_legacy() 215 pem_password_cb *cb, void *u, in pem_read_bio_key() argument [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UnreachableCodeChecker.cpp | 40 static inline const Stmt *getUnreachableStmt(const CFGBlock *CB); 41 static void FindUnreachableEntryPoints(const CFGBlock *CB, 44 static bool isInvalidPath(const CFGBlock *CB, const ParentMap &PM); 45 static inline bool isEmptyCFGBlock(const CFGBlock *CB); 78 const CFGBlock *CB = BE->getBlock(); in checkEndAnalysis() local 79 reachable.insert(CB->getBlockID()); in checkEndAnalysis() 95 for (const CFGBlock *CB : *C) { in checkEndAnalysis() 97 if (reachable.count(CB->getBlockID())) in checkEndAnalysis() 101 if (isEmptyCFGBlock(CB)) in checkEndAnalysis() 105 if (!visited.count(CB->getBlockID())) in checkEndAnalysis() [all …]
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_els.h | 57 …ocs_send_plogi(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t cb, void *cbarg); 58 …ocs_send_flogi(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t cb, void *cbarg); 59 …ocs_send_fdisc(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t cb, void *cbarg); 60 …*ocs_send_prli(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t cb, void *cbarg); 61 …*ocs_send_prlo(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t cb, void *cbarg); 62 …*ocs_send_logo(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t cb, void *cbarg); 63 …ocs_send_adisc(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t cb, void *cbarg); 64 …ocs_send_pdisc(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t cb, void *cbarg); 65 extern ocs_io_t *ocs_send_scr(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t cb… 66 extern ocs_io_t *ocs_send_rrq(ocs_node_t *node, uint32_t timeout_sec, uint32_t retries, els_cb_t cb… [all …]
|
/freebsd/crypto/openssl/crypto/ |
H A D | self_test_core.c | 17 OSSL_CALLBACK *cb; member 27 OSSL_CALLBACK *cb; member 60 void OSSL_SELF_TEST_set_callback(OSSL_LIB_CTX *libctx, OSSL_CALLBACK *cb, in OSSL_SELF_TEST_set_callback() argument 66 stcb->cb = cb; in OSSL_SELF_TEST_set_callback() 71 void OSSL_SELF_TEST_get_callback(OSSL_LIB_CTX *libctx, OSSL_CALLBACK **cb, in OSSL_SELF_TEST_get_callback() argument 76 if (cb != NULL) in OSSL_SELF_TEST_get_callback() 77 *cb = (stcb != NULL ? stcb->cb : NULL); in OSSL_SELF_TEST_get_callback() 87 if (st->cb != NULL) { in self_test_setparams() 101 OSSL_SELF_TEST *OSSL_SELF_TEST_new(OSSL_CALLBACK *cb, void *cbarg) in OSSL_SELF_TEST_new() argument 108 ret->cb = cb; in OSSL_SELF_TEST_new() [all …]
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_nl.c | 71 { .type = PF_ST_ID, .off = _OUT(id), .cb = nlattr_get_uint32 }, 72 { .type = PF_ST_CREATORID, .off = _OUT(creatorid), .cb = nlattr_get_uint32 }, 73 …{ .type = PF_ST_IFNAME, .arg = (const void *)IFNAMSIZ, .off = _OUT(ifname), .cb = nlattr_get_chara… 74 { .type = PF_ST_AF, .off = _OUT(af), .cb = nlattr_get_uint8 }, 75 { .type = PF_ST_PROTO, .off = _OUT(proto), .cb = nlattr_get_uint16 }, 76 { .type = PF_ST_FILTER_ADDR, .off = _OUT(addr), .cb = nlattr_get_in6_addr }, 77 { .type = PF_ST_FILTER_MASK, .off = _OUT(mask), .cb = nlattr_get_in6_addr }, 80 { .off_in = _IN(version), .off_out = _OUT(version), .cb = nlf_get_u8 }, 421 { .type = PF_AT_ADDR, .off = _OUT(v.a.addr), .cb = nlattr_get_in6_addr }, 422 { .type = PF_AT_MASK, .off = _OUT(v.a.mask), .cb = nlattr_get_in6_addr }, [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_main.c | 367 * Given a cb->cb_flags with a histogram bit set, return the iostat_type. 594 print_pool_prop_cb(int prop, void *cb) in print_pool_prop_cb() argument 596 FILE *fp = cb; in print_pool_prop_cb() 617 print_vdev_prop_cb(int prop, void *cb) in print_vdev_prop_cb() argument 619 FILE *fp = cb; in print_vdev_prop_cb() 2417 export_cbdata_t *cb = data; in zpool_export_one() local 2423 if (cb->tpool != NULL) in zpool_export_one() 2424 pthread_mutex_lock(&cb->mnttab_lock); in zpool_export_one() 2426 int retval = zpool_disable_datasets(zhp, cb->force); in zpool_export_one() 2428 if (cb->tpool != NULL) in zpool_export_one() [all …]
|
/freebsd/lib/libpfctl/ |
H A D | libpfctl.c | 297 { .type = PF_C_COUNTER, .off = _OUT(counter), .cb = snl_attr_get_uint64 }, 298 { .type = PF_C_NAME, .off = _OUT(name), .cb = snl_attr_get_string }, 299 { .type = PF_C_ID, .off = _OUT(id), .cb = snl_attr_get_uint32 }, 355 { .cb = snl_attr_get_uint64_element }, 378 { .type = PF_GS_IFNAME, .off = _OUT(ifname), .arg_u32 = IFNAMSIZ, .cb = snl_attr_copy_string }, 379 { .type = PF_GS_RUNNING, .off = _OUT(running), .cb = snl_attr_get_bool }, 380 { .type = PF_GS_SINCE, .off = _OUT(since), .cb = snl_attr_get_uint32 }, 381 { .type = PF_GS_DEBUG, .off = _OUT(debug), .cb = snl_attr_get_uint32 }, 382 { .type = PF_GS_HOSTID, .off = _OUT(hostid), .cb = snl_attr_get_uint32 }, 383 { .type = PF_GS_STATES, .off = _OUT(states), .cb = snl_attr_get_uint32 }, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InlineAdvisor.cpp | 74 MandatoryInlineAdvice(InlineAdvisor *Advisor, CallBase &CB, in MandatoryInlineAdvice() argument 77 : InlineAdvice(Advisor, CB, ORE, IsInliningMandatory) {} in MandatoryInlineAdvice() 136 CallBase &CB, FunctionAnalysisManager &FAM, const InlineParams &Params) { in getDefaultInlineAdvice() argument 137 Function &Caller = *CB.getCaller(); in getDefaultInlineAdvice() 141 *CB.getParent()->getParent()->getParent()); in getDefaultInlineAdvice() 154 auto GetInlineCost = [&](CallBase &CB) { in getDefaultInlineAdvice() argument 155 Function &Callee = *CB.getCalledFunction(); in getDefaultInlineAdvice() 160 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, in getDefaultInlineAdvice() 164 CB, GetInlineCost, ORE, in getDefaultInlineAdvice() 169 DefaultInlineAdvisor::getAdviceImpl(CallBase &CB) { in getAdviceImpl() argument [all …]
|
/freebsd/secure/lib/libcrypto/man/man3/ |
H A D | PEM_read_bio_PrivateKey.3 | 178 \& pem_password_cb *cb, void *u, 181 \& pem_password_cb *cb, void *u); 182 \& EVP_PKEY *PEM_read_PrivateKey_ex(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, 186 \& pem_password_cb *cb, void *u); 190 \& pem_password_cb *cb, void *u, 194 \& pem_password_cb *cb, void *u); 198 \& pem_password_cb *cb, void *u); 201 \& pem_password_cb *cb, void *u, 205 \& pem_password_cb *cb, void *u); 208 \& pem_password_cb *cb, void *u); [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | PEM_read_bio_PrivateKey.pod | 43 pem_password_cb *cb, void *u, 46 pem_password_cb *cb, void *u); 47 EVP_PKEY *PEM_read_PrivateKey_ex(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, 51 pem_password_cb *cb, void *u); 55 pem_password_cb *cb, void *u, 59 pem_password_cb *cb, void *u); 63 pem_password_cb *cb, void *u); 66 pem_password_cb *cb, void *u, 70 pem_password_cb *cb, void *u); 73 pem_password_cb *cb, void *u); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
H A D | X86MCCodeEmitter.cpp | 41 static void emitByte(uint8_t C, SmallVectorImpl<char> &CB) { CB.push_back(C); } in emitByte() argument 295 void emit(SmallVectorImpl<char> &CB) const { in emit() 303 emitByte(0x40 | W << 3 | R << 2 | X << 1 | B, CB); in emit() 306 emitByte(0xD5, CB); in emit() 309 CB); in emit() 312 emitByte(0xC5, CB); in emit() 313 emitByte(((~R) & 1) << 7 | LastPayload, CB); in emit() 317 emitByte(Kind == VEX3 ? 0xC4 : 0x8F, CB); in emit() 318 emitByte(FirstPayload | VEX_5M, CB); in emit() 319 emitByte(W << 7 | LastPayload, CB); in emit() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/CFGuard/ |
H A D | CFGuard.cpp | 98 /// \param CB indirect call to instrument. 99 void insertCFGuardCheck(CallBase *CB); 139 /// \param CB indirect call to instrument. 140 void insertCFGuardDispatch(CallBase *CB); 172 void CFGuardImpl::insertCFGuardCheck(CallBase *CB) { in insertCFGuardCheck() argument 174 assert(Triple(CB->getModule()->getTargetTriple()).isOSWindows() && in insertCFGuardCheck() 176 assert(CB->isIndirectCall() && in insertCFGuardCheck() 179 IRBuilder<> B(CB); in insertCFGuardCheck() 180 Value *CalledOperand = CB->getCalledOperand(); in insertCFGuardCheck() 185 if (auto Bundle = CB->getOperandBundle(LLVMContext::OB_funclet)) in insertCFGuardCheck() [all …]
|