Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/cpuidle/governors/
A 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.3-rc2/tools/laptop/dslm/
A 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.3-rc2/kernel/livepatch/
A 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.3-rc2/drivers/power/supply/
A 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()
192 chip->last_state = val; in sbs_probe()
A 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()
A 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.3-rc2/drivers/input/keyboard/
A 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()
A 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()
A 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()
A 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.3-rc2/drivers/acpi/
A 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.3-rc2/drivers/net/wireless/ath/carl9170/
A 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()
A Dcarl9170.h205 bool last_state; member
/linux-6.3-rc2/drivers/net/bonding/
A Dbond_3ad.c945 mux_states_t last_state; in ad_mux_machine() local
950 last_state = port->sm_mux_state; in ad_mux_machine()
1046 if (port->sm_mux_state != last_state) { in ad_mux_machine()
1050 last_state, in ad_mux_machine()
1102 rx_states_t last_state; in ad_rx_machine() local
1107 last_state = port->sm_rx_state; in ad_rx_machine()
1168 last_state, in ad_rx_machine()
1314 periodic_states_t last_state; in ad_periodic_machine() local
1317 last_state = port->sm_periodic_state; in ad_periodic_machine()
1369 if (port->sm_periodic_state != last_state) { in ad_periodic_machine()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/iavf/
A Diavf.h370 enum iavf_state_t last_state; member
505 adapter->last_state = adapter->state; in iavf_change_state()
510 iavf_state_str(adapter->last_state), in iavf_change_state()
/linux-6.3-rc2/drivers/hid/
A 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.3-rc2/drivers/media/usb/dvb-usb/
A Ddvb-usb.h494 int last_state; member
/linux-6.3-rc2/drivers/accessibility/speakup/
A Dmain.c609 u_short last_state = 0, state = 0; in say_prev_word() local
645 if (state < last_state) { in say_prev_word()
650 last_state = state; in say_prev_word()
664 u_short last_state = 2, state = 0; in say_next_word() local
679 if (state > last_state) in say_next_word()
694 last_state = state; in say_next_word()
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/inc/
A Damdgpu_dpm.h254 enum amd_pm_state_type last_state; member
/linux-6.3-rc2/drivers/message/fusion/
A Dmptbase.h630 u32 last_state; member
A 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()
A Dmptfc.c1191 if (ioc->last_state != MPI_IOC_STATE_OPERATIONAL) { in mptfc_probe()
A Dmptspi.c1375 if (ioc->last_state != MPI_IOC_STATE_OPERATIONAL) { in mptspi_probe()
/linux-6.3-rc2/tools/perf/
A 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.3-rc2/drivers/net/can/flexcan/
A Dflexcan-core.c1059 enum can_state last_state = priv->can.state; in flexcan_irq() local
1142 if ((last_state != priv->can.state) && in flexcan_irq()

Completed in 106 milliseconds

12