Home
last modified time | relevance | path

Searched refs:enabled (Results 1 – 25 of 1167) sorted by relevance

12345678910>>...47

/drivers/regulator/
Duserspace-consumer.c26 bool enabled; member
45 if (data->enabled) in reg_show_state()
55 bool enabled; in reg_set_state() local
63 enabled = true; in reg_set_state()
65 enabled = false; in reg_set_state()
72 if (enabled != data->enabled) { in reg_set_state()
73 if (enabled) in reg_set_state()
81 data->enabled = enabled; in reg_set_state()
146 drvdata->enabled = pdata->init_on; in regulator_userspace_consumer_probe()
163 if (data->enabled) in regulator_userspace_consumer_remove()
/drivers/rtc/
Dinterface.c141 uie = rtc->uie_rtctimer.enabled || rtc->uie_irq_active; in rtc_set_time()
143 uie = rtc->uie_rtctimer.enabled; in rtc_set_time()
192 alarm->enabled = 0; in rtc_read_alarm_internal()
399 alarm->enabled = rtc->aie_timer.enabled; in rtc_read_alarm()
468 if (rtc->aie_timer.enabled) in rtc_set_alarm()
473 if (alarm->enabled) in rtc_set_alarm()
504 if (alarm->enabled && (rtc_tm_to_ktime(now) < in rtc_initialize_alarm()
506 rtc->aie_timer.enabled = 1; in rtc_initialize_alarm()
515 int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled) in rtc_alarm_irq_enable() argument
523 if (rtc->aie_timer.enabled != enabled) { in rtc_alarm_irq_enable()
[all …]
Drtc-meson-vrtc.c18 bool enabled; member
42 dev_dbg(dev, "%s: alarm->enabled=%d\n", __func__, alarm->enabled); in meson_vrtc_set_alarm()
43 if (alarm->enabled) in meson_vrtc_set_alarm()
51 static int meson_vrtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in meson_vrtc_alarm_irq_enable() argument
55 vrtc->enabled = enabled; in meson_vrtc_alarm_irq_enable()
Drtc-mc13xxx.c33 unsigned int enabled, int irq) in mc13xxx_rtc_irq_enable_unlocked() argument
41 func = enabled ? mc13xxx_irq_unmask : mc13xxx_irq_mask; in mc13xxx_rtc_irq_enable_unlocked()
46 unsigned int enabled) in mc13xxx_rtc_alarm_irq_enable() argument
53 ret = mc13xxx_rtc_irq_enable_unlocked(dev, enabled, MC13XXX_IRQ_TODA); in mc13xxx_rtc_alarm_irq_enable()
160 int enabled, pending; in mc13xxx_rtc_read_alarm() local
178 &enabled, &pending); in mc13xxx_rtc_read_alarm()
186 alarm->enabled = enabled; in mc13xxx_rtc_read_alarm()
217 dev_dbg(dev, "%s: %s %lld\n", __func__, alarm->enabled ? "on" : "off", in mc13xxx_rtc_set_alarm()
220 ret = mc13xxx_rtc_irq_enable_unlocked(dev, alarm->enabled, in mc13xxx_rtc_set_alarm()
/drivers/net/wireless/broadcom/b43/
Drfkill.c27 bool enabled; in b43_rfkill_poll() local
40 enabled = b43_is_hw_radio_enabled(dev); in b43_rfkill_poll()
42 if (unlikely(enabled != dev->radio_hw_enable)) { in b43_rfkill_poll()
43 dev->radio_hw_enable = enabled; in b43_rfkill_poll()
45 enabled ? "ENABLED" : "DISABLED"); in b43_rfkill_poll()
46 wiphy_rfkill_set_hw_state(hw->wiphy, !enabled); in b43_rfkill_poll()
47 if (enabled != dev->phy.radio_on) in b43_rfkill_poll()
48 b43_software_rfkill(dev, !enabled); in b43_rfkill_poll()
/drivers/net/wireless/broadcom/b43legacy/
Drfkill.c44 bool enabled; in b43legacy_rfkill_poll() local
57 enabled = b43legacy_is_hw_radio_enabled(dev); in b43legacy_rfkill_poll()
59 if (unlikely(enabled != dev->radio_hw_enable)) { in b43legacy_rfkill_poll()
60 dev->radio_hw_enable = enabled; in b43legacy_rfkill_poll()
62 enabled ? "ENABLED" : "DISABLED"); in b43legacy_rfkill_poll()
63 wiphy_rfkill_set_hw_state(hw->wiphy, !enabled); in b43legacy_rfkill_poll()
64 if (enabled != dev->phy.radio_on) { in b43legacy_rfkill_poll()
65 if (enabled) in b43legacy_rfkill_poll()
/drivers/gpu/drm/msm/hdmi/
Dhdmi_audio.c79 bool enabled = audio->enabled; in msm_hdmi_audio_update() local
85 audio->enabled, info->channels, info->channel_allocation, in msm_hdmi_audio_update()
89 if (enabled && !(hdmi->power_on && hdmi->pixclock)) { in msm_hdmi_audio_update()
91 enabled = false; in msm_hdmi_audio_update()
94 if (enabled) { in msm_hdmi_audio_update()
99 enabled = false; in msm_hdmi_audio_update()
113 if (enabled) { in msm_hdmi_audio_update()
206 COND(enabled, HDMI_AUD_INT_AUD_FIFO_URUN_INT) | in msm_hdmi_audio_update()
207 COND(enabled, HDMI_AUD_INT_AUD_SAM_DROP_INT)); in msm_hdmi_audio_update()
212 DBG("audio %sabled", enabled ? "en" : "dis"); in msm_hdmi_audio_update()
[all …]
/drivers/base/power/
Dsysfs.c353 bool enabled = false; in wakeup_count_show() local
358 enabled = true; in wakeup_count_show()
362 if (!enabled) in wakeup_count_show()
374 bool enabled = false; in wakeup_active_count_show() local
379 enabled = true; in wakeup_active_count_show()
383 if (!enabled) in wakeup_active_count_show()
395 bool enabled = false; in wakeup_abort_count_show() local
400 enabled = true; in wakeup_abort_count_show()
404 if (!enabled) in wakeup_abort_count_show()
416 bool enabled = false; in wakeup_expire_count_show() local
[all …]
/drivers/greybus/
Dsvc_watchdog.c18 bool enabled; member
98 watchdog->enabled = false; in do_work()
103 if (watchdog->enabled) in do_work()
119 watchdog->enabled = false; in gb_svc_watchdog_create()
164 return svc->watchdog->enabled; in gb_svc_watchdog_enabled()
175 if (watchdog->enabled) in gb_svc_watchdog_enable()
178 watchdog->enabled = true; in gb_svc_watchdog_enable()
191 if (!watchdog->enabled) in gb_svc_watchdog_disable()
194 watchdog->enabled = false; in gb_svc_watchdog_disable()
/drivers/net/
Dnetconsole.c101 bool enabled; member
199 nt->enabled = true; in alloc_param_target()
248 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled); in enabled_show()
316 int enabled; in enabled_store() local
320 err = kstrtoint(buf, 10, &enabled); in enabled_store()
325 if (enabled < 0 || enabled > 1) in enabled_store()
327 if ((bool)enabled == nt->enabled) { in enabled_store()
329 nt->enabled ? "started" : "stopped"); in enabled_store()
333 if (enabled) { /* true */ in enabled_store()
356 nt->enabled = false; in enabled_store()
[all …]
/drivers/gpu/drm/vkms/
Dvkms_composer.c258 static int vkms_crc_parse_source(const char *src_name, bool *enabled) in vkms_crc_parse_source() argument
263 *enabled = false; in vkms_crc_parse_source()
265 *enabled = true; in vkms_crc_parse_source()
267 *enabled = false; in vkms_crc_parse_source()
277 bool enabled; in vkms_verify_crc_source() local
279 if (vkms_crc_parse_source(src_name, &enabled) < 0) { in vkms_verify_crc_source()
289 void vkms_set_composer(struct vkms_output *out, bool enabled) in vkms_set_composer() argument
293 if (enabled) in vkms_set_composer()
298 out->composer_enabled = enabled; in vkms_set_composer()
308 bool enabled = false; in vkms_set_crc_source() local
[all …]
/drivers/net/wireless/realtek/rtl818x/rtl8187/
Drfkill.c44 bool enabled; in rtl8187_rfkill_poll() local
48 enabled = rtl8187_is_radio_enabled(priv); in rtl8187_rfkill_poll()
49 if (unlikely(enabled != priv->rfkill_off)) { in rtl8187_rfkill_poll()
50 priv->rfkill_off = enabled; in rtl8187_rfkill_poll()
52 enabled ? "on" : "off"); in rtl8187_rfkill_poll()
53 wiphy_rfkill_set_hw_state(hw->wiphy, !enabled); in rtl8187_rfkill_poll()
/drivers/pinctrl/aspeed/
Dpinmux-aspeed.c41 bool enabled, struct regmap *map) in aspeed_sig_desc_eval() argument
54 aspeed_sig_desc_print_val(desc, enabled, raw); in aspeed_sig_desc_eval()
55 want = enabled ? desc->enable : desc->disable; in aspeed_sig_desc_eval()
82 const struct aspeed_sig_expr *expr, bool enabled) in aspeed_sig_expr_eval() argument
88 return ctx->ops->eval(ctx, expr, enabled); in aspeed_sig_expr_eval()
93 ret = aspeed_sig_desc_eval(desc, enabled, ctx->maps[desc->ip]); in aspeed_sig_expr_eval()
/drivers/net/wireless/intel/iwlwifi/mvm/
Doffloading.c103 u32 enabled = 0, size; in iwl_mvm_send_proto_offload() local
168 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload()
195 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload()
217 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload()
222 if (offload_ns && (enabled & IWL_D3_PROTO_IPV6_VALID)) in iwl_mvm_send_proto_offload()
223 enabled |= IWL_D3_PROTO_OFFLOAD_NS; in iwl_mvm_send_proto_offload()
240 enabled |= IWL_D3_PROTO_OFFLOAD_ARP | IWL_D3_PROTO_IPV4_VALID; in iwl_mvm_send_proto_offload()
246 common->enabled = cpu_to_le32(enabled); in iwl_mvm_send_proto_offload()
/drivers/video/fbdev/omap2/omapfb/dss/
Dapply.c63 bool enabled; member
91 bool enabled; member
209 if (!mp->enabled) in dss_check_settings_low()
221 if (!op->enabled && !op->enabling) in dss_check_settings_low()
264 if (!mp->enabled) in need_isr()
317 if (!op->enabled) in need_isr()
368 if (!mp->enabled) in extra_info_update_ongoing()
485 if (!mp->enabled) { in dss_mgr_wait_for_go()
561 if (!mp->enabled) { in dss_mgr_wait_for_go_ovl()
626 if (!op->enabled || !op->info_dirty) in dss_ovl_write_regs()
[all …]
/drivers/acpi/acpica/
Dextrace.c171 u8 enabled = FALSE; in acpi_ex_start_trace_method() local
179 enabled = acpi_ex_interpreter_trace_enabled(pathname); in acpi_ex_start_trace_method()
180 if (enabled && !acpi_gbl_trace_method_object) { in acpi_ex_start_trace_method()
196 if (enabled) { in acpi_ex_start_trace_method()
228 u8 enabled; in acpi_ex_stop_trace_method() local
236 enabled = acpi_ex_interpreter_trace_enabled(NULL); in acpi_ex_stop_trace_method()
238 if (enabled) { in acpi_ex_stop_trace_method()
/drivers/net/ipa/
Dipa_interrupt.c41 u32 enabled; member
79 u32 enabled = interrupt->enabled; in ipa_interrupt_process_all() local
87 while ((mask &= enabled)) { in ipa_interrupt_process_all()
121 if (mask & interrupt->enabled) in ipa_isr()
190 interrupt->enabled |= BIT(ipa_irq); in ipa_interrupt_add()
191 iowrite32(interrupt->enabled, ipa->reg_virt + IPA_REG_IRQ_EN_OFFSET); in ipa_interrupt_add()
202 interrupt->enabled &= ~BIT(ipa_irq); in ipa_interrupt_remove()
203 iowrite32(interrupt->enabled, ipa->reg_virt + IPA_REG_IRQ_EN_OFFSET); in ipa_interrupt_remove()
/drivers/gpu/drm/
Ddrm_client_modeset.c233 bool *enabled) in drm_client_connectors_enabled() argument
241 enabled[i] = drm_connector_enabled(connector, true); in drm_client_connectors_enabled()
243 connector->display_info.non_desktop ? "non desktop" : enabled[i] ? "yes" : "no"); in drm_client_connectors_enabled()
245 any_enabled |= enabled[i]; in drm_client_connectors_enabled()
252 enabled[i] = drm_connector_enabled(connectors[i], false); in drm_client_connectors_enabled()
260 bool *enabled, int width, int height) in drm_client_target_cloned() argument
272 if (enabled[i]) in drm_client_target_cloned()
283 if (!enabled[i]) in drm_client_target_cloned()
291 if (!enabled[j]) in drm_client_target_cloned()
315 if (!enabled[i]) in drm_client_target_cloned()
[all …]
/drivers/input/misc/
Dsc27xx-vibra.c23 bool enabled; member
32 info->enabled = true; in sc27xx_vibra_set()
38 info->enabled = false; in sc27xx_vibra_set()
52 if (info->strength && !info->enabled) in sc27xx_vibra_play_work()
54 else if (info->strength == 0 && info->enabled) in sc27xx_vibra_play_work()
74 if (info->enabled) in sc27xx_vibra_close()
112 info->enabled = false; in sc27xx_vibra_probe()
/drivers/video/fbdev/omap/
Dlcd_mipid.c37 int enabled; member
192 static void set_display_state(struct mipid_device *md, int enabled) in set_display_state() argument
194 int cmd = enabled ? MIPID_CMD_DISP_ON : MIPID_CMD_DISP_OFF; in set_display_state()
208 if (!md->enabled) { in mipid_set_bklight_level()
406 if (md->enabled) { in mipid_enable()
411 md->enabled = 1; in mipid_enable()
432 if (!md->enabled) { in mipid_disable()
440 md->enabled = 0; in mipid_disable()
448 int enabled; in panel_enabled() local
452 enabled = (disp_status & (1 << 17)) && (disp_status & (1 << 10)); in panel_enabled()
[all …]
/drivers/gpu/drm/rcar-du/
Drcar_cmm.c31 bool enabled; member
88 if (rcmm->lut.enabled) { in rcar_cmm_setup()
90 rcmm->lut.enabled = false; in rcar_cmm_setup()
97 if (!rcmm->lut.enabled) { in rcar_cmm_setup()
99 rcmm->lut.enabled = true; in rcar_cmm_setup()
148 rcmm->lut.enabled = false; in rcar_cmm_disable()
/drivers/pwm/
Dcore.c496 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_state_debug()
500 s2.enabled = s1.enabled; in pwm_apply_state_debug()
509 if (state->enabled && in pwm_apply_state_debug()
517 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug()
522 if (state->enabled && in pwm_apply_state_debug()
533 if (state->enabled && state->duty_cycle < s2.duty_cycle) in pwm_apply_state_debug()
539 if (!state->enabled && s2.enabled && s2.duty_cycle > 0) in pwm_apply_state_debug()
557 if (s1.enabled != last->enabled || in pwm_apply_state_debug()
559 (s1.enabled && s1.period != last->period) || in pwm_apply_state_debug()
560 (s1.enabled && s1.duty_cycle != last->duty_cycle)) { in pwm_apply_state_debug()
[all …]
Dpwm-rockchip.c86 state->enabled = (val & enable_conf) == enable_conf; in rockchip_pwm_get_state()
185 bool enabled; in rockchip_pwm_apply() local
193 enabled = curstate.enabled; in rockchip_pwm_apply()
195 if (state->polarity != curstate.polarity && enabled && in rockchip_pwm_apply()
200 enabled = false; in rockchip_pwm_apply()
204 if (state->enabled != enabled) { in rockchip_pwm_apply()
205 ret = rockchip_pwm_enable(chip, pwm, state->enabled); in rockchip_pwm_apply()
292 bool enabled; in rockchip_pwm_probe() local
357 enabled = (ctrl & enable_conf) == enable_conf; in rockchip_pwm_probe()
366 if (!enabled) in rockchip_pwm_probe()
/drivers/net/wireless/ralink/rt2x00/
Drt2x00leds.c62 static void rt2x00led_led_simple(struct rt2x00_led *led, bool enabled) in rt2x00led_led_simple() argument
64 unsigned int brightness = enabled ? LED_FULL : LED_OFF; in rt2x00led_led_simple()
73 void rt2x00led_led_activity(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00led_led_activity() argument
76 rt2x00led_led_simple(&rt2x00dev->led_qual, enabled); in rt2x00led_led_activity()
79 void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_assoc() argument
82 rt2x00led_led_simple(&rt2x00dev->led_assoc, enabled); in rt2x00leds_led_assoc()
85 void rt2x00leds_led_radio(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_radio() argument
88 rt2x00led_led_simple(&rt2x00dev->led_radio, enabled); in rt2x00leds_led_radio()
/drivers/net/ethernet/chelsio/cxgb/
Dpm3393.c89 u8 enabled; member
277 cmac->instance->enabled |= which; in pm3393_enable()
313 cmac->instance->enabled &= ~which; in pm3393_disable()
329 int enabled = cmac->instance->enabled; in pm3393_set_mtu() local
334 if (enabled) in pm3393_set_mtu()
340 if (enabled) in pm3393_set_mtu()
341 pm3393_enable(cmac, enabled); in pm3393_set_mtu()
347 int enabled = cmac->instance->enabled & MAC_DIRECTION_RX; in pm3393_set_rx_mode() local
351 if (enabled) in pm3393_set_rx_mode()
391 if (enabled) in pm3393_set_rx_mode()
[all …]

12345678910>>...47