/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_mutex.h | 171 u64 new_state; in Lock() local 175 new_state = (state | kWriterLock) & reset_mask; in Lock() 179 new_state = (state + kWaitingWriterInc) & reset_mask; in Lock() 183 new_state = state | kWriterSpinWait; in Lock() 189 if (UNLIKELY(!atomic_compare_exchange_weak(&state_, &state, new_state, 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() 245 } while (UNLIKELY(!atomic_compare_exchange_weak(&state_, &state, new_state, in Unlock() [all …]
|
/freebsd/sys/dev/iwm/ |
H A D | if_iwm_sf.c | 246 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 D | sf.c | 176 enum iwl_sf_state new_state) in iwl_mvm_sf_config() argument 179 .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 258 new_state = SF_INIT_OFF; in iwl_mvm_sf_update() 265 new_state in iwl_mvm_sf_update() [all...] |
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | raspberrypi_gpio.c | 306 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/jemalloc/src/ |
H A D | tsd.c | 174 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/contrib/libxo/xo/ |
H A D | xo.c | 278 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 D | ntp_random.c | 421 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 D | mlx4_qp.c | 89 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() 164 if (cur_state == MLX4_QP_STATE_RST && new_state == MLX4_QP_STATE_INIT) { 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() [all …]
|
/freebsd/lib/libc/stdlib/ |
H A D | random.c | 406 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/net/ |
H A D | ieee8023ad_lacp.c | 1509 enum lacp_mux_state new_state; in lacp_sm_mux() local 1526 new_state = lp->lp_mux_state; in lacp_sm_mux() 1530 new_state = LACP_MUX_WAITING; in lacp_sm_mux() 1538 new_state = LACP_MUX_ATTACHED; in lacp_sm_mux() 1540 new_state = LACP_MUX_DETACHED; in lacp_sm_mux() 1545 new_state = LACP_MUX_COLLECTING; in lacp_sm_mux() 1547 new_state = LACP_MUX_DETACHED; in lacp_sm_mux() 1552 new_state = LACP_MUX_DISTRIBUTING; in lacp_sm_mux() 1554 new_state = LACP_MUX_ATTACHED; in lacp_sm_mux() 1559 new_state = LACP_MUX_COLLECTING; in lacp_sm_mux() [all …]
|
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/ |
H A D | vchiq_arm.h | 206 enum vc_suspend_status new_state); 210 enum vc_resume_status new_state);
|
/freebsd/sys/x86/cpufreq/ |
H A D | smist.c | 235 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/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_barrier.cpp | 597 kmp_uint64 new_state = team_bar->b_arrived + KMP_BARRIER_STATE_BUMP; in __kmp_linear_barrier_gather_template() local 610 &other_threads[i]->th.th_bar[bt].bb.b_arrived, new_state)); in __kmp_linear_barrier_gather_template() 615 &other_threads[i]->th.th_bar[bt].bb.b_arrived, new_state); in __kmp_linear_barrier_gather_template() 620 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 825 new_state = team->t.t_bar[bt].b_arrived + KMP_BARRIER_STATE_BUMP; in __kmp_tree_barrier_gather() 840 team->t.t_id, child_tid, &child_bar->b_arrived, new_state)); in __kmp_tree_barrier_gather() 842 kmp_flag_64<> flag(&child_bar->b_arrived, new_state); in __kmp_tree_barrier_gather() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_initialize.c | 135 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 D | notify.c | 87 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/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_qp.c | 1627 enum ib_qp_state new_state, in __mlx4_ib_modify_qp() argument 1653 context->flags = cpu_to_be32((to_mlx4_state(new_state) << 28) | in __mlx4_ib_modify_qp() 1701 if (new_state == IB_QPS_RESET && qp->counter_index) in __mlx4_ib_modify_qp() 1704 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp() 1722 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp() 1729 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp() 1808 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) { in __mlx4_ib_modify_qp() 1921 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp() 1925 new_state == IB_QPS_RTR && in __mlx4_ib_modify_qp() 1971 if (ibqp->qp_type == IB_QPT_UD && (new_state == IB_QPS_RTR)) { in __mlx4_ib_modify_qp() [all …]
|
/freebsd/usr.sbin/mfiutil/ |
H A D | mfi_drive.c | 382 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/mthca/ |
H A D | mthca_qp.c | 547 enum ib_qp_state new_state, in __mthca_modify_qp() argument 569 qp_context->flags = cpu_to_be32((to_mthca_state(new_state) << 28) | in __mthca_modify_qp() 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() 781 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0, 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() [all …]
|
/freebsd/contrib/byacc/ |
H A D | lr0.c | 5 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/sys/contrib/dev/rtw89/ |
H A D | ser.c | 166 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 D | mac80211.c | 577 enum ieee80211_sta_state new_state) 582 new_state == IEEE80211_STA_NONE) in rtw89_ops_set_key() 586 new_state == IEEE80211_STA_ASSOC) { in rtw89_ops_set_key() 593 new_state == IEEE80211_STA_AUTH) in rtw89_ops_set_key() 597 new_state == IEEE80211_STA_NONE) in rtw89_ops_set_key() 601 new_state == IEEE80211_STA_NOTEXIST) in rtw89_ops_set_key() 611 enum ieee80211_sta_state new_state) in rtw89_ops_set_key() 618 ret = __rtw89_ops_sta_state(hw, vif, sta, old_state, new_state); in rtw89_ops_ampdu_action() 531 __rtw89_ops_sta_state(struct ieee80211_hw * hw,struct ieee80211_vif * vif,struct ieee80211_sta * sta,enum ieee80211_sta_state old_state,enum ieee80211_sta_state new_state) __rtw89_ops_sta_state() argument 565 rtw89_ops_sta_state(struct ieee80211_hw * hw,struct ieee80211_vif * vif,struct ieee80211_sta * sta,enum ieee80211_sta_state old_state,enum ieee80211_sta_state new_state) rtw89_ops_sta_state() argument
|
/freebsd/contrib/libxo/libxo/ |
H A D | xo_explicit.h | 58 xo_explicit_transition (xo_handle_t *xop, xo_state_t new_state,
|
/freebsd/sys/dev/axgbe/ |
H A D | xgbe-mdio.c | 1085 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 D | ecore_iwarp.h | 241 enum ecore_iwarp_qp_state new_state, 311 enum ecore_iwarp_qp_state OSAL_UNUSED new_state, in ecore_iwarp_modify_qp() argument
|
/freebsd/sys/dev/aic7xxx/ |
H A D | aic_osm_lib.h | 395 aic_power_state new_state); 398 aic_power_state_change(struct aic_softc *aic, aic_power_state new_state) in aic_power_state_change() argument 400 return (pci_set_powerstate(aic->dev_softc, new_state)); in aic_power_state_change()
|