Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Drange_tree.c227 rt->rt_ops->rtop_create(rt, rt->rt_arg); in range_tree_create_impl()
245 rt->rt_ops->rtop_destroy(rt, rt->rt_arg); in range_tree_destroy()
259 rt->rt_ops->rtop_remove(rt, rs, rt->rt_arg); in range_tree_adjust_fill()
262 rt->rt_ops->rtop_add(rt, rs, rt->rt_arg); in range_tree_adjust_fill()
304 rt->rt_ops->rtop_remove(rt, rs, rt->rt_arg); in range_tree_add_impl()
400 rt->rt_ops->rtop_add(rt, rs, rt->rt_arg); in range_tree_add_impl()
477 rt->rt_ops->rtop_remove(rt, rs, rt->rt_arg); in range_tree_remove_impl()
496 rt->rt_ops->rtop_add(rt, &newseg, rt->rt_arg); in range_tree_remove_impl()
547 rt->rt_ops->rtop_remove(rt, rs, rt->rt_arg); in range_tree_resize_segment()
554 rt->rt_ops->rtop_add(rt, rs, rt->rt_arg); in range_tree_resize_segment()
[all …]
H A Dspace_reftree.c110 space_reftree_add_map(avl_tree_t *t, range_tree_t *rt, int64_t refcnt) in space_reftree_add_map() argument
114 for (range_seg_t *rs = zfs_btree_first(&rt->rt_root, &where); rs; rs = in space_reftree_add_map()
115 zfs_btree_next(&rt->rt_root, &where, &where)) { in space_reftree_add_map()
116 space_reftree_add_seg(t, rs_get_start(rs, rt), rs_get_end(rs, in space_reftree_add_map()
117 rt), refcnt); in space_reftree_add_map()
126 space_reftree_generate_map(avl_tree_t *t, range_tree_t *rt, int64_t minref) in space_reftree_generate_map() argument
132 range_tree_vacate(rt, NULL, NULL); in space_reftree_generate_map()
145 range_tree_add(rt, start, end - start); in space_reftree_generate_map()
H A Dspace_map.c404 VERIFY0(range_tree_space(rt)); in space_map_load_length()
409 smla.smla_rt = rt; in space_map_load_length()
416 range_tree_vacate(rt, NULL, NULL); in space_map_load_length()
448 if (rt->rt_histogram[i] != 0) in space_map_histogram_verify()
467 ASSERT(space_map_histogram_verify(sm, rt)); in space_map_histogram_add()
679 zfs_btree_t *t = &rt->rt_root; in space_map_write_impl()
685 uint64_t length = (rs_get_end(rs, rt) - rs_get_start(rs, rt)) >> in space_map_write_impl()
751 if (range_tree_is_empty(rt)) { in space_map_write()
762 uint64_t rt_space = range_tree_space(rt); in space_map_write()
771 VERIFY3U(range_tree_space(rt), ==, rt_space); in space_map_write()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtables.c191 for (rt = rh->rt_forw; rt != (struct rt_entry *)rh; rt = rt->rt_forw) { in rtlookup()
261 rt = (struct rt_entry *)malloc(sizeof (*rt)); in rtadd()
382 rt->rt_prefix_length, rt->rt_ifp->int_name, in rtchange()
431 &rt->rt_router, rt->rt_prefix_length, in rtdown()
432 rt->rt_ifp->int_name, rt->rt_flags); in rtdown()
485 rt = rt->rt_forw) { in rtpurgeif()
516 rt = rt->rt_forw) { in rtchangeall()
518 rtchange(rt, &rt->rt_router, in rtchangeall()
519 rt->rt_metric, rt->rt_ifp); in rtchangeall()
557 rt->rt_metric, rt->rt_timer); in rtdumpentry()
[all …]
H A Dtimer.c54 struct rt_entry *rt; in timer() local
107 for (rt = rh->rt_forw; rt != (struct rt_entry *)rh; in timer()
108 rt = rt->rt_forw) { in timer()
114 rt->rt_state &= ~RTS_CHANGED; in timer()
117 rt->rt_timer += alarmtime; in timer()
119 rt = rt->rt_back; in timer()
120 rtdelete(rt->rt_forw); in timer()
124 rtdown(rt); in timer()
161 struct rt_entry *rt; in term() local
172 for (rt = rh->rt_forw; rt != (struct rt_entry *)rh; in term()
[all …]
H A Doutput.c136 struct rt_entry *rt; in supply() local
157 for (rt = rh->rt_forw; rt != (struct rt_entry *)rh; in supply()
158 rt = rt->rt_forw) { in supply()
160 if (IN6_IS_ADDR_LINKLOCAL(&rt->rt_dst)) in supply()
166 if (rt->rt_state & RTS_PRIVATE) in supply()
173 if (splith && rt->rt_ifp != NULL && in supply()
175 rt->rt_ifp->int_ifbase) == 0) { in supply()
181 rtmetric = rt->rt_metric; in supply()
189 (rt->rt_state & rtstate) == 0) in supply()
203 n->rip6_prefix = rt->rt_dst; in supply()
[all …]
H A Dtrace.c169 if (rt != NULL) { in traceaction()
175 rt->rt_prefix_length); in traceaction()
179 rt->rt_metric); in traceaction()
180 if (rt->rt_ifp != NULL) { in traceaction()
182 (rt->rt_ifp->int_name != NULL) ? in traceaction()
183 rt->rt_ifp->int_name : "(noname)"); in traceaction()
188 if ((rt->rt_state & p->t_bits) == 0) in traceaction()
198 if (rt->rt_flags & (RTF_UP | RTF_GATEWAY)) { in traceaction()
202 if ((rt->rt_flags & p->t_bits) == 0) in traceaction()
213 if (!tracepackets && rt != NULL && rt->rt_ifp != NULL) in traceaction()
[all …]
H A Dinput.c131 struct rt_entry *rt; in rip_input() local
245 n->rip6_metric = (rt == NULL ? in rip_input()
247 min(rt->rt_metric, HOPCNT_INFINITY)); in rip_input()
431 if (rt == NULL) { in rip_input()
448 rt->rt_metric == HOPCNT_INFINITY) in rip_input()
466 if (n->rip6_metric != rt->rt_metric || in rip_input()
467 rt->rt_ifp != ifp) { in rip_input()
471 rt->rt_timer = 0; in rip_input()
474 (rt->rt_timer > (EXPIRE_TIME / 2) && in rip_input()
475 rt->rt_metric == n->rip6_metric)) { in rip_input()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Drange_tree.h127 switch (rt->rt_type) { in rs_get_start_raw()
144 switch (rt->rt_type) { in rs_get_end_raw()
161 switch (rt->rt_type) { in rs_get_fill_raw()
182 return ((rs_get_start_raw(rs, rt) << rt->rt_shift) + rt->rt_start); in rs_get_start()
188 return ((rs_get_end_raw(rs, rt) << rt->rt_shift) + rt->rt_start); in rs_get_end()
194 return (rs_get_fill_raw(rs, rt) << rt->rt_shift); in rs_get_fill()
201 switch (rt->rt_type) { in rs_set_start_raw()
246 rt)); in rs_set_fill_raw()
261 rs_set_start_raw(rs, rt, (start - rt->rt_start) >> rt->rt_shift); in rs_set_start()
269 rs_set_end_raw(rs, rt, (end - rt->rt_start) >> rt->rt_shift); in rs_set_end()
[all …]
H A Dspace_map.h201 int space_map_load(space_map_t *sm, range_tree_t *rt, maptype_t maptype);
202 int space_map_load_length(space_map_t *sm, range_tree_t *rt, maptype_t maptype,
209 boolean_t space_map_histogram_verify(space_map_t *sm, range_tree_t *rt);
211 void space_map_histogram_add(space_map_t *sm, range_tree_t *rt,
217 uint64_t space_map_entries(space_map_t *sm, range_tree_t *rt);
220 void space_map_write(space_map_t *sm, range_tree_t *rt, maptype_t maptype,
222 uint64_t space_map_estimate_optimal_size(space_map_t *sm, range_tree_t *rt,
/illumos-gate/usr/src/uts/common/io/nxge/npi/
H A Dnpi.c77 rt->next_idx = 0; in npi_rtrace_buf_init()
79 rt->wrapped = B_FALSE; in npi_rtrace_buf_init()
92 idx = rt->next_idx; in npi_rtrace_update()
104 rt->next_idx++; in npi_rtrace_update()
105 if (rt->next_idx > rt->last_idx) { in npi_rtrace_update()
106 rt->next_idx = 0; in npi_rtrace_update()
116 idx = rt->next_idx; in npi_trace_update()
138 rt->next_idx++; in npi_trace_update()
139 if (rt->next_idx > rt->last_idx) { in npi_trace_update()
140 rt->next_idx = 0; in npi_trace_update()
[all …]
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhpi.c70 hpi_rtrace_buf_init(rtrace_t *rt) in hpi_rtrace_buf_init() argument
74 rt->next_idx = 0; in hpi_rtrace_buf_init()
75 rt->last_idx = MAX_RTRACE_ENTRIES - 1; in hpi_rtrace_buf_init()
76 rt->wrapped = B_FALSE; in hpi_rtrace_buf_init()
79 rt->buf[i].val_l32 = 0; in hpi_rtrace_buf_init()
80 rt->buf[i].val_h32 = 0; in hpi_rtrace_buf_init()
89 idx = rt->next_idx; in hpi_rtrace_update()
99 rt->next_idx++; in hpi_rtrace_update()
100 if (rt->next_idx > rt->last_idx) { in hpi_rtrace_update()
101 rt->next_idx = 0; in hpi_rtrace_update()
[all …]
/illumos-gate/usr/src/uts/common/io/ath/
H A Dath_rate.c79 ASSERT(rt != NULL); in ath_rate_update()
84 an->an_tx_mgtrate = rt->info[0].rateCode; in ath_rate_update()
102 rt->info[an->an_tx_rix0].shortPreamble; in ath_rate_update()
117 rt->info[rix].shortPreamble; in ath_rate_update()
126 rt->info[rix].shortPreamble; in ath_rate_update()
131 an->an_tx_rate3 = rt->info[0].rateCode; in ath_rate_update()
306 const HAL_RATE_TABLE *rt; in ath_rate_setup() local
330 rt = asc->asc_rates[mode]; in ath_rate_setup()
331 if (rt == NULL) in ath_rate_setup()
339 maxrates = rt->rateCount; in ath_rate_setup()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dtrace.c888 rtname(rt->rt_dst, rt->rt_mask, rts->rts_gate)); in trace_upslot()
896 rtname(rt->rt_dst, rt->rt_mask, rts->rts_gate)); in trace_upslot()
901 AGE_RT(rt->rt_state, rts->rts_origin, rt->rt_ifp)); in trace_upslot()
918 rtname(rt->rt_dst, rt->rt_mask, new->rts_gate)); in trace_upslot()
998 rtname(rt->rt_dst, rt->rt_mask, rt->rt_gate)); in trace_change()
1000 0, 0, 0, 0, AGE_RT(rt->rt_state, rt->rt_spares->rts_origin, in trace_change()
1001 rt->rt_ifp)); in trace_change()
1003 trace_bits(rs_bits, rt->rt_state, rt->rt_state != state); in trace_change()
1033 rtname(rt->rt_dst, rt->rt_mask, rt->rt_gate)); in trace_add_del()
1034 print_rts(rt->rt_spares, 0, 0, 0, 0, AGE_RT(rt->rt_state, in trace_add_del()
[all …]
H A Dtable.c1283 rtchange(rt, rt->rt_state, &new, 0); in rtm_lose()
2201 if (rt != NULL && (rt->rt_state & RS_STATIC)) in del_static()
2284 if (rt == NULL || rt->rt_dst != dst || rt->rt_mask != mask) in rtget()
2287 return (rt); in rtget()
2317 rt = rtmalloc(sizeof (*rt), "rtadd"); in rtadd()
2318 (void) memset(rt, 0, sizeof (*rt)); in rtadd()
2326 rt->rt_nodes->rn_key = (uint8_t *)&rt->rt_dst_sock; in rtadd()
2352 free(rt); in rtadd()
2447 if (!BETTER_LINK(rt, rts, rt->rt_spares)) in rtswitch()
2492 free(rt); in rtdelete()
[all …]
H A Drdisc.c356 struct rt_entry *rt; in rdisc_age() local
403 if (rt == NULL) { in rdisc_age()
422 if (rt == NULL) { in rdisc_age()
523 if (rt == NULL) { in del_rdisc()
599 if (rt != NULL) { in rdisc_sort()
617 rts = &rt->rt_spares[rt->rt_num_spares]; in rdisc_sort()
631 rt = NULL; in rdisc_sort()
683 if (rt != NULL) { in rdisc_sort()
726 if (rt == NULL) { in rdisc_sort()
823 rts_delete(rt, &rt->rt_spares[i]); in rdisc_sort()
[all …]
H A Dinput.c163 struct rt_entry *rt; in input() local
459 if (rt == NULL) { in input()
1020 if (rt == NULL) { in input()
1066 struct rt_entry *rt; in input_route() local
1083 rt = rtget(dst, mask); in input_route()
1086 if (rt == NULL) { in input_route()
1124 rts0 = rt->rt_spares; in input_route()
1166 rtchange(rt, rt->rt_state | rt_state, new, 0); in input_route()
1171 rtswitch(rt, 0); in input_route()
1217 rts0 = &rt->rt_spares[rt->rt_num_spares]; in input_route()
[all …]
H A Dif.c1651 rt = NULL; in ifscan()
1657 rtchange(rt, rt->rt_state | RS_MHOME, in ifscan()
1717 if (rt != NULL && rt->rt_router != loopaddr) { in ifscan()
1719 rt = NULL; in ifscan()
1732 rtchange(rt, ((rt->rt_state & ~RS_NET_SYN) | in ifscan()
1751 rtdelete(rt); in ifscan()
1752 rt = NULL; in ifscan()
1785 rtdelete(rt); in check_net_syn()
1786 rt = NULL; in check_net_syn()
1883 rt = NULL; in addrouteforif()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_mroute.c286 rt = NULL; \
443 struct mfc *rt; in get_sg_cnt() local
768 mi_free(rt); in ip_mrouter_stack_destroy()
1166 struct mfc *rt; in add_mfc() local
1206 if (rt) { in add_mfc()
1230 for (rt = mfcbp->mfcb_mfc, nstl = 0; rt; rt = rt->mfc_next) { in add_mfc()
1318 for (rt = mfcbp->mfcb_mfc; rt; rt = rt->mfc_next) { in add_mfc()
1460 for (rt = ipst->ips_mfcs[hash].mfcb_mfc; rt; rt = rt->mfc_next) { in del_mfc()
1650 0, rt); in ip_mforward()
2819 rt = rt->mfc_next; in reset_mrt_ill()
[all …]
H A Dip_ftable.c102 struct rt_entry *rt; in ire_ftable_lookup_v4() local
150 if (rt == NULL) { in ire_ftable_lookup_v4()
243 if (rt == NULL) in ire_ftable_lookup_simple_v4()
246 irb = &rt->rt_irb; in ire_ftable_lookup_simple_v4()
431 R_Malloc(rt, rt_entry_cache, sizeof (*rt)); in ire_get_bucket()
433 if (rt == NULL) in ire_get_bucket()
436 bzero(rt, sizeof (*rt)); in ire_get_bucket()
437 rt->rt_nodes->rn_key = (char *)&rt->rt_dst; in ire_get_bucket()
438 rt->rt_dst = rdst; in ire_get_bucket()
449 rt = NULL; in ire_get_bucket()
[all …]
/illumos-gate/usr/src/cmd/cron/
H A Datt1.y43 extern struct tm *tp, at, rt;
157 rt.tm_mday++;
177 if (rt.tm_mday < 0)
178 rt.tm_mday += 7;
180 rt.tm_mday += 1;
189 rt.tm_min += $1;
192 rt.tm_hour += $1;
195 rt.tm_mday += $1;
198 rt.tm_mday += $1 * 7;
201 rt.tm_mon += $1;
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_solarnet.c88 Rec_type rt; in interpret_solarnet_fw() local
218 rt = getxdr_enum(); in interpret_solarnet_fw()
219 if (rt == REC_TYPE_NORM) { in interpret_solarnet_fw()
231 } else if (rt == REC_TYPE_EOR) { in interpret_solarnet_fw()
234 } while (rt != REC_TYPE_EOF); in interpret_solarnet_fw()
275 rt = getxdr_enum(); in interpret_solarnet_fw()
276 if (rt == REC_TYPE_NORM) { in interpret_solarnet_fw()
288 } else if (rt == REC_TYPE_EOR) { in interpret_solarnet_fw()
291 } while (rt != REC_TYPE_EOF); in interpret_solarnet_fw()
/illumos-gate/usr/src/uts/i86pc/cpu/genuineintel/
H A Dgintel_main.c190 cms_cookie_t rt = (cms_cookie_t)NULL; in gintel_disp_match() local
199 rt = (cms_cookie_t)GINTEL_ERR_SPARE_MEM; in gintel_disp_match()
203 rt = (cms_cookie_t)GINTEL_ERR_MEM_UE; in gintel_disp_match()
205 rt = (cms_cookie_t)GINTEL_ERR_MEM_CE; in gintel_disp_match()
208 rt = (cms_cookie_t)GINTEL_ERR_MEM_PARITY; in gintel_disp_match()
214 rt = (cms_cookie_t)GINTEL_ERR_MEM_BAD_ADDR; in gintel_disp_match()
216 rt = (cms_cookie_t)GINTEL_ERR_MEM_BAD_ID; in gintel_disp_match()
218 rt = (cms_cookie_t)GINTEL_ERR_MEM_UNKNOWN; in gintel_disp_match()
222 rt = (cms_cookie_t)GINTEL_ERROR_QUICKPATH; in gintel_disp_match()
228 rt = (cms_cookie_t)GINTEL_ERROR_UNKNOWN; in gintel_disp_match()
[all …]
/illumos-gate/usr/src/cmd/fm/fmadm/common/
H A Dfaulty.c312 return (rt); in find_hostid_in_list()
370 int rt = 0; in set_priority() local
374 rt = 1; in set_priority()
376 rt = 10; in set_priority()
378 rt = 100; in set_priority()
388 int rt; in cmp_priority() local
395 rt = 1; in cmp_priority()
397 rt = -1; in cmp_priority()
415 rt = *list; in merge_name_list()
479 rt = np; in merge_name_list()
[all …]
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/
H A Dintel_nb5000.c71 int rt = -1; in intel_fat_fbd_err() local
90 rt = -1; in intel_fat_fbd_err()
91 return (rt); in intel_fat_fbd_err()
226 rt = -1; in intel_nf_fbd_err()
384 rt = -1; in intel_nf_mem_err()
565 rt = 26; in intel_int_err()
569 if (rt) in intel_int_err()
585 rt = -1; in intel_int_err()
633 rt = 1; in log_int_err()
724 rt = -1; in intel_fsb_err()
[all …]

12345