/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | range_tree.c | 104 range_tree_stat_verify(range_tree_t *rt) argument 110 for (rs = avl_first(&rt->rt_root); rs != NULL; 111 rs = AVL_NEXT(&rt->rt_root, rs)) { 120 if (hist[i] != rt->rt_histogram[i]) { 122 i, hist, hist[i], rt->rt_histogram[i]); 124 VERIFY3U(hist[i], ==, rt->rt_histogram[i]); 129 range_tree_stat_incr(range_tree_t *rt, range_seg_t *rs) argument 136 sizeof (rt->rt_histogram) / sizeof (*rt->rt_histogram)); 138 rt 143 range_tree_stat_decr(range_tree_t *rt, range_seg_t *rs) argument 175 range_tree_t *rt = kmem_zalloc(sizeof (range_tree_t), KM_SLEEP); local 198 range_tree_destroy(range_tree_t *rt) argument 210 range_tree_adjust_fill(range_tree_t *rt, range_seg_t *rs, int64_t delta) argument 225 range_tree_t *rt = arg; local 360 range_tree_remove_impl(range_tree_t *rt, uint64_t start, uint64_t size, boolean_t do_fill) argument 466 range_tree_remove_fill(range_tree_t *rt, uint64_t start, uint64_t size) argument 472 range_tree_resize_segment(range_tree_t *rt, range_seg_t *rs, uint64_t newstart, uint64_t newsize) argument 492 range_tree_find_impl(range_tree_t *rt, uint64_t start, uint64_t size) argument 505 range_tree_find(range_tree_t *rt, uint64_t start, uint64_t size) argument 514 range_tree_verify(range_tree_t *rt, uint64_t off, uint64_t size) argument 524 range_tree_contains(range_tree_t *rt, uint64_t start, uint64_t size) argument 534 range_tree_clear(range_tree_t *rt, uint64_t start, uint64_t size) argument 551 range_tree_t *rt; local 562 range_tree_vacate(range_tree_t *rt, range_tree_func_t *func, void *arg) argument 582 range_tree_walk(range_tree_t *rt, range_tree_func_t *func, void *arg) argument 591 range_tree_first(range_tree_t *rt) argument 597 range_tree_space(range_tree_t *rt) argument 604 rt_avl_create(range_tree_t *rt, void *arg) argument 613 rt_avl_destroy(range_tree_t *rt, void *arg) argument 622 rt_avl_add(range_tree_t *rt, range_seg_t *rs, void *arg) argument 629 rt_avl_remove(range_tree_t *rt, range_seg_t *rs, void *arg) argument 636 rt_avl_vacate(range_tree_t *rt, void *arg) argument 648 range_tree_is_empty(range_tree_t *rt) argument 655 range_tree_min(range_tree_t *rt) argument 662 range_tree_max(range_tree_t *rt) argument 669 range_tree_span(range_tree_t *rt) argument [all...] |
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | range_tree.h | 74 void (*rtop_create)(range_tree_t *rt, void *arg); 75 void (*rtop_destroy)(range_tree_t *rt, void *arg); 76 void (*rtop_add)(range_tree_t *rt, range_seg_t *rs, void *arg); 77 void (*rtop_remove)(range_tree_t *rt, range_seg_t *rs, void *arg); 78 void (*rtop_vacate)(range_tree_t *rt, void *arg); 88 void range_tree_destroy(range_tree_t *rt); 89 boolean_t range_tree_contains(range_tree_t *rt, uint64_t start, uint64_t size); 90 range_seg_t *range_tree_find(range_tree_t *rt, uint64_t start, uint64_t size); 91 void range_tree_resize_segment(range_tree_t *rt, range_seg_t *rs, 93 uint64_t range_tree_space(range_tree_t *rt); [all...] |
H A D | space_reftree.h | 49 void space_reftree_add_map(avl_tree_t *t, range_tree_t *rt, int64_t refcnt); 50 void space_reftree_generate_map(avl_tree_t *t, range_tree_t *rt,
|
/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211_phy.h | 90 ieee80211_ack_rate(const struct ieee80211_rate_table *rt, uint8_t rate) argument 99 uint8_t cix = rt->info[rt->rateCodeToIndex[rate & IEEE80211_RATE_VAL]].ctlRateIndex; 101 return rt->info[cix].dot11Rate; 105 ieee80211_ctl_rate(const struct ieee80211_rate_table *rt, uint8_t rate) argument 114 uint8_t cix = rt->info[rt->rateCodeToIndex[rate & IEEE80211_RATE_VAL]].ctlRateIndex; 116 return rt->info[cix].dot11Rate; 120 ieee80211_rate2phytype(const struct ieee80211_rate_table *rt, uint8_t rate) argument 129 uint8_t rix = rt 135 ieee80211_isratevalid(const struct ieee80211_rate_table *rt, uint8_t rate) argument 154 ieee80211_ack_duration(const struct ieee80211_rate_table *rt, uint8_t rate, int isShortPreamble) argument 172 ieee80211_legacy_rate_lookup(const struct ieee80211_rate_table *rt, uint8_t rate) argument [all...] |
/freebsd-11-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-asm.h | 232 #define CVMX_BADDU(result, input1, input2) asm ("baddu %[rd],%[rs],%[rt]" : [rd] "=d" (result) : [rs] "d" (input1) , [rt] "d" (input2)) 236 #define CVMX_ROTRV(result, input1, input2) asm ("rotrv %[rd],%[rt],%[rs]" : [rd] "=d" (result) : [rt] "d" (input1) , [rs] "d" (input2)) 238 #define CVMX_DROTRV(result, input1, input2) asm ("drotrv %[rd],%[rt],%[rs]" : [rd] "=d" (result) : [rt] "d" (input1) , [rs] "d" (input2)) 239 #define CVMX_SEB(result, input1) asm ("seb %[rd],%[rt]" : [rd] "=d" (result) : [rt] "d" (input1)) 240 #define CVMX_SEH(result, input1) asm ("seh %[rd],%[rt]" : [rd] "=d" (result) : [rt] " [all...] |
/freebsd-11-stable/sys/net/ |
H A D | route.c | 143 static int rt_ifdelroute(const struct rtentry *rt, void *arg); 146 static void rt_notifydelete(struct rtentry *rt, struct rt_addrinfo *info); 151 static int rt_exportinfo(struct rtentry *rt, struct rt_addrinfo *info, 235 struct rtentry *rt = mem; local 237 rt->rt_pksent = counter_u64_alloc(how); 238 if (rt->rt_pksent == NULL) 241 RT_LOCK_INIT(rt); 249 struct rtentry *rt = mem; local 251 RT_LOCK_DESTROY(rt); 252 counter_u64_free(rt 258 struct rtentry *rt = mem; local 270 struct rtentry *rt = mem; local 412 struct rtentry *rt; local 499 rtfree(struct rtentry *rt) argument 588 struct rtentry *rt; local 756 struct rtentry *rt; local 838 rt_exportinfo(struct rtentry *rt, struct rt_addrinfo *info, int flags) argument 928 struct rtentry *rt; local 1025 struct rtentry *rt; local 1062 struct rtentry *rt; local 1126 rt_ifdelroute(const struct rtentry *rt, void *arg) argument 1177 struct rtentry *rt; local 1240 rt_notifydelete(struct rtentry *rt, struct rt_addrinfo *info) argument 1318 struct rtentry *rt; local 1446 struct rtentry *rt; // *rto = NULL; local 1576 struct rtentry *rt, *rt_old; local 1812 struct rtentry *rt = NULL; local 1919 rt_setmetrics(const struct rt_addrinfo *info, struct rtentry *rt) argument 1949 rt_setgate(struct rtentry *rt, struct sockaddr *dst, struct sockaddr *gate) argument 2017 struct rtentry *rt = NULL; local 2282 rt_routemsg(int cmd, struct ifnet *ifp, int error, struct rtentry *rt, int fibnum) argument 2298 rt_newaddrmsg(int cmd, struct ifaddr *ifa, int error, struct rtentry *rt) argument 2309 rt_newaddrmsg_fib(int cmd, struct ifaddr *ifa, int error, struct rtentry *rt, int fibnum) argument [all...] |
H A D | radix_mpath.c | 92 struct rtentry *rt; local 95 rt = (struct rtentry *)rn; 96 i += rt->rt_weight; 103 rt_mpath_matchgate(struct rtentry *rt, struct sockaddr *gate) argument 107 if (!gate || !rt->rt_gateway) 111 rn = (struct radix_node *)rt; 113 rt = (struct rtentry *)rn; 120 if (rt->rt_gateway->sa_family == AF_LINK) { 121 if (!memcmp(rt->rt_ifa->ifa_addr, gate, gate->sa_len)) 130 if (rt 143 rt_mpath_deldup(struct rtentry *headrt, struct rtentry *rt) argument 170 rt_mpath_conflict(struct rib_head *rnh, struct rtentry *rt, struct sockaddr *netmask) argument 213 struct rtentry *rt; local 250 struct rtentry *rt; local [all...] |
/freebsd-11-stable/lib/librt/tests/ |
H A D | Makefile | 3 LIBADD= rt
|
/freebsd-11-stable/sys/netinet/ |
H A D | in_rmx.c | 64 struct rtentry *rt = (struct rtentry *)treenodes; local 65 struct sockaddr_in *sin = (struct sockaddr_in *)rt_key(rt); 82 if (rt->rt_flags & RTF_HOST) { 83 if (in_broadcast(sin->sin_addr, rt->rt_ifp)) { 84 rt->rt_flags |= RTF_BROADCAST; 85 } else if (satosin(rt->rt_ifa->ifa_addr)->sin_addr.s_addr == 87 rt->rt_flags |= RTF_LOCAL; 91 rt->rt_flags |= RTF_MULTICAST; 93 if (rt->rt_ifp != NULL) { 100 if (rt 156 in_ifadownkill(const struct rtentry *rt, void *xap) argument [all...] |
H A D | if_atm.c | 88 * atm_rtrequest: handle ATM rt request (in support of generic code) 90 * "rt" = route entry 94 atm_rtrequest(int req, struct rtentry *rt, struct rt_addrinfo *info) argument 96 struct sockaddr *gate = rt->rt_gateway; 107 if (rt->rt_flags & RTF_GATEWAY) /* link level requests only */ 123 if ((rt->rt_flags & RTF_HOST) == 0) { 124 rt_setgate(rt,rt_key(rt),(struct sockaddr *)&null_sdl); 125 gate = rt->rt_gateway; 126 SDL(gate)->sdl_type = rt 321 atmresolve(struct rtentry *rt, struct mbuf *m, const struct sockaddr *dst, struct atm_pseudohdr *desten) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ath_rate/sample/ |
H A D | sample.h | 136 const HAL_RATE_TABLE *rt = sc->sc_currates; local 148 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); 150 if (rix >= rt->rateCount) { 152 rix, rt->rateCount, sc->sc_curmode); 155 cix = rt->info[rix].controlRate; 161 switch (rt->info[rix].phy) { 189 rt->info[rix].phy == IEEE80211_T_OFDM) { 195 cix = rt->info[sc->sc_protrix].controlRate; 207 KASSERT(cix < rt->rateCount, 208 ("bogus cix %d, max %u, mode %u\n", cix, rt [all...] |
H A D | sample.c | 143 dot11rate(const HAL_RATE_TABLE *rt, int rix) argument 147 return rt->info[rix].phy == IEEE80211_T_HT ? 148 rt->info[rix].dot11Rate : (rt->info[rix].dot11Rate & IEEE80211_RATE_VAL) / 2; 152 dot11rate_label(const HAL_RATE_TABLE *rt, int rix) argument 156 return rt->info[rix].phy == IEEE80211_T_HT ? "MCS" : "Mb "; 164 pick_best_rate(struct ath_node *an, const HAL_RATE_TABLE *rt, argument 181 (rt->info[rix].phy != IEEE80211_T_HT)) { 249 const HAL_RATE_TABLE *rt, int size_bin) 251 #define DOT11RATE(ix) (rt 248 pick_sample_rate(struct sample_softc *ssc , struct ath_node *an, const HAL_RATE_TABLE *rt, int size_bin) argument 400 const HAL_RATE_TABLE *rt = sc->sc_currates; local 441 const HAL_RATE_TABLE *rt = sc->sc_currates; local 492 const HAL_RATE_TABLE *rt = sc->sc_currates; local 693 const HAL_RATE_TABLE *rt = sc->sc_currates; local 725 const HAL_RATE_TABLE *rt = sc->sc_currates; local 861 const HAL_RATE_TABLE *rt = sc->sc_currates; local 1042 const HAL_RATE_TABLE *rt = sc->sc_currates; local 1174 const HAL_RATE_TABLE *rt = sc->sc_currates; local 1250 const HAL_RATE_TABLE *rt = sc->sc_currates; local [all...] |
/freebsd-11-stable/sys/mips/mips/ |
H A D | db_disasm.c | 162 if (i.RType.func == OP_ADDU && i.RType.rt == 0) { 179 reg_name[i.RType.rt], i.RType.shamt); 189 reg_name[i.RType.rt], reg_name[i.RType.rs]); 215 reg_name[i.RType.rs], reg_name[i.RType.rt]); 223 db_printf("\t%d", (i.RType.rs << 5) | i.RType.rt); 228 reg_name[i.RType.rs], reg_name[i.RType.rt]); 233 db_printf("%s\t%s,", bcond_name[i.IType.rt], 247 if (i.IType.rs == 0 && i.IType.rt == 0) { 255 reg_name[i.IType.rs], reg_name[i.IType.rt]); 266 "ft"[i.RType.rt [all...] |
/freebsd-11-stable/tests/sys/aio/ |
H A D | Makefile | 15 LIBADD.aio_test+= util rt 16 LIBADD.lio_test+= rt
|
/freebsd-11-stable/sys/netinet6/ |
H A D | ip6_forward.c | 91 struct rtentry *rt = NULL; local 114 /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard) */ 134 /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard) */ 175 rt = rin6.ro_rt; 198 if (in6_setscope(&src_in6, rt->rt_ifp, &outzone)) { 212 in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard); 222 if_name(m->m_pkthdr.rcvif), if_name(rt->rt_ifp)); 239 in6_setscope(&dst_in6, rt->rt_ifp, &outzone) != 0 || 246 if (rt->rt_flags & RTF_GATEWAY) 247 dst = (struct sockaddr_in6 *)rt [all...] |
H A D | in6_rmx.c | 109 struct rtentry *rt = (struct rtentry *)treenodes; local 110 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)rt_key(rt); 113 rt->rt_flags |= RTF_MULTICAST; 129 if (rt->rt_flags & RTF_HOST) { 130 if (IN6_ARE_ADDR_EQUAL(&satosin6(rt->rt_ifa->ifa_addr) 133 rt->rt_flags |= RTF_LOCAL; 137 if (rt->rt_ifp != NULL) { 144 if (rt->rt_mtu == 0) { 145 rt->rt_mtu = IN6_LINKMTU(rt 164 in6_mtuexpire(struct rtentry *rt, void *rock) argument [all...] |
H A D | ip6_mroute.c | 305 #define MF6CFIND(o, g, rt) do { \ 307 rt = NULL; \ 312 rt = _rt; \ 317 if (rt == NULL) { \ 491 struct mf6c *rt; local 498 MF6CFIND(req->src.sin6_addr, req->grp.sin6_addr, rt); 499 if (rt == NULL) { 502 req->pktcnt = rt->mf6c_pkt_cnt; 503 req->bytecnt = rt->mf6c_byte_cnt; 504 req->wrong_if = rt 601 struct mf6c *rt; local 814 struct mf6c *rt; local 993 struct mf6c *rt; local 1070 struct mf6c *rt; local 1364 ip6_mdq(struct mbuf *m, struct ifnet *ifp, struct mf6c *rt) argument [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5210/ |
H A D | ar5210_phy.c | 70 HAL_RATE_TABLE *rt; local 73 rt = &ar5210_11a_table; 76 rt = &ar5210_turbo_table; 83 ath_hal_setupratetable(ah, rt); 84 return rt;
|
/freebsd-11-stable/tools/tools/net80211/wlantxtime/ |
H A D | wlantxtime.c | 67 ieee80211_compute_duration(const struct ieee80211_rate_table *rt, 228 ieee80211_setup_ratetable(struct ieee80211_rate_table *rt) argument 235 for (i = 0; i < nitems(rt->rateCodeToIndex); i++) 236 rt->rateCodeToIndex[i] = (uint8_t) -1; 237 for (i = 0; i < rt->rateCount; i++) { 238 uint8_t code = rt->info[i].dot11Rate; 239 uint8_t cix = rt->info[i].ctlRateIndex; 240 uint8_t ctl_rate = rt->info[cix].dot11Rate; 242 rt->rateCodeToIndex[code] = i; 248 rt 329 ieee80211_compute_duration(const struct ieee80211_rate_table *rt, uint32_t frameLen, uint16_t rate, int isShortPreamble) argument 399 ieee80211_compute_duration_ht(const struct ieee80211_rate_table *rt, uint32_t frameLen, uint16_t rate, int streams, int isht40, int isShortGI) argument 469 checkpreamble(const struct ieee80211_rate_table *rt, uint8_t rix, int isShortPreamble, int verbose) argument 511 const struct ieee80211_rate_table *rt; local [all...] |
/freebsd-11-stable/sys/netgraph/bluetooth/socket/ |
H A D | ng_btsocket_sco.c | 376 ng_btsocket_sco_rtentry_p rt) 390 pcb = ng_btsocket_sco_pcb_by_addrs(&rt->src, &ep->bdaddr); 449 ng_btsocket_sco_rtentry_p rt) 465 rt->src.b[5], rt->src.b[4], rt->src.b[3], 466 rt->src.b[2], rt->src.b[1], rt->src.b[0], 472 pcb = ng_btsocket_sco_pcb_by_addr(&rt 375 ng_btsocket_sco_process_lp_con_cfm(struct ng_mesg *msg, ng_btsocket_sco_rtentry_p rt) argument 448 ng_btsocket_sco_process_lp_con_ind(struct ng_mesg *msg, ng_btsocket_sco_rtentry_p rt) argument 550 ng_btsocket_sco_process_lp_discon_ind(struct ng_mesg *msg, ng_btsocket_sco_rtentry_p rt) argument 636 ng_btsocket_sco_send_lp_con_rsp(ng_btsocket_sco_rtentry_p rt, bdaddr_p dst, int status) argument 706 ng_btsocket_sco_rtentry_t *rt = NULL; local 818 ng_btsocket_sco_rtentry_t *rt = NULL; local 937 ng_btsocket_sco_rtentry_p rt = NULL; local 1047 ng_btsocket_sco_rtentry_p rt = NULL; local 1358 ng_btsocket_sco_rtentry_t *rt = NULL; local [all...] |
H A D | ng_btsocket_l2cap_raw.c | 370 ng_btsocket_l2cap_rtentry_t *rt = NULL; local 380 rt = (ng_btsocket_l2cap_rtentry_t *) 382 if (rt == NULL) { 383 rt = malloc(sizeof(*rt), 386 if (rt == NULL) 389 NG_HOOK_SET_PRIVATE(hook, rt); 394 rt, next); 398 bcopy(msg->data, &rt->src, sizeof(rt 460 ng_btsocket_l2cap_rtentry_p rt = NULL; local 659 ng_btsocket_l2cap_rtentry_t *rt = NULL; local 712 ng_btsocket_l2cap_rtentry_t *rt = NULL; local [all...] |
H A D | ng_btsocket_l2cap.c | 415 ng_btsocket_l2cap_rtentry_p rt) 523 ng_btsocket_l2cap_rtentry_p rt) 590 ng_btsocket_l2cap_rtentry_p rt) 607 rt->src.b[5], rt->src.b[4], rt->src.b[3], 608 rt->src.b[2], rt->src.b[1], rt->src.b[0], 615 pcb = ng_btsocket_l2cap_pcb_by_addr(&rt 414 ng_btsocket_l2cap_process_l2ca_con_req_rsp(struct ng_mesg *msg, ng_btsocket_l2cap_rtentry_p rt) argument 522 ng_btsocket_l2cap_process_l2ca_con_rsp_rsp(struct ng_mesg *msg, ng_btsocket_l2cap_rtentry_p rt) argument 589 ng_btsocket_l2cap_process_l2ca_con_ind(struct ng_mesg *msg, ng_btsocket_l2cap_rtentry_p rt) argument 700 ng_btsocket_l2cap_process_l2ca_enc_change(struct ng_mesg *msg, ng_btsocket_l2cap_rtentry_p rt) argument 748 ng_btsocket_l2cap_process_l2ca_cfg_req_rsp(struct ng_mesg *msg, ng_btsocket_l2cap_rtentry_p rt) argument 865 ng_btsocket_l2cap_process_l2ca_cfg_rsp_rsp(struct ng_mesg *msg, ng_btsocket_l2cap_rtentry_p rt) argument 960 ng_btsocket_l2cap_process_l2ca_cfg_ind(struct ng_mesg *msg, ng_btsocket_l2cap_rtentry_p rt) argument 1045 ng_btsocket_l2cap_process_l2ca_discon_rsp(struct ng_mesg *msg, ng_btsocket_l2cap_rtentry_p rt) argument 1102 ng_btsocket_l2cap_process_l2ca_discon_ind(struct ng_mesg *msg, ng_btsocket_l2cap_rtentry_p rt) argument 1159 ng_btsocket_l2cap_process_l2ca_write_rsp(struct ng_mesg *msg, ng_btsocket_l2cap_rtentry_p rt) argument 1266 ng_btsocket_l2cap_send_l2ca_con_rsp_req(u_int32_t token, ng_btsocket_l2cap_rtentry_p rt, bdaddr_p dst, int ident, int lcid, int result, int linktype) argument 1417 ng_btsocket_l2cap_rtentry_t *rt = NULL; local 1645 ng_btsocket_l2cap_rtentry_t *rt = NULL; local 1698 ng_btsocket_l2cap_rtentry_p rt = NULL; local 1842 ng_btsocket_l2cap_rtentry_p rt = NULL; local 2179 ng_btsocket_l2cap_rtentry_t *rt = NULL; local [all...] |
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5211/ |
H A D | ar5211_phy.c | 86 HAL_RATE_TABLE *rt; local 89 rt = &ar5211_11a_table; 92 rt = &ar5211_11b_table; 95 rt = &ar5211_turbo_table; 102 ath_hal_setupratetable(ah, rt); 103 return rt;
|
/freebsd-11-stable/tests/sys/mqueue/ |
H A D | Makefile | 17 LIBADD+= rt
|
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_phy.c | 165 HAL_RATE_TABLE *rt; local 168 rt = &ar5212_11a_table; 171 rt = &ar5212_11b_table; 177 rt = &ar5212_11g_table; 181 rt = &ar5212_turboa_table; 184 rt = &ar5212_turbog_table; 188 rt = &ar5212_half_table; 192 rt = &ar5212_quarter_table; 199 ath_hal_setupratetable(ah, rt); 200 return rt; [all...] |