Lines Matching refs:ctl
88 static int finalize_nhop(struct nh_control *ctl, struct nhop_object *nh, bool link);
489 finalize_nhop(struct nh_control *ctl, struct nhop_object *nh, bool link) in finalize_nhop() argument
515 MPASS(nh->nh_priv->nh_fibnum == ctl->ctl_rh->rib_fibnum); in finalize_nhop()
519 NHOPS_WLOCK(ctl); in finalize_nhop()
521 NHOPS_WUNLOCK(ctl); in finalize_nhop()
522 } else if (link_nhop(ctl, nh->nh_priv) == 0) { in finalize_nhop()
589 struct nh_control *ctl; in nhop_free() local
629 ctl = nh_priv->nh_control; in nhop_free()
630 if (unlink_nhop(ctl, nh_priv) == NULL) { in nhop_free()
1057 struct nh_control *ctl; in nhops_update_ifmtu() local
1061 ctl = rh->nh_control; in nhops_update_ifmtu()
1063 NHOPS_WLOCK(ctl); in nhops_update_ifmtu()
1064 CHT_SLIST_FOREACH(&ctl->nh_head, nhops, nh_priv) { in nhops_update_ifmtu()
1074 NHOPS_WUNLOCK(ctl); in nhops_update_ifmtu()
1084 struct nh_control *ctl = iter->rh->nh_control; in nhops_iter_start() local
1086 NHOPS_RLOCK(ctl); in nhops_iter_start()
1089 iter->_next = CHT_FIRST(&ctl->nh_head, iter->_i); in nhops_iter_start()
1106 struct nh_control *ctl = iter->rh->nh_control; in nhops_iter_next() local
1107 while (++iter->_i < ctl->nh_head.hash_size) { in nhops_iter_next()
1108 nh_priv = CHT_FIRST(&ctl->nh_head, iter->_i); in nhops_iter_next()
1122 struct nh_control *ctl = iter->rh->nh_control; in nhops_iter_stop() local
1124 NHOPS_RUNLOCK(ctl); in nhops_iter_stop()
1261 struct nh_control *ctl; in nhops_get_count() local
1264 ctl = rh->nh_control; in nhops_get_count()
1266 NHOPS_RLOCK(ctl); in nhops_get_count()
1267 count = ctl->nh_head.items_count; in nhops_get_count()
1268 NHOPS_RUNLOCK(ctl); in nhops_get_count()
1276 struct nh_control *ctl; in nhops_dump_sysctl() local
1280 ctl = rh->nh_control; in nhops_dump_sysctl()
1282 NHOPS_RLOCK(ctl); in nhops_dump_sysctl()
1283 FIB_RH_LOG(LOG_DEBUG, rh, "dump %u items", ctl->nh_head.items_count); in nhops_dump_sysctl()
1284 CHT_SLIST_FOREACH(&ctl->nh_head, nhops, nh_priv) { in nhops_dump_sysctl()
1287 NHOPS_RUNLOCK(ctl); in nhops_dump_sysctl()
1291 NHOPS_RUNLOCK(ctl); in nhops_dump_sysctl()