/freebsd-current/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-current/sys/netinet6/ |
H A D | route6.c | 64 struct ip6_rthdr *rh; local 84 if (m->m_len < off + sizeof(*rh)) { 85 m = m_pullup(m, off + sizeof(*rh)); 93 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off); 99 switch (rh->ip6r_type) { 102 if (rh->ip6r_segleft == 0) { 103 rhlen = (rh->ip6r_len + 1) << 3; 108 (caddr_t)&rh->ip6r_type - (caddr_t)ip6); 115 return (rh->ip6r_nxt);
|
H A D | in6_rmx.c | 143 struct rib_head *rh; local 146 rh = rt_table_init(offsetof(struct sockaddr_in6, sin6_addr) << 3, 148 if (rh == NULL) 151 rh->rnh_set_nh_pfxflags = rib6_set_nh_pfxflags; 152 rh->rnh_augment_nh = rib6_augment_nh; 154 rs = rib_subscribe_internal(rh, nd6_subscription_cb, NULL, 158 return (rh); 163 in6_detachhead(struct rib_head *rh) argument 166 rt_table_destroy(rh);
|
H A D | in6_fib.c | 146 struct rib_head *rh; local 151 rh = rt_tables_get_rnh(fibnum, AF_INET6); 152 if (rh == NULL) 164 RIB_RLOCK(rh); 165 rn = rh->rnh_matchaddr((void *)&sin6, &rh->head); 172 RIB_RUNLOCK(rh); 176 RIB_RUNLOCK(rh); 226 struct rib_head *rh; local 231 rh 297 struct rib_head *rh; local [all...] |
H A D | in6_fib_algo.c | 108 ent = (struct radix6_addr_entry *)(rn_match(&addr6, &rnh->rh)); 200 (struct sockaddr *)rt_mask, &lr->rnh->rh, ae->rn); 244 struct rib_head *rh; member in struct:radix6_data 251 struct rib_head *rh = (struct rib_head *)algo_data; local 265 RIB_RLOCK(rh); 266 rn = rn_match((void *)&sin6, &rh->head); 269 RIB_RUNLOCK(rh); 277 struct rib_head *rh = rh = rt_tables_get_rnh(fibnum, AF_INET6); local 280 if (rh [all...] |
/freebsd-current/sys/rpc/ |
H A D | clnt.h | 202 #define CLNT_ACQUIRE(rh) \ 203 refcount_acquire(&(rh)->cl_refs) 204 #define CLNT_RELEASE(rh) \ 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)) [all...] |
/freebsd-current/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) \ 159 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 161 #define clnt_call(rh, proc, xargs, argsp, xres, resp, secs) \ 162 ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \ 167 * CLNT_ABORT(rh); 168 * CLIENT *rh; [all...] |
/freebsd-current/sys/netinet/ |
H A D | in_fib.c | 138 struct rib_head *rh; local 143 rh = rt_tables_get_rnh(fibnum, AF_INET); 144 if (rh == NULL) 155 RIB_RLOCK(rh); 156 rn = rh->rnh_matchaddr((void *)&sin4, &rh->head); 163 RIB_RUNLOCK(rh); 167 RIB_RUNLOCK(rh); 216 struct rib_head *rh; local 221 rh 284 struct rib_head *rh; local [all...] |
H A D | in_rmx.c | 119 struct rib_head *rh; local 121 rh = rt_table_init(32, AF_INET, fibnum); 122 if (rh == NULL) 125 rh->rnh_set_nh_pfxflags = rib4_set_nh_pfxflags; 126 rh->rnh_augment_nh = rib4_augment_nh; 128 return (rh); 133 in_detachhead(struct rib_head *rh) argument 136 rt_table_destroy(rh);
|
/freebsd-current/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-current/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) 80 #define RIB_LOCK_DESTROY(rh) rm_destroy(&(rh)->rib_lock) 81 #define RIB_RLOCK(rh) rm_rlock(&(rh)->rib_lock, &_rib_tracker) 82 #define RIB_RUNLOCK(rh) rm_runlock(&(rh)->rib_lock, &_rib_tracker) 83 #define RIB_WLOCK(rh) rm_wlock(&(rh) [all...] |
H A D | route_temporal.c | 149 tmproutes_init(struct rib_head *rh) argument 152 callout_init(&rh->expire_callout, 1); 156 tmproutes_destroy(struct rib_head *rh) argument 159 callout_drain(&rh->expire_callout);
|
H A D | route_tables.c | 204 populate_kernel_routes(struct rib_head **new_rt_tables, struct rib_head *rh) argument 207 struct rib_head *rh_src = new_rt_tables[i * (AF_MAX + 1) + rh->rib_family]; 208 if ((rh_src != NULL) && (rh_src != rh)) 209 rib_copy_kernel_routes(rh_src, rh); 222 struct rib_head **prnh, *rh; local 261 rh = dom->dom_rtattach(i); 262 if (rh == NULL) 266 populate_kernel_routes(new_rt_tables, rh); 267 *prnh = rh;
|
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) argument 1056 if (fd->fd_rh == rh) { 1081 fib_destroy_rib(struct rib_head *rh) argument 1089 fib_cleanup_algo(rh, false, false); 1154 try_setup_fd_instance(struct fib_lookup_module *flm, struct rib_head *rh, argument 1165 RH_PRINTF(LOG_INFO, rh, "Unabl 1248 setup_fd_instance(struct fib_lookup_module *flm, struct rib_head *rh, struct fib_data *orig_fd, struct fib_data **pfd, bool attach) argument 1460 struct rib_head *rh = NULL; local 1712 fib_get_rtable_info(struct rib_head *rh, struct rib_rtable_info *rinfo) argument 1865 set_algo_fixed(struct rib_head *rh) argument 1882 is_algo_fixed(struct rib_head *rh) argument 1906 fib_check_best_algo(struct rib_head *rh, struct fib_lookup_module *orig_flm) argument 1949 fib_select_algo_initial(struct rib_head *rh, struct fib_dp *dp) argument 1995 struct rib_head *rh = rt_tables_get_rnh(i, family); local [all...] |
H A D | nhop.c | 76 nhops_init_rib(struct rib_head *rh) argument 103 rh->nh_control = ctl; 104 ctl->ctl_rh = rh; 106 FIB_CTL_LOG(LOG_DEBUG2, ctl, "nhops init: ctl %p rh %p", ctl, rh); 138 nhops_destroy_rib(struct rib_head *rh) argument 143 ctl = rh->nh_control; 160 FIB_RH_LOG(LOG_DEBUG3, rh, "marking nhop %u unlinked", nh_priv->nh_idx);
|
H A D | nhop_ctl.c | 86 static int dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w); 1055 nhops_update_ifmtu(struct rib_head *rh, struct ifnet *ifp, uint32_t mtu) argument 1061 ctl = rh->nh_control; 1081 if (iter->rh == NULL) 1082 iter->rh = rt_tables_get_rnh_safe(iter->fibnum, iter->family); 1083 if (iter->rh != NULL) { 1084 struct nh_control *ctl = iter->rh->nh_control; 1106 struct nh_control *ctl = iter->rh->nh_control; 1121 if (iter->rh != NULL) { 1122 struct nh_control *ctl = iter->rh 1189 dump_nhop_entry(struct rib_head *rh, struct nhop_object *nh, struct sysctl_req *w) argument 1259 nhops_get_count(struct rib_head *rh) argument 1274 nhops_dump_sysctl(struct rib_head *rh, struct sysctl_req *w) argument [all...] |
/freebsd-current/sys/net/ |
H A D | route.c | 98 struct rib_head *rh; local 100 rh = malloc(sizeof(struct rib_head), M_RTABLE, M_WAITOK | M_ZERO); 104 rn_inithead_internal(&rh->head, rh->rnh_nodes, offset); 105 rn_inithead_internal(&rh->rmhead.head, rh->rmhead.mask_nodes, 0); 106 rh->head.rnh_masks = &rh->rmhead; 109 rh->rib_family = family; 110 rh 149 rt_table_destroy(struct rib_head *rh) argument [all...] |
/freebsd-current/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-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_range.cpp | 39 [](const Event &lh, const Event &rh) { return lh.val < rh.val; });
|
/freebsd-current/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, argument 278 if (rh->r_dh.has_hash) { 281 if (rh->r_dh.has_hwtstamp) { 284 ((rh->r_dh.len - 2) * 289 ((rh->r_dh.len - 2) * 294 ((rh->r_dh.len - 1) * 299 ((rh->r_dh.len - 1) * 332 * in rh. 338 m_adj(mbuf, rh->r_dh.len * 8); 339 len -= rh [all...] |
/freebsd-current/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_warc.c | 231 warc_essential_hdr_t rh = { 241 rh.tgturi = archive_entry_pathname(entry); 242 rh.rtime = w->now; 243 rh.mtime = archive_entry_mtime(entry); 244 rh.cntlen = (size_t)archive_entry_size(entry); 247 r = _popul_ehdr(&hdr, MAX_HDR_SIZE, rh); 259 w->populz = rh.cntlen; 229 warc_essential_hdr_t rh = { local
|
/freebsd-current/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-current/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 [all...] |
/freebsd-current/sys/dev/liquidio/base/ |
H A D | lio_droq.c | 384 recv_pkt->rh = info->rh; 525 union octeon_rh *rh, struct lio_droq_info *info) 533 disp_fn = lio_get_dispatch(oct, (uint16_t)rh->r.opcode, 534 (uint16_t)rh->r.subcode); 542 rinfo->recv_pkt->rh = *rh; 550 (unsigned int)rh->r.opcode, 551 (unsigned int)rh->r.subcode); 592 union octeon_rh *rh; local 524 lio_droq_dispatch_pkt(struct octeon_device *oct, struct lio_droq *droq, union octeon_rh *rh, struct lio_droq_info *info) argument [all...] |