/drivers/regulator/ |
D | userspace-consumer.c | 26 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()
|
/drivers/rtc/ |
D | interface.c | 141 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 …]
|
D | rtc-meson-vrtc.c | 18 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()
|
/drivers/net/wireless/broadcom/b43/ |
D | rfkill.c | 27 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/ |
D | rfkill.c | 44 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/ |
D | hdmi_audio.c | 79 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/ |
D | sysfs.c | 353 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/ |
D | netconsole.c | 102 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/ |
D | svc_watchdog.c | 18 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/wireless/realtek/rtl818x/rtl8187/ |
D | rfkill.c | 44 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/ |
D | pinmux-aspeed.c | 42 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/gpu/drm/vkms/ |
D | vkms_composer.c | 297 static int vkms_crc_parse_source(const char *src_name, bool *enabled) in vkms_crc_parse_source() argument 302 *enabled = false; in vkms_crc_parse_source() 304 *enabled = true; in vkms_crc_parse_source() 306 *enabled = false; in vkms_crc_parse_source() 316 bool enabled; in vkms_verify_crc_source() local 318 if (vkms_crc_parse_source(src_name, &enabled) < 0) { in vkms_verify_crc_source() 328 void vkms_set_composer(struct vkms_output *out, bool enabled) in vkms_set_composer() argument 332 if (enabled) in vkms_set_composer() 337 out->composer_enabled = enabled; in vkms_set_composer() 347 bool enabled = false; in vkms_set_crc_source() local [all …]
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | apply.c | 63 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/ |
D | extrace.c | 171 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/ |
D | offloading.c | 48 u32 enabled = 0, size; in iwl_mvm_send_proto_offload() local 116 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload() 143 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload() 165 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload() 170 if (offload_ns && (enabled & IWL_D3_PROTO_IPV6_VALID)) in iwl_mvm_send_proto_offload() 171 enabled |= IWL_D3_PROTO_OFFLOAD_NS; in iwl_mvm_send_proto_offload() 197 enabled |= IWL_D3_PROTO_OFFLOAD_ARP | IWL_D3_PROTO_IPV4_VALID; in iwl_mvm_send_proto_offload() 203 common->enabled = cpu_to_le32(enabled); in iwl_mvm_send_proto_offload()
|
/drivers/pwm/ |
D | pwm-tiecap.c | 51 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()
|
D | core.c | 452 if (s1.enabled && s1.polarity != state->polarity) { in pwm_apply_state_debug() 456 s2.enabled = s1.enabled; in pwm_apply_state_debug() 465 if (state->enabled && in pwm_apply_state_debug() 473 if (state->enabled && state->period < s2.period) in pwm_apply_state_debug() 478 if (state->enabled && in pwm_apply_state_debug() 489 if (state->enabled && state->duty_cycle < s2.duty_cycle) in pwm_apply_state_debug() 495 if (!state->enabled && s2.enabled && s2.duty_cycle > 0) in pwm_apply_state_debug() 513 if (s1.enabled != last->enabled || in pwm_apply_state_debug() 515 (s1.enabled && s1.period != last->period) || in pwm_apply_state_debug() 516 (s1.enabled && s1.duty_cycle != last->duty_cycle)) { in pwm_apply_state_debug() [all …]
|
D | pwm-rockchip.c | 90 state->enabled = (val & enable_conf) == enable_conf; in rockchip_pwm_get_state() 190 bool enabled; in rockchip_pwm_apply() local 202 enabled = curstate.enabled; in rockchip_pwm_apply() 204 if (state->polarity != curstate.polarity && enabled && in rockchip_pwm_apply() 209 enabled = false; in rockchip_pwm_apply() 213 if (state->enabled != enabled) { in rockchip_pwm_apply() 214 ret = rockchip_pwm_enable(chip, pwm, state->enabled); in rockchip_pwm_apply() 301 bool enabled; in rockchip_pwm_probe() local 359 enabled = (ctrl & enable_conf) == enable_conf; in rockchip_pwm_probe() 368 if (!enabled) in rockchip_pwm_probe()
|
D | pwm-ep93xx.c | 66 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()
|
D | pwm-sifive.c | 116 state->enabled = duty > 0; in pwm_sifive_get_state() 120 state->enabled = false; in pwm_sifive_get_state() 154 bool enabled; in pwm_sifive_apply() local 168 enabled = cur_state.enabled; in pwm_sifive_apply() 171 if (!state->enabled) in pwm_sifive_apply() 205 if (state->enabled != enabled) in pwm_sifive_apply() 206 pwm_sifive_enable(chip, state->enabled); in pwm_sifive_apply() 340 if (pwm->state.enabled) in pwm_sifive_remove()
|
/drivers/gpu/drm/ |
D | drm_client_modeset.c | 234 bool *enabled) in drm_client_connectors_enabled() argument 242 enabled[i] = drm_connector_enabled(connector, true); in drm_client_connectors_enabled() 244 connector->display_info.non_desktop ? "non desktop" : enabled[i] ? "yes" : "no"); in drm_client_connectors_enabled() 246 any_enabled |= enabled[i]; in drm_client_connectors_enabled() 253 enabled[i] = drm_connector_enabled(connectors[i], false); in drm_client_connectors_enabled() 261 bool *enabled, int width, int height) in drm_client_target_cloned() argument 273 if (enabled[i]) in drm_client_target_cloned() 284 if (!enabled[i]) in drm_client_target_cloned() 292 if (!enabled[j]) in drm_client_target_cloned() 316 if (!enabled[i]) in drm_client_target_cloned() [all …]
|
/drivers/video/fbdev/omap/ |
D | lcd_mipid.c | 37 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/ |
D | rcar_cmm.c | 31 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/wireless/ralink/rt2x00/ |
D | rt2x00leds.c | 62 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/ |
D | pm3393.c | 89 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 …]
|