/freebsd/sys/rpc/ |
H A D | clnt.h | 202 #define CLNT_ACQUIRE(rh) \ argument 203 refcount_acquire(&(rh)->cl_refs) 204 #define CLNT_RELEASE(rh) \ argument 205 if (refcount_release(&(rh)->cl_refs)) \ 206 CLNT_DESTROY(rh) 210 * CLNT_CLOSE(rh); 211 * CLIENT *rh; 213 #define CLNT_CLOSE(rh) ((*(rh)->cl_ops->cl_close)(rh)) argument 220 * CLNT_CALL_MBUF(rh, ext, proc, mreq, mrepp, timeout) 221 * CLIENT *rh; [all …]
|
/freebsd/contrib/elftoolchain/libpe/ |
H A D | libpe_rich.c | 59 PE_RichHdr *rh; in libpe_parse_rich_header() local 74 if ((rh = calloc(1, sizeof(*rh))) == NULL) { in libpe_parse_rich_header() 79 rh->rh_xor = le32dec(r + 4); /* Retrieve the "XOR mask" */ in libpe_parse_rich_header() 87 x = le32dec(p) ^ rh->rh_xor; in libpe_parse_rich_header() 94 free(rh); in libpe_parse_rich_header() 106 rh->rh_total = (r - p) / 8; in libpe_parse_rich_header() 107 if ((rh->rh_compid = malloc(rh->rh_total * sizeof(*rh->rh_compid))) == in libpe_parse_rich_header() 109 free(rh); in libpe_parse_rich_header() 113 if ((rh->rh_cnt = malloc(rh->rh_total * sizeof(*rh->rh_cnt))) == in libpe_parse_rich_header() 115 free(rh->rh_compid); in libpe_parse_rich_header() [all …]
|
H A D | pe_rich.c | 69 PE_RichHdr *rh; in pe_rich_header_validate() local 98 rh = pe->pe_rh; in pe_rich_header_validate() 99 for (i = 0; (uint32_t) i < rh->rh_total; i++) in pe_rich_header_validate() 100 cksum += rol32(rh->rh_compid[i], rh->rh_cnt[i]); in pe_rich_header_validate() 103 if (cksum == rh->rh_xor) in pe_rich_header_validate()
|
/freebsd/include/rpc/ |
H A D | clnt.h | 149 * CLNT_CALL(rh, proc, xargs, argsp, xres, resp, timeout) 150 * CLIENT *rh; 158 #define CLNT_CALL(rh, proc, xargs, argsp, xres, resp, secs) \ argument 159 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 161 #define clnt_call(rh, proc, xargs, argsp, xres, resp, secs) \ argument 162 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 167 * CLNT_ABORT(rh); 168 * CLIENT *rh; 170 #define CLNT_ABORT(rh) ((*(rh)->cl_ops->cl_abort)(rh)) argument 171 #define clnt_abort(rh) ((*(rh)->cl_ops->cl_abort)(rh)) argument [all …]
|
/freebsd/sys/net80211/ |
H A D | ieee80211_radiotap.c | 56 struct ieee80211_radiotap_header *rh, int rlen, uint32_t rx_radiotap) in ieee80211_radiotap_attach() argument 59 rh, rlen, 0, rx_radiotap); in ieee80211_radiotap_attach() 66 struct ieee80211_radiotap_header *rh, in ieee80211_radiotap_attachv() argument 88 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv() 89 rh->it_present = htole32(rx_radiotap); in ieee80211_radiotap_attachv() 90 ic->ic_rh = rh; in ieee80211_radiotap_attachv() 94 off = radiotap_offset(rh, n_rx_v, IEEE80211_RADIOTAP_CHANNEL); in ieee80211_radiotap_attachv() 96 off = radiotap_offset(rh, n_rx_v, IEEE80211_RADIOTAP_XCHANNEL); in ieee80211_radiotap_attachv() 102 ic->ic_rxchan = ((uint8_t *) rh) + off; in ieee80211_radiotap_attachv() 166 struct ieee80211_radiotap_header *rh = ic->ic_rh; in ieee80211_radiotap_chan_change() local [all …]
|
/freebsd/sys/netinet6/ |
H A D | in6_fib.c | 146 struct rib_head *rh; in fib6_lookup() local 151 rh = rt_tables_get_rnh(fibnum, AF_INET6); in fib6_lookup() 152 if (rh == NULL) in fib6_lookup() 164 RIB_RLOCK(rh); in fib6_lookup() 165 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head); in fib6_lookup() 172 RIB_RUNLOCK(rh); in fib6_lookup() 176 RIB_RUNLOCK(rh); in fib6_lookup() 226 struct rib_head *rh; in lookup_nhop() local 231 rh = rt_tables_get_rnh(fibnum, AF_INET6); in lookup_nhop() 232 if (rh == NULL) in lookup_nhop() [all …]
|
H A D | route6.c | 64 struct ip6_rthdr *rh; in route6_input() local 84 if (m->m_len < off + sizeof(*rh)) { in route6_input() 85 m = m_pullup(m, off + sizeof(*rh)); in route6_input() 93 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off); in route6_input() 99 switch (rh->ip6r_type) { in route6_input() 102 if (rh->ip6r_segleft == 0) { in route6_input() 103 rhlen = (rh->ip6r_len + 1) << 3; in route6_input() 108 (caddr_t)&rh->ip6r_type - (caddr_t)ip6); in route6_input() 115 return (rh->ip6r_nxt); in route6_input()
|
H A D | in6_fib_algo.c | 108 ent = (struct radix6_addr_entry *)(rn_match(&addr6, &rnh->rh)); in lradix6_lookup() 200 (struct sockaddr *)rt_mask, &lr->rnh->rh, ae->rn); in lradix6_add_route_cb() 244 struct rib_head *rh; member 251 struct rib_head *rh = (struct rib_head *)algo_data; in radix6_lookup() local 265 RIB_RLOCK(rh); in radix6_lookup() 266 rn = rn_match((void *)&sin6, &rh->head); in radix6_lookup() 269 RIB_RUNLOCK(rh); in radix6_lookup() 277 struct rib_head *rh = rh = rt_tables_get_rnh(fibnum, AF_INET6); in fib6_radix_lookup_nh() local 280 if (rh == NULL) in fib6_radix_lookup_nh() 283 return (radix6_lookup(rh, key, scopeid)); in fib6_radix_lookup_nh() [all …]
|
H A D | in6_rmx.c | 143 struct rib_head *rh; in in6_inithead() 146 rh = rt_table_init(offsetof(struct sockaddr_in6, sin6_addr) << 3, in in6_inithead() 148 if (rh == NULL) in in6_inithead() 151 rh->rnh_set_nh_pfxflags = rib6_set_nh_pfxflags; in in6_inithead() 152 rh->rnh_augment_nh = rib6_augment_nh; in in6_inithead() 154 rs = rib_subscribe_internal(rh, nd6_subscription_cb, NULL, in in6_inithead() 158 return (rh); in in6_inithead() 163 in6_detachhead(struct rib_head *rh) 166 rt_table_destroy(rh); in in6_detachhead() 144 struct rib_head *rh; in6_inithead() local 164 in6_detachhead(struct rib_head * rh) in6_detachhead() argument
|
/freebsd/sys/netinet/ |
H A D | in_fib.c | 138 struct rib_head *rh; in fib4_lookup() local 143 rh = rt_tables_get_rnh(fibnum, AF_INET); in fib4_lookup() 144 if (rh == NULL) in fib4_lookup() 155 RIB_RLOCK(rh); in fib4_lookup() 156 rn = rh->rnh_matchaddr((void *)&sin4, &rh->head); in fib4_lookup() 163 RIB_RUNLOCK(rh); in fib4_lookup() 167 RIB_RUNLOCK(rh); in fib4_lookup() 216 struct rib_head *rh; in lookup_nhop() local 221 rh = rt_tables_get_rnh(fibnum, AF_INET); in lookup_nhop() 222 if (rh == NULL) in lookup_nhop() [all …]
|
H A D | in_rmx.c | 119 struct rib_head *rh; in in_inithead() local 121 rh = rt_table_init(32, AF_INET, fibnum); in in_inithead() 122 if (rh == NULL) in in_inithead() 125 rh->rnh_set_nh_pfxflags = rib4_set_nh_pfxflags; in in_inithead() 126 rh->rnh_augment_nh = rib4_augment_nh; in in_inithead() 128 return (rh); in in_inithead() 133 in_detachhead(struct rib_head *rh) in in_detachhead() argument 136 rt_table_destroy(rh); in in_detachhead()
|
/freebsd/sys/net/route/ |
H A D | route_var.h | 79 #define RIB_LOCK_INIT(rh) rm_init_flags(&(rh)->rib_lock, "rib head lock", RM_DUPOK) argument 80 #define RIB_LOCK_DESTROY(rh) rm_destroy(&(rh)->rib_lock) argument 81 #define RIB_RLOCK(rh) rm_rlock(&(rh)->rib_lock, &_rib_tracker) argument 82 #define RIB_RUNLOCK(rh) rm_runlock(&(rh)->rib_lock, &_rib_tracker) argument 83 #define RIB_WLOCK(rh) rm_wlock(&(rh)->rib_lock) argument 84 #define RIB_WUNLOCK(rh) rm_wunlock(&(rh)->rib_lock) argument 85 #define RIB_LOCK_ASSERT(rh) rm_assert(&(rh)->rib_lock, RA_LOCKED) argument 86 #define RIB_WLOCK_ASSERT(rh) rm_assert(&(rh)->rib_lock, RA_WLOCKED) argument 208 void tmproutes_init(struct rib_head *rh); 209 void tmproutes_destroy(struct rib_head *rh); [all …]
|
H A D | fib_algo.c | 200 static void set_algo_fixed(struct rib_head *rh); 201 static bool is_algo_fixed(struct rib_head *rh); 206 static struct fib_lookup_module *fib_check_best_algo(struct rib_head *rh, 1044 * Wipe all fd instances from the list matching rib specified by @rh. 1048 fib_cleanup_algo(struct rib_head *rh, bool keep_first, bool in_callout) in fib_cleanup_algo() argument 1056 if (fd->fd_rh == rh) { in fib_cleanup_algo() 1081 fib_destroy_rib(struct rib_head *rh) in fib_destroy_rib() argument 1089 fib_cleanup_algo(rh, false, false); in fib_destroy_rib() 1154 try_setup_fd_instance(struct fib_lookup_module *flm, struct rib_head *rh, in try_setup_fd_instance() argument 1165 RH_PRINTF(LOG_INFO, rh, "Unable to allocate fib_data structure"); in try_setup_fd_instance() [all …]
|
H A D | route_tables.c | 204 populate_kernel_routes(struct rib_head **new_rt_tables, struct rib_head *rh) in populate_kernel_routes() argument 207 struct rib_head *rh_src = new_rt_tables[i * (AF_MAX + 1) + rh->rib_family]; in populate_kernel_routes() 208 if ((rh_src != NULL) && (rh_src != rh)) in populate_kernel_routes() 209 rib_copy_kernel_routes(rh_src, rh); in populate_kernel_routes() 222 struct rib_head **prnh, *rh; in grow_rtables() local 256 rh = dom->dom_rtattach(i); in grow_rtables() 257 if (rh == NULL) in grow_rtables() 261 populate_kernel_routes(new_rt_tables, rh); in grow_rtables() 262 *prnh = rh; in grow_rtables()
|
H A D | nhop.c | 76 nhops_init_rib(struct rib_head *rh) in nhops_init_rib() argument 103 rh->nh_control = ctl; in nhops_init_rib() 104 ctl->ctl_rh = rh; in nhops_init_rib() 106 FIB_CTL_LOG(LOG_DEBUG2, ctl, "nhops init: ctl %p rh %p", ctl, rh); in nhops_init_rib() 138 nhops_destroy_rib(struct rib_head *rh) in nhops_destroy_rib() argument 143 ctl = rh->nh_control; in nhops_destroy_rib() 160 FIB_RH_LOG(LOG_DEBUG3, rh, "marking nhop %u unlinked", nh_priv->nh_idx); in nhops_destroy_rib()
|
/freebsd/sys/net/ |
H A D | route.c | 102 struct rib_head *rh; in rt_table_init() local 104 rh = malloc(sizeof(struct rib_head), M_RTABLE, M_WAITOK | M_ZERO); in rt_table_init() 108 rn_inithead_internal(&rh->head, rh->rnh_nodes, offset); in rt_table_init() 109 rn_inithead_internal(&rh->rmhead.head, rh->rmhead.mask_nodes, 0); in rt_table_init() 110 rh->head.rnh_masks = &rh->rmhead; in rt_table_init() 113 rh->rib_family = family; in rt_table_init() 114 rh->rib_fibnum = fibnum; in rt_table_init() 116 rh->rib_vnet = curvnet; in rt_table_init() 119 tmproutes_init(rh); in rt_table_init() 122 RIB_LOCK_INIT(rh); in rt_table_init() [all …]
|
/freebsd/sys/dev/liquidio/ |
H A D | lio_core.c | 261 lio_push_packet(void *m_buff, uint32_t len, union octeon_rh *rh, void *rxq, in lio_push_packet() argument 278 if (rh->r_dh.has_hash) { in lio_push_packet() 281 if (rh->r_dh.has_hwtstamp) { in lio_push_packet() 284 ((rh->r_dh.len - 2) * in lio_push_packet() 289 ((rh->r_dh.len - 2) * in lio_push_packet() 294 ((rh->r_dh.len - 1) * in lio_push_packet() 299 ((rh->r_dh.len - 1) * in lio_push_packet() 332 * in rh. in lio_push_packet() 338 m_adj(mbuf, rh->r_dh.len * 8); in lio_push_packet() 339 len -= rh->r_dh.len * 8; in lio_push_packet() [all …]
|
/freebsd/sys/dev/liquidio/base/ |
H A D | lio_droq.c | 384 recv_pkt->rh = info->rh; in lio_create_recv_info() 525 union octeon_rh *rh, struct lio_droq_info *info) in lio_droq_dispatch_pkt() argument 533 disp_fn = lio_get_dispatch(oct, (uint16_t)rh->r.opcode, in lio_droq_dispatch_pkt() 534 (uint16_t)rh->r.subcode); in lio_droq_dispatch_pkt() 542 rinfo->recv_pkt->rh = *rh; in lio_droq_dispatch_pkt() 550 (unsigned int)rh->r.opcode, in lio_droq_dispatch_pkt() 551 (unsigned int)rh->r.subcode); in lio_droq_dispatch_pkt() 592 union octeon_rh *rh; in lio_droq_fast_process_packets() local 618 rh = &info->rh; in lio_droq_fast_process_packets() 621 rh->r_dh.len += (LIO_DROQ_INFO_SIZE + 7) / 8; in lio_droq_fast_process_packets() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zfs_list/ |
H A D | zfs_list_001_pos.ksh | 50 "list -rH $TESTPOOL/$TESTFS" "list -Hr $TESTPOOL/$TESTFS" \ 52 "list -H -o name $TESTPOOL/$TESTFS" "list -rH -o name $TESTPOOL/$TESTFS" \ 58 "-rH $TESTPOOL/$TESTFS" "-Hr $TESTPOOL/$TESTFS" \ 60 "-H -o name $TESTPOOL/$TESTFS" "-rH -o name $TESTPOOL/$TESTFS" \ 99 log_assert "Verify 'zfs list [-rH] [-o property[,prop]*] [fs|clct|vol]'."
|
/freebsd/tests/sys/cddl/zfs/tests/snapused/ |
H A D | snapused.kshlib | 58 for child in $($ZFS list -rH -t filesystem,volume -o name $dataset) 69 for child in $($ZFS list -rH -t filesystem,volume -o name $dataset) 123 for child in $($ZFS list -rH -t filesystem,volume -o name $dataset) 149 for child in $($ZFS list -rH -t filesystem,volume -o name $dataset) 160 for child in $($ZFS list -rH -t filesystem,volume,snapshot -o name $dataset)
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapused/ |
H A D | snapused.kshlib | 58 for child in $(zfs list -rH -t filesystem,volume -o name $dataset) 69 for child in $(zfs list -rH -t filesystem,volume -o name $dataset) 123 for child in $(zfs list -rH -t filesystem,volume -o name $dataset) 149 for child in $(zfs list -rH -t filesystem,volume -o name $dataset) 160 for child in $(zfs list -rH -t filesystem,volume,snapshot -o name $dataset)
|
/freebsd/tests/sys/cddl/zfs/tests/cli_user/zfs_list/ |
H A D | zfs_list_001_pos.ksh | 59 "list -rH $TESTPOOL/$TESTFS" "list -Hr $TESTPOOL/$TESTFS" \ 61 "list -H -o name $TESTPOOL/$TESTFS" "list -rH -o name $TESTPOOL/$TESTFS" \ 68 "-rH $TESTPOOL/$TESTFS" "-Hr $TESTPOOL/$TESTFS" \ 70 "-H -o name $TESTPOOL/$TESTFS" "-rH -o name $TESTPOOL/$TESTFS" \ 112 log_assert "Verify 'zfs list [-rH] [-o property[,prop]*] [fs|clct|vol]'."
|
/freebsd/lib/libc/db/test/ |
H A D | dbtest.c | 576 static RECNOINFO rh; local 636 rh.flags = atoi(eq); 637 return (&rh); 640 rh.cachesize = atoi(eq); 641 return (&rh); 644 rh.lorder = atoi(eq); 645 return (&rh); 648 rh.reclen = atoi(eq); 649 return (&rh); 652 rh.bval = atoi(eq); [all …]
|
/freebsd/crypto/openssl/crypto/ec/ |
H A D | ecp_smpl.c | 964 BIGNUM *rh, *tmp, *Z4, *Z6; in ossl_ec_GFp_simple_is_on_curve() local 981 rh = BN_CTX_get(ctx); in ossl_ec_GFp_simple_is_on_curve() 995 * To test this, we add up the right-hand side in 'rh'. in ossl_ec_GFp_simple_is_on_curve() 998 /* rh := X^2 */ in ossl_ec_GFp_simple_is_on_curve() 999 if (!field_sqr(group, rh, point->X, ctx)) in ossl_ec_GFp_simple_is_on_curve() 1010 /* rh := (rh + a*Z^4)*X */ in ossl_ec_GFp_simple_is_on_curve() 1016 if (!BN_mod_sub_quick(rh, rh, tmp, p)) in ossl_ec_GFp_simple_is_on_curve() 1018 if (!field_mul(group, rh, rh, point->X, ctx)) in ossl_ec_GFp_simple_is_on_curve() 1023 if (!BN_mod_add_quick(rh, rh, tmp, p)) in ossl_ec_GFp_simple_is_on_curve() 1025 if (!field_mul(group, rh, rh, point->X, ctx)) in ossl_ec_GFp_simple_is_on_curve() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/db/ |
H A D | h_db.c | 633 static RECNOINFO rh; in setinfo() local 693 rh.flags = atoi(eq); in setinfo() 694 return &rh; in setinfo() 697 rh.cachesize = atoi(eq); in setinfo() 698 return &rh; in setinfo() 701 rh.lorder = atoi(eq); in setinfo() 702 return &rh; in setinfo() 705 rh.reclen = atoi(eq); in setinfo() 706 return &rh; in setinfo() 709 rh.bval = atoi(eq); in setinfo() [all …]
|