Home
last modified time | relevance | path

Searched refs:new_state (Results 1 – 25 of 94) sorted by relevance

1234

/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mutex.h171 u64 new_state; in Lock() local
183 new_state = state | kWriterSpinWait; in Lock()
229 u64 new_state; in Unlock() local
234 new_state = state & ~kWriterLock; in Unlock()
238 new_state = (new_state - kWaitingWriterInc) | kWriterSpinWait; in Unlock()
244 new_state = (new_state & ~kWaitingReaderMask) | kReaderSpinWait; in Unlock()
259 u64 new_state; in ReadLock() local
293 u64 new_state; in ReadUnlock() local
298 new_state = state - kReaderLockInc; in ReadUnlock()
299 wake = (new_state & in ReadUnlock()
[all …]
/freebsd/sys/dev/iwm/
H A Dif_iwm_sf.c246 enum iwm_sf_state new_state) in iwm_sf_config() argument
249 .state = htole32(new_state), in iwm_sf_config()
262 if (new_state != IWM_SF_FULL_ON && sc->sf_state == new_state) in iwm_sf_config()
265 switch (new_state) { in iwm_sf_config()
278 new_state); in iwm_sf_config()
285 sc->sf_state = new_state; in iwm_sf_config()
299 enum iwm_sf_state new_state; in iwm_sf_update() local
310 new_state = IWM_SF_INIT_OFF; in iwm_sf_update()
318 new_state = IWM_SF_FULL_ON; in iwm_sf_update()
320 new_state = IWM_SF_INIT_OFF; in iwm_sf_update()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dsf.c179 .state = cpu_to_le32(new_state), in iwl_mvm_sf_config()
187 if (new_state != SF_FULL_ON && mvm->sf_state == new_state) in iwl_mvm_sf_config()
190 switch (new_state) { in iwl_mvm_sf_config()
207 new_state); in iwl_mvm_sf_config()
214 mvm->sf_state = new_state; in iwl_mvm_sf_config()
227 enum iwl_sf_state new_state; in iwl_mvm_sf_update() local
255 new_state = SF_INIT_OFF; in iwl_mvm_sf_update()
268 new_state = SF_UNINIT; in iwl_mvm_sf_update()
273 new_state = SF_FULL_ON; in iwl_mvm_sf_update()
275 new_state = SF_INIT_OFF; in iwl_mvm_sf_update()
[all …]
/freebsd/contrib/jemalloc/src/
H A Dtsd.c174 uint8_t new_state = tsd_state_compute(tsd); in tsd_slow_update() local
175 old_state = tsd_atomic_exchange(&tsd->state, new_state, in tsd_slow_update()
181 tsd_state_set(tsd_t *tsd, uint8_t new_state) { in tsd_state_set() argument
183 assert(new_state != tsd_state_nominal_recompute); in tsd_state_set()
191 tsd_atomic_store(&tsd->state, new_state, ATOMIC_RELAXED); in tsd_state_set()
192 if (new_state <= tsd_state_nominal_max) { in tsd_state_set()
202 if (new_state > tsd_state_nominal_max) { in tsd_state_set()
204 tsd_atomic_store(&tsd->state, new_state, in tsd_state_set()
/freebsd/sys/arm/broadcom/bcm2835/
H A Draspberrypi_gpio.c306 union msg_set_gpio_state new_state; in rpi_fw_gpio_pin_toggle() local
318 bzero(&new_state, sizeof(new_state)); in rpi_fw_gpio_pin_toggle()
321 new_state.req.gpio = RPI_FW_GPIO_BASE + pin; in rpi_fw_gpio_pin_toggle()
329 new_state.req.state = !old_state.resp.state; in rpi_fw_gpio_pin_toggle()
331 BCM2835_FIRMWARE_TAG_SET_GPIO_STATE, &new_state, in rpi_fw_gpio_pin_toggle()
332 sizeof(new_state)); in rpi_fw_gpio_pin_toggle()
334 if (rv == 0 && (old_state.resp.gpio != 0 || new_state.resp.gpio != 0)) in rpi_fw_gpio_pin_toggle()
/freebsd/contrib/libxo/xo/
H A Dxo.c278 xo_state_t new_state = 0; in main() local
384 new_state = XSS_OPEN_LIST; in main()
392 new_state = XSS_OPEN_INSTANCE; in main()
400 new_state = XSS_CLOSE_LIST; in main()
408 new_state = XSS_CLOSE_INSTANCE; in main()
439 if (new_state) { in main()
446 xo_explicit_transition(NULL, new_state, opt_name, 0); in main()
/freebsd/contrib/ntp/libntp/
H A Dntp_random.c421 register unsigned long *new_state = (unsigned long *) arg_state; in ntp_setstate() local
422 register long type = new_state[0] % MAX_TYPES; in ntp_setstate()
423 register long rear = new_state[0] / MAX_TYPES; in ntp_setstate()
444 state = (new_state + 1); in ntp_setstate()
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_qp.c89 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, in __mlx4_qp_modify() argument
141 if (cur_state >= MLX4_QP_NUM_STATE || new_state >= MLX4_QP_NUM_STATE || in __mlx4_qp_modify()
142 !op[cur_state][new_state]) in __mlx4_qp_modify()
145 if (op[cur_state][new_state] == MLX4_CMD_2RST_QP) { in __mlx4_qp_modify()
172 (new_state == MLX4_QP_STATE_RTS) && in __mlx4_qp_modify()
185 new_state == MLX4_QP_STATE_RST ? 2 : 0, in __mlx4_qp_modify()
186 op[cur_state][new_state], MLX4_CMD_TIME_CLASS_C, native); in __mlx4_qp_modify()
192 new_state == MLX4_QP_STATE_ERR) { in __mlx4_qp_modify()
197 } else if (new_state == MLX4_QP_STATE_RTR) { in __mlx4_qp_modify()
210 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, in mlx4_qp_modify() argument
[all …]
/freebsd/lib/libc/stdlib/
H A Drandom.c406 uint32_t *new_state = (uint32_t *)arg_state; in setstate() local
407 uint32_t type = new_state[0] % MAX_TYPES; in setstate()
408 uint32_t rear = new_state[0] / MAX_TYPES; in setstate()
422 implicit.rst_state = new_state + 1; in setstate()
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_arm.h206 enum vc_suspend_status new_state);
210 enum vc_resume_status new_state);
/freebsd/sys/x86/cpufreq/
H A Dsmist.c235 int new_state; in getset_state() local
251 "=b" (new_state), in getset_state()
260 eax, new_state, result); in getset_state()
262 *state = new_state & 1; in getset_state()
/freebsd/sys/net/
H A Dieee8023ad_lacp.c1507 enum lacp_mux_state new_state; in lacp_sm_mux() local
1524 new_state = lp->lp_mux_state; in lacp_sm_mux()
1528 new_state = LACP_MUX_WAITING; in lacp_sm_mux()
1536 new_state = LACP_MUX_ATTACHED; in lacp_sm_mux()
1538 new_state = LACP_MUX_DETACHED; in lacp_sm_mux()
1543 new_state = LACP_MUX_COLLECTING; in lacp_sm_mux()
1545 new_state = LACP_MUX_DETACHED; in lacp_sm_mux()
1552 new_state = LACP_MUX_ATTACHED; in lacp_sm_mux()
1570 lacp_set_mux(lp, new_state); in lacp_sm_mux()
1583 switch (new_state) { in lacp_set_mux()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_barrier.cpp620 new_state); in __kmp_linear_barrier_gather_template()
644 team_bar->b_arrived = new_state; in __kmp_linear_barrier_gather_template()
648 new_state)); in __kmp_linear_barrier_gather_template()
806 kmp_uint64 new_state = 0; in __kmp_tree_barrier_gather() local
887 team->t.t_bar[bt].b_arrived = new_state; in __kmp_tree_barrier_gather()
1062 if (new_state == KMP_BARRIER_UNUSED_STATE) in __kmp_hyper_barrier_gather()
1109 if (new_state == KMP_BARRIER_UNUSED_STATE) in __kmp_hyper_barrier_gather()
1112 team->t.t_bar[bt].b_arrived = new_state; in __kmp_hyper_barrier_gather()
1365 kmp_uint64 new_state = 0; in __kmp_hierarchical_barrier_gather() local
1394 new_state = in __kmp_hierarchical_barrier_gather()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_initialize.c135 vdev_initialize_change_state(vdev_t *vd, vdev_initializing_state_t new_state) in vdev_initialize_change_state() argument
140 if (new_state == vd->vdev_initialize_state) in vdev_initialize_change_state()
157 vd->vdev_initialize_state = new_state; in vdev_initialize_change_state()
162 if (new_state != VDEV_INITIALIZE_NONE) { in vdev_initialize_change_state()
170 switch (new_state) { in vdev_initialize_change_state()
194 panic("invalid state %llu", (unsigned long long)new_state); in vdev_initialize_change_state()
199 if (new_state != VDEV_INITIALIZE_ACTIVE) in vdev_initialize_change_state()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dnotify.c87 enum wpa_states new_state, in wpas_notify_state_changed() argument
98 if (new_state == WPA_COMPLETED) in wpas_notify_state_changed()
101 new_state < WPA_ASSOCIATED) in wpas_notify_state_changed()
106 if (new_state == WPA_COMPLETED) in wpas_notify_state_changed()
108 else if (old_state >= WPA_ASSOCIATED && new_state < WPA_ASSOCIATED) in wpas_notify_state_changed()
117 new_state, in wpas_notify_state_changed()
/freebsd/usr.sbin/mfiutil/
H A Dmfi_drive.c382 drive_set_state(char *drive, uint16_t new_state) in drive_set_state() argument
411 if (info.fw_state == new_state) { in drive_set_state()
418 mbox[4] = new_state & 0xff; in drive_set_state()
419 mbox[5] = new_state >> 8; in drive_set_state()
424 mfi_pdstate(new_state)); in drive_set_state()
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_qp.c1627 enum ib_qp_state new_state, in __mlx4_ib_modify_qp() argument
1925 new_state == IB_QPS_RTR && in __mlx4_ib_modify_qp()
2018 qp->state = new_state; in __mlx4_ib_modify_qp()
2045 (new_state == IB_QPS_RESET || new_state == IB_QPS_ERR)) in __mlx4_ib_modify_qp()
2053 if (new_state == IB_QPS_RESET) { in __mlx4_ib_modify_qp()
2172 enum ib_qp_state cur_state, new_state; in _mlx4_ib_modify_qp() local
2184 ibqp->qp_num, cur_state, new_state, in _mlx4_ib_modify_qp()
2210 new_state, ibqp->qp_type); in _mlx4_ib_modify_qp()
2225 new_state, ibqp->qp_type); in _mlx4_ib_modify_qp()
2235 new_state, ibqp->qp_type); in _mlx4_ib_modify_qp()
[all …]
/freebsd/sys/dev/mthca/
H A Dmthca_qp.c547 enum ib_qp_state new_state, in __mthca_modify_qp() argument
656 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mthca_modify_qp()
776 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mthca_modify_qp()
785 cur_state, new_state, err); in __mthca_modify_qp()
789 qp->state = new_state; in __mthca_modify_qp()
808 new_state == IB_QPS_RTR) in __mthca_modify_qp()
813 (new_state == IB_QPS_RESET || in __mthca_modify_qp()
814 new_state == IB_QPS_ERR)) in __mthca_modify_qp()
822 if (new_state == IB_QPS_RESET && !qp->ibqp.uobject) { in __mthca_modify_qp()
851 enum ib_qp_state cur_state, new_state; in mthca_modify_qp() local
[all …]
/freebsd/contrib/byacc/
H A Dlr0.c5 static core *new_state(int symbol);
208 sp = sp->link = new_state(symbol); in get_state()
216 state_set[key] = sp = new_state(symbol); in get_state()
285 new_state(int symbol) in new_state() function
/freebsd/contrib/libxo/libxo/
H A Dxo_explicit.h58 xo_explicit_transition (xo_handle_t *xop, xo_state_t new_state,
/freebsd/sys/contrib/dev/rtw89/
H A Dser.c166 static void ser_state_goto(struct rtw89_ser *ser, u8 new_state) in ser_state_goto() argument
170 if (ser->state == new_state || new_state >= SER_ST_MAX_ST) in ser_state_goto()
175 ser_st_name(ser), ser->st_tbl[new_state].name); in ser_state_goto()
177 ser->state = new_state; in ser_state_goto()
H A Dmac80211.c531 enum ieee80211_sta_state new_state) in __rtw89_ops_sta_state() argument
536 new_state == IEEE80211_STA_NONE) in __rtw89_ops_sta_state()
540 new_state == IEEE80211_STA_ASSOC) { in __rtw89_ops_sta_state()
547 new_state == IEEE80211_STA_AUTH) in __rtw89_ops_sta_state()
551 new_state == IEEE80211_STA_NONE) in __rtw89_ops_sta_state()
555 new_state == IEEE80211_STA_NOTEXIST) in __rtw89_ops_sta_state()
565 enum ieee80211_sta_state new_state) in rtw89_ops_sta_state() argument
572 ret = __rtw89_ops_sta_state(hw, vif, sta, old_state, new_state); in rtw89_ops_sta_state()
/freebsd/sys/dev/axgbe/
H A Dxgbe-mdio.c1085 int new_state = 0; in xgbe_phy_adjust_link() local
1099 new_state = 1; in xgbe_phy_adjust_link()
1107 new_state = 1; in xgbe_phy_adjust_link()
1116 new_state = 1; in xgbe_phy_adjust_link()
1121 new_state = 1; in xgbe_phy_adjust_link()
1125 new_state = 1; in xgbe_phy_adjust_link()
1131 pdata->phy.link, new_state); in xgbe_phy_adjust_link()
1133 if (new_state) in xgbe_phy_adjust_link()
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_iwarp.h241 enum ecore_iwarp_qp_state new_state,
311 enum ecore_iwarp_qp_state OSAL_UNUSED new_state, in ecore_iwarp_modify_qp() argument
/freebsd/contrib/wpa/src/fst/
H A Dfst_ctrl_aux.h68 enum fst_session_state new_state; member

1234