/kernel/linux/linux-6.6/drivers/mux/ |
H A D | adgs1408.c | 18 #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 D | efx_common.h | 49 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 D | da9052_bl.c | 41 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 D | mtk-regulator-coupler.c | 34 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 D | chromeos_privacy_screen.c | 45 "_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 D | pwm-ntxec.c | 13 * - 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 D | scpi_pm_domain.c | 23 * 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 D | dt2817.c | 82 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 D | usb.h | 66 #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 D | usb_main.c | 20 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 D | aegis.h | 32 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 D | drm_modeset_helper.c | 192 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 D | crc.h | 118 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 D | scd30_i2c.c | 38 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 D | leds-spi-byte.c | 87 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 D | motu-command-dsp-message-parser.c | 15 // 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()
|
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | swait.c | 91 void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_exclusive() argument 97 set_current_state(state); in prepare_to_swait_exclusive() 102 long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_event() argument 108 if (signal_pending_state(state, current)) { in prepare_to_swait_event() 117 set_current_state(state); in prepare_to_swait_event()
|
/kernel/linux/linux-6.6/lib/ |
H A D | ts_kmp.c | 16 * "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-6.6/mm/kasan/ |
H A D | sw_tags.c | 65 u32 state = this_cpu_read(prng_state); in kasan_random_tag() local 67 state = 1664525 * state + 1013904223; in kasan_random_tag() 68 this_cpu_write(prng_state, state); in kasan_random_tag() 70 return (u8)(state % (KASAN_TAG_MAX + 1)); in kasan_random_tag()
|
/third_party/curl/tests/libtest/ |
H A D | lib677.c | 40 int state = 0; in test() local 73 waitfd.events = state ? CURL_WAIT_POLLIN : CURL_WAIT_POLLOUT; in test() 83 if(!state) { in test() 97 state++; in test() 118 if(state) { in test()
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | lfg.c | 106 AVLFG state; in main() local 107 av_lfg_init(&state, 0xdeadbeef); in main() 110 //av_log(NULL, AV_LOG_ERROR, "%X\n", av_lfg_get(&state)); in main() 111 x += av_lfg_get(&state); in main() 129 av_lfg_init(&state, 42); in main() 132 av_bmg_get(&state, bmg_out); in main()
|
/third_party/mesa3d/docs/_exts/ |
H A D | nir.py | 72 def parse_rst(state, parent, rst): 74 state.nested_parse(vl, 0, parent) 82 def build_alu_op_desc(state, env, op): 105 parse_rst(state, content, OP_DESC_TEMPLATE.render(op=op, textwrap=textwrap)) 111 return [build_alu_op_desc(self.state, self.env, op)
|
/third_party/libwebsockets/lib/secure-streams/cpp/ |
H A D | lss.cxx | 51 lws_sscb_rx rx, lws_sscb_tx tx, lws_sscb_state state) in lss() 77 ssi.state = state; in lss() 144 int lss::call_completion(lws_ss_constate_t state) in call_completion() argument 153 return comp(this, state, NULL); in call_completion() 50 lss(lws_ctx_t _ctx, std::string _uri, lsscomp_t _comp, bool _psh, lws_sscb_rx rx, lws_sscb_tx tx, lws_sscb_state state) lss() argument
|
/third_party/node/test/parallel/ |
H A D | test-http-upgrade-server.js | 85 let state = 0; 97 state++; 101 if (state === 1) { 105 } else if (state === 2) { 112 assert.strictEqual(state, 2);
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_predicated_break.cpp | 105 struct loop_continue_tracking state = { {0, }, 0 }; in opt_predicated_break() local 119 enter_loop(&state); in opt_predicated_break() 122 set_continue(&state); in opt_predicated_break() 124 exit_loop(&state); in opt_predicated_break() 185 * lead to the while, the flags may be in an unknown state, and the loop in opt_predicated_break() 195 !has_continue(&state)) { in opt_predicated_break()
|