/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | book3s_hv_rm_xics.c | 249 union kvmppc_icp_state old_state, new_state; in icp_rm_try_to_deliver() local 253 old_state = new_state = READ_ONCE(icp->state); in icp_rm_try_to_deliver() 258 success = new_state.cppr > priority && in icp_rm_try_to_deliver() 259 new_state.mfrr > priority && in icp_rm_try_to_deliver() 260 new_state.pending_pri > priority; in icp_rm_try_to_deliver() 267 *reject = new_state.xisr; in icp_rm_try_to_deliver() 268 new_state.xisr = irq; in icp_rm_try_to_deliver() 269 new_state.pending_pri = priority; in icp_rm_try_to_deliver() 276 new_state.need_resend = true; in icp_rm_try_to_deliver() 279 } while (!icp_rm_try_update(icp, old_state, new_state)); in icp_rm_try_to_deliver() [all …]
|
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 …]
|
/kernel/linux/linux-5.10/net/wimax/ |
D | stack.c | 88 enum wimax_st new_state, enum wimax_st old_state, in wimax_gnl_re_state_change_alloc() argument 97 wimax_dev, new_state, old_state); in wimax_gnl_re_state_change_alloc() 118 result = nla_put_u8(report_skb, WIMAX_GNL_STCH_STATE_NEW, new_state); in wimax_gnl_re_state_change_alloc() 130 wimax_dev, new_state, old_state, report_skb); in wimax_gnl_re_state_change_alloc() 137 wimax_dev, new_state, old_state, result); in wimax_gnl_re_state_change_alloc() 175 void __check_new_state(enum wimax_st old_state, enum wimax_st new_state, in __check_new_state() argument 178 if (WARN_ON(((1 << new_state) & allowed_states_bm) == 0)) { in __check_new_state() 180 old_state, new_state); in __check_new_state() 189 void __wimax_state_change(struct wimax_dev *wimax_dev, enum wimax_st new_state) in __wimax_state_change() argument 197 wimax_dev, new_state, old_state); in __wimax_state_change() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | sf.c | 214 enum iwl_sf_state new_state) in iwl_mvm_sf_config() argument 217 .state = cpu_to_le32(new_state), in iwl_mvm_sf_config() 229 if (new_state != SF_FULL_ON && mvm->sf_state == new_state) in iwl_mvm_sf_config() 232 switch (new_state) { in iwl_mvm_sf_config() 257 new_state); in iwl_mvm_sf_config() 264 mvm->sf_state = new_state; in iwl_mvm_sf_config() 277 enum iwl_sf_state new_state; in iwl_mvm_sf_update() local 306 new_state = SF_INIT_OFF; in iwl_mvm_sf_update() 313 new_state = data.sta_vif_state; in iwl_mvm_sf_update() 319 new_state = SF_UNINIT; in iwl_mvm_sf_update() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_mixer.c | 45 struct mdp5_hw_mixer_state *new_state; in mdp5_mixer_assign() local 51 new_state = &global_state->hwmixer; in mdp5_mixer_assign() 63 if (new_state->hwmixer_to_crtc[cur->idx] && in mdp5_mixer_assign() 64 new_state->hwmixer_to_crtc[cur->idx] != crtc) in mdp5_mixer_assign() 78 if (new_state->hwmixer_to_crtc[pair_idx]) in mdp5_mixer_assign() 109 new_state->hwmixer_to_crtc[(*mixer)->idx] = crtc; in mdp5_mixer_assign() 113 new_state->hwmixer_to_crtc[(*r_mixer)->idx] = crtc; in mdp5_mixer_assign() 122 struct mdp5_hw_mixer_state *new_state; in mdp5_mixer_release() local 130 new_state = &global_state->hwmixer; in mdp5_mixer_release() 132 if (WARN_ON(!new_state->hwmixer_to_crtc[mixer->idx])) in mdp5_mixer_release() [all …]
|
D | mdp5_pipe.c | 17 struct mdp5_hw_pipe_state *old_state, *new_state; in mdp5_pipe_assign() local 28 new_state = &new_global_state->hwpipe; in mdp5_pipe_assign() 40 if (new_state->hwpipe_to_plane[cur->idx] || in mdp5_pipe_assign() 111 new_state->hwpipe_to_plane[(*hwpipe)->idx] = plane; in mdp5_pipe_assign() 116 new_state->hwpipe_to_plane[(*r_hwpipe)->idx] = plane; in mdp5_pipe_assign() 127 struct mdp5_hw_pipe_state *new_state; in mdp5_pipe_release() local 136 new_state = &state->hwpipe; in mdp5_pipe_release() 138 if (WARN_ON(!new_state->hwpipe_to_plane[hwpipe->idx])) in mdp5_pipe_release() 142 new_state->hwpipe_to_plane[hwpipe->idx]->name); in mdp5_pipe_release() 149 new_state->hwpipe_to_plane[hwpipe->idx] = NULL; in mdp5_pipe_release()
|
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
D | pmic8xxx-keypad.c | 171 static int pmic8xxx_kp_read_matrix(struct pmic8xxx_kp *kp, u16 *new_state, in pmic8xxx_kp_read_matrix() argument 194 rc = pmic8xxx_kp_read_data(kp, new_state, KEYP_RECENT_DATA, in pmic8xxx_kp_read_matrix() 219 static void __pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, u16 *new_state, in __pmic8xxx_kp_scan_matrix() argument 225 int bits_changed = new_state[row] ^ old_state[row]; in __pmic8xxx_kp_scan_matrix() 235 !(new_state[row] & (1 << col)) ? in __pmic8xxx_kp_scan_matrix() 243 !(new_state[row] & (1 << col))); in __pmic8xxx_kp_scan_matrix() 250 static bool pmic8xxx_detect_ghost_keys(struct pmic8xxx_kp *kp, u16 *new_state) in pmic8xxx_detect_ghost_keys() argument 257 row_state = (~new_state[row]) & in pmic8xxx_detect_ghost_keys() 276 u16 new_state[PM8XXX_MAX_ROWS]; in pmic8xxx_kp_scan_matrix() local 282 rc = pmic8xxx_kp_read_matrix(kp, new_state, NULL); in pmic8xxx_kp_scan_matrix() [all …]
|
D | twl4030_keypad.c | 166 u8 new_state[TWL4030_MAX_ROWS]; in twl4030_read_kp_matrix_state() local 168 int ret = twl4030_kpread(kp, new_state, in twl4030_read_kp_matrix_state() 172 state[row] = twl4030_col_xlate(kp, new_state[row]); in twl4030_read_kp_matrix_state() 197 u16 new_state[TWL4030_MAX_ROWS]; in twl4030_kp_scan() local 201 memset(new_state, 0, sizeof(new_state)); in twl4030_kp_scan() 204 int ret = twl4030_read_kp_matrix_state(kp, new_state); in twl4030_kp_scan() 209 if (twl4030_is_in_ghost_state(kp, new_state)) in twl4030_kp_scan() 215 int changed = new_state[row] ^ kp->kp_state[row]; in twl4030_kp_scan() 228 (new_state[row] & (1 << col)) ? in twl4030_kp_scan() 234 new_state[row] & (1 << col)); in twl4030_kp_scan() [all …]
|
D | pxa27x_keypad.c | 413 uint32_t new_state[MAX_MATRIX_KEY_COLS]; in pxa27x_keypad_scan_matrix() local 418 memset(new_state, 0, sizeof(new_state)); in pxa27x_keypad_scan_matrix() 432 new_state[col] = (1 << row); in pxa27x_keypad_scan_matrix() 442 new_state[0] = kpasmkp0 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 443 new_state[1] = (kpasmkp0 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 444 new_state[2] = kpasmkp1 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 445 new_state[3] = (kpasmkp1 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 446 new_state[4] = kpasmkp2 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 447 new_state[5] = (kpasmkp2 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 448 new_state[6] = kpasmkp3 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() [all …]
|
D | omap-keypad.c | 96 unsigned char new_state[8], changed, key_down = 0; in omap_kp_tasklet() local 100 omap_kp_scan_keypad(omap_kp_data, new_state); in omap_kp_tasklet() 104 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet() 105 key_down |= new_state[col]; in omap_kp_tasklet() 115 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet() 126 new_state[col] & (1 << row)); in omap_kp_tasklet() 131 memcpy(keypad_state, new_state, sizeof(keypad_state)); in omap_kp_tasklet()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/ |
D | mtk_drm_plane.c | 112 struct drm_plane_state *new_state) in mtk_plane_atomic_async_update() argument 116 plane->state->crtc_x = new_state->crtc_x; in mtk_plane_atomic_async_update() 117 plane->state->crtc_y = new_state->crtc_y; in mtk_plane_atomic_async_update() 118 plane->state->crtc_h = new_state->crtc_h; in mtk_plane_atomic_async_update() 119 plane->state->crtc_w = new_state->crtc_w; in mtk_plane_atomic_async_update() 120 plane->state->src_x = new_state->src_x; in mtk_plane_atomic_async_update() 121 plane->state->src_y = new_state->src_y; in mtk_plane_atomic_async_update() 122 plane->state->src_h = new_state->src_h; in mtk_plane_atomic_async_update() 123 plane->state->src_w = new_state->src_w; in mtk_plane_atomic_async_update() 124 swap(plane->state->fb, new_state->fb); in mtk_plane_atomic_async_update() [all …]
|
/kernel/linux/linux-5.10/include/drm/ |
D | drm_atomic.h | 160 struct drm_plane_state *state, *old_state, *new_state; member 165 struct drm_crtc_state *state, *old_state, *new_state; member 183 struct drm_connector_state *state, *old_state, *new_state; member 304 struct drm_private_state *state, *old_state, *new_state; member 522 return state->crtcs[drm_crtc_index(crtc)].new_state; in drm_atomic_get_new_crtc_state() 570 return state->planes[drm_plane_index(plane)].new_state; in drm_atomic_get_new_plane_state() 633 return state->connectors[index].new_state; in drm_atomic_get_new_connector_state() 710 (new_connector_state) = (__state)->connectors[__i].new_state, 1)) 752 (new_connector_state) = (__state)->connectors[__i].new_state, \ 776 (new_crtc_state) = (__state)->crtcs[__i].new_state, 1)) [all …]
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | dell-laptop.c | 1537 struct kbd_state new_state; in kbd_led_timeout_store() local 1630 new_state = state; in kbd_led_timeout_store() 1633 new_state.timeout_value_ac = value; in kbd_led_timeout_store() 1634 new_state.timeout_unit_ac = unit; in kbd_led_timeout_store() 1636 new_state.timeout_value = value; in kbd_led_timeout_store() 1637 new_state.timeout_unit = unit; in kbd_led_timeout_store() 1640 ret = kbd_set_state_safe(&new_state, &state); in kbd_led_timeout_store() 1703 struct kbd_state new_state; in kbd_led_triggers_store() local 1754 new_state = state; in kbd_led_triggers_store() 1756 new_state.triggers |= BIT(trigger_bit); in kbd_led_triggers_store() [all …]
|
/kernel/linux/linux-5.10/drivers/pcmcia/ |
D | sa1111_lubbock.c | 95 struct pcmcia_state new_state; in lubbock_pcmcia_configure_socket() local 109 sa1111_pcmcia_socket_state(skt, &new_state); in lubbock_pcmcia_configure_socket() 111 if (!new_state.vs_3v && !new_state.vs_Xv) { in lubbock_pcmcia_configure_socket()
|
/kernel/linux/linux-5.10/drivers/irqchip/ |
D | irq-al-fic.c | 47 enum al_fic_state new_state) in al_fic_set_trigger() argument 52 if (new_state == AL_FIC_CONFIGURED_LEVEL) { in al_fic_set_trigger() 60 fic->state = new_state; in al_fic_set_trigger() 68 enum al_fic_state new_state; in al_fic_irq_set_type() local 80 new_state = (flow_type & IRQ_TYPE_LEVEL_HIGH) ? in al_fic_irq_set_type() 93 al_fic_set_trigger(fic, gc, new_state); in al_fic_irq_set_type() 94 } else if (fic->state != new_state) { in al_fic_irq_set_type()
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
D | speedstep-smi.c | 150 unsigned int result = 0, command, new_state, dummy; in speedstep_set_state() local 189 : "=b" (new_state), "=D" (result), in speedstep_set_state() 195 } while ((new_state != state) && (retry <= SMI_TRIES)); in speedstep_set_state() 201 if (new_state == state) in speedstep_set_state() 204 (speedstep_freqs[new_state].frequency / 1000), in speedstep_set_state() 208 state, new_state, result); in speedstep_set_state()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | rs780_dpm.c | 431 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_scaling() local 435 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_set_engine_clock_scaling() 436 (new_state->sclk_low == old_state->sclk_low)) in rs780_set_engine_clock_scaling() 440 new_state->sclk_low, false, &min_dividers); in rs780_set_engine_clock_scaling() 445 new_state->sclk_high, false, &max_dividers); in rs780_set_engine_clock_scaling() 478 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_spc() local 482 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_set_engine_clock_spc() 483 (new_state->sclk_low == old_state->sclk_low)) in rs780_set_engine_clock_spc() 497 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_activate_engine_clk_scaling() local 500 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_activate_engine_clk_scaling() [all …]
|
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 …]
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | nf_conntrack_proto_sctp.c | 275 enum sctp_conntrack new_state; in sctp_new() local 281 new_state = SCTP_CONNTRACK_MAX; in sctp_new() 283 new_state = sctp_new_state(IP_CT_DIR_ORIGINAL, in sctp_new() 287 if (new_state == SCTP_CONNTRACK_NONE || in sctp_new() 288 new_state == SCTP_CONNTRACK_MAX) { in sctp_new() 365 enum sctp_conntrack new_state, old_state; in nf_conntrack_sctp_packet() local 410 old_state = new_state = SCTP_CONNTRACK_NONE; in nf_conntrack_sctp_packet() 470 new_state = sctp_new_state(dir, old_state, sch->type); in nf_conntrack_sctp_packet() 473 if (new_state == SCTP_CONNTRACK_MAX) { in nf_conntrack_sctp_packet() 497 if (new_state == SCTP_CONNTRACK_CLOSED && in nf_conntrack_sctp_packet() [all …]
|
D | nf_conntrack_proto_tcp.c | 769 enum tcp_conntrack new_state; in tcp_new() local 776 new_state = tcp_conntracks[0][get_conntrack_index(th)][TCP_CONNTRACK_NONE]; in tcp_new() 779 if (new_state >= TCP_CONNTRACK_MAX) { in tcp_new() 784 if (new_state == TCP_CONNTRACK_SYN_SENT) { in tcp_new() 863 enum tcp_conntrack new_state, old_state; in nf_conntrack_tcp_packet() local 884 new_state = tcp_conntracks[dir][index][old_state]; in nf_conntrack_tcp_packet() 887 switch (new_state) { in nf_conntrack_tcp_packet() 946 new_state = TCP_CONNTRACK_SYN_RECV; in nf_conntrack_tcp_packet() 1051 new_state = TCP_CONNTRACK_ESTABLISHED; in nf_conntrack_tcp_packet() 1083 new_state = old_state; in nf_conntrack_tcp_packet() [all …]
|
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 452 enum can_state new_state; in pcan_usb_decode_error() local 459 new_state = mc->pdev->dev.can.state; in pcan_usb_decode_error() 464 new_state = CAN_STATE_ERROR_WARNING; in pcan_usb_decode_error() 471 new_state = CAN_STATE_ERROR_PASSIVE; in pcan_usb_decode_error() 475 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error() 483 new_state = CAN_STATE_MAX; in pcan_usb_decode_error() 488 new_state = CAN_STATE_ERROR_ACTIVE; in pcan_usb_decode_error() 495 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error() 499 new_state = CAN_STATE_ERROR_WARNING; in pcan_usb_decode_error() 507 new_state = CAN_STATE_MAX; in pcan_usb_decode_error() [all …]
|
/kernel/linux/linux-5.10/drivers/macintosh/ |
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()
|
D | windfarm_pm112.c | 202 int new_state = 0; in cpu_check_overtemp() local 207 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 213 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 234 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 240 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 250 if (new_state) { in cpu_check_overtemp() 252 if (new_state & FAILURE_HIGH_OVERTEMP) in cpu_check_overtemp() 254 if ((failure_state & new_state) != new_state) in cpu_check_overtemp() 256 failure_state |= new_state; in cpu_check_overtemp()
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | devlink.h | 148 bool new_state), 150 TP_ARGS(devlink, reporter_name, new_state), 157 __field(u8, new_state) 165 __entry->new_state = new_state; 171 __entry->new_state)
|