Home
last modified time | relevance | path

Searched refs:on_off (Results 1 - 25 of 58) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/gnss/
H A Dsirf.c44 struct gpio_desc *on_off; member
254 gpiod_set_value_cansleep(data->on_off, 1); in sirf_pulse_on_off()
256 gpiod_set_value_cansleep(data->on_off, 0); in sirf_pulse_on_off()
296 if (data->on_off) in sirf_runtime_suspend()
311 if (data->on_off) in sirf_runtime_suspend()
333 if (data->on_off) in sirf_runtime_resume()
440 data->on_off = devm_gpiod_get_optional(dev, "sirf,onoff", in sirf_probe()
442 if (IS_ERR(data->on_off)) { in sirf_probe()
443 ret = PTR_ERR(data->on_off); in sirf_probe()
447 if (data->on_off) { in sirf_probe()
[all...]
/kernel/linux/linux-6.6/drivers/gnss/
H A Dsirf.c44 struct gpio_desc *on_off; member
254 gpiod_set_value_cansleep(data->on_off, 1); in sirf_pulse_on_off()
256 gpiod_set_value_cansleep(data->on_off, 0); in sirf_pulse_on_off()
296 if (data->on_off) in sirf_runtime_suspend()
311 if (data->on_off) in sirf_runtime_suspend()
333 if (data->on_off) in sirf_runtime_resume()
440 data->on_off = devm_gpiod_get_optional(dev, "sirf,onoff", in sirf_probe()
442 if (IS_ERR(data->on_off)) { in sirf_probe()
443 ret = PTR_ERR(data->on_off); in sirf_probe()
447 if (data->on_off) { in sirf_probe()
[all...]
/kernel/linux/linux-5.10/drivers/accessibility/braille/
H A Dbraille_console.c230 int on_off = -1; in keyboard_notifier_call() local
234 on_off = vt_get_leds(fg_console, VC_CAPSLOCK); in keyboard_notifier_call()
237 on_off = vt_get_leds(fg_console, VC_NUMLOCK); in keyboard_notifier_call()
240 on_off = vt_get_leds(fg_console, VC_SCROLLOCK); in keyboard_notifier_call()
243 if (on_off == 1) in keyboard_notifier_call()
245 else if (on_off == 0) in keyboard_notifier_call()
/kernel/linux/linux-6.6/drivers/accessibility/braille/
H A Dbraille_console.c230 int on_off = -1; in keyboard_notifier_call() local
234 on_off = vt_get_leds(fg_console, VC_CAPSLOCK); in keyboard_notifier_call()
237 on_off = vt_get_leds(fg_console, VC_NUMLOCK); in keyboard_notifier_call()
240 on_off = vt_get_leds(fg_console, VC_SCROLLOCK); in keyboard_notifier_call()
243 if (on_off == 1) in keyboard_notifier_call()
245 else if (on_off == 0) in keyboard_notifier_call()
/kernel/linux/linux-5.10/drivers/macintosh/
H A Dmediabay.c48 void (*power)(struct media_bay_info *bay, int on_off);
172 ohare_mb_power(struct media_bay_info* bay, int on_off) in ohare_mb_power() argument
174 if (on_off) { in ohare_mb_power()
191 heathrow_mb_power(struct media_bay_info* bay, int on_off) in heathrow_mb_power() argument
193 if (on_off) { in heathrow_mb_power()
210 keylargo_mb_power(struct media_bay_info* bay, int on_off) in keylargo_mb_power() argument
212 if (on_off) { in keylargo_mb_power()
/kernel/linux/linux-6.6/drivers/macintosh/
H A Dmediabay.c48 void (*power)(struct media_bay_info *bay, int on_off);
172 ohare_mb_power(struct media_bay_info* bay, int on_off) in ohare_mb_power() argument
174 if (on_off) { in ohare_mb_power()
191 heathrow_mb_power(struct media_bay_info* bay, int on_off) in heathrow_mb_power() argument
193 if (on_off) { in heathrow_mb_power()
210 keylargo_mb_power(struct media_bay_info* bay, int on_off) in keylargo_mb_power() argument
212 if (on_off) { in keylargo_mb_power()
/kernel/linux/linux-5.10/drivers/misc/
H A Dapds9802als.c159 static int als_set_power_state(struct i2c_client *client, bool on_off) in als_set_power_state() argument
168 if (on_off) in als_set_power_state()
/kernel/linux/linux-5.10/drivers/phy/intel/
H A Dphy-intel-keembay-emmc.c53 static int keembay_emmc_phy_power(struct phy *phy, bool on_off) in keembay_emmc_phy_power() argument
81 if (!on_off) in keembay_emmc_phy_power()
H A Dphy-intel-lgm-emmc.c51 static int intel_emmc_phy_power(struct phy *phy, bool on_off) in intel_emmc_phy_power() argument
72 if (!on_off) in intel_emmc_phy_power()
/kernel/linux/linux-5.10/sound/drivers/opl3/
H A Dopl3_drums.c169 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, in snd_opl3_drum_switch() argument
182 if (on_off) { in snd_opl3_drum_switch()
H A Dopl3_voice.h31 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, struct snd_midi_channel *chan);
/kernel/linux/linux-6.6/drivers/misc/
H A Dapds9802als.c159 static int als_set_power_state(struct i2c_client *client, bool on_off) in als_set_power_state() argument
168 if (on_off) in als_set_power_state()
/kernel/linux/linux-6.6/drivers/phy/intel/
H A Dphy-intel-lgm-emmc.c51 static int intel_emmc_phy_power(struct phy *phy, bool on_off) in intel_emmc_phy_power() argument
72 if (!on_off) in intel_emmc_phy_power()
H A Dphy-intel-keembay-emmc.c53 static int keembay_emmc_phy_power(struct phy *phy, bool on_off) in keembay_emmc_phy_power() argument
81 if (!on_off) in keembay_emmc_phy_power()
/kernel/linux/linux-6.6/sound/drivers/opl3/
H A Dopl3_drums.c169 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, in snd_opl3_drum_switch() argument
182 if (on_off) { in snd_opl3_drum_switch()
H A Dopl3_voice.h31 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, struct snd_midi_channel *chan);
/kernel/linux/linux-5.10/arch/arm/mach-meson/
H A Dplatsmp.c45 static void meson_smp_set_cpu_ctrl(int cpu, bool on_off) in meson_smp_set_cpu_ctrl() argument
49 if (on_off) in meson_smp_set_cpu_ctrl()
/kernel/linux/linux-6.6/arch/arm/mach-meson/
H A Dplatsmp.c45 static void meson_smp_set_cpu_ctrl(int cpu, bool on_off) in meson_smp_set_cpu_ctrl() argument
49 if (on_off) in meson_smp_set_cpu_ctrl()
/kernel/linux/linux-5.10/drivers/phy/rockchip/
H A Dphy-rockchip-emmc.c85 static int rockchip_emmc_phy_power(struct phy *phy, bool on_off) in rockchip_emmc_phy_power() argument
110 if (on_off == PHYCTRL_PDB_PWR_OFF) in rockchip_emmc_phy_power()
/kernel/linux/linux-6.6/drivers/phy/rockchip/
H A Dphy-rockchip-emmc.c93 static int rockchip_emmc_phy_power(struct phy *phy, bool on_off) in rockchip_emmc_phy_power() argument
118 if (on_off == PHYCTRL_PDB_PWR_OFF) in rockchip_emmc_phy_power()
/kernel/linux/linux-5.10/drivers/accessibility/speakup/
H A Dmain.c1799 int on_off = 2; in do_handle_spec() local
1811 on_off = vt_get_leds(fg_console, VC_CAPSLOCK); in do_handle_spec()
1815 on_off = vt_get_leds(fg_console, VC_NUMLOCK); in do_handle_spec()
1819 on_off = vt_get_leds(fg_console, VC_SCROLLOCK); in do_handle_spec()
1821 speakup_console[vc->vc_num]->tty_stopped = on_off; in do_handle_spec()
1828 if (on_off < 2) in do_handle_spec()
1830 label, spk_msg_get(MSG_STATUS_START + on_off)); in do_handle_spec()
/kernel/linux/linux-5.10/drivers/scsi/arm/
H A Dpowertec.c93 /* Prototype: void powertecscsi_terminator_ctl(host, on_off)
96 * : on_off - !0 to turn on, 0 to turn off
99 powertecscsi_terminator_ctl(struct Scsi_Host *host, int on_off) in powertecscsi_terminator_ctl() argument
103 info->term_ctl = on_off ? POWERTEC_TERM_ENABLE : 0; in powertecscsi_terminator_ctl()
H A Deesox.c112 /* Prototype: void eesoxscsi_terminator_ctl(*host, on_off)
115 * : on_off - !0 to turn on, 0 to turn off
118 eesoxscsi_terminator_ctl(struct Scsi_Host *host, int on_off) in eesoxscsi_terminator_ctl() argument
124 if (on_off) in eesoxscsi_terminator_ctl()
/kernel/linux/linux-5.10/drivers/phy/broadcom/
H A Dphy-brcm-usb-init-synopsys.c137 int on_off) in xhci_soft_reset()
142 if (on_off) in xhci_soft_reset()
136 xhci_soft_reset(struct brcm_usb_init_params *params, int on_off) xhci_soft_reset() argument
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dmt6660.c220 static int _mt6660_chip_power_on(struct mt6660_chip *chip, int on_off) in _mt6660_chip_power_on() argument
223 0x01, on_off ? 0x00 : 0x01); in _mt6660_chip_power_on()

Completed in 17 milliseconds

123