/kernel/linux/linux-5.10/drivers/cpuidle/governors/ |
H A D | ladder.c | 70 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 in ladder_select_state() [all...] |
/kernel/linux/linux-6.6/drivers/cpuidle/governors/ |
H A D | ladder.c | 70 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 in ladder_select_state() [all...] |
/kernel/linux/linux-5.10/tools/laptop/dslm/ |
H A D | dslm.c | 69 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()
|
/kernel/linux/linux-6.6/tools/laptop/dslm/ |
H A D | dslm.c | 69 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()
|
/kernel/linux/linux-5.10/kernel/livepatch/ |
H A D | state.c | 67 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()
|
/kernel/linux/linux-6.6/kernel/livepatch/ |
H A D | state.c | 67 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()
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | sbs-charger.c | 41 unsigned int last_state; member 51 reg = chip->last_state; in sbs_get_property() 98 if (!ret && reg != chip->last_state) { in sbs_check_state() 99 chip->last_state = reg; in sbs_check_state() 196 chip->last_state = val; in sbs_probe()
|
H A D | sbs-manager.c | 49 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()
|
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | sbs-charger.c | 40 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()
|
H A D | sbs-manager.c | 49 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()
|
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A D | clps711x-keypad.c | 22 DECLARE_BITMAP(last_state, CLPS711X_KEYPAD_COL_COUNT); 57 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll() 62 set_bit(col, data->last_state); in clps711x_keypad_poll() 66 clear_bit(col, data->last_state); in clps711x_keypad_poll()
|
H A D | st-keyscan.c | 33 unsigned long last_state; member 47 change = keypad->last_state ^ state; in keyscan_isr() 48 keypad->last_state = state; in keyscan_isr()
|
H A D | gpio_keys_polled.c | 30 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()
|
H A D | bcm-keypad.c | 81 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()
|
/kernel/linux/linux-6.6/drivers/input/keyboard/ |
H A D | clps711x-keypad.c | 24 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()
|
H A D | st-keyscan.c | 35 unsigned long last_state; member 49 change = keypad->last_state ^ state; in keyscan_isr() 50 keypad->last_state = state; in keyscan_isr()
|
H A D | gpio_keys_polled.c | 30 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() 332 bdata->last_state = -1; in gpio_keys_polled_probe()
|
H A D | bcm-keypad.c | 71 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/ |
H A D | led.c | 79 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()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/carl9170/ |
H A D | led.c | 79 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()
|
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | button.c | 160 int last_state; member 206 button->last_state != !!state) in acpi_lid_notify_state() 213 if (button->last_state == !!state && in acpi_lid_notify_state() 267 button->last_state = !!state; in acpi_lid_notify_state() 469 button->last_state = !!acpi_lid_evaluate_state(device); in acpi_button_resume() 482 button->last_state = !!acpi_lid_evaluate_state(device); in acpi_lid_input_open()
|
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | button.c | 164 int last_state; member 207 button->last_state != !!state) in acpi_lid_notify_state() 214 if (button->last_state == !!state && in acpi_lid_notify_state() 268 button->last_state = !!state; in acpi_lid_notify_state() 488 button->last_state = !!acpi_lid_evaluate_state(device); in acpi_button_resume() 501 button->last_state = !!acpi_lid_evaluate_state(device); in acpi_lid_input_open()
|
/kernel/linux/linux-5.10/drivers/net/bonding/ |
H A D | bond_3ad.c | 917 mux_states_t last_state; in ad_mux_machine() local 922 last_state = port->sm_mux_state; in ad_mux_machine() 1018 if (port->sm_mux_state != last_state) { in ad_mux_machine() 1022 last_state, in ad_mux_machine() 1074 rx_states_t last_state; in ad_rx_machine() local 1079 last_state = port->sm_rx_state; in ad_rx_machine() 1136 if ((port->sm_rx_state != last_state) || (lacpdu)) { in ad_rx_machine() 1140 last_state, in ad_rx_machine() 1285 periodic_states_t last_state; in ad_periodic_machine() local 1288 last_state in ad_periodic_machine() [all...] |
/kernel/linux/linux-6.6/drivers/net/bonding/ |
H A D | bond_3ad.c | 945 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() 1164 if ((port->sm_rx_state != last_state) || (lacpdu)) { 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 in ad_periodic_machine() [all...] |
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-magicmouse.c | 157 int last_state = test_bit(BTN_LEFT, msc->input->key) << 0 | in magicmouse_emit_buttons() local 170 } else if (last_state != 0) { in magicmouse_emit_buttons() 171 state = last_state; in magicmouse_emit_buttons() 188 if (state != last_state) in magicmouse_emit_buttons()
|