/drivers/gpu/drm/amd/powerplay/eventmgr/ |
D | eventinit.c | 48 eventmgr->features[PP_Feature_PowerPlay].enabled = true; in pem_init_feature_info() 51 eventmgr->features[PP_Feature_PowerPlay].enabled = false; in pem_init_feature_info() 56 eventmgr->features[PP_Feature_Force3DClock].enabled = false; in pem_init_feature_info() 66 eventmgr->features[PP_Feature_OverDrive].enabled = false; in pem_init_feature_info() 70 eventmgr->features[PP_Feature_User2DPerformance].enabled = false; in pem_init_feature_info() 74 eventmgr->features[PP_Feature_User3DPerformance].enabled = false; in pem_init_feature_info() 78 eventmgr->features[PP_Feature_OverdriveTest].enabled = false; in pem_init_feature_info() 86 eventmgr->features[PP_Feature_PowerBudgetWaiver].enabled = false; in pem_init_feature_info() 90 eventmgr->features[PP_Feature_MultiUVDState].enabled = false; in pem_init_feature_info() 95 eventmgr->features[PP_Feature_DynamicUVDState].enabled = false; in pem_init_feature_info() [all …]
|
/drivers/regulator/ |
D | userspace-consumer.c | 31 bool enabled; member 50 if (data->enabled) in reg_show_state() 60 bool enabled; in reg_set_state() local 68 enabled = true; in reg_set_state() 70 enabled = false; in reg_set_state() 77 if (enabled != data->enabled) { in reg_set_state() 78 if (enabled) in reg_set_state() 86 data->enabled = enabled; in reg_set_state() 151 drvdata->enabled = pdata->init_on; in regulator_userspace_consumer_probe() 168 if (data->enabled) in regulator_userspace_consumer_remove()
|
D | virtual.c | 24 bool enabled; member 50 if (data->min_uV && data->max_uV && !data->enabled) { in update_voltage_constraints() 54 data->enabled = true; in update_voltage_constraints() 60 if (!(data->min_uV && data->max_uV) && data->enabled) { in update_voltage_constraints() 64 data->enabled = false; in update_voltage_constraints() 90 if (data->max_uA && !data->enabled) { in update_current_limit_constraints() 94 data->enabled = true; in update_current_limit_constraints() 100 if (!(data->min_uA && data->max_uA) && data->enabled) { in update_current_limit_constraints() 104 data->enabled = false; in update_current_limit_constraints() 330 if (drvdata->enabled) in regulator_virtual_remove()
|
/drivers/net/wireless/broadcom/b43/ |
D | rfkill.c | 40 bool enabled; in b43_rfkill_poll() local 53 enabled = b43_is_hw_radio_enabled(dev); in b43_rfkill_poll() 55 if (unlikely(enabled != dev->radio_hw_enable)) { in b43_rfkill_poll() 56 dev->radio_hw_enable = enabled; in b43_rfkill_poll() 58 enabled ? "ENABLED" : "DISABLED"); in b43_rfkill_poll() 59 wiphy_rfkill_set_hw_state(hw->wiphy, !enabled); in b43_rfkill_poll() 60 if (enabled != dev->phy.radio_on) in b43_rfkill_poll() 61 b43_software_rfkill(dev, !enabled); in b43_rfkill_poll()
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | rfkill.c | 57 bool enabled; in b43legacy_rfkill_poll() local 70 enabled = b43legacy_is_hw_radio_enabled(dev); in b43legacy_rfkill_poll() 72 if (unlikely(enabled != dev->radio_hw_enable)) { in b43legacy_rfkill_poll() 73 dev->radio_hw_enable = enabled; in b43legacy_rfkill_poll() 75 enabled ? "ENABLED" : "DISABLED"); in b43legacy_rfkill_poll() 76 wiphy_rfkill_set_hw_state(hw->wiphy, !enabled); in b43legacy_rfkill_poll() 77 if (enabled != dev->phy.radio_on) { in b43legacy_rfkill_poll() 78 if (enabled) in b43legacy_rfkill_poll()
|
/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_audio.c | 90 bool enabled = audio->enabled; in msm_hdmi_audio_update() local 96 audio->enabled, info->channels, info->channel_allocation, in msm_hdmi_audio_update() 100 if (enabled && !(hdmi->power_on && hdmi->pixclock)) { in msm_hdmi_audio_update() 102 enabled = false; in msm_hdmi_audio_update() 105 if (enabled) { in msm_hdmi_audio_update() 110 enabled = false; in msm_hdmi_audio_update() 124 if (enabled) { in msm_hdmi_audio_update() 217 COND(enabled, HDMI_AUD_INT_AUD_FIFO_URUN_INT) | in msm_hdmi_audio_update() 218 COND(enabled, HDMI_AUD_INT_AUD_SAM_DROP_INT)); in msm_hdmi_audio_update() 223 DBG("audio %sabled", enabled ? "en" : "dis"); in msm_hdmi_audio_update() [all …]
|
/drivers/rtc/ |
D | interface.c | 107 alarm->enabled = 0; in rtc_read_alarm_internal() 314 alarm->enabled = rtc->aie_timer.enabled; in rtc_read_alarm() 374 if (rtc->aie_timer.enabled) in rtc_set_alarm() 379 if (alarm->enabled) in rtc_set_alarm() 409 if (alarm->enabled && (rtc_tm_to_ktime(now) < in rtc_initialize_alarm() 412 rtc->aie_timer.enabled = 1; in rtc_initialize_alarm() 420 int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled) in rtc_alarm_irq_enable() argument 426 if (rtc->aie_timer.enabled != enabled) { in rtc_alarm_irq_enable() 427 if (enabled) in rtc_alarm_irq_enable() 440 err = rtc->ops->alarm_irq_enable(rtc->dev.parent, enabled); in rtc_alarm_irq_enable() [all …]
|
D | rtc-mc13xxx.c | 35 unsigned int enabled, int irq) in mc13xxx_rtc_irq_enable_unlocked() argument 43 func = enabled ? mc13xxx_irq_unmask : mc13xxx_irq_mask; in mc13xxx_rtc_irq_enable_unlocked() 48 unsigned int enabled) in mc13xxx_rtc_alarm_irq_enable() argument 55 ret = mc13xxx_rtc_irq_enable_unlocked(dev, enabled, MC13XXX_IRQ_TODA); in mc13xxx_rtc_alarm_irq_enable() 162 int enabled, pending; in mc13xxx_rtc_read_alarm() local 180 &enabled, &pending); in mc13xxx_rtc_read_alarm() 188 alarm->enabled = enabled; in mc13xxx_rtc_read_alarm() 219 dev_dbg(dev, "%s: %s %lld\n", __func__, alarm->enabled ? "on" : "off", in mc13xxx_rtc_set_alarm() 222 ret = mc13xxx_rtc_irq_enable_unlocked(dev, alarm->enabled, in mc13xxx_rtc_set_alarm()
|
D | rtc-puv3.c | 70 static int puv3_rtc_setpie(struct device *dev, int enabled) in puv3_rtc_setpie() argument 74 dev_dbg(dev, "%s: pie=%d\n", __func__, enabled); in puv3_rtc_setpie() 79 if (enabled) in puv3_rtc_setpie() 120 alrm->enabled = readl(RTC_RTSR) & RTC_RTSR_ALE; in puv3_rtc_getalarm() 123 alrm->enabled, in puv3_rtc_getalarm() 136 alrm->enabled, in puv3_rtc_setalarm() 143 puv3_rtc_setaie(dev, alrm->enabled); in puv3_rtc_setalarm() 145 if (alrm->enabled) in puv3_rtc_setalarm()
|
/drivers/base/power/ |
D | sysfs.c | 381 bool enabled = false; in wakeup_count_show() local 386 enabled = true; in wakeup_count_show() 389 return enabled ? sprintf(buf, "%lu\n", count) : sprintf(buf, "\n"); in wakeup_count_show() 398 bool enabled = false; in wakeup_active_count_show() local 403 enabled = true; in wakeup_active_count_show() 406 return enabled ? sprintf(buf, "%lu\n", count) : sprintf(buf, "\n"); in wakeup_active_count_show() 416 bool enabled = false; in wakeup_abort_count_show() local 421 enabled = true; in wakeup_abort_count_show() 424 return enabled ? sprintf(buf, "%lu\n", count) : sprintf(buf, "\n"); in wakeup_abort_count_show() 434 bool enabled = false; in wakeup_expire_count_show() local [all …]
|
/drivers/staging/greybus/ |
D | svc_watchdog.c | 19 bool enabled; member 99 watchdog->enabled = false; in do_work() 104 if (watchdog->enabled) in do_work() 120 watchdog->enabled = false; in gb_svc_watchdog_create() 165 return svc->watchdog->enabled; in gb_svc_watchdog_enabled() 176 if (watchdog->enabled) in gb_svc_watchdog_enable() 179 watchdog->enabled = true; in gb_svc_watchdog_enable() 192 if (!watchdog->enabled) in gb_svc_watchdog_disable() 195 watchdog->enabled = false; in gb_svc_watchdog_disable()
|
/drivers/net/ |
D | netconsole.c | 113 bool enabled; member 211 nt->enabled = true; in alloc_param_target() 260 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled); in enabled_show() 328 int enabled; in enabled_store() local 332 err = kstrtoint(buf, 10, &enabled); in enabled_store() 337 if (enabled < 0 || enabled > 1) in enabled_store() 339 if ((bool)enabled == nt->enabled) { in enabled_store() 341 nt->enabled ? "started" : "stopped"); in enabled_store() 345 if (enabled) { /* true */ in enabled_store() 368 nt->enabled = false; in enabled_store() [all …]
|
/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
D | rfkill.c | 47 bool enabled; in rtl8187_rfkill_poll() local 51 enabled = rtl8187_is_radio_enabled(priv); in rtl8187_rfkill_poll() 52 if (unlikely(enabled != priv->rfkill_off)) { in rtl8187_rfkill_poll() 53 priv->rfkill_off = enabled; in rtl8187_rfkill_poll() 55 enabled ? "on" : "off"); in rtl8187_rfkill_poll() 56 wiphy_rfkill_set_hw_state(hw->wiphy, !enabled); in rtl8187_rfkill_poll()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | offloading.c | 108 u32 enabled = 0, size; in iwl_mvm_send_proto_offload() local 173 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload() 200 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload() 222 enabled |= IWL_D3_PROTO_IPV6_VALID; in iwl_mvm_send_proto_offload() 227 if (offload_ns && (enabled & IWL_D3_PROTO_IPV6_VALID)) in iwl_mvm_send_proto_offload() 228 enabled |= IWL_D3_PROTO_OFFLOAD_NS; in iwl_mvm_send_proto_offload() 245 enabled |= IWL_D3_PROTO_OFFLOAD_ARP | IWL_D3_PROTO_IPV4_VALID; in iwl_mvm_send_proto_offload() 251 common->enabled = cpu_to_le32(enabled); in iwl_mvm_send_proto_offload()
|
/drivers/acpi/acpica/ |
D | extrace.c | 205 u8 enabled = FALSE; in acpi_ex_start_trace_method() local 213 enabled = acpi_ex_interpreter_trace_enabled(pathname); in acpi_ex_start_trace_method() 214 if (enabled && !acpi_gbl_trace_method_object) { in acpi_ex_start_trace_method() 230 if (enabled) { in acpi_ex_start_trace_method() 262 u8 enabled; in acpi_ex_stop_trace_method() local 270 enabled = acpi_ex_interpreter_trace_enabled(NULL); in acpi_ex_stop_trace_method() 272 if (enabled) { in acpi_ex_stop_trace_method()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | apply.c | 74 bool enabled; member 102 bool enabled; member 220 if (!mp->enabled) in dss_check_settings_low() 232 if (!op->enabled && !op->enabling) in dss_check_settings_low() 275 if (!mp->enabled) in need_isr() 328 if (!op->enabled) in need_isr() 379 if (!mp->enabled) in extra_info_update_ongoing() 496 if (!mp->enabled) { in dss_mgr_wait_for_go() 572 if (!mp->enabled) { in dss_mgr_wait_for_go_ovl() 637 if (!op->enabled || !op->info_dirty) in dss_ovl_write_regs() [all …]
|
/drivers/char/ |
D | efirtc.c | 156 unsigned char enabled, pending; in efi_rtc_ioctl() local 215 if ( get_user(enabled, &ewp->enabled) in efi_rtc_ioctl() 228 status = efi.set_wakeup_time((efi_bool_t)enabled, &eft); in efi_rtc_ioctl() 238 status = efi.get_wakeup_time((efi_bool_t *)&enabled, (efi_bool_t *)&pending, &eft); in efi_rtc_ioctl() 246 if ( put_user(enabled, &ewp->enabled) in efi_rtc_ioctl() 303 efi_bool_t enabled, pending; in efi_rtc_proc_show() local 313 efi.get_wakeup_time(&enabled, &pending, &alm); in efi_rtc_proc_show() 341 enabled == 1 ? "yes" : "no", in efi_rtc_proc_show()
|
/drivers/video/fbdev/omap/ |
D | lcd_mipid.c | 50 int enabled; member 205 static void set_display_state(struct mipid_device *md, int enabled) in set_display_state() argument 207 int cmd = enabled ? MIPID_CMD_DISP_ON : MIPID_CMD_DISP_OFF; in set_display_state() 221 if (!md->enabled) { in mipid_set_bklight_level() 419 if (md->enabled) { in mipid_enable() 424 md->enabled = 1; in mipid_enable() 445 if (!md->enabled) { in mipid_disable() 453 md->enabled = 0; in mipid_disable() 461 int enabled; in panel_enabled() local 465 enabled = (disp_status & (1 << 17)) && (disp_status & (1 << 10)); in panel_enabled() [all …]
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00leds.c | 73 static void rt2x00led_led_simple(struct rt2x00_led *led, bool enabled) in rt2x00led_led_simple() argument 75 unsigned int brightness = enabled ? LED_FULL : LED_OFF; in rt2x00led_led_simple() 84 void rt2x00led_led_activity(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00led_led_activity() argument 87 rt2x00led_led_simple(&rt2x00dev->led_qual, enabled); in rt2x00led_led_activity() 90 void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_assoc() argument 93 rt2x00led_led_simple(&rt2x00dev->led_assoc, enabled); in rt2x00leds_led_assoc() 96 void rt2x00leds_led_radio(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_radio() argument 99 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 …]
|
/drivers/input/keyboard/ |
D | ep93xx_keypad.c | 81 bool enabled; member 165 if (!keypad->enabled) { in ep93xx_keypad_open() 168 keypad->enabled = true; in ep93xx_keypad_open() 178 if (keypad->enabled) { in ep93xx_keypad_close() 180 keypad->enabled = false; in ep93xx_keypad_close() 194 if (keypad->enabled) { in ep93xx_keypad_suspend() 196 keypad->enabled = false; in ep93xx_keypad_suspend() 219 if (!keypad->enabled) { in ep93xx_keypad_resume() 222 keypad->enabled = true; in ep93xx_keypad_resume() 355 if (keypad->enabled) in ep93xx_keypad_remove()
|
/drivers/gpu/drm/selftests/ |
D | drm_selftest.c | 34 bool enabled; member 45 module_param_named(id, selftests[__idx_##n].enabled, bool, 0400); 55 if (st[i].enabled) in set_default_test_all() 59 st[i].enabled = true; in set_default_test_all() 72 if (!st->enabled) in run_selftests()
|
/drivers/input/misc/ |
D | twl4030-vibra.c | 48 bool enabled; member 80 info->enabled = true; in vibra_enable() 96 info->enabled = false; in vibra_disable() 114 if (!info->enabled) in vibra_play_work() 129 if (info->enabled) in vibra_play_work() 155 if (info->enabled) in twl4030_vibra_close() 165 if (info->enabled) in twl4030_vibra_suspend()
|
/drivers/usb/phy/ |
D | otg-wakelock.c | 27 static bool enabled = true; variable 84 if (!enabled) { in otgwl_handle_event() 134 module_param_cb(enabled, &enabled_param_ops, &enabled, 0644); 135 MODULE_PARM_DESC(enabled, "enable wakelock when VBUS present");
|
/drivers/leds/ |
D | leds-regulator.c | 27 int enabled; member 66 if (led->enabled) in regulator_led_enable() 75 led->enabled = 1; in regulator_led_enable() 82 if (!led->enabled) in regulator_led_disable() 91 led->enabled = 0; in regulator_led_disable() 163 led->enabled = 1; in regulator_led_probe()
|