Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/cpuidle/governors/
Dladder.c70 struct ladder_device_state *last_state; in ladder_select_state() local
82 last_state = &ldev->states[last_idx]; in ladder_select_state()
89 last_residency > last_state->threshold.promotion_time_ns && 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()
114 last_residency < last_state->threshold.demotion_time_ns) { in ladder_select_state()
115 last_state->stats.demotion_count++; in ladder_select_state()
116 last_state->stats.promotion_count = 0; in ladder_select_state()
117 if (last_state->stats.demotion_count >= last_state->threshold.demotion_count) { in ladder_select_state()
/linux-6.1.9/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-6.1.9/kernel/livepatch/
Dstate.c67 struct klp_state *state, *last_state = NULL; in klp_get_prev_state() local
78 last_state = state; in klp_get_prev_state()
82 return last_state; in klp_get_prev_state()
/linux-6.1.9/drivers/power/supply/
Dsbs-charger.c40 unsigned int last_state; member
50 reg = chip->last_state; in sbs_get_property()
97 if (!ret && reg != chip->last_state) { in sbs_check_state()
98 chip->last_state = reg; in sbs_check_state()
193 chip->last_state = val; in sbs_probe()
Dsbs-manager.c49 unsigned int last_state; member
246 irq_bat = ret ^ sbsm->last_state; in sbsm_alert()
247 sbsm->last_state = ret; in sbsm_alert()
280 data->last_state = ret; in sbsm_gpio_setup()
Dsbs-battery.c210 int last_state; member
656 chip->last_state = val->intval; in sbs_get_battery_property()
657 else if (chip->last_state != val->intval) { in sbs_get_battery_property()
1095 if (chip->last_state != ret) { in sbs_delayed_work()
1142 chip->last_state = POWER_SUPPLY_STATUS_UNKNOWN; in sbs_probe()
/linux-6.1.9/drivers/input/keyboard/
Dclps711x-keypad.c24 DECLARE_BITMAP(last_state, CLPS711X_KEYPAD_COL_COUNT);
59 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll()
64 set_bit(col, data->last_state); in clps711x_keypad_poll()
68 clear_bit(col, data->last_state); in clps711x_keypad_poll()
Dgpio_keys_polled.c30 int last_state; member
80 if (state != bdata->last_state) { in gpio_keys_polled_check_state()
82 bdata->last_state = state; in gpio_keys_polled_check_state()
102 bdata->last_state); in gpio_keys_polled_poll()
338 bdata->last_state = -1; in gpio_keys_polled_probe()
Dbcm-keypad.c71 unsigned long last_state[2]; member
105 change = kp->last_state[reg_num] ^ state; in bcm_kp_report_keys()
106 kp->last_state[reg_num] = state; in bcm_kp_report_keys()
156 kp->last_state[0] = readl(kp->base + KPSSR0_OFFSET); in bcm_kp_start()
157 kp->last_state[0] = readl(kp->base + KPSSR1_OFFSET); in bcm_kp_start()
Dst-keyscan.c35 unsigned long last_state; member
49 change = keypad->last_state ^ state; in keyscan_isr()
50 keypad->last_state = state; in keyscan_isr()
/linux-6.1.9/drivers/acpi/
Dbutton.c157 int last_state; member
200 button->last_state != !!state) in acpi_lid_notify_state()
207 if (button->last_state == !!state && in acpi_lid_notify_state()
261 button->last_state = !!state; in acpi_lid_notify_state()
461 button->last_state = !!acpi_lid_evaluate_state(device); in acpi_button_resume()
474 button->last_state = !!acpi_lid_evaluate_state(device); in acpi_lid_input_open()
/linux-6.1.9/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.h205 bool last_state; member
/linux-6.1.9/drivers/net/bonding/
Dbond_3ad.c936 mux_states_t last_state; in ad_mux_machine() local
941 last_state = port->sm_mux_state; in ad_mux_machine()
1037 if (port->sm_mux_state != last_state) { in ad_mux_machine()
1041 last_state, in ad_mux_machine()
1093 rx_states_t last_state; in ad_rx_machine() local
1098 last_state = port->sm_rx_state; in ad_rx_machine()
1155 if ((port->sm_rx_state != last_state) || (lacpdu)) { in ad_rx_machine()
1159 last_state, in ad_rx_machine()
1305 periodic_states_t last_state; in ad_periodic_machine() local
1308 last_state = port->sm_periodic_state; in ad_periodic_machine()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf.h369 enum iavf_state_t last_state; member
504 adapter->last_state = adapter->state; in iavf_change_state()
509 iavf_state_str(adapter->last_state), in iavf_change_state()
/linux-6.1.9/drivers/hid/
Dhid-magicmouse.c175 int last_state = test_bit(BTN_LEFT, msc->input->key) << 0 | in magicmouse_emit_buttons() local
188 } else if (last_state != 0) { in magicmouse_emit_buttons()
189 state = last_state; in magicmouse_emit_buttons()
206 if (state != last_state) in magicmouse_emit_buttons()
/linux-6.1.9/drivers/media/usb/dvb-usb/
Ddvb-usb.h494 int last_state; member
/linux-6.1.9/drivers/accessibility/speakup/
Dmain.c608 u_short last_state = 0, state = 0; in say_prev_word() local
644 if (state < last_state) { in say_prev_word()
649 last_state = state; in say_prev_word()
663 u_short last_state = 2, state = 0; in say_next_word() local
678 if (state > last_state) in say_next_word()
693 last_state = state; in say_next_word()
/linux-6.1.9/drivers/gpu/drm/amd/pm/inc/
Damdgpu_dpm.h254 enum amd_pm_state_type last_state; member
/linux-6.1.9/drivers/message/fusion/
Dmptbase.h630 u32 last_state; member
Dmptbase.c3056 ioc->last_state = sc; in mpt_GetIocState()
3083 if (ioc->last_state == MPI_IOC_STATE_RESET) { in GetIocFacts()
3086 ioc->name, ioc->last_state); in GetIocFacts()
3255 if (ioc->last_state == MPI_IOC_STATE_RESET) { in GetPortFacts()
3257 ioc->name, ioc->last_state ); in GetPortFacts()
Dmptspi.c1375 if (ioc->last_state != MPI_IOC_STATE_OPERATIONAL) { in mptspi_probe()
Dmptfc.c1191 if (ioc->last_state != MPI_IOC_STATE_OPERATIONAL) { in mptfc_probe()
/linux-6.1.9/tools/perf/
Dbuiltin-sched.c269 int last_state; member
2146 if (r->last_state == TASK_RUNNING) in timehist_update_runtime_stats()
2148 else if (r->last_state == TASK_UNINTERRUPTIBLE) in timehist_update_runtime_stats()
2667 tr->last_state = state; in timehist_sched_change_event()
/linux-6.1.9/drivers/net/can/flexcan/
Dflexcan-core.c1039 enum can_state last_state = priv->can.state; in flexcan_irq() local
1122 if ((last_state != priv->can.state) && in flexcan_irq()

12