Home
last modified time | relevance | path

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

12345678910>>...53

/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()
470 if (rtc->aie_timer.enabled) in rtc_set_alarm()
483 if (alarm->enabled) in rtc_set_alarm()
514 if (alarm->enabled && (rtc_tm_to_ktime(now) < in rtc_initialize_alarm()
516 rtc->aie_timer.enabled = 1; in rtc_initialize_alarm()
525 int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled) in rtc_alarm_irq_enable() argument
533 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/regulator/
Duserspace-consumer.c26 bool enabled; member
45 if (data->enabled) in state_show()
55 bool enabled; in state_store() local
63 enabled = true; in state_store()
65 enabled = false; in state_store()
72 if (enabled != data->enabled) { in state_store()
73 if (enabled) in state_store()
81 data->enabled = enabled; in state_store()
146 drvdata->enabled = pdata->init_on; in regulator_userspace_consumer_probe()
163 if (data->enabled) in regulator_userspace_consumer_remove()
Dvirtual.c21 bool enabled; member
47 if (data->min_uV && data->max_uV && !data->enabled) { in update_voltage_constraints()
51 data->enabled = true; in update_voltage_constraints()
57 if (!(data->min_uV && data->max_uV) && data->enabled) { in update_voltage_constraints()
61 data->enabled = false; in update_voltage_constraints()
87 if (data->max_uA && !data->enabled) { in update_current_limit_constraints()
91 data->enabled = true; in update_current_limit_constraints()
97 if (!(data->min_uA && data->max_uA) && data->enabled) { in update_current_limit_constraints()
101 data->enabled = false; in update_current_limit_constraints()
354 if (drvdata->enabled) in regulator_virtual_remove()
/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/net/
Dnetconsole.c102 bool enabled; member
200 nt->enabled = true; in alloc_param_target()
249 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled); in enabled_show()
317 int enabled; in enabled_store() local
321 err = kstrtoint(buf, 10, &enabled); in enabled_store()
326 if (enabled < 0 || enabled > 1) in enabled_store()
328 if ((bool)enabled == nt->enabled) { in enabled_store()
330 nt->enabled ? "started" : "stopped"); in enabled_store()
334 if (enabled) { /* true */ in enabled_store()
357 nt->enabled = false; in enabled_store()
[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/gpu/drm/vkms/
Dvkms_composer.c261 static int vkms_crc_parse_source(const char *src_name, bool *enabled) in vkms_crc_parse_source() argument
266 *enabled = false; in vkms_crc_parse_source()
268 *enabled = true; in vkms_crc_parse_source()
270 *enabled = false; in vkms_crc_parse_source()
280 bool enabled; in vkms_verify_crc_source() local
282 if (vkms_crc_parse_source(src_name, &enabled) < 0) { in vkms_verify_crc_source()
292 void vkms_set_composer(struct vkms_output *out, bool enabled) in vkms_set_composer() argument
296 if (enabled) in vkms_set_composer()
301 out->composer_enabled = enabled; in vkms_set_composer()
311 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.c42 bool enabled, struct regmap *map) in aspeed_sig_desc_eval() argument
55 aspeed_sig_desc_print_val(desc, enabled, raw); in aspeed_sig_desc_eval()
56 want = enabled ? desc->enable : desc->disable; in aspeed_sig_desc_eval()
84 const struct aspeed_sig_expr *expr, bool enabled) in aspeed_sig_expr_eval() argument
90 return ctx->ops->eval(ctx, expr, enabled); in aspeed_sig_expr_eval()
95 ret = aspeed_sig_desc_eval(desc, enabled, ctx->maps[desc->ip]); in aspeed_sig_expr_eval()
/drivers/video/fbdev/omap2/omapfb/dss/
Dapply.c63 bool enabled; member
91 bool enabled; member
207 if (!mp->enabled) in dss_check_settings_low()
219 if (!op->enabled && !op->enabling) in dss_check_settings_low()
262 if (!mp->enabled) in need_isr()
315 if (!op->enabled) in need_isr()
366 if (!mp->enabled) in extra_info_update_ongoing()
483 if (!mp->enabled) { in dss_mgr_wait_for_go()
559 if (!mp->enabled) { in dss_mgr_wait_for_go_ovl()
624 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/wireless/intel/iwlwifi/mvm/
Doffloading.c48 u32 enabled = 0, size; in iwl_mvm_send_proto_offload() local
115 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload()
142 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload()
164 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload()
169 if (offload_ns && (enabled & IWL_D3_PROTO_IPV6_VALID)) in iwl_mvm_send_proto_offload()
170 enabled |= IWL_D3_PROTO_OFFLOAD_NS; in iwl_mvm_send_proto_offload()
196 enabled |= IWL_D3_PROTO_OFFLOAD_ARP | IWL_D3_PROTO_IPV4_VALID; in iwl_mvm_send_proto_offload()
202 common->enabled = cpu_to_le32(enabled); in iwl_mvm_send_proto_offload()
/drivers/pwm/
Dpwm-tiecap.c51 int duty_ns, int period_ns, int enabled) in ecap_pwm_config() argument
82 if (!enabled) { in ecap_pwm_config()
96 if (!enabled) { in ecap_pwm_config()
172 int enabled = pwm->state.enabled; in ecap_pwm_apply() local
176 if (enabled) { in ecap_pwm_apply()
178 enabled = false; in ecap_pwm_apply()
186 if (!state->enabled) { in ecap_pwm_apply()
187 if (enabled) in ecap_pwm_apply()
196 state->period, enabled); in ecap_pwm_apply()
200 if (!enabled) in ecap_pwm_apply()
Dpwm-rockchip.c90 state->enabled = (val & enable_conf) == enable_conf; in rockchip_pwm_get_state()
192 bool enabled; in rockchip_pwm_apply() local
204 enabled = curstate.enabled; in rockchip_pwm_apply()
206 if (state->polarity != curstate.polarity && enabled && in rockchip_pwm_apply()
211 enabled = false; in rockchip_pwm_apply()
215 if (state->enabled != enabled) { in rockchip_pwm_apply()
216 ret = rockchip_pwm_enable(chip, pwm, state->enabled); in rockchip_pwm_apply()
303 bool enabled; in rockchip_pwm_probe() local
355 enabled = (ctrl & enable_conf) == enable_conf; in rockchip_pwm_probe()
364 if (!enabled) in rockchip_pwm_probe()
Dpwm-ep93xx.c66 bool enabled = state->enabled; in ep93xx_pwm_apply() local
74 if (enabled) { in ep93xx_pwm_apply()
77 enabled = false; in ep93xx_pwm_apply()
96 if (!state->enabled) { in ep93xx_pwm_apply()
97 if (enabled) { in ep93xx_pwm_apply()
147 if (!enabled) { in ep93xx_pwm_apply()
/drivers/gpu/drm/
Ddrm_client_modeset.c240 bool *enabled) in drm_client_connectors_enabled() argument
248 enabled[i] = drm_connector_enabled(connector, true); in drm_client_connectors_enabled()
250 connector->display_info.non_desktop ? "non desktop" : str_yes_no(enabled[i])); in drm_client_connectors_enabled()
252 any_enabled |= enabled[i]; in drm_client_connectors_enabled()
259 enabled[i] = drm_connector_enabled(connectors[i], false); in drm_client_connectors_enabled()
267 bool *enabled, int width, int height) in drm_client_target_cloned() argument
279 if (enabled[i]) in drm_client_target_cloned()
290 if (!enabled[i]) in drm_client_target_cloned()
298 if (!enabled[j]) in drm_client_target_cloned()
322 if (!enabled[i]) in drm_client_target_cloned()
[all …]
/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/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/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/net/ethernet/chelsio/cxgb/
Dpm3393.c80 u8 enabled; member
268 cmac->instance->enabled |= which; in pm3393_enable()
304 cmac->instance->enabled &= ~which; in pm3393_disable()
320 int enabled = cmac->instance->enabled; in pm3393_set_mtu() local
325 if (enabled) in pm3393_set_mtu()
331 if (enabled) in pm3393_set_mtu()
332 pm3393_enable(cmac, enabled); in pm3393_set_mtu()
338 int enabled = cmac->instance->enabled & MAC_DIRECTION_RX; in pm3393_set_rx_mode() local
342 if (enabled) in pm3393_set_rx_mode()
382 if (enabled) in pm3393_set_rx_mode()
[all …]

12345678910>>...53