| /freebsd-13.1/sys/rpc/ |
| H A D | clnt.h | 217 #define CLNT_CLOSE(rh) ((*(rh)->cl_ops->cl_close)(rh)) argument 275 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 278 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 287 #define CLNT_ABORT(rh) ((*(rh)->cl_ops->cl_abort)(rh)) argument 288 #define clnt_abort(rh) ((*(rh)->cl_ops->cl_abort)(rh)) argument 295 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument 296 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument 306 #define CLNT_FREERES(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) argument 307 #define clnt_freeres(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) argument 377 #define CLNT_DESTROY(rh) ((*(rh)->cl_ops->cl_destroy)(rh)) argument [all …]
|
| /freebsd-13.1/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() 94 free(rh); 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() 116 free(rh); in libpe_parse_rich_header() 121 rh->rh_compid[i] = le32dec(p) ^ rh->rh_xor; in libpe_parse_rich_header() 122 rh->rh_cnt[i] = le32dec(p + 4) ^ rh->rh_xor; 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-13.1/include/rpc/ |
| H A D | clnt.h | 162 #define CLNT_CALL(rh, proc, xargs, argsp, xres, resp, secs) \ argument 163 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 166 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 174 #define CLNT_ABORT(rh) ((*(rh)->cl_ops->cl_abort)(rh)) argument 175 #define clnt_abort(rh) ((*(rh)->cl_ops->cl_abort)(rh)) argument 182 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument 183 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument 193 #define CLNT_FREERES(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) argument 194 #define clnt_freeres(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) argument 238 #define CLNT_DESTROY(rh) ((*(rh)->cl_ops->cl_destroy)(rh)) argument [all …]
|
| /freebsd-13.1/sys/net/route/ |
| H A D | route_var.h | 83 #define RIB_LOCK_INIT(rh) rm_init(&(rh)->rib_lock, "rib head lock") argument 84 #define RIB_LOCK_DESTROY(rh) rm_destroy(&(rh)->rib_lock) argument 85 #define RIB_RLOCK(rh) rm_rlock(&(rh)->rib_lock, &_rib_tracker) argument 86 #define RIB_RUNLOCK(rh) rm_runlock(&(rh)->rib_lock, &_rib_tracker) argument 87 #define RIB_WLOCK(rh) rm_wlock(&(rh)->rib_lock) argument 88 #define RIB_WUNLOCK(rh) rm_wunlock(&(rh)->rib_lock) argument 89 #define RIB_LOCK_ASSERT(rh) rm_assert(&(rh)->rib_lock, RA_LOCKED) argument 90 #define RIB_WLOCK_ASSERT(rh) rm_assert(&(rh)->rib_lock, RA_WLOCKED) argument 218 void tmproutes_init(struct rib_head *rh); 248 int nhops_init_rib(struct rib_head *rh); [all …]
|
| H A D | fib_algo.c | 1057 if (fd->fd_rh == rh) { in fib_cleanup_algo() 1171 fd->fd_rh = rh; in try_setup_fd_instance() 1254 RIB_WLOCK_ASSERT(rh); in setup_fd_instance() 1474 rh = fd->fd_rh; in set_fib_algo() 1496 RIB_WLOCK(rh); in set_fib_algo() 1498 RIB_WUNLOCK(rh); in set_fib_algo() 1506 set_algo_fixed(rh); in set_fib_algo() 1866 switch (rh->rib_family) { in set_algo_fixed() 1963 RIB_WLOCK(rh); in fib_select_algo_initial() 1965 RIB_WUNLOCK(rh); in fib_select_algo_initial() [all …]
|
| H A D | nhop.c | 72 nhops_init_rib(struct rib_head *rh) in nhops_init_rib() argument 99 rh->nh_control = ctl; in nhops_init_rib() 100 ctl->ctl_rh = rh; in nhops_init_rib() 102 DPRINTF("NHOPS init for fib %u af %u: ctl %p rh %p", rh->rib_fibnum, in nhops_init_rib() 103 rh->rib_family, ctl, rh); in nhops_init_rib() 135 nhops_destroy_rib(struct rib_head *rh) in nhops_destroy_rib() argument 140 ctl = rh->nh_control; in nhops_destroy_rib()
|
| H A D | route_temporal.c | 150 tmproutes_init(struct rib_head *rh) in tmproutes_init() argument 153 callout_init(&rh->expire_callout, 1); in tmproutes_init() 157 tmproutes_destroy(struct rib_head *rh) in tmproutes_destroy() argument 160 callout_drain(&rh->expire_callout); in tmproutes_destroy()
|
| H A D | mpath_ctl.c | 164 del_route_mpath(struct rib_head *rh, struct rt_addrinfo *info, in del_route_mpath() argument 172 RIB_WLOCK_ASSERT(rh); in del_route_mpath() 184 error = nhgrp_get_filtered_group(rh, nhg, gw_filter_func, (void *)&ri, &rnd); in del_route_mpath() 191 error = change_route_nhop(rh, rt, info, &rnd, rc); in del_route_mpath()
|
| H A D | nhgrp_ctl.c | 564 nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, int num_nhops, in nhgrp_get_group() argument 567 struct nh_control *ctl = rh->nh_control; in nhgrp_get_group() 585 nhgrp_get_filtered_group(struct rib_head *rh, const struct nhgrp_object *src, in nhgrp_get_filtered_group() argument 589 struct nh_control *ctl = rh->nh_control; in nhgrp_get_filtered_group() 646 struct nh_control *ctl = rh->nh_control; in nhgrp_get_addition_group() 699 dump_nhgrp_entry(struct rib_head *rh, const struct nhgrp_priv *nhg_priv, in dump_nhgrp_entry() argument 777 nhgrp_get_count(struct rib_head *rh) in nhgrp_get_count() argument 782 ctl = rh->nh_control; in nhgrp_get_count() 792 nhgrp_dump_sysctl(struct rib_head *rh, struct sysctl_req *w) in nhgrp_dump_sysctl() argument 794 struct nh_control *ctl = rh->nh_control; in nhgrp_dump_sysctl() [all …]
|
| /freebsd-13.1/sys/netinet/ |
| H A D | in_fib.c | 145 if (rh == NULL) in fib4_lookup() 156 RIB_RLOCK(rh); in fib4_lookup() 157 rn = rh->rnh_matchaddr((void *)&sin4, &rh->head); in fib4_lookup() 168 RIB_RUNLOCK(rh); in fib4_lookup() 223 if (rh == NULL) in lookup_nhop() 233 RIB_RLOCK(rh); in lookup_nhop() 234 rn = rh->rnh_matchaddr((void *)&sin4, &rh->head); in lookup_nhop() 237 RIB_RUNLOCK(rh); in lookup_nhop() 291 if (rh == NULL) in fib4_lookup_rt() 303 RIB_RLOCK(rh); in fib4_lookup_rt() [all …]
|
| H A D | in_rmx.c | 121 struct rib_head *rh; in in_inithead() local 123 rh = rt_table_init(32, AF_INET, fibnum); in in_inithead() 124 if (rh == NULL) in in_inithead() 127 rh->rnh_preadd = rib4_preadd; in in_inithead() 129 return (rh); in in_inithead() 134 in_detachhead(struct rib_head *rh) in in_detachhead() argument 137 rt_table_destroy(rh); in in_detachhead()
|
| /freebsd-13.1/sys/net80211/ |
| H A D | ieee80211_radiotap.c | 61 rh, rlen, 0, rx_radiotap); in ieee80211_radiotap_attach() 68 struct ieee80211_radiotap_header *rh, in ieee80211_radiotap_attachv() argument 91 rh->it_present = htole32(rx_radiotap); in ieee80211_radiotap_attachv() 92 ic->ic_rh = rh; in ieee80211_radiotap_attachv() 104 ic->ic_rxchan = ((uint8_t *) rh) + off; in ieee80211_radiotap_attachv() 201 bpf_mtap2(vap->iv_rawbpf, rh, len, m); in spam_vaps() 238 len = le16toh(rh->it_len); in ieee80211_radiotap_rx() 241 bpf_mtap2(vap0->iv_rawbpf, rh, len, m); in ieee80211_radiotap_rx() 248 spam_vaps(vap0, m, rh, len); in ieee80211_radiotap_rx() 260 int len = le16toh(rh->it_len); in ieee80211_radiotap_rx_all() [all …]
|
| /freebsd-13.1/sys/net/ |
| H A D | route.c | 106 rn_inithead_internal(&rh->head, rh->rnh_nodes, offset); in rt_table_init() 107 rn_inithead_internal(&rh->rmhead.head, rh->rmhead.mask_nodes, 0); in rt_table_init() 108 rh->head.rnh_masks = &rh->rmhead; in rt_table_init() 135 return (rh); in rt_table_init() 154 RIB_WLOCK(rh); in rt_table_destroy() 156 RIB_WUNLOCK(rh); in rt_table_destroy() 164 rn_walktree(&rh->rmhead.head, rt_freeentry, &rh->rmhead.head); in rt_table_destroy() 429 if (rh == NULL) in rib_lookup_info() 432 RIB_RLOCK(rh); in rib_lookup_info() 433 rn = rh->rnh_matchaddr(__DECONST(void *, dst), &rh->head); in rib_lookup_info() [all …]
|
| /freebsd-13.1/sys/netinet6/ |
| H A D | in6_fib.c | 153 if (rh == NULL) in fib6_lookup() 165 RIB_RLOCK(rh); in fib6_lookup() 166 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head); in fib6_lookup() 177 RIB_RUNLOCK(rh); in fib6_lookup() 233 if (rh == NULL) in lookup_nhop() 247 RIB_RLOCK(rh); in lookup_nhop() 248 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head); in lookup_nhop() 251 RIB_RUNLOCK(rh); in lookup_nhop() 304 if (rh == NULL) in fib6_lookup_rt() 318 RIB_RLOCK(rh); in fib6_lookup_rt() [all …]
|
| H A D | route6.c | 66 struct ip6_rthdr *rh; in route6_input() local 86 if (m->m_len < off + sizeof(*rh)) { in route6_input() 87 m = m_pullup(m, off + sizeof(*rh)); in route6_input() 95 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off); in route6_input() 101 switch (rh->ip6r_type) { in route6_input() 104 if (rh->ip6r_segleft == 0) { in route6_input() 105 rhlen = (rh->ip6r_len + 1) << 3; in route6_input() 110 (caddr_t)&rh->ip6r_type - (caddr_t)ip6); in route6_input() 117 return (rh->ip6r_nxt); in route6_input()
|
| H A D | in6_rmx.c | 145 struct rib_head *rh; in in6_inithead() local 148 rh = rt_table_init(offsetof(struct sockaddr_in6, sin6_addr) << 3, in in6_inithead() 150 if (rh == NULL) in in6_inithead() 153 rh->rnh_preadd = rib6_preadd; in in6_inithead() 155 rs = rib_subscribe_internal(rh, nd6_subscription_cb, NULL, in in6_inithead() 159 return (rh); in in6_inithead() 164 in6_detachhead(struct rib_head *rh) in in6_detachhead() argument 167 rt_table_destroy(rh); in in6_detachhead()
|
| H A D | in6_fib_algo.c | 201 (struct sockaddr *)rt_mask, &lr->rnh->rh, ae->rn); in lradix6_add_route_cb() 245 struct rib_head *rh; member 252 struct rib_head *rh = (struct rib_head *)algo_data; in radix6_lookup() local 266 RIB_RLOCK(rh); in radix6_lookup() 267 rn = rn_match((void *)&sin6, &rh->head); in radix6_lookup() 270 RIB_RUNLOCK(rh); in radix6_lookup() 278 struct rib_head *rh = rh = rt_tables_get_rnh(fibnum, AF_INET6); in fib6_radix_lookup_nh() local 281 if (rh == NULL) in fib6_radix_lookup_nh() 284 return (radix6_lookup(rh, key, scopeid)); in fib6_radix_lookup_nh() 303 r6->rh = fib_get_rh(fd); in radix6_init() [all …]
|
| /freebsd-13.1/sys/dev/liquidio/ |
| H A D | lio_core.c | 279 if (rh->r_dh.has_hash) { in lio_push_packet() 282 if (rh->r_dh.has_hwtstamp) { in lio_push_packet() 285 ((rh->r_dh.len - 2) * in lio_push_packet() 290 ((rh->r_dh.len - 2) * in lio_push_packet() 295 ((rh->r_dh.len - 1) * in lio_push_packet() 300 ((rh->r_dh.len - 1) * in lio_push_packet() 339 m_adj(mbuf, rh->r_dh.len * 8); in lio_push_packet() 340 len -= rh->r_dh.len * 8; in lio_push_packet() 344 (rh->r_dh.priority || rh->r_dh.vlan)) { in lio_push_packet() 345 uint16_t priority = rh->r_dh.priority; in lio_push_packet() [all …]
|
| /freebsd-13.1/sys/dev/liquidio/base/ |
| H A D | lio_droq.c | 385 recv_pkt->rh = info->rh; in lio_create_recv_info() 535 (uint16_t)rh->r.subcode); in lio_droq_dispatch_pkt() 543 rinfo->recv_pkt->rh = *rh; in lio_droq_dispatch_pkt() 551 (unsigned int)rh->r.opcode, in lio_droq_dispatch_pkt() 552 (unsigned int)rh->r.subcode); in lio_droq_dispatch_pkt() 593 union octeon_rh *rh; in lio_droq_fast_process_packets() local 619 rh = &info->rh; in lio_droq_fast_process_packets() 622 rh->r_dh.len += (LIO_DROQ_INFO_SIZE + 7) / 8; in lio_droq_fast_process_packets() 625 if (lio_opcode_slow_path(rh)) { in lio_droq_fast_process_packets() 685 droq->ops.fptr(nicbuf, pkt_len, rh, in lio_droq_fast_process_packets() [all …]
|
| /freebsd-13.1/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() 698 return &rh; in setinfo() 701 rh.lorder = atoi(eq); in setinfo() 702 return &rh; in setinfo() 706 return &rh; in setinfo() 709 rh.bval = atoi(eq); in setinfo() 710 return &rh; in setinfo() 713 rh.psize = atoi(eq); in setinfo() [all …]
|
| /freebsd-13.1/lib/libc/db/test/ |
| H A D | dbtest.c | 588 static RECNOINFO rh; local 648 rh.flags = atoi(eq); 649 return (&rh); 653 return (&rh); 656 rh.lorder = atoi(eq); 657 return (&rh); 661 return (&rh); 664 rh.bval = atoi(eq); 665 return (&rh); 668 rh.psize = atoi(eq); [all …]
|
| /freebsd-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_write_set_format_warc.c | 230 warc_essential_hdr_t rh = { in _warc_header() local 240 rh.tgturi = archive_entry_pathname(entry); in _warc_header() 241 rh.rtime = w->now; in _warc_header() 242 rh.mtime = archive_entry_mtime(entry); in _warc_header() 243 rh.cntlen = (size_t)archive_entry_size(entry); in _warc_header() 246 r = _popul_ehdr(&hdr, MAX_HDR_SIZE, rh); in _warc_header() 258 w->populz = rh.cntlen; in _warc_header()
|
| /freebsd-13.1/contrib/tcpdump/ |
| H A D | print-udp.c | 225 const struct rtcphdr *rh = (const struct rtcphdr *)hdr; in rtcp_print() local 230 if ((const u_char *)(rh + 1) > ep) in rtcp_print() 232 ND_TCHECK(*rh); in rtcp_print() 233 len = (EXTRACT_16BITS(&rh->rh_len) + 1) * 4; in rtcp_print() 234 flags = EXTRACT_16BITS(&rh->rh_flags); in rtcp_print() 238 sr = (const struct rtcp_sr *)(rh + 1); in rtcp_print() 243 ND_PRINT((ndo, " %u", EXTRACT_32BITS(&rh->rh_ssrc))); in rtcp_print() 256 if (len != cnt * sizeof(*rr) + sizeof(*rh)) in rtcp_print() 258 rr = (const struct rtcp_rr *)(rh + 1); in rtcp_print() 260 ND_PRINT((ndo, " %u", EXTRACT_32BITS(&rh->rh_ssrc))); in rtcp_print() [all …]
|
| /freebsd-13.1/contrib/unbound/contrib/ |
| H A D | update-anchor.sh | 60 rh="" 63 rh="-C $tmp3" 65 $ubhost -v $rh $filearg "$keyfile" -t DNSKEY "$zonename" >$tmpfile
|