/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | sf.c | 215 enum iwl_sf_state new_state) in iwl_mvm_sf_config() argument 218 .state = cpu_to_le32(new_state), in iwl_mvm_sf_config() 230 if (new_state != SF_FULL_ON && mvm->sf_state == new_state) in iwl_mvm_sf_config() 233 switch (new_state) { in iwl_mvm_sf_config() 258 new_state); in iwl_mvm_sf_config() 265 mvm->sf_state = new_state; in iwl_mvm_sf_config() 278 enum iwl_sf_state new_state; in iwl_mvm_sf_update() local 307 new_state = SF_INIT_OFF; in iwl_mvm_sf_update() 314 new_state = data.sta_vif_state; in iwl_mvm_sf_update() 320 new_state = SF_UNINIT; in iwl_mvm_sf_update() [all …]
|
/drivers/input/keyboard/ |
D | pmic8xxx-keypad.c | 179 static int pmic8xxx_kp_read_matrix(struct pmic8xxx_kp *kp, u16 *new_state, in pmic8xxx_kp_read_matrix() argument 202 rc = pmic8xxx_kp_read_data(kp, new_state, KEYP_RECENT_DATA, in pmic8xxx_kp_read_matrix() 227 static void __pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, u16 *new_state, in __pmic8xxx_kp_scan_matrix() argument 233 int bits_changed = new_state[row] ^ old_state[row]; in __pmic8xxx_kp_scan_matrix() 243 !(new_state[row] & (1 << col)) ? in __pmic8xxx_kp_scan_matrix() 251 !(new_state[row] & (1 << col))); in __pmic8xxx_kp_scan_matrix() 258 static bool pmic8xxx_detect_ghost_keys(struct pmic8xxx_kp *kp, u16 *new_state) in pmic8xxx_detect_ghost_keys() argument 265 row_state = (~new_state[row]) & in pmic8xxx_detect_ghost_keys() 284 u16 new_state[PM8XXX_MAX_ROWS]; in pmic8xxx_kp_scan_matrix() local 290 rc = pmic8xxx_kp_read_matrix(kp, new_state, NULL); in pmic8xxx_kp_scan_matrix() [all …]
|
D | pxa27x_keypad.c | 416 uint32_t new_state[MAX_MATRIX_KEY_COLS]; in pxa27x_keypad_scan_matrix() local 421 memset(new_state, 0, sizeof(new_state)); in pxa27x_keypad_scan_matrix() 435 new_state[col] = (1 << row); in pxa27x_keypad_scan_matrix() 445 new_state[0] = kpasmkp0 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 446 new_state[1] = (kpasmkp0 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 447 new_state[2] = kpasmkp1 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 448 new_state[3] = (kpasmkp1 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 449 new_state[4] = kpasmkp2 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 450 new_state[5] = (kpasmkp2 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 451 new_state[6] = kpasmkp3 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() [all …]
|
D | twl4030_keypad.c | 179 u8 new_state[TWL4030_MAX_ROWS]; in twl4030_read_kp_matrix_state() local 181 int ret = twl4030_kpread(kp, new_state, in twl4030_read_kp_matrix_state() 185 state[row] = twl4030_col_xlate(kp, new_state[row]); in twl4030_read_kp_matrix_state() 210 u16 new_state[TWL4030_MAX_ROWS]; in twl4030_kp_scan() local 214 memset(new_state, 0, sizeof(new_state)); in twl4030_kp_scan() 217 int ret = twl4030_read_kp_matrix_state(kp, new_state); in twl4030_kp_scan() 222 if (twl4030_is_in_ghost_state(kp, new_state)) in twl4030_kp_scan() 228 int changed = new_state[row] ^ kp->kp_state[row]; in twl4030_kp_scan() 241 (new_state[row] & (1 << col)) ? in twl4030_kp_scan() 247 new_state[row] & (1 << col)); in twl4030_kp_scan() [all …]
|
D | omap-keypad.c | 109 unsigned char new_state[8], changed, key_down = 0; in omap_kp_tasklet() local 113 omap_kp_scan_keypad(omap_kp_data, new_state); in omap_kp_tasklet() 117 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet() 118 key_down |= new_state[col]; in omap_kp_tasklet() 128 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet() 139 new_state[col] & (1 << row)); in omap_kp_tasklet() 144 memcpy(keypad_state, new_state, sizeof(keypad_state)); in omap_kp_tasklet()
|
D | cros_ec_keyb.c | 115 int new_state; in cros_ec_keyb_process() local 136 new_state = kb_state[col] & (1 << row); in cros_ec_keyb_process() 138 if (new_state != old_state) { in cros_ec_keyb_process() 141 row, col, new_state); in cros_ec_keyb_process() 144 new_state); in cros_ec_keyb_process()
|
D | matrix_keypad.c | 123 uint32_t new_state[MATRIX_MAX_COLS]; in matrix_keypad_scan() local 129 memset(new_state, 0, sizeof(new_state)); in matrix_keypad_scan() 137 new_state[col] |= in matrix_keypad_scan() 146 bits_changed = keypad->last_key_state[col] ^ new_state[col]; in matrix_keypad_scan() 158 new_state[col] & (1 << row)); in matrix_keypad_scan() 163 memcpy(keypad->last_key_state, new_state, sizeof(new_state)); in matrix_keypad_scan()
|
/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()
|
D | temp.c | 142 enum nvkm_therm_thrs_state prev_state, new_state; in nvkm_therm_threshold_hyst_polling() local 149 new_state = NVKM_THERM_THRS_HIGHER; in nvkm_therm_threshold_hyst_polling() 153 new_state = NVKM_THERM_THRS_LOWER; in nvkm_therm_threshold_hyst_polling() 157 nvkm_therm_sensor_set_threshold_state(therm, thrs_name, new_state); in nvkm_therm_threshold_hyst_polling()
|
/drivers/platform/x86/ |
D | dell-laptop.c | 1497 struct kbd_state new_state; in kbd_led_timeout_store() local 1586 new_state = state; in kbd_led_timeout_store() 1587 new_state.timeout_value = value; in kbd_led_timeout_store() 1588 new_state.timeout_unit = unit; in kbd_led_timeout_store() 1590 ret = kbd_set_state_safe(&new_state, &state); in kbd_led_timeout_store() 1640 struct kbd_state new_state; in kbd_led_triggers_store() local 1681 new_state = state; in kbd_led_triggers_store() 1683 new_state.triggers |= BIT(trigger_bit); in kbd_led_triggers_store() 1685 new_state.triggers &= ~BIT(trigger_bit); in kbd_led_triggers_store() 1690 new_state.triggers &= ~BIT(2); in kbd_led_triggers_store() [all …]
|
/drivers/cpufreq/ |
D | speedstep-smi.c | 152 unsigned int result = 0, command, new_state, dummy; in speedstep_set_state() local 191 : "=b" (new_state), "=D" (result), in speedstep_set_state() 197 } while ((new_state != state) && (retry <= SMI_TRIES)); in speedstep_set_state() 203 if (new_state == state) in speedstep_set_state() 206 (speedstep_freqs[new_state].frequency / 1000), in speedstep_set_state() 210 state, new_state, result); in speedstep_set_state()
|
/drivers/gpu/drm/radeon/ |
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 …]
|
D | rv6xx_dpm.c | 970 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_enable_static_voltage_control() local 974 new_state->low.vddc, in rv6xx_enable_static_voltage_control() 1049 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_calculate_stepping_parameters() local 1051 rv6xx_calculate_engine_speed_stepping_parameters(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1052 rv6xx_calculate_memory_clock_stepping_parameters(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1053 rv6xx_calculate_voltage_stepping_parameters(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1054 rv6xx_calculate_ap(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1203 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_set_sw_voltage_to_safe() local 1207 safe_voltage = (new_state->low.vddc >= old_state->low.vddc) ? in rv6xx_set_sw_voltage_to_safe() 1208 new_state->low.vddc : old_state->low.vddc; in rv6xx_set_sw_voltage_to_safe() [all …]
|
/drivers/pcmcia/ |
D | sa1111_lubbock.c | 158 struct pcmcia_state new_state; in lubbock_pcmcia_configure_socket() local 172 sa1111_pcmcia_socket_state(skt, &new_state); in lubbock_pcmcia_configure_socket() 174 if (!new_state.vs_3v && !new_state.vs_Xv) { in lubbock_pcmcia_configure_socket()
|
/drivers/gpu/drm/vc4/ |
D | vc4_kms.c | 114 struct drm_plane_state *new_state; in vc4_atomic_commit() local 159 for_each_plane_in_state(state, plane, new_state, i) { in vc4_atomic_commit() 160 if ((plane->state->fb != new_state->fb) && new_state->fb) { in vc4_atomic_commit() 162 drm_fb_cma_get_gem_obj(new_state->fb, 0); in vc4_atomic_commit()
|
/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 409 enum can_state new_state; in pcan_usb_decode_error() local 416 new_state = mc->pdev->dev.can.state; in pcan_usb_decode_error() 421 new_state = CAN_STATE_ERROR_WARNING; in pcan_usb_decode_error() 427 new_state = CAN_STATE_ERROR_PASSIVE; in pcan_usb_decode_error() 431 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error() 439 new_state = CAN_STATE_MAX; in pcan_usb_decode_error() 451 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error() 455 new_state = CAN_STATE_ERROR_WARNING; in pcan_usb_decode_error() 463 new_state = CAN_STATE_MAX; in pcan_usb_decode_error() 480 if (mc->pdev->dev.can.state == new_state) in pcan_usb_decode_error() [all …]
|
/drivers/macintosh/ |
D | windfarm_pm112.c | 198 int new_state = 0; in cpu_check_overtemp() local 203 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 209 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 230 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 236 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 246 if (new_state) { in cpu_check_overtemp() 248 if (new_state & FAILURE_HIGH_OVERTEMP) in cpu_check_overtemp() 250 if ((failure_state & new_state) != new_state) in cpu_check_overtemp() 252 failure_state |= new_state; in cpu_check_overtemp()
|
D | windfarm_rm31.c | 122 int new_state = 0; in cpu_check_overtemp() local 128 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 134 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 171 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 177 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 187 if (new_state) { in cpu_check_overtemp() 189 if (new_state & FAILURE_HIGH_OVERTEMP) in cpu_check_overtemp() 191 if ((failure_state & new_state) != new_state) in cpu_check_overtemp() 193 failure_state |= new_state; in cpu_check_overtemp()
|
D | windfarm_pm72.c | 128 int new_state = 0; in cpu_check_overtemp() local 134 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 140 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 177 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 183 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 193 if (new_state) { in cpu_check_overtemp() 195 if (new_state & FAILURE_HIGH_OVERTEMP) in cpu_check_overtemp() 197 if ((failure_state & new_state) != new_state) in cpu_check_overtemp() 199 failure_state |= new_state; in cpu_check_overtemp()
|
/drivers/isdn/gigaset/ |
D | interface.c | 408 unsigned int control_state, new_state; in if_set_termios() local 437 new_state = control_state | TIOCM_DTR; in if_set_termios() 440 new_state |= TIOCM_RTS; in if_set_termios() 443 (new_state & TIOCM_RTS) ? " only" : "/RTS"); in if_set_termios() 444 cs->ops->set_modem_ctrl(cs, control_state, new_state); in if_set_termios() 445 control_state = new_state; in if_set_termios() 453 new_state = control_state & ~(TIOCM_DTR | TIOCM_RTS); in if_set_termios() 454 cs->ops->set_modem_ctrl(cs, control_state, new_state); in if_set_termios() 455 control_state = new_state; in if_set_termios()
|
/drivers/xen/xen-pciback/ |
D | conf_space_capability.c | 118 pci_power_t new_state, old_state; in pm_ctrl_write() local 125 new_state = (pci_power_t)(new_value & PCI_PM_CTRL_STATE_MASK); in pm_ctrl_write() 136 dev_dbg(&dev->dev, "set power state to %x\n", new_state); in pm_ctrl_write() 137 err = pci_set_power_state(dev, new_state); in pm_ctrl_write()
|
/drivers/scsi/ibmvscsi_tgt/ |
D | ibmvscsi_tgt.c | 267 state_under_lock = vscsi->new_state; in ibmvscsis_free_command_q() 276 if (state_under_lock != vscsi->new_state) in ibmvscsis_free_command_q() 277 vscsi->phyp_acr_state = vscsi->new_state; in ibmvscsis_free_command_q() 417 u16 new_state; in ibmvscsis_disconnect() local 421 new_state = vscsi->new_state; in ibmvscsis_disconnect() 422 vscsi->new_state = 0; in ibmvscsis_disconnect() 443 if (new_state == UNCONFIGURING) in ibmvscsis_disconnect() 444 vscsi->state = new_state; in ibmvscsis_disconnect() 452 switch (new_state) { in ibmvscsis_disconnect() 455 vscsi->state = new_state; in ibmvscsis_disconnect() [all …]
|
/drivers/net/can/ |
D | at91_can.c | 880 struct can_frame *cf, enum can_state new_state) in at91_irq_err_state() argument 895 if (new_state >= CAN_STATE_ERROR_WARNING && in at91_irq_err_state() 896 new_state <= CAN_STATE_BUS_OFF) { in at91_irq_err_state() 911 if (new_state >= CAN_STATE_ERROR_PASSIVE && in at91_irq_err_state() 912 new_state <= CAN_STATE_BUS_OFF) { in at91_irq_err_state() 927 if (new_state <= CAN_STATE_ERROR_PASSIVE) { in at91_irq_err_state() 943 switch (new_state) { in at91_irq_err_state() 1015 enum can_state new_state; in at91_irq_err() local 1024 new_state = CAN_STATE_BUS_OFF; in at91_irq_err() 1026 new_state = CAN_STATE_ERROR_PASSIVE; in at91_irq_err() [all …]
|
/drivers/of/ |
D | dynamic.c | 129 int is_status, status_state, old_status_state, prev_state, new_state; in of_reconfig_get_state_change() local 153 new_state = -1; in of_reconfig_get_state_change() 168 new_state = status_state != 0; in of_reconfig_get_state_change() 173 new_state = 0; in of_reconfig_get_state_change() 179 new_state = status_state; in of_reconfig_get_state_change() 186 new_state = 1; in of_reconfig_get_state_change() 192 new_state = status_state != 0; in of_reconfig_get_state_change() 197 if (prev_state == new_state) in of_reconfig_get_state_change() 200 return new_state ? OF_RECONFIG_CHANGE_ADD : OF_RECONFIG_CHANGE_REMOVE; in of_reconfig_get_state_change()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | qp.c | 88 enum mlx4_qp_state cur_state, enum mlx4_qp_state new_state, in __mlx4_qp_modify() argument 140 if (cur_state >= MLX4_QP_NUM_STATE || new_state >= MLX4_QP_NUM_STATE || in __mlx4_qp_modify() 141 !op[cur_state][new_state]) in __mlx4_qp_modify() 144 if (op[cur_state][new_state] == MLX4_CMD_2RST_QP) { in __mlx4_qp_modify() 163 if (cur_state == MLX4_QP_STATE_RST && new_state == MLX4_QP_STATE_INIT) { in __mlx4_qp_modify() 171 (new_state == MLX4_QP_STATE_RTS) && in __mlx4_qp_modify() 184 new_state == MLX4_QP_STATE_RST ? 2 : 0, in __mlx4_qp_modify() 185 op[cur_state][new_state], MLX4_CMD_TIME_CLASS_C, native); in __mlx4_qp_modify() 191 new_state == MLX4_QP_STATE_ERR) { in __mlx4_qp_modify() 196 } else if (new_state == MLX4_QP_STATE_RTR) { in __mlx4_qp_modify() [all …]
|