Home
last modified time | relevance | path

Searched refs:rt (Results 1 – 25 of 333) sorted by relevance

12345678910>>...14

/freebsd/sys/contrib/openzfs/module/zfs/
H A Drange_tree.c79 rs_copy(range_seg_t *src, range_seg_t *dest, range_tree_t *rt) in rs_copy() argument
81 ASSERT3U(rt->rt_type, <, RANGE_SEG_NUM_TYPES); in rs_copy()
83 switch (rt->rt_type) { in rs_copy()
100 range_tree_stat_verify(range_tree_t *rt) in range_tree_stat_verify() argument
107 for (rs = zfs_btree_first(&rt->rt_root, &where); rs != NULL; in range_tree_stat_verify()
108 rs = zfs_btree_next(&rt->rt_root, &where, &where)) { in range_tree_stat_verify()
109 uint64_t size = rs_get_end(rs, rt) - rs_get_start(rs, rt); in range_tree_stat_verify()
117 if (hist[i] != rt->rt_histogram[i]) { in range_tree_stat_verify()
120 (u_longlong_t)rt->rt_histogram[i]); in range_tree_stat_verify()
122 VERIFY3U(hist[i], ==, rt->rt_histogram[i]); in range_tree_stat_verify()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Drange_tree.h112 void (*rtop_create)(range_tree_t *rt, void *arg);
113 void (*rtop_destroy)(range_tree_t *rt, void *arg);
114 void (*rtop_add)(range_tree_t *rt, void *rs, void *arg);
115 void (*rtop_remove)(range_tree_t *rt, void *rs, void *arg);
116 void (*rtop_vacate)(range_tree_t *rt, void *arg);
120 rs_get_start_raw(const range_seg_t *rs, const range_tree_t *rt) in rs_get_start_raw() argument
122 ASSERT3U(rt->rt_type, <=, RANGE_SEG_NUM_TYPES); in rs_get_start_raw()
123 switch (rt->rt_type) { in rs_get_start_raw()
137 rs_get_end_raw(const range_seg_t *rs, const range_tree_t *rt) in rs_get_end_raw() argument
139 ASSERT3U(rt->rt_type, <=, RANGE_SEG_NUM_TYPES); in rs_get_end_raw()
[all …]
/freebsd/sys/net/route/
H A Droute_rtentry.c87 struct rtentry *rt = uma_zalloc(V_rtzone, M_NOWAIT | M_ZERO); in rt_alloc() local
88 if (rt == NULL) in rt_alloc()
90 rt->rte_flags = RTF_UP | (netmask == NULL ? RTF_HOST : 0); in rt_alloc()
94 rt_maskedcopy(dst, &rt->rt_dst, netmask); in rt_alloc()
96 bcopy(dst, &rt->rt_dst, dst->sa_len); in rt_alloc()
97 rt_key(rt) = &rt->rt_dst; in rt_alloc()
99 rt_mask(rt) = netmask; in rt_alloc()
101 return (rt); in rt_alloc()
105 destroy_rtentry(struct rtentry *rt) in destroy_rtentry() argument
108 struct nhop_object *nh = rt->rt_nhop; in destroy_rtentry()
[all …]
H A Droute_ctl.c79 static int change_route_byinfo(struct rib_head *rnh, struct rtentry *rt,
83 static int add_route_flags(struct rib_head *rnh, struct rtentry *rt,
86 static int add_route_flags_mpath(struct rib_head *rnh, struct rtentry *rt,
91 static int add_route(struct rib_head *rnh, struct rtentry *rt,
93 static int delete_route(struct rib_head *rnh, struct rtentry *rt,
95 static int rt_delete_conditional(struct rib_head *rnh, struct rtentry *rt,
294 rib_match_gw(const struct rtentry *rt, const struct nhop_object *nh, void *gw_sa) in rib_match_gw() argument
310 match_gw_one(const struct rtentry *rt, const struct nhop_object *nh, void *_data) in match_gw_one() argument
328 check_info_match_nhop(const struct rt_addrinfo *info, const struct rtentry *rt, in check_info_match_nhop() argument
334 if (info->rti_filter(rt, nh, info->rti_filterdata) == 0) in check_info_match_nhop()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsMTInstrInfo.td45 dag OutOperandList = (outs GPR32Opnd:$rt);
47 string AsmString = !strconcat(instr_asm, "\t$rt");
54 dag InOperandList = (ins GPR32Opnd:$rt, uimm1:$u, uimm3:$sel, uimm1:$h);
55 string AsmString = "mftr\t$rd, $rt, $u, $sel, $h";
62 dag InOperandList = (ins GPR32Opnd:$rt, uimm1:$u, uimm3:$sel, uimm1:$h);
63 string AsmString = "mttr\t$rt, $rd, $u, $sel, $h";
70 dag InOperandList = (ins GPR32Opnd:$rt);
71 string AsmString = "fork\t$rd, $rs, $rt";
117 def MFTC0 : MipsAsmPseudoInst<(outs GPR32Opnd:$rd), (ins COP0Opnd:$rt,
119 "mftc0 $rd, $rt, $sel">, ASE_MT;
[all …]
H A DMicroMips32r6InstrFormats.td68 bits<5> rt;
75 let Inst{25-21} = rt;
81 bits<5> rt;
88 let Inst{25-21} = rt;
104 bits<2> rt;
110 let Inst{9-8} = rt;
117 bits<5> rt;
122 let Inst{25-21} = rt;
144 bits<5> rt;
150 let Inst{25-21} = rt;
[all …]
H A DMicroMipsDSPInstrFormats.td27 bits<5> rt;
30 let Inst{25-21} = rt;
37 bits<5> rt;
41 let Inst{25-21} = rt;
48 bits<5> rt;
53 let Inst{25-21} = rt;
63 bits<5> rt;
66 let Inst{25-21} = rt;
74 bits<5> rt;
79 let Inst{25-21} = rt;
[all …]
/freebsd/usr.bin/netstat/
H A Droute_netlink.c163 p_path(struct snl_parsed_route *rt, bool is_mpath) in p_path() argument
171 gen_mask(rt->rtm_family, rt->rtm_dst_len, pmask); in p_path()
172 add_scopeid(rt->rta_dst, rt->rta_oif); in p_path()
173 add_scopeid(rt->rta_gw, rt->rta_oif); in p_path()
174 protrusion = p_sockaddr("destination", rt->rta_dst, pmask, rt->rta_rtflags, wid.dst); in p_path()
175 protrusion = p_sockaddr("gateway", rt->rta_gw, NULL, RTF_HOST, in p_path()
179 p_flags(rt->rta_rtflags | RTF_UP, buffer); in p_path()
181 xo_emit("{e:weight/%u}", rt->rtax_weight); in p_path()
183 xo_emit("{e:nhg-kidx/%u}", rt->rta_knh_id); in p_path()
185 xo_emit("{e:nhop-kidx/%u}", rt->rta_knh_id); in p_path()
[all …]
/freebsd/sys/netgraph/bluetooth/socket/
H A Dng_btsocket_sco.c378 ng_btsocket_sco_rtentry_p rt) in ng_btsocket_sco_process_lp_con_cfm() argument
392 pcb = ng_btsocket_sco_pcb_by_addrs(&rt->src, &ep->bdaddr); in ng_btsocket_sco_process_lp_con_cfm()
451 ng_btsocket_sco_rtentry_p rt) in ng_btsocket_sco_process_lp_con_ind() argument
467 rt->src.b[5], rt->src.b[4], rt->src.b[3], in ng_btsocket_sco_process_lp_con_ind()
468 rt->src.b[2], rt->src.b[1], rt->src.b[0], in ng_btsocket_sco_process_lp_con_ind()
474 pcb = ng_btsocket_sco_pcb_by_addr(&rt->src); in ng_btsocket_sco_process_lp_con_ind()
505 bcopy(&rt->src, &pcb1->src, sizeof(pcb1->src)); in ng_btsocket_sco_process_lp_con_ind()
510 pcb1->rt = rt; in ng_btsocket_sco_process_lp_con_ind()
516 error = ng_btsocket_sco_send_lp_con_rsp(rt, &ep->bdaddr, status); in ng_btsocket_sco_process_lp_con_ind()
546 ng_btsocket_sco_rtentry_p rt) in ng_btsocket_sco_process_lp_discon_ind() argument
[all …]
H A Dng_btsocket_l2cap.c414 ng_btsocket_l2cap_rtentry_p rt) in ng_btsocket_l2cap_process_l2ca_con_req_rsp() argument
522 ng_btsocket_l2cap_rtentry_p rt) in ng_btsocket_l2cap_process_l2ca_con_rsp_rsp() argument
589 ng_btsocket_l2cap_rtentry_p rt) in ng_btsocket_l2cap_process_l2ca_con_ind() argument
606 rt->src.b[5], rt->src.b[4], rt->src.b[3], in ng_btsocket_l2cap_process_l2ca_con_ind()
607 rt->src.b[2], rt->src.b[1], rt->src.b[0], in ng_btsocket_l2cap_process_l2ca_con_ind()
614 pcb = ng_btsocket_l2cap_pcb_by_addr(&rt->src, ip->psm); in ng_btsocket_l2cap_process_l2ca_con_ind()
644 bcopy(&rt->src, &pcb1->src, sizeof(pcb1->src)); in ng_btsocket_l2cap_process_l2ca_con_ind()
651 pcb1->rt = rt; in ng_btsocket_l2cap_process_l2ca_con_ind()
664 error = ng_btsocket_l2cap_send_l2ca_con_rsp_req(token, rt, in ng_btsocket_l2cap_process_l2ca_con_ind()
691 … int ng_btsocket_l2cap_process_l2ca_enc_change(struct ng_mesg *msg, ng_btsocket_l2cap_rtentry_p rt) in ng_btsocket_l2cap_process_l2ca_enc_change() argument
[all …]
H A Dng_btsocket_l2cap_raw.c371 ng_btsocket_l2cap_rtentry_t *rt = NULL; in ng_btsocket_l2cap_raw_input() local
381 rt = (ng_btsocket_l2cap_rtentry_t *) in ng_btsocket_l2cap_raw_input()
383 if (rt == NULL) { in ng_btsocket_l2cap_raw_input()
384 rt = malloc(sizeof(*rt), in ng_btsocket_l2cap_raw_input()
387 if (rt == NULL) in ng_btsocket_l2cap_raw_input()
390 NG_HOOK_SET_PRIVATE(hook, rt); in ng_btsocket_l2cap_raw_input()
395 rt, next); in ng_btsocket_l2cap_raw_input()
399 bcopy(msg->data, &rt->src, sizeof(rt->src)); in ng_btsocket_l2cap_raw_input()
400 rt->hook = hook; in ng_btsocket_l2cap_raw_input()
405 rt->src.b[5], rt->src.b[4], rt->src.b[3], in ng_btsocket_l2cap_raw_input()
[all …]
/freebsd/crypto/openssl/crypto/
H A Dmips_arch.h26 # define dmultu(rs,rt) argument
27 # define mflo(rd,rs,rt) dmulu rd,rs,rt argument
28 # define mfhi(rd,rs,rt) dmuhu rd,rs,rt argument
30 # define multu(rs,rt) argument
31 # define mflo(rd,rs,rt) mulu rd,rs,rt argument
32 # define mfhi(rd,rs,rt) muhu rd,rs,rt argument
34 # define dmultu(rs,rt) dmultu rs,rt argument
35 # define multu(rs,rt) multu rs,rt argument
36 # define mflo(rd,rs,rt) mflo rd argument
37 # define mfhi(rd,rs,rt) mfhi rd argument
/freebsd/sys/net80211/
H A Dieee80211_phy.h105 ieee80211_ack_rate(const struct ieee80211_rate_table *rt, uint8_t rate) in ieee80211_ack_rate() argument
114 uint8_t cix = rt->info[rt->rateCodeToIndex[rate & IEEE80211_RATE_VAL]].ctlRateIndex; in ieee80211_ack_rate()
116 return rt->info[cix].dot11Rate; in ieee80211_ack_rate()
120 ieee80211_ctl_rate(const struct ieee80211_rate_table *rt, uint8_t rate) in ieee80211_ctl_rate() argument
129 uint8_t cix = rt->info[rt->rateCodeToIndex[rate & IEEE80211_RATE_VAL]].ctlRateIndex; in ieee80211_ctl_rate()
131 return rt->info[cix].dot11Rate; in ieee80211_ctl_rate()
135 ieee80211_rate2phytype(const struct ieee80211_rate_table *rt, uint8_t rate) in ieee80211_rate2phytype() argument
144 uint8_t rix = rt->rateCodeToIndex[rate & IEEE80211_RATE_VAL]; in ieee80211_rate2phytype()
146 return rt->info[rix].phy; in ieee80211_rate2phytype()
150 ieee80211_isratevalid(const struct ieee80211_rate_table *rt, uint8_t rate) in ieee80211_isratevalid() argument
[all …]
H A Dieee80211_phy.c299 ieee80211_setup_ratetable(struct ieee80211_rate_table *rt) in ieee80211_setup_ratetable() argument
306 for (i = 0; i < nitems(rt->rateCodeToIndex); i++) in ieee80211_setup_ratetable()
307 rt->rateCodeToIndex[i] = (uint8_t) -1; in ieee80211_setup_ratetable()
308 for (i = 0; i < rt->rateCount; i++) { in ieee80211_setup_ratetable()
309 uint8_t code = rt->info[i].dot11Rate; in ieee80211_setup_ratetable()
310 uint8_t cix = rt->info[i].ctlRateIndex; in ieee80211_setup_ratetable()
311 uint8_t ctl_rate = rt->info[cix].dot11Rate; in ieee80211_setup_ratetable()
322 if (rt->info[i].phy == IEEE80211_T_HT) { in ieee80211_setup_ratetable()
328 rt->rateCodeToIndex[code] = i; in ieee80211_setup_ratetable()
340 rt->info[i].lpAckDuration = ieee80211_compute_duration(rt, in ieee80211_setup_ratetable()
[all …]
/freebsd/sys/netinet6/
H A Dip6_mroute.c302 #define MF6CFIND(o, g, rt) do { \ argument
304 rt = NULL; \
309 rt = _rt; \
314 if (rt == NULL) { \
488 struct mf6c *rt; in get_sg_cnt() local
495 MF6CFIND(req->src.sin6_addr, req->grp.sin6_addr, rt); in get_sg_cnt()
496 if (rt == NULL) { in get_sg_cnt()
499 req->pktcnt = rt->mf6c_pkt_cnt; in get_sg_cnt()
500 req->bytecnt = rt->mf6c_byte_cnt; in get_sg_cnt()
501 req->wrong_if = rt->mf6c_wrong_if; in get_sg_cnt()
[all …]
/freebsd/sys/netinet/
H A Dip_mroute.c370 struct mfc *rt; in mfc_find() local
379 LIST_FOREACH(rt, &V_mfchashtbl[MFCHASH(*o, *g)], mfc_hash) { in mfc_find()
380 if (in_hosteq(rt->mfc_origin, *o) && in mfc_find()
381 in_hosteq(rt->mfc_mcastgrp, *g) && in mfc_find()
382 buf_ring_empty(rt->mfc_stall_ring)) in mfc_find()
386 return (rt); in mfc_find()
392 struct mfc *rt; in mfc_alloc() local
393 rt = malloc(sizeof(*rt), M_MRTABLE, M_NOWAIT | M_ZERO); in mfc_alloc()
394 if (rt == NULL) in mfc_alloc()
395 return rt; in mfc_alloc()
[all …]
/freebsd/tools/tools/net80211/wlantxtime/
H A Dwlantxtime.c65 ieee80211_compute_duration(const struct ieee80211_rate_table *rt,
226 ieee80211_setup_ratetable(struct ieee80211_rate_table *rt) in ieee80211_setup_ratetable() argument
233 for (i = 0; i < nitems(rt->rateCodeToIndex); i++) in ieee80211_setup_ratetable()
234 rt->rateCodeToIndex[i] = (uint8_t) -1; in ieee80211_setup_ratetable()
235 for (i = 0; i < rt->rateCount; i++) { in ieee80211_setup_ratetable()
236 uint8_t code = rt->info[i].dot11Rate; in ieee80211_setup_ratetable()
237 uint8_t cix = rt->info[i].ctlRateIndex; in ieee80211_setup_ratetable()
238 uint8_t ctl_rate = rt->info[cix].dot11Rate; in ieee80211_setup_ratetable()
240 rt->rateCodeToIndex[code] = i; in ieee80211_setup_ratetable()
246 rt->rateCodeToIndex[code] = i; in ieee80211_setup_ratetable()
[all …]
/freebsd/sys/dev/ath/ath_rate/sample/
H A Dsample.c176 #define MCS_IDX(ix) (rt->info[ix].dot11Rate) in ath_rate_sample_find_min_pktlength()
177 const HAL_RATE_TABLE *rt = sc->sc_currates; in ath_rate_sample_find_min_pktlength() local
186 if (rt->info[rix0].phy != IEEE80211_T_HT) { in ath_rate_sample_find_min_pktlength()
293 dot11rate(const HAL_RATE_TABLE *rt, int rix) in dot11rate() argument
297 return rt->info[rix].phy == IEEE80211_T_HT ? in dot11rate()
298 rt->info[rix].dot11Rate : (rt->info[rix].dot11Rate & IEEE80211_RATE_VAL) / 2; in dot11rate()
302 dot11rate_label(const HAL_RATE_TABLE *rt, int rix) in dot11rate_label() argument
306 return rt->info[rix].phy == IEEE80211_T_HT ? "MCS" : "Mb "; in dot11rate_label()
314 pick_best_rate(struct ath_node *an, const HAL_RATE_TABLE *rt, in pick_best_rate() argument
331 (rt->info[rix].phy != IEEE80211_T_HT)) { in pick_best_rate()
[all …]
H A Dsample.h135 const HAL_RATE_TABLE *rt = sc->sc_currates; in calc_usecs_unicast_packet() local
147 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); in calc_usecs_unicast_packet()
149 if (rix >= rt->rateCount) { in calc_usecs_unicast_packet()
151 rix, rt->rateCount, sc->sc_curmode); in calc_usecs_unicast_packet()
154 cix = rt->info[rix].controlRate; in calc_usecs_unicast_packet()
160 switch (rt->info[rix].phy) { in calc_usecs_unicast_packet()
188 rt->info[rix].phy == IEEE80211_T_OFDM) { in calc_usecs_unicast_packet()
194 cix = rt->info[sc->sc_protrix].controlRate; in calc_usecs_unicast_packet()
206 KASSERT(cix < rt->rateCount, in calc_usecs_unicast_packet()
207 ("bogus cix %d, max %u, mode %u\n", cix, rt->rateCount, in calc_usecs_unicast_packet()
[all …]
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_phy.c46 const HAL_RATE_TABLE *rt, u_int8_t rates_array[], u_int8_t chainmask);
48 const HAL_RATE_TABLE *rt, u_int8_t rates_array[], int rt_offset,
51 const HAL_RATE_TABLE *rt, HAL_BOOL is40, u_int8_t rates_array[],
55 const HAL_RATE_TABLE *rt, HAL_BOOL is40,
60 const HAL_RATE_TABLE *rt, HAL_BOOL is40,
314 HAL_RATE_TABLE *rt; in ar9300_get_rate_table() local
318 rt = &ar9300_11a_table; in ar9300_get_rate_table()
322 rt = &ar9300_11a_half_table; in ar9300_get_rate_table()
328 rt = &ar9300_11a_quarter_table; in ar9300_get_rate_table()
333 rt = &ar9300_11b_table; in ar9300_get_rate_table()
[all …]
/freebsd/sbin/routed/
H A Dtrace.c648 trace_upslot(struct rt_entry *rt, in trace_upslot() argument
665 (int)(rts - rt->rt_spares), in trace_upslot()
666 rtname(rt->rt_dst, rt->rt_mask, rts->rts_gate)); in trace_upslot()
668 (rts != rt->rt_spares in trace_upslot()
669 || AGE_RT(rt->rt_state,new->rts_ifp))); in trace_upslot()
673 (int)(rts - rt->rt_spares), in trace_upslot()
674 rtname(rt->rt_dst, rt->rt_mask, rts->rts_gate)); in trace_upslot()
678 rts != rt->rt_spares || AGE_RT(rt->rt_state, in trace_upslot()
679 rt->rt_ifp)); in trace_upslot()
690 && (rts != rt->rt_spares in trace_upslot()
[all …]
H A Dif.c411 struct rt_entry *rt; in check_remote() local
417 rt = rtfind(ifp->int_addr); in check_remote()
418 if (rt != NULL in check_remote()
419 && rt->rt_ifp != 0 in check_remote()
421 rt->rt_ifp->int_net, rt->rt_ifp->int_mask)) in check_remote()
650 struct rt_entry *rt; in ifinit() local
1138 rt = rtget(myaddr, HOST_MASK); in ifinit()
1139 if (rt != NULL) { in ifinit()
1140 if (rt->rt_ifp != ifp in ifinit()
1141 || rt->rt_router != loopaddr) { in ifinit()
[all …]
H A Dtable.c817 struct rt_entry *rt; in kern_check_static() local
830 rt = rtget(k->k_dst, k->k_mask); in kern_check_static()
831 if (rt != NULL) { in kern_check_static()
832 if (!(rt->rt_state & RS_STATIC)) in kern_check_static()
833 rtchange(rt, rt->rt_state | RS_STATIC, &new, 0); in kern_check_static()
1561 struct rt_entry *rt; in del_static() local
1580 rt = rtget(dst, mask); in del_static()
1581 if (rt != NULL && (rt->rt_state & RS_STATIC)) in del_static()
1582 rtbad(rt); in del_static()
1670 struct rt_entry *rt; in rtget() local
[all …]
/freebsd/sys/dev/rtwn/rtl8192c/
H A Dr92c_rom.c86 struct rtwn_r92c_txpwr *rt = rs->rs_txpwr; in r92c_parse_rom() local
101 rt->cck_tx_pwr[i][j] = rom->cck_tx_pwr[i][j]; in r92c_parse_rom()
102 rt->ht40_1s_tx_pwr[i][j] = rom->ht40_1s_tx_pwr[i][j]; in r92c_parse_rom()
105 rt->ht40_2s_tx_pwr_diff[0][j] = in r92c_parse_rom()
107 rt->ht20_tx_pwr_diff[0][j] = in r92c_parse_rom()
110 rt->ofdm_tx_pwr_diff[0][j] = in r92c_parse_rom()
112 rt->ht40_max_pwr[0][j] = in r92c_parse_rom()
114 rt->ht20_max_pwr[0][j] = in r92c_parse_rom()
118 rt->ht40_2s_tx_pwr_diff[1][j] = in r92c_parse_rom()
120 rt->ht20_tx_pwr_diff[1][j] = in r92c_parse_rom()
[all …]
/freebsd/sys/powerpc/fpu/
H A Dfpu_emu.c265 int ra, rb, rc, rt, type, mask, fsr, cx, bf, setcr; in fpu_execute() local
325 rt = instr.i_x.i_rt; in fpu_execute()
326 a = (int *)&fs->fpr[rt].fpr; in fpu_execute()
355 rt = instr.i_x.i_rt; in fpu_execute()
372 rt = instr.i_d.i_rt; in fpu_execute()
385 fpu_explode(fe, fp = &fe->fe_f1, FTYPE_DBL, rt); in fpu_execute()
393 if (copyout(&fs->fpr[rt].fpr, (void *)addr, in fpu_execute()
402 if (copyin((const void *)addr, &fs->fpr[rt].fpr, in fpu_execute()
406 fpu_explode(fe, fp = &fe->fe_f1, type, rt); in fpu_execute()
408 (u_int *)&fs->fpr[rt].fpr); in fpu_execute()
[all …]

12345678910>>...14