/drivers/base/power/ |
D | sysfs.c | 95 static const char enabled[] = "enabled"; variable 307 ? (device_may_wakeup(dev) ? enabled : disabled) in wake_show() 324 if (len == sizeof enabled - 1 in wake_store() 325 && strncmp(buf, enabled, sizeof enabled - 1) == 0) in wake_store() 341 bool enabled = false; in wakeup_count_show() local 346 enabled = true; in wakeup_count_show() 349 return enabled ? sprintf(buf, "%lu\n", count) : sprintf(buf, "\n"); in wakeup_count_show() 358 bool enabled = false; in wakeup_active_count_show() local 363 enabled = true; in wakeup_active_count_show() 366 return enabled ? sprintf(buf, "%lu\n", count) : sprintf(buf, "\n"); in wakeup_active_count_show() [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/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/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/rtc/ |
D | interface.c | 317 alarm->enabled = rtc->aie_timer.enabled; in rtc_read_alarm() 370 if (rtc->aie_timer.enabled) { in rtc_set_alarm() 375 if (alarm->enabled) { in rtc_set_alarm() 405 if (alarm->enabled && (rtc_tm_to_ktime(now).tv64 < in rtc_initialize_alarm() 408 rtc->aie_timer.enabled = 1; in rtc_initialize_alarm() 418 int rtc_alarm_irq_enable(struct rtc_device *rtc, unsigned int enabled) in rtc_alarm_irq_enable() argument 424 if (rtc->aie_timer.enabled != enabled) { in rtc_alarm_irq_enable() 425 if (enabled) in rtc_alarm_irq_enable() 438 err = rtc->ops->alarm_irq_enable(rtc->dev.parent, enabled); in rtc_alarm_irq_enable() 445 int rtc_update_irq_enable(struct rtc_device *rtc, unsigned int enabled) in rtc_update_irq_enable() argument [all …]
|
D | rtc-mc13xxx.c | 33 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, int irq) in mc13xxx_rtc_irq_enable() argument 53 ret = mc13xxx_rtc_irq_enable_unlocked(dev, enabled, irq); in mc13xxx_rtc_irq_enable() 175 int enabled, pending; in mc13xxx_rtc_read_alarm() local 193 &enabled, &pending); in mc13xxx_rtc_read_alarm() 201 alarm->enabled = enabled; in mc13xxx_rtc_read_alarm() 234 dev_dbg(dev, "%s: o%2.s %lu\n", __func__, alarm->enabled ? "n" : "ff", in mc13xxx_rtc_set_alarm() 237 ret = mc13xxx_rtc_irq_enable_unlocked(dev, alarm->enabled, in mc13xxx_rtc_set_alarm() 286 unsigned int enabled) in mc13xxx_rtc_alarm_irq_enable() argument [all …]
|
D | rtc-puv3.c | 70 static int puv3_rtc_setpie(struct device *dev, int enabled) in puv3_rtc_setpie() argument 74 pr_debug("%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(alrm->enabled); in puv3_rtc_setalarm() 145 if (alrm->enabled) in puv3_rtc_setalarm()
|
D | rtc-pcf50633.c | 90 pcf50633_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in pcf50633_rtc_alarm_irq_enable() argument 95 if (enabled) in pcf50633_rtc_alarm_irq_enable() 103 rtc->alarm_enabled = enabled; in pcf50633_rtc_alarm_irq_enable() 188 alrm->enabled = rtc->alarm_enabled; in pcf50633_rtc_read_alarm() 225 if (!alrm->enabled) in pcf50633_rtc_set_alarm() 228 if (!alarm_masked || alrm->enabled) in pcf50633_rtc_set_alarm() 230 rtc->alarm_enabled = alrm->enabled; in pcf50633_rtc_set_alarm()
|
/drivers/net/ |
D | netconsole.c | 103 int enabled; member 194 nt->enabled = 1; in alloc_param_target() 252 return snprintf(buf, PAGE_SIZE, "%d\n", nt->enabled); in show_enabled() 310 int enabled; in store_enabled() local 313 err = kstrtoint(buf, 10, &enabled); in store_enabled() 316 if (enabled < 0 || enabled > 1) in store_enabled() 318 if (enabled == nt->enabled) { in store_enabled() 320 nt->enabled ? "started" : "stopped"); in store_enabled() 324 if (enabled) { /* 1 */ in store_enabled() 342 nt->enabled = enabled; in store_enabled() [all …]
|
/drivers/net/wireless/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/video/omap2/dss/ |
D | apply.c | 74 bool enabled; member 102 bool enabled; member 217 if (!mp->enabled) in dss_check_settings_low() 229 if (!op->enabled && !op->enabling) in dss_check_settings_low() 272 if (!mp->enabled) in need_isr() 325 if (!op->enabled) in need_isr() 376 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/char/ |
D | efirtc.c | 157 unsigned char enabled, pending; in efi_rtc_ioctl() local 216 if ( get_user(enabled, &ewp->enabled) in efi_rtc_ioctl() 229 status = efi.set_wakeup_time((efi_bool_t)enabled, &eft); in efi_rtc_ioctl() 239 status = efi.get_wakeup_time((efi_bool_t *)&enabled, (efi_bool_t *)&pending, &eft); in efi_rtc_ioctl() 247 if ( put_user(enabled, &ewp->enabled) in efi_rtc_ioctl() 304 efi_bool_t enabled, pending; in efi_rtc_proc_show() local 314 efi.get_wakeup_time(&enabled, &pending, &alm); in efi_rtc_proc_show() 342 enabled == 1 ? "yes" : "no", in efi_rtc_proc_show()
|
/drivers/video/omap/ |
D | lcd_mipid.c | 50 int enabled; member 206 static void set_display_state(struct mipid_device *md, int enabled) in set_display_state() argument 208 int cmd = enabled ? MIPID_CMD_DISP_ON : MIPID_CMD_DISP_OFF; in set_display_state() 222 if (!md->enabled) { in mipid_set_bklight_level() 420 if (md->enabled) { in mipid_enable() 425 md->enabled = 1; in mipid_enable() 446 if (!md->enabled) { in mipid_disable() 454 md->enabled = 0; in mipid_disable() 462 int enabled; in panel_enabled() local 466 enabled = (disp_status & (1 << 17)) && (disp_status & (1 << 10)); in panel_enabled() [all …]
|
/drivers/gpu/drm/omapdrm/ |
D | omap_plane.c | 51 bool enabled; member 127 bool enabled = omap_plane->enabled && crtc; in omap_plane_pre_apply() local 131 DBG("%s, enabled=%d", omap_plane->name, enabled); in omap_plane_pre_apply() 134 update_pin(plane, enabled ? plane->fb : NULL); in omap_plane_pre_apply() 136 if (!enabled) { in omap_plane_pre_apply() 188 if (omap_plane->enabled) { in omap_plane_post_apply() 249 omap_plane->enabled = true; in omap_plane_update() 289 bool enabled = (mode == DRM_MODE_DPMS_ON); in omap_plane_dpms() local 292 if (enabled != omap_plane->enabled) { in omap_plane_dpms() 293 omap_plane->enabled = enabled; in omap_plane_dpms()
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00leds.c | 75 static void rt2x00led_led_simple(struct rt2x00_led *led, bool enabled) in rt2x00led_led_simple() argument 77 unsigned int brightness = enabled ? LED_FULL : LED_OFF; in rt2x00led_led_simple() 86 void rt2x00led_led_activity(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00led_led_activity() argument 89 rt2x00led_led_simple(&rt2x00dev->led_qual, enabled); in rt2x00led_led_activity() 92 void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_assoc() argument 95 rt2x00led_led_simple(&rt2x00dev->led_assoc, enabled); in rt2x00leds_led_assoc() 98 void rt2x00leds_led_radio(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_radio() argument 101 rt2x00led_led_simple(&rt2x00dev->led_radio, enabled); in rt2x00leds_led_radio()
|
D | rt2x00lib.h | 425 void rt2x00led_led_activity(struct rt2x00_dev *rt2x00dev, bool enabled); 426 void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev, bool enabled); 427 void rt2x00leds_led_radio(struct rt2x00_dev *rt2x00dev, bool enabled); 439 bool enabled) in rt2x00led_led_activity() argument 444 bool enabled) in rt2x00leds_led_assoc() argument 449 bool enabled) in rt2x00leds_led_radio() argument
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | pm3393.c | 93 u8 enabled; member 281 cmac->instance->enabled |= which; in pm3393_enable() 317 cmac->instance->enabled &= ~which; in pm3393_disable() 333 int enabled = cmac->instance->enabled; in pm3393_set_mtu() local 341 if (enabled) in pm3393_set_mtu() 347 if (enabled) in pm3393_set_mtu() 348 pm3393_enable(cmac, enabled); in pm3393_set_mtu() 354 int enabled = cmac->instance->enabled & MAC_DIRECTION_RX; in pm3393_set_rx_mode() local 358 if (enabled) in pm3393_set_rx_mode() 398 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() 358 if (keypad->enabled) in ep93xx_keypad_remove()
|
/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() 166 if (info->enabled) in twl4030_vibra_suspend()
|
/drivers/usb/phy/ |
D | otg-wakelock.c | 28 static bool enabled = true; variable 86 if (!enabled) { in otgwl_handle_event() 136 module_param_cb(enabled, &enabled_param_ops, &enabled, 0644); 137 MODULE_PARM_DESC(enabled, "enable wakelock when VBUS present");
|
/drivers/video/omap2/displays/ |
D | panel-acx565akm.c | 67 int enabled; member 193 static void set_display_state(struct acx565akm_device *md, int enabled) in set_display_state() argument 195 int cmd = enabled ? MIPID_CMD_DISP_ON : MIPID_CMD_DISP_OFF; in set_display_state() 203 int enabled; in panel_enabled() local 207 enabled = (disp_status & (1 << 17)) && (disp_status & (1 << 10)); in panel_enabled() 210 enabled ? "" : "not ", disp_status); in panel_enabled() 211 return enabled; in panel_enabled() 277 if (!md->enabled) in set_cabc_mode() 537 md->enabled = panel_enabled(md); in acx_panel_probe() 542 if (!md->enabled && gpio_is_valid(panel_data->reset_gpio)) in acx_panel_probe() [all …]
|
/drivers/leds/ |
D | leds-regulator.c | 29 int enabled; member 69 if (led->enabled) in regulator_led_enable() 78 led->enabled = 1; in regulator_led_enable() 85 if (!led->enabled) in regulator_led_disable() 94 led->enabled = 0; in regulator_led_disable() 183 led->enabled = 1; in regulator_led_probe()
|
/drivers/clk/ |
D | clk-twl6040.c | 35 int enabled; member 42 return twl6040_clk->enabled; in twl6040_bitclk_is_enabled() 53 twl6040_clk->enabled = 1; in twl6040_bitclk_prepare() 66 twl6040_clk->enabled = 0; in twl6040_bitclk_unprepare()
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-ioread.c | 41 int enabled; // Streaming is on member 142 if (!(cp->enabled)) return; in pvr2_ioread_stop() 150 cp->enabled = 0; in pvr2_ioread_stop() 164 if (cp->enabled) return 0; in pvr2_ioread_start() 180 cp->enabled = !0; in pvr2_ioread_start() 246 if ((!fl) == (!(cp->enabled))) return ret; in pvr2_ioread_set_enabled() 312 if (!cp->enabled) return; in pvr2_ioread_filter() 371 if (!(cp->enabled)) { in pvr2_ioread_avail()
|