Home
last modified time | relevance | path

Searched refs:last_state (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v4.19/drivers/cpuidle/governors/
Dladder.c70 struct ladder_device_state *last_state; in ladder_select_state() local
81 last_state = &ldev->states[last_idx]; in ladder_select_state()
89 last_residency > last_state->threshold.promotion_time && in ladder_select_state()
91 last_state->stats.promotion_count++; in ladder_select_state()
92 last_state->stats.demotion_count = 0; in ladder_select_state()
93 if (last_state->stats.promotion_count >= last_state->threshold.promotion_count) { in ladder_select_state()
115 last_residency < last_state->threshold.demotion_time) { in ladder_select_state()
116 last_state->stats.demotion_count++; in ladder_select_state()
117 last_state->stats.promotion_count = 0; in ladder_select_state()
118 if (last_state->stats.demotion_count >= last_state->threshold.demotion_count) { in ladder_select_state()
/Linux-v4.19/tools/laptop/dslm/
Ddslm.c69 int last_state; in measure() local
83 last_state = check_powermode(fd); in measure()
85 printf(" System is in state %s\n\n", state_name(last_state)); in measure()
91 if (curr_state != last_state || endit) { in measure()
96 if (last_state == 1) active_time += time_diff; in measure()
97 else if (last_state == 0) sleep_time += time_diff; in measure()
100 last_state = curr_state; in measure()
/Linux-v4.19/drivers/power/supply/
Dsbs-charger.c45 unsigned int last_state; member
55 reg = chip->last_state; in sbs_get_property()
102 if (!ret && reg != chip->last_state) { in sbs_check_state()
103 chip->last_state = reg; in sbs_check_state()
200 chip->last_state = val; in sbs_probe()
Dsbs-manager.c52 unsigned int last_state; member
249 irq_bat = ret ^ sbsm->last_state; in sbsm_alert()
250 sbsm->last_state = ret; in sbsm_alert()
283 data->last_state = ret; in sbsm_gpio_setup()
Dsbs-battery.c169 int last_state; member
443 chip->last_state = val->intval; in sbs_get_battery_property()
444 else if (chip->last_state != val->intval) { in sbs_get_battery_property()
799 if (chip->last_state != ret) { in sbs_delayed_work()
848 chip->last_state = POWER_SUPPLY_STATUS_UNKNOWN; in sbs_probe()
/Linux-v4.19/drivers/input/keyboard/
Dclps711x-keypad.c27 DECLARE_BITMAP(last_state, CLPS711X_KEYPAD_COL_COUNT);
62 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll()
67 set_bit(col, data->last_state); in clps711x_keypad_poll()
71 clear_bit(col, data->last_state); in clps711x_keypad_poll()
Dgpio_keys_polled.c34 int last_state; member
85 if (state != bdata->last_state) { in gpio_keys_polled_check_state()
87 bdata->last_state = state; in gpio_keys_polled_check_state()
108 bdata->last_state); in gpio_keys_polled_poll()
347 bdata->last_state = -1; in gpio_keys_polled_probe()
Dbcm-keypad.c81 unsigned long last_state[2]; member
115 change = kp->last_state[reg_num] ^ state; in bcm_kp_report_keys()
116 kp->last_state[reg_num] = state; in bcm_kp_report_keys()
166 kp->last_state[0] = readl(kp->base + KPSSR0_OFFSET); in bcm_kp_start()
167 kp->last_state[0] = readl(kp->base + KPSSR1_OFFSET); in bcm_kp_start()
Dst-keyscan.c36 unsigned long last_state; member
50 change = keypad->last_state ^ state; in keyscan_isr()
51 keypad->last_state = state; in keyscan_isr()
/Linux-v4.19/drivers/net/wireless/ath/carl9170/
Dled.c79 if (ar->leds[i].last_state || in carl9170_led_update()
115 if (arl->last_state != !!brightness) { in carl9170_led_set_brightness()
117 arl->last_state = !!brightness; in carl9170_led_set_brightness()
Dcarl9170.h202 bool last_state; member
/Linux-v4.19/drivers/acpi/
Dbutton.c127 int last_state; member
174 button->last_state != !!state) in acpi_lid_notify_state()
181 if (button->last_state == !!state && in acpi_lid_notify_state()
235 button->last_state = !!state; in acpi_lid_notify_state()
470 button->last_state = !!acpi_lid_evaluate_state(device); in acpi_lid_input_open()
/Linux-v4.19/drivers/misc/
Dioc4.c147 unsigned int state, last_state; in ioc4_clock_calibrate() local
174 last_state = state; in ioc4_clock_calibrate()
177 } while (last_state || !state); in ioc4_clock_calibrate()
/Linux-v4.19/drivers/hid/
Dhid-magicmouse.c147 int last_state = test_bit(BTN_LEFT, msc->input->key) << 0 | in magicmouse_emit_buttons() local
160 } else if (last_state != 0) { in magicmouse_emit_buttons()
161 state = last_state; in magicmouse_emit_buttons()
178 if (state != last_state) in magicmouse_emit_buttons()
/Linux-v4.19/drivers/net/bonding/
Dbond_3ad.c925 mux_states_t last_state; in ad_mux_machine() local
930 last_state = port->sm_mux_state; in ad_mux_machine()
1026 if (port->sm_mux_state != last_state) { in ad_mux_machine()
1030 last_state, in ad_mux_machine()
1082 rx_states_t last_state; in ad_rx_machine() local
1087 last_state = port->sm_rx_state; in ad_rx_machine()
1140 if ((port->sm_rx_state != last_state) || (lacpdu)) { in ad_rx_machine()
1144 last_state, in ad_rx_machine()
1288 periodic_states_t last_state; in ad_periodic_machine() local
1291 last_state = port->sm_periodic_state; in ad_periodic_machine()
[all …]
/Linux-v4.19/drivers/media/usb/dvb-usb/
Ddvb-usb.h458 int last_state; member
/Linux-v4.19/drivers/staging/speakup/
Dmain.c611 u_short edge_said = 0, last_state = 0, state = 0; in say_prev_word() local
647 if (state < last_state) { in say_prev_word()
652 last_state = state; in say_prev_word()
665 u_short edge_said = 0, last_state = 2, state = 0; in say_next_word() local
680 if (state > last_state) in say_next_word()
695 last_state = state; in say_next_word()
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dpm.h378 enum amd_pm_state_type last_state; member
/Linux-v4.19/drivers/message/fusion/
Dmptbase.h630 u32 last_state; member
Dmptbase.c3065 ioc->last_state = sc; in mpt_GetIocState()
3092 if (ioc->last_state == MPI_IOC_STATE_RESET) { in GetIocFacts()
3095 ioc->name, ioc->last_state); in GetIocFacts()
3265 if (ioc->last_state == MPI_IOC_STATE_RESET) { in GetPortFacts()
3267 ioc->name, ioc->last_state ); in GetPortFacts()
Dmptfc.c1193 if (ioc->last_state != MPI_IOC_STATE_OPERATIONAL) { in mptfc_probe()
Dmptspi.c1381 if (ioc->last_state != MPI_IOC_STATE_OPERATIONAL) { in mptspi_probe()
/Linux-v4.19/drivers/net/can/
Dflexcan.c750 enum can_state last_state = priv->can.state; in flexcan_irq() local
827 if ((last_state != priv->can.state) && in flexcan_irq()
/Linux-v4.19/tools/perf/
Dbuiltin-sched.c256 int last_state; member
2103 if (r->last_state == TASK_RUNNING) in timehist_update_runtime_stats()
2105 else if (r->last_state == TASK_UNINTERRUPTIBLE) in timehist_update_runtime_stats()
2615 tr->last_state = state; in timehist_sched_change_event()
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c1836 SVGA3dTextureState *last_state = (SVGA3dTextureState *) in vmw_cmd_tex_state() local
1853 for (; cur_state < last_state; ++cur_state) { in vmw_cmd_tex_state()

12