Home
last modified time | relevance | path

Searched refs:state (Results 3901 - 3925 of 17847) sorted by relevance

1...<<151152153154155156157158159160>>...714

/kernel/linux/linux-5.10/drivers/video/backlight/
H A Dda9052_bl.c41 uint state; member
53 if (wleds->state == DA9052_WLEDS_OFF) { in da9052_adjust_wled_brightness()
88 wleds->state = DA9052_WLEDS_ON; in da9052_backlight_update_status()
118 wleds->state = DA9052_WLEDS_OFF; in da9052_backlight_probe()
144 wleds->state = DA9052_WLEDS_OFF; in da9052_backlight_remove()
/kernel/linux/linux-5.10/lib/
H A Dts_kmp.c16 * "on the fly" as needed. Roughly speaking, for any state
42 static unsigned int kmp_find(struct ts_config *conf, struct ts_state *state) in kmp_find() argument
45 unsigned int i, q = 0, text_len, consumed = state->offset; in kmp_find()
50 text_len = conf->get_next_block(consumed, &text, conf, state); in kmp_find()
63 state->offset = consumed + i + 1; in kmp_find()
64 return state->offset - kmp->pattern_len; in kmp_find()
/kernel/linux/linux-5.10/kernel/sched/
H A Dswait.c92 void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_exclusive() argument
98 set_current_state(state); in prepare_to_swait_exclusive()
103 long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_event() argument
109 if (signal_pending_state(state, current)) { in prepare_to_swait_event()
118 set_current_state(state); in prepare_to_swait_event()
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_modeset_helper.c197 struct drm_atomic_state *state; in drm_mode_config_helper_suspend() local
204 state = drm_atomic_helper_suspend(dev); in drm_mode_config_helper_suspend()
205 if (IS_ERR(state)) { in drm_mode_config_helper_suspend()
208 return PTR_ERR(state); in drm_mode_config_helper_suspend()
211 dev->mode_config.suspend_state = state; in drm_mode_config_helper_suspend()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/
H A Dcrc.h119 nv50_crc_atomic_stop_reporting(struct drm_atomic_state *state) {} in nv50_crc_atomic_stop_reporting() argument
121 nv50_crc_atomic_init_notifier_contexts(struct drm_atomic_state *state) {} in nv50_crc_atomic_init_notifier_contexts() argument
123 nv50_crc_atomic_release_notifier_contexts(struct drm_atomic_state *state) {} in nv50_crc_atomic_release_notifier_contexts() argument
125 nv50_crc_atomic_start_reporting(struct drm_atomic_state *state) {} in nv50_crc_atomic_start_reporting() argument
127 nv50_crc_atomic_set(struct nv50_head *head, struct nv50_head_atom *state) {} in nv50_crc_atomic_set() argument
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb-v2/
H A Dmxl111sf.h104 int mxl111sf_read_reg(struct mxl111sf_state *state, u8 addr, u8 *data);
105 int mxl111sf_write_reg(struct mxl111sf_state *state, u8 addr, u8 data);
113 int mxl111sf_write_reg_mask(struct mxl111sf_state *state,
115 int mxl111sf_ctrl_program_regs(struct mxl111sf_state *state,
120 int mxl111sf_ctrl_msg(struct mxl111sf_state *state,
/kernel/linux/linux-5.10/drivers/nvme/host/
H A Dfabrics.h155 if (ctrl->state == NVME_CTRL_DELETING || in nvmf_ctlr_matches_baseopts()
156 ctrl->state == NVME_CTRL_DELETING_NOIO || in nvmf_ctlr_matches_baseopts()
157 ctrl->state == NVME_CTRL_DEAD || in nvmf_ctlr_matches_baseopts()
186 if (likely(ctrl->state == NVME_CTRL_LIVE || in nvmf_check_ready()
187 ctrl->state == NVME_CTRL_DELETING)) in nvmf_check_ready()
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
H A Ddt2817.c82 outb(s->state & 0xff, iobase + 0); in dt2817_dio_insn_bits()
84 outb((s->state >> 8) & 0xff, iobase + 1); in dt2817_dio_insn_bits()
86 outb((s->state >> 16) & 0xff, iobase + 2); in dt2817_dio_insn_bits()
88 outb((s->state >> 24) & 0xff, iobase + 3); in dt2817_dio_insn_bits()
124 s->state = 0; in dt2817_attach()
/kernel/linux/linux-6.6/drivers/media/usb/dvb-usb-v2/
H A Dmxl111sf.h104 int mxl111sf_read_reg(struct mxl111sf_state *state, u8 addr, u8 *data);
105 int mxl111sf_write_reg(struct mxl111sf_state *state, u8 addr, u8 data);
113 int mxl111sf_write_reg_mask(struct mxl111sf_state *state,
115 int mxl111sf_ctrl_program_regs(struct mxl111sf_state *state,
120 int mxl111sf_ctrl_msg(struct mxl111sf_state *state,
/kernel/linux/linux-6.6/drivers/mux/
H A Dadgs1408.c18 #define ADGS1408_MUX(state) (((state) << 1) | 1)
36 static int adgs1408_set(struct mux_control *mux, int state) in adgs1408_set() argument
41 if (state == MUX_IDLE_DISCONNECT) in adgs1408_set()
44 reg = ADGS1408_MUX(state); in adgs1408_set()
76 ret = device_property_read_u32(dev, "idle-state", (u32 *)&idle_state); in adgs1408_probe()
98 dev_err(dev, "invalid idle-state %d\n", idle_state); in adgs1408_probe()
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/
H A Defx_common.h49 if ((efx->state == STATE_READY) || \
50 (efx->state == STATE_RECOVERY) || \
51 (efx->state == STATE_DISABLED)) \
68 if (efx->state == STATE_DISABLED || efx->state == STATE_RECOVERY) { in efx_check_disabled()
/kernel/linux/linux-6.6/drivers/video/backlight/
H A Dda9052_bl.c41 uint state; member
53 if (wleds->state == DA9052_WLEDS_OFF) { in da9052_adjust_wled_brightness()
88 wleds->state = DA9052_WLEDS_ON; in da9052_backlight_update_status()
118 wleds->state = DA9052_WLEDS_OFF; in da9052_backlight_probe()
145 wleds->state = DA9052_WLEDS_OFF; in da9052_backlight_remove()
/kernel/linux/linux-6.6/drivers/soc/mediatek/
H A Dmtk-regulator-coupler.c34 suspend_state_t state) in mediatek_regulator_balance_voltage()
56 return regulator_do_balance_voltage(rdev, state, true); in mediatek_regulator_balance_voltage()
61 ret = regulator_check_consumers(rdev, &min_uV, &max_uV, state); in mediatek_regulator_balance_voltage()
92 vsram_target_max_uV, state); in mediatek_regulator_balance_voltage()
97 return regulator_do_balance_voltage(rdev, state, true); in mediatek_regulator_balance_voltage()
32 mediatek_regulator_balance_voltage(struct regulator_coupler *coupler, struct regulator_dev *rdev, suspend_state_t state) mediatek_regulator_balance_voltage() argument
/kernel/linux/linux-6.6/drivers/platform/chrome/
H A Dchromeos_privacy_screen.c45 "_DSM failed to get privacy-screen state\n"); in chromeos_privacy_screen_get_hw_state()
51 "Bad _DSM to get privacy-screen state\n"); in chromeos_privacy_screen_get_hw_state()
65 enum drm_privacy_screen_status state) in chromeos_privacy_screen_set_sw_state()
74 if (state == PRIVACY_SCREEN_DISABLED) { in chromeos_privacy_screen_set_sw_state()
79 } else if (state == PRIVACY_SCREEN_ENABLED) { in chromeos_privacy_screen_set_sw_state()
87 state); in chromeos_privacy_screen_set_sw_state()
93 "_DSM failed to set privacy-screen state\n"); in chromeos_privacy_screen_set_sw_state()
97 drm_privacy_screen->hw_state = drm_privacy_screen->sw_state = state; in chromeos_privacy_screen_set_sw_state()
63 chromeos_privacy_screen_set_sw_state(struct drm_privacy_screen *drm_privacy_screen, enum drm_privacy_screen_status state) chromeos_privacy_screen_set_sw_state() argument
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-ntxec.c13 * - The get_state callback is not implemented, because the current state of
65 * to an inconsistent state after the period is written and before the in ntxec_pwm_set_raw_period_and_duty_cycle()
84 const struct pwm_state *state) in ntxec_pwm_apply()
90 if (state->polarity != PWM_POLARITY_NORMAL) in ntxec_pwm_apply()
93 period = min_t(u64, state->period, MAX_PERIOD_NS); in ntxec_pwm_apply()
94 duty = min_t(u64, state->duty_cycle, period); in ntxec_pwm_apply()
100 * Writing a duty cycle of zero puts the device into a state where in ntxec_pwm_apply()
108 if (state->enabled && duty != 0) { in ntxec_pwm_apply()
132 * No .get_state callback, because the current state cannot be read
83 ntxec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm_dev, const struct pwm_state *state) ntxec_pwm_apply() argument
/kernel/linux/linux-6.6/drivers/firmware/
H A Dscpi_pm_domain.c23 * These device power state values are not well-defined in the specification.
37 enum scpi_power_domain_state state; in scpi_pd_power() local
40 state = SCPI_PD_STATE_ON; in scpi_pd_power()
42 state = SCPI_PD_STATE_OFF; in scpi_pd_power()
44 ret = pd->ops->device_set_power_state(pd->domain, state); in scpi_pd_power()
48 return !(state == pd->ops->device_get_power_state(pd->domain)); in scpi_pd_power()
/kernel/linux/linux-6.6/drivers/comedi/drivers/
H A Ddt2817.c82 outb(s->state & 0xff, iobase + 0); in dt2817_dio_insn_bits()
84 outb((s->state >> 8) & 0xff, iobase + 1); in dt2817_dio_insn_bits()
86 outb((s->state >> 16) & 0xff, iobase + 2); in dt2817_dio_insn_bits()
88 outb((s->state >> 24) & 0xff, iobase + 3); in dt2817_dio_insn_bits()
124 s->state = 0; in dt2817_attach()
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtlwifi/
H A Dusb.h66 #define IS_USB_STOP(rtlusb_ptr) (USB_STATE_STOP == (rtlusb_ptr)->state)
67 #define IS_USB_START(rtlusb_ptr) (USB_STATE_START == (rtlusb_ptr)->state)
70 (rtlusb_ptr)->state = USB_STATE_STOP; \
75 (rtlusb_ptr)->state = USB_STATE_START; \
81 enum rtl_usb_state state; member
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dusb_main.c20 set_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt76x2u_start()
29 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt76x2u_stop()
44 set_bit(MT76_RESET, &dev->mphy.state); in mt76x2u_set_channel()
55 clear_bit(MT76_RESET, &dev->mphy.state); in mt76x2u_set_channel()
90 if (test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt76x2u_config()
/kernel/linux/linux-6.6/crypto/
H A Daegis.h32 void crypto_aegis128_update_simd(struct aegis_state *state, const void *msg);
33 void crypto_aegis128_init_simd(struct aegis_state *state,
36 void crypto_aegis128_encrypt_chunk_simd(struct aegis_state *state, u8 *dst,
38 void crypto_aegis128_decrypt_chunk_simd(struct aegis_state *state, u8 *dst,
40 int crypto_aegis128_final_simd(struct aegis_state *state,
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_modeset_helper.c192 struct drm_atomic_state *state; in drm_mode_config_helper_suspend() local
199 state = drm_atomic_helper_suspend(dev); in drm_mode_config_helper_suspend()
200 if (IS_ERR(state)) { in drm_mode_config_helper_suspend()
203 return PTR_ERR(state); in drm_mode_config_helper_suspend()
206 dev->mode_config.suspend_state = state; in drm_mode_config_helper_suspend()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv50/
H A Dcrc.h118 nv50_crc_atomic_stop_reporting(struct drm_atomic_state *state) {} in nv50_crc_atomic_stop_reporting() argument
120 nv50_crc_atomic_init_notifier_contexts(struct drm_atomic_state *state) {} in nv50_crc_atomic_init_notifier_contexts() argument
122 nv50_crc_atomic_release_notifier_contexts(struct drm_atomic_state *state) {} in nv50_crc_atomic_release_notifier_contexts() argument
124 nv50_crc_atomic_start_reporting(struct drm_atomic_state *state) {} in nv50_crc_atomic_start_reporting() argument
126 nv50_crc_atomic_set(struct nv50_head *head, struct nv50_head_atom *state) {} in nv50_crc_atomic_set() argument
/kernel/linux/linux-6.6/drivers/iio/chemical/
H A Dscd30_i2c.c38 static int scd30_i2c_xfer(struct scd30_state *state, char *txbuf, int txsize, in scd30_i2c_xfer() argument
41 struct i2c_client *client = to_i2c_client(state->dev); in scd30_i2c_xfer()
66 static int scd30_i2c_command(struct scd30_state *state, enum scd30_cmd cmd, u16 arg, in scd30_i2c_command() argument
92 ret = scd30_i2c_xfer(state, buf, i, buf, size); in scd30_i2c_command()
100 dev_err(state->dev, "data integrity check failed\n"); in scd30_i2c_command()
/kernel/linux/linux-6.6/drivers/leds/
H A Dleds-spi-byte.c87 const char *state; in spi_byte_probe() local
110 state = of_get_property(child, "default-state", NULL); in spi_byte_probe()
111 if (state) { in spi_byte_probe()
112 if (!strcmp(state, "on")) { in spi_byte_probe()
114 } else if (strcmp(state, "off")) { in spi_byte_probe()
116 dev_err(dev, "default-state can only be 'on' or 'off'"); in spi_byte_probe()
/kernel/linux/linux-6.6/sound/firewire/motu/
H A Dmotu-command-dsp-message-parser.c15 // Isochronous packets from the above models includes messages to report state of hardware meter.
27 enum msg_parser_state state; member
53 parser->state = INITIALIZED; in snd_motu_command_dsp_message_parser_init()
106 switch (parser->state) { in snd_motu_command_dsp_message_parser_parse()
114 parser->state = FRAGMENT_DETECTED; in snd_motu_command_dsp_message_parser_parse()
127 parser->state = AVAILABLE; in snd_motu_command_dsp_message_parser_parse()

Completed in 14 milliseconds

1...<<151152153154155156157158159160>>...714