Home
last modified time | relevance | path

Searched refs:rh (Results 1 – 25 of 73) sorted by relevance

123

/freebsd/sys/rpc/
H A Dclnt.h213 #define CLNT_CLOSE(rh) ((*(rh)->cl_ops->cl_close)(rh)) argument
271 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \
274 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \
283 #define CLNT_ABORT(rh) ((*(rh)->cl_ops->cl_abort)(rh)) argument
284 #define clnt_abort(rh) ((*(rh)->cl_ops->cl_abort)(rh)) argument
291 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
292 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
302 #define CLNT_FREERES(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) argument
303 #define clnt_freeres(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) argument
373 #define CLNT_DESTROY(rh) ((*(rh)->cl_ops->cl_destroy)(rh)) argument
[all …]
/freebsd/contrib/elftoolchain/libpe/
H A Dlibpe_rich.c59 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 Dpe_rich.c69 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 Dclnt.h158 #define CLNT_CALL(rh, proc, xargs, argsp, xres, resp, secs) \ argument
159 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \
162 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \
170 #define CLNT_ABORT(rh) ((*(rh)->cl_ops->cl_abort)(rh)) argument
171 #define clnt_abort(rh) ((*(rh)->cl_ops->cl_abort)(rh)) argument
178 #define CLNT_GETERR(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
179 #define clnt_geterr(rh,errp) ((*(rh)->cl_ops->cl_geterr)(rh, errp)) argument
189 #define CLNT_FREERES(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) argument
190 #define clnt_freeres(rh,xres,resp) ((*(rh)->cl_ops->cl_freeres)(rh,xres,resp)) argument
234 #define CLNT_DESTROY(rh) ((*(rh)->cl_ops->cl_destroy)(rh)) argument
[all …]
/freebsd/sys/netinet/
H A Din_fib.c144 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()
167 RIB_RUNLOCK(rh); in fib4_lookup()
222 if (rh == NULL) in lookup_nhop()
232 RIB_RLOCK(rh); in lookup_nhop()
233 rn = rh->rnh_matchaddr((void *)&sin4, &rh->head); in lookup_nhop()
236 RIB_RUNLOCK(rh); in lookup_nhop()
290 if (rh == NULL) in fib4_lookup_rt()
302 RIB_RLOCK(rh); in fib4_lookup_rt()
[all …]
H A Din_rmx.c119 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/net80211/
H A Dieee80211_radiotap.c59 rh, rlen, 0, rx_radiotap); in ieee80211_radiotap_attach()
66 struct ieee80211_radiotap_header *rh, in ieee80211_radiotap_attachv() argument
89 rh->it_present = htole32(rx_radiotap); in ieee80211_radiotap_attachv()
90 ic->ic_rh = rh; in ieee80211_radiotap_attachv()
102 ic->ic_rxchan = ((uint8_t *) rh) + off; in ieee80211_radiotap_attachv()
199 bpf_mtap2(vap->iv_rawbpf, rh, len, m); in spam_vaps()
236 len = le16toh(rh->it_len); in ieee80211_radiotap_rx()
239 bpf_mtap2(vap0->iv_rawbpf, rh, len, m); in ieee80211_radiotap_rx()
246 spam_vaps(vap0, m, rh, len); in ieee80211_radiotap_rx()
258 int len = le16toh(rh->it_len); in ieee80211_radiotap_rx_all()
[all …]
/freebsd/sys/netinet6/
H A Din6_fib.c152 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()
176 RIB_RUNLOCK(rh); in fib6_lookup()
232 if (rh == NULL) in lookup_nhop()
246 RIB_RLOCK(rh); in lookup_nhop()
247 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head); in lookup_nhop()
250 RIB_RUNLOCK(rh); in lookup_nhop()
303 if (rh == NULL) in fib6_lookup_rt()
317 RIB_RLOCK(rh); in fib6_lookup_rt()
[all …]
H A Droute6.c64 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 Din6_rmx.c143 struct rib_head *rh; in in6_inithead() local
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) in in6_detachhead() argument
166 rt_table_destroy(rh); in in6_detachhead()
H A Din6_fib_algo.c200 (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()
302 r6->rh = fib_get_rh(fd); in radix6_init()
[all …]
/freebsd/sys/net/route/
H A Droute_var.h79 #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);
248 int nhops_init_rib(struct rib_head *rh);
[all …]
H A Dfib_algo.c1056 if (fd->fd_rh == rh) { in fib_cleanup_algo()
1172 fd->fd_rh = rh; in try_setup_fd_instance()
1255 RIB_WLOCK_ASSERT(rh); in setup_fd_instance()
1475 rh = fd->fd_rh; in set_fib_algo()
1497 RIB_WLOCK(rh); in set_fib_algo()
1499 RIB_WUNLOCK(rh); in set_fib_algo()
1507 set_algo_fixed(rh); in set_fib_algo()
1867 switch (rh->rib_family) { in set_algo_fixed()
1964 RIB_WLOCK(rh); in fib_select_algo_initial()
1966 RIB_WUNLOCK(rh); in fib_select_algo_initial()
[all …]
H A Droute_tables.c204 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
261 rh = dom->dom_rtattach(i); in grow_rtables()
262 if (rh == NULL) in grow_rtables()
266 populate_kernel_routes(new_rt_tables, rh); in grow_rtables()
267 *prnh = rh; in grow_rtables()
H A Droute_temporal.c149 tmproutes_init(struct rib_head *rh) in tmproutes_init() argument
152 callout_init(&rh->expire_callout, 1); in tmproutes_init()
156 tmproutes_destroy(struct rib_head *rh) in tmproutes_destroy() argument
159 callout_drain(&rh->expire_callout); in tmproutes_destroy()
H A Dnhop.c76 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()
H A Dnhgrp_ctl.c464 struct rib_head *rh = rt_tables_get_rnh(fibnum, family); in nhgrp_alloc() local
468 if (rh == NULL) { in nhgrp_alloc()
473 ctl = rh->nh_control; in nhgrp_alloc()
648 struct nh_control *ctl = rh->nh_control; in nhgrp_get_group()
670 struct nh_control *ctl = rh->nh_control; in nhgrp_get_filtered_group()
727 struct nh_control *ctl = rh->nh_control; in nhgrp_get_addition_group()
924 nhgrp_get_count(struct rib_head *rh) in nhgrp_get_count() argument
929 ctl = rh->nh_control; in nhgrp_get_count()
939 nhgrp_dump_sysctl(struct rib_head *rh, struct sysctl_req *w) in nhgrp_dump_sysctl() argument
941 struct nh_control *ctl = rh->nh_control; in nhgrp_dump_sysctl()
[all …]
H A Dnhop_ctl.c1061 ctl = rh->nh_control; in nhops_update_ifmtu()
1081 if (iter->rh == NULL) in nhops_iter_start()
1083 if (iter->rh != NULL) { in nhops_iter_start()
1084 struct nh_control *ctl = iter->rh->nh_control; in nhops_iter_start()
1106 struct nh_control *ctl = iter->rh->nh_control; in nhops_iter_next()
1121 if (iter->rh != NULL) { in nhops_iter_stop()
1214 pnhe->nh_fib = rh->rib_fibnum; in dump_nhop_entry()
1259 nhops_get_count(struct rib_head *rh) in nhops_get_count() argument
1264 ctl = rh->nh_control; in nhops_get_count()
1280 ctl = rh->nh_control; in nhops_dump_sysctl()
[all …]
/freebsd/sys/net/
H A Droute.c104 rn_inithead_internal(&rh->head, rh->rnh_nodes, offset); in rt_table_init()
105 rn_inithead_internal(&rh->rmhead.head, rh->rmhead.mask_nodes, 0); in rt_table_init()
106 rh->head.rnh_masks = &rh->rmhead; in rt_table_init()
115 tmproutes_init(rh); in rt_table_init()
118 RIB_LOCK_INIT(rh); in rt_table_init()
120 nhops_init_rib(rh); in rt_table_init()
133 return (rh); in rt_table_init()
152 RIB_WLOCK(rh); in rt_table_destroy()
154 RIB_WUNLOCK(rh); in rt_table_destroy()
162 rn_walktree(&rh->rmhead.head, rt_freeentry, &rh->rmhead.head); in rt_table_destroy()
[all …]
/freebsd/sys/dev/liquidio/
H A Dlio_core.c278 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()
338 m_adj(mbuf, rh->r_dh.len * 8); in lio_push_packet()
339 len -= rh->r_dh.len * 8; in lio_push_packet()
343 (rh->r_dh.priority || rh->r_dh.vlan)) { in lio_push_packet()
344 uint16_t priority = rh->r_dh.priority; in lio_push_packet()
[all …]
/freebsd/sys/dev/liquidio/base/
H A Dlio_droq.c384 recv_pkt->rh = info->rh; in lio_create_recv_info()
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()
624 if (lio_opcode_slow_path(rh)) { in lio_droq_fast_process_packets()
684 droq->ops.fptr(nicbuf, pkt_len, rh, in lio_droq_fast_process_packets()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/db/
H A Dh_db.c633 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/lib/libc/db/test/
H A Ddbtest.c576 static RECNOINFO rh; local
636 rh.flags = atoi(eq);
637 return (&rh);
641 return (&rh);
644 rh.lorder = atoi(eq);
645 return (&rh);
649 return (&rh);
652 rh.bval = atoi(eq);
653 return (&rh);
656 rh.psize = atoi(eq);
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_set_format_warc.c229 warc_essential_hdr_t rh = { in _warc_header() local
239 rh.tgturi = archive_entry_pathname(entry); in _warc_header()
240 rh.rtime = w->now; in _warc_header()
241 rh.mtime = archive_entry_mtime(entry); in _warc_header()
242 rh.cntlen = (size_t)archive_entry_size(entry); in _warc_header()
245 r = _popul_ehdr(&hdr, MAX_HDR_SIZE, rh); in _warc_header()
257 w->populz = rh.cntlen; in _warc_header()
/freebsd/contrib/tcpdump/
H A Dprint-udp.c227 if ((const u_char *)(rh + 1) > ep) in rtcp_print()
229 ND_TCHECK_SIZE(rh); in rtcp_print()
230 len = (GET_BE_U_2(rh->rh_len) + 1) * 4; in rtcp_print()
231 flags = GET_BE_U_2(rh->rh_flags); in rtcp_print()
235 sr = (const struct rtcp_sr *)(rh + 1); in rtcp_print()
240 ND_PRINT(" %u", GET_BE_U_4(rh->rh_ssrc)); in rtcp_print()
253 if (len != cnt * sizeof(*rr) + sizeof(*rh)) in rtcp_print()
255 rr = (const struct rtcp_rr *)(rh + 1); in rtcp_print()
257 ND_PRINT(" %u", GET_BE_U_4(rh->rh_ssrc)); in rtcp_print()
262 ND_PRINT(" %u", GET_BE_U_4(rh->rh_ssrc)); in rtcp_print()
[all …]

123