| /linux/arch/powerpc/kvm/ |
| H A D | book3s_hv_rm_xics.c | 242 union kvmppc_icp_state old_state, new_state; in icp_rm_try_to_deliver() local 246 old_state = new_state = READ_ONCE(icp->state); in icp_rm_try_to_deliver() 251 success = new_state.cppr > priority && in icp_rm_try_to_deliver() 252 new_state.mfrr > priority && in icp_rm_try_to_deliver() 253 new_state.pending_pri > priority; in icp_rm_try_to_deliver() 260 *reject = new_state.xisr; in icp_rm_try_to_deliver() 261 new_state.xisr = irq; in icp_rm_try_to_deliver() 262 new_state.pending_pri = priority; in icp_rm_try_to_deliver() 269 new_state.need_resend = true; in icp_rm_try_to_deliver() 272 } while (!icp_rm_try_update(icp, old_state, new_state)); in icp_rm_try_to_deliver() [all …]
|
| H A D | book3s_xics.c | 339 union kvmppc_icp_state old_state, new_state; in icp_try_to_deliver() local 346 old_state = new_state = READ_ONCE(icp->state); in icp_try_to_deliver() 351 success = new_state.cppr > priority && in icp_try_to_deliver() 352 new_state.mfrr > priority && in icp_try_to_deliver() 353 new_state.pending_pri > priority; in icp_try_to_deliver() 360 *reject = new_state.xisr; in icp_try_to_deliver() 361 new_state.xisr = irq; in icp_try_to_deliver() 362 new_state.pending_pri = priority; in icp_try_to_deliver() 369 new_state.need_resend = true; in icp_try_to_deliver() 372 } while (!icp_try_update(icp, old_state, new_state, false)); in icp_try_to_deliver() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_vf_mbx.c | 157 enum ice_mbx_snapshot_state *new_state) in ice_mbx_traverse() argument 182 *new_state = ICE_MAL_VF_DETECT_STATE_NEW_SNAPSHOT; in ice_mbx_traverse() 198 enum ice_mbx_snapshot_state *new_state, in ice_mbx_detect_malvf() argument 208 ice_mbx_traverse(hw, new_state); in ice_mbx_detect_malvf() 275 enum ice_mbx_snapshot_state new_state; in ice_mbx_vf_state_handler() local 302 new_state = ICE_MAL_VF_DETECT_STATE_INVALID; in ice_mbx_vf_state_handler() 334 new_state = ICE_MAL_VF_DETECT_STATE_DETECT; in ice_mbx_vf_state_handler() 335 status = ice_mbx_detect_malvf(hw, vf_info, &new_state, &is_malvf); in ice_mbx_vf_state_handler() 337 new_state = ICE_MAL_VF_DETECT_STATE_TRAVERSE; in ice_mbx_vf_state_handler() 338 ice_mbx_traverse(hw, &new_state); in ice_mbx_vf_state_handler() [all …]
|
| /linux/drivers/net/wireless/intel/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 = data.sta_vif_state; in iwl_mvm_sf_update() 271 new_state = SF_UNINIT; in iwl_mvm_sf_update() [all …]
|
| /linux/drivers/gpu/drm/loongson/ |
| H A D | lsdc_plane.c | 102 struct drm_plane_state *new_state) in lsdc_plane_prepare_fb() argument 104 struct drm_framebuffer *fb = new_state->fb; in lsdc_plane_prepare_fb() 136 return drm_gem_plane_helper_prepare_fb(plane, new_state); in lsdc_plane_prepare_fb() 179 struct drm_plane_state *new_state; in lsdc_cursor_plane_atomic_async_check() local 182 new_state = drm_atomic_get_new_plane_state(state, plane); in lsdc_cursor_plane_atomic_async_check() 189 if (new_state->crtc_w != new_state->crtc_h) { in lsdc_cursor_plane_atomic_async_check() 191 new_state->crtc_w, new_state->crtc_h); in lsdc_cursor_plane_atomic_async_check() 195 if (new_state->crtc_w != 64 && new_state->crtc_w != 32) { in lsdc_cursor_plane_atomic_async_check() 197 new_state->crtc_w, new_state->crtc_h); in lsdc_cursor_plane_atomic_async_check() 201 crtc_state = drm_atomic_get_new_crtc_state(state, new_state->crtc); in lsdc_cursor_plane_atomic_async_check() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
| H A D | g84.c | 102 enum nvkm_therm_thrs_state prev_state, new_state; in g84_therm_threshold_hyst_emulation() local 111 new_state = NVKM_THERM_THRS_HIGHER; in g84_therm_threshold_hyst_emulation() 114 new_state = NVKM_THERM_THRS_LOWER; in g84_therm_threshold_hyst_emulation() 119 if (new_state == NVKM_THERM_THRS_LOWER && cur > thrs->temp) in g84_therm_threshold_hyst_emulation() 120 new_state = NVKM_THERM_THRS_HIGHER; in g84_therm_threshold_hyst_emulation() 121 else if (new_state == NVKM_THERM_THRS_HIGHER && in g84_therm_threshold_hyst_emulation() 123 new_state = NVKM_THERM_THRS_LOWER; in g84_therm_threshold_hyst_emulation() 124 nvkm_therm_sensor_set_threshold_state(therm, thrs_name, new_state); in g84_therm_threshold_hyst_emulation() 127 if (prev_state < new_state) in g84_therm_threshold_hyst_emulation() 129 else if (prev_state > new_state) in g84_therm_threshold_hyst_emulation()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_cursor_plane.c | 612 * @new_state: info on the new plane state, including the FB in vmw_cursor_plane_prepare_fb() 617 struct drm_plane_state *new_state) in vmw_cursor_plane_prepare_fb() 619 struct drm_framebuffer *fb = new_state->fb; in vmw_cursor_plane_prepare_fb() 621 struct vmw_plane_state *vps = vmw_plane_state_to_vps(new_state); in vmw_cursor_plane_prepare_fb() 672 const u32 size = new_state->crtc_w * in vmw_cursor_plane_prepare_fb() 673 new_state->crtc_h * in vmw_cursor_plane_prepare_fb() 722 struct drm_plane_state *new_state = in vmw_cursor_plane_atomic_check() 728 struct vmw_plane_state *vps = vmw_plane_state_to_vps(new_state); in vmw_cursor_plane_atomic_check() 730 struct drm_framebuffer *fb = new_state->fb; in vmw_cursor_plane_atomic_check() 732 if (new_state in vmw_cursor_plane_atomic_check() 601 vmw_cursor_plane_prepare_fb(struct drm_plane * plane,struct drm_plane_state * new_state) vmw_cursor_plane_prepare_fb() argument 706 struct drm_plane_state *new_state = vmw_cursor_plane_atomic_check() local 784 struct drm_plane_state *new_state = vmw_cursor_plane_atomic_update() local [all...] |
| /linux/drivers/gpu/drm/vboxvideo/ |
| H A D | vbox_mode.c | 262 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in vbox_primary_atomic_check() local 266 if (new_state->crtc) { in vbox_primary_atomic_check() 268 new_state->crtc); in vbox_primary_atomic_check() 273 return drm_atomic_helper_check_plane_state(new_state, crtc_state, in vbox_primary_atomic_check() 282 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in vbox_primary_atomic_update() local 284 struct drm_crtc *crtc = new_state->crtc; in vbox_primary_atomic_update() 285 struct drm_framebuffer *fb = new_state->fb; in vbox_primary_atomic_update() 291 new_state->src_x >> 16, in vbox_primary_atomic_update() 292 new_state->src_y >> 16); in vbox_primary_atomic_update() 296 clips = drm_plane_get_damage_clips(new_state); in vbox_primary_atomic_update() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | tcp_ca_kfunc.c | 14 extern void bbr_set_state(struct sock *sk, u8 new_state) __ksym; 22 extern void dctcp_state(struct sock *sk, u8 new_state) __ksym; 27 extern void cubictcp_state(struct sock *sk, u8 new_state) __ksym; 99 void BPF_PROG(set_state, struct sock *sk, u8 new_state) 101 bbr_set_state(sk, new_state); in BPF_PROG() 102 dctcp_state(sk, new_state); in BPF_PROG() 103 cubictcp_state(sk, new_state); in BPF_PROG() 92 BPF_PROG(set_state,struct sock * sk,u8 new_state) BPF_PROG() argument
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | hub.c | 537 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in tegra_shared_plane_atomic_update() local 539 struct tegra_plane_state *tegra_plane_state = to_tegra_plane_state(new_state); in tegra_shared_plane_atomic_update() 540 struct tegra_dc *dc = to_tegra_dc(new_state->crtc); in tegra_shared_plane_atomic_update() 541 unsigned int zpos = new_state->normalized_zpos; in tegra_shared_plane_atomic_update() 542 struct drm_framebuffer *fb = new_state->fb; in tegra_shared_plane_atomic_update() 551 if (!new_state->crtc || !new_state->fb) in tegra_shared_plane_atomic_update() 554 if (!new_state->visible) { in tegra_shared_plane_atomic_update() 586 min_width = min(new_state->src_w >> 16, new_state->crtc_w); in tegra_shared_plane_atomic_update() 604 if (new_state->src_w != new_state->crtc_w << 16) { in tegra_shared_plane_atomic_update() 605 fixed20_12 width = dfixed_init(new_state->src_w >> 16); in tegra_shared_plane_atomic_update() [all …]
|
| H A D | dc.c | 829 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in tegra_plane_atomic_update() local 831 struct tegra_plane_state *tegra_plane_state = to_tegra_plane_state(new_state); in tegra_plane_atomic_update() 832 struct drm_framebuffer *fb = new_state->fb; in tegra_plane_atomic_update() 838 if (!new_state->crtc || !new_state->fb) in tegra_plane_atomic_update() 841 if (!new_state->visible) in tegra_plane_atomic_update() 845 window.src.x = new_state->src.x1 >> 16; in tegra_plane_atomic_update() 846 window.src.y = new_state->src.y1 >> 16; in tegra_plane_atomic_update() 847 window.src.w = drm_rect_width(&new_state->src) >> 16; in tegra_plane_atomic_update() 848 window.src.h = drm_rect_height(&new_state->src) >> 16; in tegra_plane_atomic_update() 849 window.dst.x = new_state->dst.x1; in tegra_plane_atomic_update() [all …]
|
| /linux/drivers/gpu/drm/gud/ |
| H A D | gud_connector.c | 290 struct drm_connector_state *new_state; in gud_connector_atomic_check() local 294 new_state = drm_atomic_get_new_connector_state(state, connector); in gud_connector_atomic_check() 295 if (!new_state->crtc) in gud_connector_atomic_check() 299 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_state->crtc); in gud_connector_atomic_check() 301 if (old_state->tv.margins.left != new_state->tv.margins.left || in gud_connector_atomic_check() 302 old_state->tv.margins.right != new_state->tv.margins.right || in gud_connector_atomic_check() 303 old_state->tv.margins.top != new_state->tv.margins.top || in gud_connector_atomic_check() 304 old_state->tv.margins.bottom != new_state->tv.margins.bottom || in gud_connector_atomic_check() 305 old_state->tv.legacy_mode != new_state->tv.legacy_mode || in gud_connector_atomic_check() 306 old_state->tv.brightness != new_state->tv.brightness || in gud_connector_atomic_check() [all …]
|
| /linux/drivers/irqchip/ |
| H A D | irq-al-fic.c | 46 enum al_fic_state new_state) in al_fic_set_trigger() argument 51 if (new_state == AL_FIC_CONFIGURED_LEVEL) { in al_fic_set_trigger() 59 fic->state = new_state; in al_fic_set_trigger() 67 enum al_fic_state new_state; in al_fic_irq_set_type() local 77 new_state = (flow_type & IRQ_TYPE_LEVEL_HIGH) ? in al_fic_irq_set_type() 90 al_fic_set_trigger(fic, gc, new_state); in al_fic_irq_set_type() 91 } else if (fic->state != new_state) { in al_fic_irq_set_type()
|
| /linux/drivers/input/keyboard/ |
| H A D | omap-keypad.c | 93 unsigned char new_state[8], changed, key_down = 0; in omap_kp_tasklet() local 97 omap_kp_scan_keypad(omap_kp_data, new_state); in omap_kp_tasklet() 101 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet() 102 key_down |= new_state[col]; in omap_kp_tasklet() 112 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet() 123 new_state[col] & (1 << row)); in omap_kp_tasklet() 128 memcpy(keypad_state, new_state, sizeof(keypad_state)); in omap_kp_tasklet()
|
| H A D | mt6779-keypad.c | 52 DECLARE_BITMAP(new_state, MTK_KPD_NUM_BITS); in mt6779_keypad_irq_handler() 61 new_state, MTK_KPD_NUM_MEMS); in mt6779_keypad_irq_handler() 63 bitmap_xor(change, new_state, keypad->keymap_state, MTK_KPD_NUM_BITS); in mt6779_keypad_irq_handler() 78 pressed = !test_bit(bit_nr, new_state); in mt6779_keypad_irq_handler() 90 bitmap_copy(keypad->keymap_state, new_state, MTK_KPD_NUM_BITS); in mt6779_keypad_irq_handler()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | rs780_dpm.c | 430 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_scaling() local 434 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_set_engine_clock_scaling() 435 (new_state->sclk_low == old_state->sclk_low)) in rs780_set_engine_clock_scaling() 439 new_state->sclk_low, false, &min_dividers); in rs780_set_engine_clock_scaling() 444 new_state->sclk_high, false, &max_dividers); in rs780_set_engine_clock_scaling() 477 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_spc() local 481 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_set_engine_clock_spc() 482 (new_state->sclk_low == old_state->sclk_low)) in rs780_set_engine_clock_spc() 496 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_activate_engine_clk_scaling() local 499 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_activate_engine_clk_scaling() [all …]
|
| H A D | rv6xx_dpm.c | 969 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_enable_static_voltage_control() local 973 new_state->low.vddc, in rv6xx_enable_static_voltage_control() 1048 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_calculate_stepping_parameters() local 1050 rv6xx_calculate_engine_speed_stepping_parameters(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1051 rv6xx_calculate_memory_clock_stepping_parameters(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1052 rv6xx_calculate_voltage_stepping_parameters(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1053 rv6xx_calculate_ap(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1202 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_set_sw_voltage_to_safe() local 1206 safe_voltage = (new_state->low.vddc >= old_state->low.vddc) ? in rv6xx_set_sw_voltage_to_safe() 1207 new_state->low.vddc : old_state->low.vddc; in rv6xx_set_sw_voltage_to_safe() [all …]
|
| /linux/drivers/net/can/dev/ |
| H A D | dev.c | 20 enum can_state new_state) in can_update_state_error_stats() argument 24 if (new_state <= priv->state) in can_update_state_error_stats() 27 switch (new_state) { in can_update_state_error_stats() 160 enum can_state new_state = max(tx_state, rx_state); in can_change_state() local 162 if (unlikely(new_state == priv->state)) { in can_change_state() 169 can_get_state_str(new_state), new_state); in can_change_state() 171 can_update_state_error_stats(dev, new_state); in can_change_state() 172 priv->state = new_state; in can_change_state() 177 if (unlikely(new_state == CAN_STATE_BUS_OFF)) { in can_change_state()
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_proto_sctp.c | 243 enum sctp_conntrack new_state; in sctp_new() local 249 new_state = SCTP_CONNTRACK_MAX; in sctp_new() 251 new_state = sctp_new_state(IP_CT_DIR_ORIGINAL, in sctp_new() 255 if (new_state == SCTP_CONNTRACK_NONE || in sctp_new() 256 new_state == SCTP_CONNTRACK_MAX) { in sctp_new() 333 enum sctp_conntrack new_state, old_state; in nf_conntrack_sctp_packet() local 382 old_state = new_state = SCTP_CONNTRACK_NONE; in nf_conntrack_sctp_packet() 452 new_state = sctp_new_state(dir, old_state, sch->type); in nf_conntrack_sctp_packet() 455 if (new_state == SCTP_CONNTRACK_MAX) { in nf_conntrack_sctp_packet() 484 if (new_state == SCTP_CONNTRACK_CLOSED && in nf_conntrack_sctp_packet() [all …]
|
| H A D | nf_conntrack_proto_tcp.c | 881 enum tcp_conntrack new_state; in tcp_new() local 886 new_state = tcp_conntracks[0][get_conntrack_index(th)][TCP_CONNTRACK_NONE]; in tcp_new() 889 if (new_state >= TCP_CONNTRACK_MAX) { in tcp_new() 894 if (new_state == TCP_CONNTRACK_SYN_SENT) { in tcp_new() 1009 enum tcp_conntrack new_state, old_state; in nf_conntrack_tcp_packet() local 1033 new_state = tcp_conntracks[dir][index][old_state]; in nf_conntrack_tcp_packet() 1035 switch (new_state) { in nf_conntrack_tcp_packet() 1094 new_state = TCP_CONNTRACK_SYN_RECV; in nf_conntrack_tcp_packet() 1209 new_state = TCP_CONNTRACK_ESTABLISHED; in nf_conntrack_tcp_packet() 1261 new_state = old_state; in nf_conntrack_tcp_packet() [all …]
|
| /linux/drivers/macintosh/ |
| H A D | windfarm_pm112.c | 204 int new_state = 0; in cpu_check_overtemp() local 209 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 215 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 236 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 242 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 252 if (new_state) { in cpu_check_overtemp() 254 if (new_state & FAILURE_HIGH_OVERTEMP) in cpu_check_overtemp() 256 if ((failure_state & new_state) != new_state) in cpu_check_overtemp() 258 failure_state |= new_state; in cpu_check_overtemp()
|
| H A D | windfarm_rm31.c | 121 int new_state = 0; in cpu_check_overtemp() local 127 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 133 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 170 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 176 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 186 if (new_state) { in cpu_check_overtemp() 188 if (new_state & FAILURE_HIGH_OVERTEMP) in cpu_check_overtemp() 190 if ((failure_state & new_state) != new_state) in cpu_check_overtemp() 192 failure_state |= new_state; in cpu_check_overtemp()
|
| H A D | windfarm_pm72.c | 127 int new_state = 0; in cpu_check_overtemp() local 133 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 139 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 176 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 182 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 192 if (new_state) { in cpu_check_overtemp() 194 if (new_state & FAILURE_HIGH_OVERTEMP) in cpu_check_overtemp() 196 if ((failure_state & new_state) != new_state) in cpu_check_overtemp() 198 failure_state |= new_state; in cpu_check_overtemp()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_atomic.c | 117 struct drm_connector_state *new_state = in intel_digital_connector_atomic_check() local 120 to_intel_digital_connector_state(new_state); in intel_digital_connector_atomic_check() 127 intel_hdcp_atomic_check(conn, old_state, new_state); in intel_digital_connector_atomic_check() 129 if (!new_state->crtc) in intel_digital_connector_atomic_check() 132 crtc_state = drm_atomic_get_new_crtc_state(state, new_state->crtc); in intel_digital_connector_atomic_check() 145 !drm_connector_atomic_hdr_metadata_equal(old_state, new_state)) in intel_digital_connector_atomic_check()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/ |
| H A D | amdgpu_dm_connector_test.c | 1751 struct drm_connector_state *new_state; in dm_test_set_property_scaling_center() 1782 new_state = amdgpu_dm_connector_atomic_duplicate_state(connector); in dm_test_set_property_scaling_fullscreen() 1783 KUNIT_ASSERT_NOT_NULL(test, new_state); in dm_test_set_property_scaling_fullscreen() 1784 new_dm_state = to_dm_connector_state(new_state); in dm_test_set_property_scaling_fullscreen() 1850 struct dm_connector_state *new_state; 1871 ctx->new_state = kunit_kzalloc(test, sizeof(*ctx->new_state), GFP_KERNEL); in dm_test_set_property_abm_sysfs_control() 1872 KUNIT_ASSERT_NOT_NULL(test, ctx->new_state); in dm_test_set_property_abm_sysfs_control() 1905 ctx->connector, &ctx->new_state->base, in dm_test_set_property_abm_level_value() 1907 KUNIT_EXPECT_EQ(test, (int)ctx->new_state in dm_test_set_property_abm_level_value() 1601 struct drm_connector_state *new_state; dm_test_atomic_dup_state_copies_fields() local 1700 struct dm_connector_state *new_state; global() member [all...] |