/freebsd/sbin/ipf/iplang/ |
H A D | iplang_l.l | 220 int next_item(int nstate) 225 printf("text=[%s] id=%d next=%d\n", yytext, nstate, next); 238 if (nstate == IL_NUMBER) 241 return(nstate); 245 int next_state(int nstate, int fornext) 249 switch (nstate) 259 ipproto = nstate; 263 nstate = IL_V4SUM; 265 nstate = IL_TCPSUM; 267 nstate = IL_UDPSUM; [all …]
|
/freebsd/sys/cddl/dev/dtrace/ |
H A D | dtrace_vtime.c | 30 dtrace_vtime_state_t state, nstate = 0; in dtrace_vtime_enable() local 37 nstate = DTRACE_VTIME_ACTIVE; in dtrace_vtime_enable() 41 nstate = DTRACE_VTIME_ACTIVE_TNF; in dtrace_vtime_enable() 51 state, nstate) != state); in dtrace_vtime_enable() 57 dtrace_vtime_state_t state, nstate = 0; in dtrace_vtime_disable() local 64 nstate = DTRACE_VTIME_INACTIVE; in dtrace_vtime_disable() 68 nstate = DTRACE_VTIME_INACTIVE_TNF; in dtrace_vtime_disable() 78 state, nstate) != state); in dtrace_vtime_disable()
|
/freebsd/sys/net80211/ |
H A D | ieee80211_monitor.c | 91 monitor_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in monitor_newstate() argument 101 ieee80211_state_name[nstate], arg); in monitor_newstate() 102 vap->iv_state = nstate; /* state transition */ in monitor_newstate() 103 if (nstate == IEEE80211_S_RUN) { in monitor_newstate()
|
H A D | ieee80211_proto.c | 2550 enum ieee80211_state nstate, ostate; in ieee80211_newstate_cb() local 2562 vap->iv_nstate = nstate = vap->iv_nstates[nstate_num]; in ieee80211_newstate_cb() 2569 ieee80211_state_name[nstate], in ieee80211_newstate_cb() 2583 ieee80211_state_name[nstate], arg); in ieee80211_newstate_cb() 2589 ieee80211_new_state_locked(vap, nstate, arg); in ieee80211_newstate_cb() 2594 if (nstate == IEEE80211_S_SCAN && ostate != IEEE80211_S_INIT) { in ieee80211_newstate_cb() 2608 ieee80211_state_name[ostate], ieee80211_state_name[nstate], arg); in ieee80211_newstate_cb() 2610 rc = vap->iv_newstate(vap, nstate, arg); in ieee80211_newstate_cb() 2616 KASSERT(nstate != IEEE80211_S_INIT, in ieee80211_newstate_cb() 2620 ieee80211_state_name[nstate], rc); in ieee80211_newstate_cb() [all …]
|
H A D | ieee80211_tdma.c | 224 tdma_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in tdma_newstate() argument 236 ieee80211_state_name[nstate], arg); in tdma_newstate() 240 if (nstate == IEEE80211_S_SCAN && in tdma_newstate() 247 vap->iv_state = nstate; /* state transition */ in tdma_newstate() 266 status = ts->tdma_newstate(vap, nstate, arg); in tdma_newstate() 269 nstate == IEEE80211_S_RUN && ostate != IEEE80211_S_RUN && in tdma_newstate()
|
H A D | ieee80211_adhoc.c | 131 adhoc_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in adhoc_newstate() argument 142 ieee80211_state_name[nstate], arg); in adhoc_newstate() 143 vap->iv_state = nstate; /* state transition */ in adhoc_newstate() 147 switch (nstate) { in adhoc_newstate() 270 ieee80211_state_name[ostate], ieee80211_state_name[nstate]); in adhoc_newstate()
|
H A D | ieee80211_wds.c | 342 wds_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in wds_newstate() argument 352 ieee80211_state_name[ostate], ieee80211_state_name[nstate]); in wds_newstate() 353 vap->iv_state = nstate; /* state transition */ in wds_newstate() 358 switch (nstate) { in wds_newstate()
|
H A D | ieee80211_sta.c | 230 sta_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in sta_newstate() argument 241 ieee80211_state_name[nstate], arg); in sta_newstate() 242 vap->iv_state = nstate; /* state transition */ in sta_newstate() 249 switch (nstate) { in sta_newstate() 466 ieee80211_state_name[ostate], ieee80211_state_name[nstate]); in sta_newstate()
|
H A D | ieee80211_hostap.c | 156 hostap_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in hostap_newstate() argument 166 ieee80211_state_name[nstate], arg); in hostap_newstate() 167 vap->iv_state = nstate; /* state transition */ in hostap_newstate() 170 switch (nstate) { in hostap_newstate()
|
/freebsd/sys/dev/rtwn/rtl8821a/usb/ |
H A D | r21au_dfs.c | 165 r21au_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in r21au_newstate() argument 180 if (nstate == IEEE80211_S_CAC && in r21au_newstate() 197 if ((nstate < IEEE80211_S_CAC || nstate == IEEE80211_S_CSA) && in r21au_newstate() 219 return (rs->rs_newstate[rvp->id](vap, nstate, arg)); in r21au_newstate()
|
/freebsd/contrib/lib9p/ |
H A D | threadpool.c | 267 enum l9p_flushstate nstate; in l9p_threadpool_tflush() local 322 nstate = L9P_FLUSH_REQUESTED_PRE_START; in l9p_threadpool_tflush() 333 nstate = L9P_FLUSH_REQUESTED_POST_START; in l9p_threadpool_tflush() 347 nstate = L9P_FLUSH_REQUESTED_POST_START; in l9p_threadpool_tflush() 356 nstate = L9P_FLUSH_TOOLATE; in l9p_threadpool_tflush() 381 flushee->lr_flushstate = nstate; in l9p_threadpool_tflush()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_80211_macops.c | 382 struct lkpi_sta *lsta, enum ieee80211_sta_state nstate) in lkpi_80211_mo_sta_state() argument 391 LKPI_80211_TRACE_MO("hw %p vif %p sta %p nstate %d", hw, vif, sta, nstate); in lkpi_80211_mo_sta_state() 392 error = lhw->ops->sta_state(hw, vif, sta, lsta->state, nstate); in lkpi_80211_mo_sta_state() 394 if (nstate == IEEE80211_STA_NOTEXIST) in lkpi_80211_mo_sta_state() 398 lsta->state = nstate; in lkpi_80211_mo_sta_state() 404 if (lsta->state < IEEE80211_STA_ASSOC && nstate == IEEE80211_STA_ASSOC) { in lkpi_80211_mo_sta_state() 409 nstate < IEEE80211_STA_ASSOC) { in lkpi_80211_mo_sta_state() 417 lsta->state = nstate; in lkpi_80211_mo_sta_state()
|
H A D | linux_80211.c | 1113 lkpi_sta_state_do_nada(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in lkpi_sta_state_do_nada() argument 1123 lkpi_sta_scan_to_auth(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in lkpi_sta_scan_to_auth() argument 1438 lkpi_sta_auth_to_scan(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in lkpi_sta_auth_to_scan() argument 1507 "NONE: %#x, nstate %d arg %d\n", __func__, lsta, lsta->state, nstate, arg)); in lkpi_sta_auth_to_scan() 1561 lkpi_sta_auth_to_init(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in lkpi_sta_auth_to_init() argument 1565 error = lkpi_sta_auth_to_scan(vap, nstate, arg); in lkpi_sta_auth_to_init() 1567 error = lkpi_sta_scan_to_init(vap, nstate, arg); in lkpi_sta_auth_to_init() 1572 lkpi_sta_auth_to_assoc(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in lkpi_sta_auth_to_assoc() argument 1661 lkpi_sta_a_to_a(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in lkpi_sta_a_to_a() argument 1728 _lkpi_sta_assoc_to_down(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in _lkpi_sta_assoc_to_down() argument [all …]
|
/freebsd/sys/dev/rtwn/ |
H A D | if_rtwn.c | 996 rtwn_monitor_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, in rtwn_monitor_newstate() argument 1005 ieee80211_state_name[nstate]); in rtwn_monitor_newstate() 1007 if (vap->iv_state != nstate) { in rtwn_monitor_newstate() 1011 switch (nstate) { in rtwn_monitor_newstate() 1039 return (uvp->newstate(vap, nstate, arg)); in rtwn_monitor_newstate() 1043 rtwn_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in rtwn_newstate() argument 1053 ieee80211_state_name[ostate], ieee80211_state_name[nstate]); in rtwn_newstate() 1056 ostate == IEEE80211_S_INIT && nstate == IEEE80211_S_RUN) { in rtwn_newstate() 1058 error = uvp->newstate(vap, nstate, arg); in rtwn_newstate() 1084 if ((ostate == IEEE80211_S_RUN && nstate != IEEE80211_S_CSA) || in rtwn_newstate() [all …]
|
/freebsd/contrib/flex/src/ |
H A D | dfa.c | 233 int stkend, nstate; in epsclosure() local 291 for (nstate = 1; nstate <= numstates; ++nstate) { in epsclosure() 292 ns = t[nstate]; in epsclosure()
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_state.c | 3949 int dlen, ostate, nstate, rval, dir; in ipf_tcp_age() local 3960 nstate = tqe->tqe_state[dir]; in ipf_tcp_age() 3964 nstate = IPF_TCPS_CLOSED; in ipf_tcp_age() 3966 nstate = IPF_TCPS_CLOSE_WAIT; in ipf_tcp_age() 3973 switch (nstate) in ipf_tcp_age() 3981 nstate = IPF_TCPS_SYN_RECEIVED; in ipf_tcp_age() 3985 nstate = IPF_TCPS_SYN_SENT; in ipf_tcp_age() 4005 nstate = IPF_TCPS_HALF_ESTAB; in ipf_tcp_age() 4010 nstate = IPF_TCPS_ESTABLISHED; in ipf_tcp_age() 4044 nstate = IPF_TCPS_ESTABLISHED; in ipf_tcp_age() [all …]
|
/freebsd/sys/dev/wtap/ |
H A D | if_wtap.c | 278 wtap_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in wtap_newstate() argument 292 error = avp->av_newstate(vap, nstate, arg); in wtap_newstate() 296 if (nstate == IEEE80211_S_RUN) { in wtap_newstate() 338 } else if (nstate == IEEE80211_S_INIT) { in wtap_newstate()
|
/freebsd/sys/dev/bwi/ |
H A D | if_bwi.c | 1743 bwi_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in bwi_newstate() argument 1756 if (nstate == IEEE80211_S_INIT) in bwi_newstate() 1759 bwi_led_newstate(sc, nstate); in bwi_newstate() 1761 error = bvp->bv_newstate(vap, nstate, arg); in bwi_newstate() 1769 if (ostate == IEEE80211_S_RUN && nstate != IEEE80211_S_RUN) { in bwi_newstate() 1783 } else if (nstate == IEEE80211_S_RUN) { in bwi_newstate() 3852 bwi_led_newstate(struct bwi_softc *sc, enum ieee80211_state nstate) in bwi_led_newstate() argument 3858 if (nstate == IEEE80211_S_INIT) { in bwi_led_newstate() 3876 nstate != IEEE80211_S_INIT) in bwi_led_newstate() 3889 switch (nstate) { in bwi_led_newstate()
|
/freebsd/sys/dev/ath/ |
H A D | if_ath.c | 5815 ath_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in ath_newstate() argument 5840 ieee80211_state_name[nstate]); in ath_newstate() 5861 if (nstate != IEEE80211_S_SLEEP) in ath_newstate() 5876 if (ostate == IEEE80211_S_CSA && nstate == IEEE80211_S_RUN) in ath_newstate() 5879 ath_hal_setledstate(ah, leds[nstate]); /* set LED */ in ath_newstate() 5881 if (nstate == IEEE80211_S_SCAN) { in ath_newstate() 5912 if (stamode && nstate == IEEE80211_S_RUN) { in ath_newstate() 5932 error = avp->av_newstate(vap, nstate, arg); in ath_newstate() 5992 if (nstate == IEEE80211_S_RUN) { in ath_newstate() 6153 } else if (nstate == IEEE80211_S_INIT) { in ath_newstate() [all …]
|
/freebsd/sys/dev/iwm/ |
H A D | if_iwm.c | 4421 iwm_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in iwm_newstate() argument 4432 ieee80211_state_name[nstate], in iwm_newstate() 4439 (nstate == IEEE80211_S_AUTH || in iwm_newstate() 4440 nstate == IEEE80211_S_ASSOC || in iwm_newstate() 4441 nstate == IEEE80211_S_RUN)) { in iwm_newstate() 4446 if (vap->iv_state == IEEE80211_S_RUN && nstate != IEEE80211_S_RUN) { in iwm_newstate() 4457 (nstate == IEEE80211_S_INIT || in iwm_newstate() 4458 nstate == IEEE80211_S_SCAN || in iwm_newstate() 4459 nstate == IEEE80211_S_AUTH)) { in iwm_newstate() 4465 nstate == IEEE80211_S_INIT) { in iwm_newstate() [all …]
|
/freebsd/sys/dev/mwl/ |
H A D | if_mwl.c | 4068 mwl_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in mwl_newstate() argument 4081 ieee80211_state_name[ostate], ieee80211_state_name[nstate]); in mwl_newstate() 4098 if (nstate == IEEE80211_S_INIT) { in mwl_newstate() 4102 } else if (nstate == IEEE80211_S_SCAN) { in mwl_newstate() 4106 } else if (nstate == IEEE80211_S_AUTH) { in mwl_newstate() 4115 } else if (nstate == IEEE80211_S_CSA) { in mwl_newstate() 4120 } else if (nstate == IEEE80211_S_CAC) { in mwl_newstate() 4129 error = mvp->mv_newstate(vap, nstate, arg); in mwl_newstate() 4135 if (error == 0 && nstate == IEEE80211_S_RUN) { in mwl_newstate() 4211 } else if (nstate == IEEE80211_S_SLEEP) { in mwl_newstate()
|
/freebsd/sys/dev/usb/wlan/ |
H A D | if_rsu.c | 1405 rsu_monitor_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, in rsu_monitor_newstate() argument 1412 if (vap->iv_state != nstate) { in rsu_monitor_newstate() 1416 switch (nstate) { in rsu_monitor_newstate() 1435 return (uvp->newstate(vap, nstate, arg)); in rsu_monitor_newstate() 1439 rsu_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in rsu_newstate() argument 1453 ieee80211_state_name[nstate]); in rsu_newstate() 1482 switch (nstate) { in rsu_newstate() 1519 return (uvp->newstate(vap, nstate, arg)); in rsu_newstate()
|
H A D | if_ural.c | 668 ural_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in ural_newstate() argument 679 ieee80211_state_name[nstate]); in ural_newstate() 685 switch (nstate) { in ural_newstate() 747 return (uvp->newstate(vap, nstate, arg)); in ural_newstate()
|
/freebsd/sys/dev/ipw/ |
H A D | if_ipw.c | 847 ipw_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in ipw_newstate() argument 856 ieee80211_state_name[nstate], sc->flags)); in ipw_newstate() 861 switch (nstate) { in ipw_newstate() 889 nstate = IEEE80211_S_ASSOC; in ipw_newstate() 906 return ivp->newstate(vap, nstate, arg); in ipw_newstate()
|
/freebsd/sys/dev/malo/ |
H A D | if_malo.c | 1709 malo_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg) in malo_newstate() argument 1718 ieee80211_state_name[nstate]); in malo_newstate() 1723 error = MALO_VAP(vap)->malo_newstate(vap, nstate, arg); in malo_newstate() 1727 if (nstate == IEEE80211_S_RUN && vap->iv_state != IEEE80211_S_RUN) { in malo_newstate()
|