/freebsd-11-stable/contrib/elftoolchain/libpe/ |
H A D | libpe_rich.c | 59 PE_RichHdr *rh; local 74 if ((rh = calloc(1, sizeof(*rh))) == NULL) { 79 rh->rh_xor = le32dec(r + 4); /* Retrieve the "XOR mask" */ 87 x = le32dec(p) ^ rh->rh_xor; 94 free(rh); 106 rh->rh_total = (r - p) / 8; 107 if ((rh->rh_compid = malloc(rh->rh_total * sizeof(*rh [all...] |
H A D | pe_rich.c | 69 PE_RichHdr *rh; local 98 rh = pe->pe_rh; 99 for (i = 0; (uint32_t) i < rh->rh_total; i++) 100 cksum += rol32(rh->rh_compid[i], rh->rh_cnt[i]); 103 if (cksum == rh->rh_xor)
|
/freebsd-11-stable/sys/net/ |
H A D | route_var.h | 51 #define RIB_RLOCK(rh) rw_rlock(&(rh)->rib_lock) 52 #define RIB_RUNLOCK(rh) rw_runlock(&(rh)->rib_lock) 53 #define RIB_WLOCK(rh) rw_wlock(&(rh)->rib_lock) 54 #define RIB_WUNLOCK(rh) rw_wunlock(&(rh)->rib_lock) 55 #define RIB_LOCK_ASSERT(rh) rw_assert(&(rh) [all...] |
H A D | route.c | 344 struct rib_head *rh; local 346 rh = malloc(sizeof(struct rib_head), M_RTABLE, M_WAITOK | M_ZERO); 350 rn_inithead_internal(&rh->head, rh->rnh_nodes, offset); 351 rn_inithead_internal(&rh->rmhead.head, rh->rmhead.mask_nodes, 0); 352 rh->head.rnh_masks = &rh->rmhead; 355 rw_init(&rh->rib_lock, "rib head lock"); 358 rh 381 rt_table_destroy(struct rib_head *rh) argument 442 struct rib_head *rh; local 926 struct rib_head *rh; local [all...] |
H A D | radix.h | 129 struct radix_head rh; member in struct:radix_node_head 148 void rn_inithead_internal(struct radix_head *rh, struct radix_node *base_nodes,
|
/freebsd-11-stable/sys/netinet6/ |
H A D | route6.c | 64 struct ip6_rthdr *rh; local 81 IP6_EXTHDR_CHECK(m, off, sizeof(*rh), IPPROTO_DONE); 83 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off); 86 IP6_EXTHDR_GET(rh, struct ip6_rthdr *, m, off, sizeof(*rh)); 87 if (rh == NULL) { 97 switch (rh->ip6r_type) { 100 if (rh->ip6r_segleft == 0) { 101 rhlen = (rh->ip6r_len + 1) << 3; 106 (caddr_t)&rh [all...] |
H A D | in6_fib.c | 174 struct rib_head *rh; local 180 rh = rt_tables_get_rnh(fibnum, AF_INET6); 181 if (rh == NULL) 192 RIB_RLOCK(rh); 193 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head); 199 RIB_RUNLOCK(rh); 203 RIB_RUNLOCK(rh); 223 struct rib_head *rh; local 229 rh [all...] |
H A D | in6_rmx.c | 216 struct rib_head *rh; local 218 rh = rt_table_init(offsetof(struct sockaddr_in6, sin6_addr) << 3); 219 if (rh == NULL) 222 rh->rnh_addaddr = in6_addroute; 223 *head = (void *)rh;
|
/freebsd-11-stable/sys/rpc/ |
H A D | clnt.h | 204 #define CLNT_ACQUIRE(rh) \ 205 refcount_acquire(&(rh)->cl_refs) 206 #define CLNT_RELEASE(rh) \ 207 if (refcount_release(&(rh)->cl_refs)) \ 208 CLNT_DESTROY(rh) 212 * CLNT_CLOSE(rh); 213 * CLIENT *rh; 215 #define CLNT_CLOSE(rh) ((*(rh)->cl_ops->cl_close)(rh)) [all...] |
/freebsd-11-stable/include/rpc/ |
H A D | clnt.h | 151 * CLNT_CALL(rh, proc, xargs, argsp, xres, resp, timeout) 152 * CLIENT *rh; 160 #define CLNT_CALL(rh, proc, xargs, argsp, xres, resp, secs) \ 161 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 163 #define clnt_call(rh, proc, xargs, argsp, xres, resp, secs) \ 164 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 169 * CLNT_ABORT(rh); 170 * CLIENT *rh; [all...] |
/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211_radiotap.c | 56 struct ieee80211_radiotap_header *rh, int rlen, uint32_t rx_radiotap) 59 rh, rlen, 0, rx_radiotap); 66 struct ieee80211_radiotap_header *rh, 88 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t))); 89 rh->it_present = htole32(rx_radiotap); 90 ic->ic_rh = rh; 94 off = radiotap_offset(rh, n_rx_v, IEEE80211_RADIOTAP_CHANNEL); 96 off = radiotap_offset(rh, n_rx_v, IEEE80211_RADIOTAP_XCHANNEL); 102 ic->ic_rxchan = ((uint8_t *) rh) + off; 166 struct ieee80211_radiotap_header *rh local 54 ieee80211_radiotap_attach(struct ieee80211com *ic, struct ieee80211_radiotap_header *th, int tlen, uint32_t tx_radiotap, struct ieee80211_radiotap_header *rh, int rlen, uint32_t rx_radiotap) argument 63 ieee80211_radiotap_attachv(struct ieee80211com *ic, struct ieee80211_radiotap_header *th, int tlen, int n_tx_v, uint32_t tx_radiotap, struct ieee80211_radiotap_header *rh, int rlen, int n_rx_v, uint32_t rx_radiotap) argument 188 spam_vaps(struct ieee80211vap *vap0, struct mbuf *m, struct ieee80211_radiotap_header *rh, int len) argument 232 struct ieee80211_radiotap_header *rh = ic->ic_rh; local 257 struct ieee80211_radiotap_header *rh = ic->ic_rh; local 275 radiotap_offset(struct ieee80211_radiotap_header *rh, int n_vendor_attributes, int item) argument [all...] |
/freebsd-11-stable/sys/netinet/ |
H A D | in_fib.c | 137 struct rib_head *rh; local 143 rh = rt_tables_get_rnh(fibnum, AF_INET); 144 if (rh == NULL) 152 RIB_RLOCK(rh); 153 rn = rh->rnh_matchaddr((void *)&sin, &rh->head); 159 RIB_RUNLOCK(rh); 164 RIB_RUNLOCK(rh); 185 struct rib_head *rh; local 191 rh [all...] |
H A D | in_rmx.c | 116 struct rib_head *rh; local 118 rh = rt_table_init(32); 119 if (rh == NULL) 122 rh->rnh_addaddr = in_addroute; 123 *head = (void *)rh;
|
/freebsd-11-stable/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
|
/freebsd-11-stable/sys/dev/liquidio/ |
H A D | lio_core.c | 262 lio_push_packet(void *m_buff, uint32_t len, union octeon_rh *rh, void *rxq, argument 279 if (rh->r_dh.has_hash) { 282 if (rh->r_dh.has_hwtstamp) { 285 ((rh->r_dh.len - 2) * 290 ((rh->r_dh.len - 2) * 295 ((rh->r_dh.len - 1) * 300 ((rh->r_dh.len - 1) * 333 * in rh. 339 m_adj(mbuf, rh->r_dh.len * 8); 340 len -= rh [all...] |
/freebsd-11-stable/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_warc.c | 232 warc_essential_hdr_t rh = { 242 rh.tgturi = archive_entry_pathname(entry); 243 rh.rtime = w->now; 244 rh.mtime = archive_entry_mtime(entry); 245 rh.cntlen = (size_t)archive_entry_size(entry); 248 r = _popul_ehdr(&hdr, MAX_HDR_SIZE, rh); 260 w->populz = rh.cntlen; 230 warc_essential_hdr_t rh = { local
|
/freebsd-11-stable/lib/libc/db/test/ |
H A D | dbtest.c | 586 static RECNOINFO rh; local 646 rh.flags = atoi(eq); 647 return (&rh); 650 rh.cachesize = atoi(eq); 651 return (&rh); 654 rh.lorder = atoi(eq); 655 return (&rh); 658 rh.reclen = atoi(eq); 659 return (&rh); 662 rh [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/db/ |
H A D | h_db.c | 633 static RECNOINFO rh; local 693 rh.flags = atoi(eq); 694 return &rh; 697 rh.cachesize = atoi(eq); 698 return &rh; 701 rh.lorder = atoi(eq); 702 return &rh; 705 rh.reclen = atoi(eq); 706 return &rh; 709 rh [all...] |
/freebsd-11-stable/sys/dev/liquidio/base/ |
H A D | lio_droq.c | 385 recv_pkt->rh = info->rh; 526 union octeon_rh *rh, struct lio_droq_info *info) 534 disp_fn = lio_get_dispatch(oct, (uint16_t)rh->r.opcode, 535 (uint16_t)rh->r.subcode); 543 rinfo->recv_pkt->rh = *rh; 551 (unsigned int)rh->r.opcode, 552 (unsigned int)rh->r.subcode); 593 union octeon_rh *rh; local 525 lio_droq_dispatch_pkt(struct octeon_device *oct, struct lio_droq *droq, union octeon_rh *rh, struct lio_droq_info *info) argument [all...] |
H A D | lio_droq.h | 74 union octeon_rh rh; member in struct:lio_droq_info 154 union octeon_rh rh; member in struct:lio_recv_pkt
|
/freebsd-11-stable/lib/libc/net/ |
H A D | rthdr.c | 385 struct ip6_rthdr *rh = (struct ip6_rthdr *)bp; local 389 switch (rh->ip6r_type) { 410 struct ip6_rthdr *rh = (struct ip6_rthdr *)bp; local 414 switch (rh->ip6r_type) {
|
/freebsd-11-stable/usr.sbin/ndiscvt/ |
H A D | inf.c | 52 static struct reg_head rh; variable in typeref:struct:reg_head 79 TAILQ_INIT(&rh); 572 TAILQ_FOREACH(reg, &rh, link) { 604 TAILQ_FOREACH(reg, &rh, link) { 620 TAILQ_FOREACH(reg, &rh, link) { 642 TAILQ_FOREACH(reg, &rh, link) { 661 TAILQ_FOREACH(reg, &rh, link) { 681 TAILQ_FOREACH(reg, &rh, link) { 698 TAILQ_FOREACH(reg, &rh, link) { 882 TAILQ_INSERT_TAIL(&rh, re [all...] |
/freebsd-11-stable/crypto/openssl/crypto/ec/ |
H A D | ecp_smpl.c | 1003 BIGNUM *rh, *tmp, *Z4, *Z6; local 1020 rh = BN_CTX_get(ctx); 1034 * To test this, we add up the right-hand side in 'rh'. 1037 /* rh := X^2 */ 1038 if (!field_sqr(group, rh, &point->X, ctx)) 1049 /* rh := (rh + a*Z^4)*X */ 1055 if (!BN_mod_sub_quick(rh, rh, tmp, p)) 1057 if (!field_mul(group, rh, r [all...] |
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-udp.c | 225 const struct rtcphdr *rh = (const struct rtcphdr *)hdr; local 230 if ((const u_char *)(rh + 1) > ep) 232 ND_TCHECK(*rh); 233 len = (EXTRACT_16BITS(&rh->rh_len) + 1) * 4; 234 flags = EXTRACT_16BITS(&rh->rh_flags); 238 sr = (const struct rtcp_sr *)(rh + 1); 240 if (len != cnt * sizeof(*rr) + sizeof(*sr) + sizeof(*rh)) 243 ND_PRINT((ndo, " %u", EXTRACT_32BITS(&rh->rh_ssrc))); 256 if (len != cnt * sizeof(*rr) + sizeof(*rh)) 258 rr = (const struct rtcp_rr *)(rh [all...] |
/freebsd-11-stable/sys/netpfil/pf/ |
H A D | pf_table.c | 566 rv = kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, pfr_walktree, &w); 568 rv = kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, 615 rv = kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, pfr_walktree, &w); 617 rv = kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, 724 if (kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, 728 if (kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, 742 if (kt->pfrkt_ip4->rnh_walktree(&kt->pfrkt_ip4->rh, pfr_walktree, &w)) 744 if (kt->pfrkt_ip6->rnh_walktree(&kt->pfrkt_ip6->rh, pfr_walktree, &w)) 761 head = &kt->pfrkt_ip4->rh; 764 head = &kt->pfrkt_ip6->rh; [all...] |