Home
last modified time | relevance | path

Searched +full:hw +full:- +full:blink (Results 1 – 25 of 74) sorted by relevance

123

/linux/drivers/net/ethernet/intel/igc/
H A Digc_leds.c1 // SPDX-License-Identifier: GPL-2.0
50 u32 *mask, u32 *shift, u32 *blink) in igc_led_select() argument
56 *blink = IGC_LEDCTL_LED0_BLINK; in igc_led_select()
61 *blink = IGC_LEDCTL_LED1_BLINK; in igc_led_select()
66 *blink = IGC_LEDCTL_LED2_BLINK; in igc_led_select()
69 *mask = *shift = *blink = 0; in igc_led_select()
70 netdev_err(adapter->netdev, "Unknown LED %d selected!\n", led); in igc_led_select()
75 bool blink) in igc_led_set() argument
78 struct igc_hw *hw = &adapter->hw; in igc_led_set() local
82 pm_runtime_get_sync(&adapter->pdev->dev); in igc_led_set()
[all …]
/linux/Documentation/leds/
H A Dleds-class.rst8 of the LED (taking a value 0-max_brightness). Most LEDs don't have hardware
9 brightness support so will just be turned on for non-zero brightness settings.
14 existing subsystems with minimal additional code. Examples are the disk-activity,
15 nand-disk and sharpsl-charge triggers. With led triggers disabled, the code
48 - devicename:
57 - color:
59 include/dt-bindings/leds/common.h.
61 - function:
63 include/dt-bindings/leds/common.h.
66 to linux-leds@vger.kernel.org.
[all …]
H A Dleds-mlxcpld.rst10 -----------
14 - mlxcpld:fan1:green
15 - mlxcpld:fan1:red
16 - mlxcpld:fan2:green
17 - mlxcpld:fan2:red
18 - mlxcpld:fan3:green
19 - mlxcpld:fan3:red
20 - mlxcpld:fan4:green
21 - mlxcpld:fan4:red
22 - mlxcpld:psu:green
[all …]
H A Dleds-lp5521.rst10 Contact: Samu Onkalo (samu.p.onkalo-at-nokia.com)
13 -----------
25 1) Legacy interface - enginex_mode and enginex_load
35 Example (start to blink the channel 2 led)::
46 2) Firmware interface - LP55xx common interface
48 For the details, please refer to 'firmware' section in leds-lp55xx.txt
57 - /sys/class/leds/lp5521:channel0/led_current - RW
58 - /sys/class/leds/lp5521:channel0/max_current - RO
85 /* setup HW resources */
90 /* Release HW resources */
[all …]
/linux/Documentation/devicetree/bindings/leds/
H A Dleds-lgm.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-lgm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Zhu, Yi Xin <Yixin.zhu@intel.com>
11 - Amireddy Mallikarjuna reddy <mallikarjunax.reddy@intel.com>
15 const: intel,lgm-ssoled
23 clock-names:
25 - const: sso
26 - const: fpid
[all …]
/linux/drivers/net/phy/
H A Dair_en8811h.c1 // SPDX-License-Identifier: GPL-2.0+
6 * - Only full duplex supported
7 * - Forced speed (AN off) is not supported by hardware (100Mbps)
15 #include <linux/clk-provider.h>
135 * GPIO5 <-> LED0 On: Link detected, blink Rx/Tx
136 * GPIO4 <-> LED1 On: Link detected at 2500 or 1000 Mbps
137 * GPIO3 <-> LED2 On: Link detected at 2500 or 100 Mbps
153 container_of(_hw, struct en8811h_priv, hw)
159 struct clk_hw hw; member
413 for (offset = 0; offset < fw->size; offset += 4) { in __air_write_buf()
[all …]
/linux/include/linux/
H A Dleds.h1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include <dt-bindings/leds/common.h>
47 * struct led_lookup_data - represents a single LED lookup entry
66 * with in-driver hard-coded LED names used as a fallback when
79 * only LEDs exposed by drivers of hot-pluggable devices should
122 /* Brightness off also disables hw-blinking so it is a separate action */
134 * Set LED brightness level immediately - it can block the caller for
143 * Activate hardware accelerated blink, delays are in milliseconds
187 /* true if activated - deactivate routine uses it to do cleanup */
193 /* Unique trigger name supported by LED set in hw control mode */
[all …]
/linux/drivers/leds/
H A Dleds-mt6323.c1 // SPDX-License-Identifier: GPL-2.0-or-later
43 /* ISINK_CON0: Register to setup the duty cycle of the blink. */
47 /* ISINK_CON1: Register to setup the period of the blink. */
69 * struct mt6323_led - state container for the LED device
83 * struct mt6323_regs - register spec for the LED device
107 * struct mt6323_hwspec - hardware specific parameters
123 * struct mt6323_data - device specific data
133 * struct mt6323_leds - state container for holding LED controller
136 * @hw: the underlying hardware providing shared
145 struct mt6397_chip *hw; member
[all …]
H A Dleds-pca963x.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Peter Meerwald <p.meerwald@bct-electronic.com>
9 * Based on leds-pca955x.c
11 * LED driver for the PCA9633 I2C LED driver (7-bit slave address 0x62)
12 * LED driver for the PCA9634/5 I2C LED driver (7-bit slave address set by hw.)
17 * blink will actually blink but all LEDs that are set to blink will blink
19 * that is set to blink will be used for all of the blinking LEDs.
22 * or by adding the 'nxp,hw-blink' property to the DTS.
43 #define PCA963X_MODE2_OUTDRV 0x04 /* Open-drain or totem pole */
86 /* Total blink period in milliseconds */
[all …]
H A Dled-core.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 2005-2006 Openedhand Ltd.
11 #include <linux/led-class-multicolor.h>
49 if (!led_cdev->brightness_set) in __led_set_brightness()
50 return -ENOTSUPP; in __led_set_brightness()
52 led_cdev->brightness_set(led_cdev, value); in __led_set_brightness()
59 if (!led_cdev->brightness_set_blocking) in __led_set_brightness_blocking()
60 return -ENOTSUPP; in __led_set_brightness_blocking()
62 return led_cdev->brightness_set_blocking(led_cdev, value); in __led_set_brightness_blocking()
72 if (!led_cdev->blink_delay_on || !led_cdev->blink_delay_off) { in led_timer_function()
[all …]
H A Dleds-pca9532.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * pca9532.c - 16-bit Led dimmer
18 #include <linux/leds-pca9532.h>
108 .name = "leds-pca953x",
121 static int pca9532_calcpwm(struct i2c_client *client, int pwm, int blink, in pca9532_calcpwm() argument
126 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_calcpwm()
127 if (data->leds[i].type == PCA9532_TYPE_LED && in pca9532_calcpwm()
128 data->leds[i].state == PCA9532_PWM0+pwm) { in pca9532_calcpwm()
130 b += data->leds[i].ldev.brightness; in pca9532_calcpwm()
134 dev_err(&client->dev, in pca9532_calcpwm()
[all …]
/linux/arch/arc/include/asm/
H A Dentry-arcv2.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <asm/asm-offsets.h>
7 #include <asm/dsp-impl.h>
8 #include <asm/irqflags-arcv2.h>
17 * manual --------------------- manual
28 * hw autosave ---------------------
35 * | blink |
42 * ---------------------
43 * hw autosave | pc / eret |
45 * ---------------------
[all …]
/linux/drivers/leds/blink/
H A Dleds-lgm-sso.c1 // SPDX-License-Identifier: GPL-2.0
23 #define SSO_DEV_NAME "lgm-sso"
55 #define DATA_CLK_EDGE 0 /* 0-rising, 1-falling */
63 * SW - Software has to update the SWU bit
64 * GPTC - General Purpose timer is used as clock source
65 * FPID - Divided FSC clock (FPID) is used as clock source
149 if (rate <= priv->freq[i]) in sso_get_blink_rate_idx()
153 return -1; in sso_get_blink_rate_idx()
179 return pin - LED_GRP1_PIN_MAX; in sso_led_pin_blink_off()
181 return pin - LED_GRP0_PIN_MAX; in sso_led_pin_blink_off()
[all …]
/linux/drivers/net/phy/qcom/
H A Dqcom.h1 /* SPDX-License-Identifier: GPL-2.0 */
129 /* LED hw control pattern is the same for every LED */
133 /* Follow blink trigger even if duplex or speed condition doesn't match */
152 * hw control pattern rules and doesn't indicate any way
156 * For the basic LED control and hw control these finding
162 * force mode and the blink modes.
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dled.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
20 if (WARN_ON(!mld->fw_status.running)) in iwl_mld_send_led_fw_cmd()
36 if (!mld->fw_status.running) in iwl_led_brightness_set()
49 IWL_ERR(mld, "Blink led mode not supported, used default\n"); in iwl_mld_leds_init()
59 return -EINVAL; in iwl_mld_leds_init()
62 mld->led.name = kasprintf(GFP_KERNEL, "%s-led", in iwl_mld_leds_init()
63 wiphy_name(mld->hw->wiphy)); in iwl_mld_leds_init()
64 if (!mld->led.name) in iwl_mld_leds_init()
65 return -ENOMEM; in iwl_mld_leds_init()
67 mld->led.brightness_set = iwl_led_brightness_set; in iwl_mld_leds_init()
[all …]
/linux/drivers/net/wireless/ath/ath9k/
H A Dhtc_drv_init.c2 * Copyright (c) 2010-2011 Atheros Communications Inc.
35 MODULE_PARM_DESC(btcoex_enable, "Enable wifi-BT coexistence");
47 module_param_named(blink, ath9k_htc_led_blink, int, 0444);
48 MODULE_PARM_DESC(blink, "Enable LED blink on activity");
66 ath9k_htc_ps_wakeup(common->priv); in ath9k_htc_op_ps_wakeup()
71 ath9k_htc_ps_restore(common->priv); in ath9k_htc_op_ps_restore()
83 if (atomic_read(&priv->htc->tgt_ready) > 0) { in ath9k_htc_wait_for_target()
84 atomic_dec(&priv->htc->tgt_ready); in ath9k_htc_wait_for_target()
89 time_left = wait_for_completion_timeout(&priv->htc->target_wait, HZ); in ath9k_htc_wait_for_target()
91 dev_err(priv->dev, "ath9k_htc: Target is unresponsive\n"); in ath9k_htc_wait_for_target()
[all …]
H A Dinit.c2 * Copyright (c) 2008-2011 Atheros Communications Inc.
19 #include <linux/dma-mapping.h>
24 #include <linux/nvmem-consumer.h>
51 module_param_named(blink, ath9k_led_blink, int, 0444);
52 MODULE_PARM_DESC(blink, "Enable LED blink on activity");
54 static int ath9k_led_active_high = -1;
60 MODULE_PARM_DESC(btcoex_enable, "Enable wifi-BT coexistence");
108 .ident = "Dell Inspiron 24-3460",
111 DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 24-3460"),
132 .ident = "Dell Vostro 15-3572",
[all …]
/linux/drivers/net/dsa/mv88e6xxx/
H A Dleds.c1 // SPDX-License-Identifier: GPL-2.0-or-later
40 err = mv88e6xxx_port_led_read(p->chip, p->port, in mv88e6xxx_led_brightness_set()
67 return mv88e6xxx_port_led_write(p->chip, p->port, reg); in mv88e6xxx_led_brightness_set()
76 mv88e6xxx_reg_lock(p->chip); in mv88e6xxx_led0_brightness_set_blocking()
78 mv88e6xxx_reg_unlock(p->chip); in mv88e6xxx_led0_brightness_set_blocking()
89 mv88e6xxx_reg_lock(p->chip); in mv88e6xxx_led1_brightness_set_blocking()
91 mv88e6xxx_reg_unlock(p->chip); in mv88e6xxx_led1_brightness_set_blocking()
107 * (SFP) connections and some blink on activity by default.
117 * different tables per-family here.
329 /* mv88e6xxx_led_match_selector() - look up the appropriate LED mode selector
[all …]
/linux/drivers/net/ethernet/intel/e1000e/
H A Dmac.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
9 * e1000e_get_bus_info_pcie - Get PCIe bus information
10 * @hw: pointer to the HW structure
16 s32 e1000e_get_bus_info_pcie(struct e1000_hw *hw) in e1000e_get_bus_info_pcie() argument
18 struct pci_dev *pdev = hw->adapter->pdev; in e1000e_get_bus_info_pcie()
19 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie()
20 struct e1000_bus_info *bus = &hw->bus; in e1000e_get_bus_info_pcie()
24 bus->width = e1000_bus_width_unknown; in e1000e_get_bus_info_pcie()
27 bus->width = (enum e1000_bus_width)FIELD_GET(PCI_EXP_LNKSTA_NLW, in e1000e_get_bus_info_pcie()
[all …]
/linux/drivers/net/ethernet/intel/igb/
H A De1000_mac.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2007 - 2018 Intel Corporation. */
15 static s32 igb_set_default_fc(struct e1000_hw *hw);
16 static void igb_set_fc_watermarks(struct e1000_hw *hw);
19 * igb_get_bus_info_pcie - Get PCIe bus information
20 * @hw: pointer to the HW structure
26 s32 igb_get_bus_info_pcie(struct e1000_hw *hw) in igb_get_bus_info_pcie() argument
28 struct e1000_bus_info *bus = &hw->bus; in igb_get_bus_info_pcie()
33 bus->type = e1000_bus_type_pci_express; in igb_get_bus_info_pcie()
35 ret_val = igb_read_pcie_cap_reg(hw, in igb_get_bus_info_pcie()
[all …]
/linux/net/mac80211/
H A Dled.c1 // SPDX-License-Identifier: GPL-2.0-only
14 if (!atomic_read(&local->assoc_led_active)) in ieee80211_led_assoc()
17 led_trigger_event(&local->assoc_led, LED_FULL); in ieee80211_led_assoc()
19 led_trigger_event(&local->assoc_led, LED_OFF); in ieee80211_led_assoc()
24 if (!atomic_read(&local->radio_led_active)) in ieee80211_led_radio()
27 led_trigger_event(&local->radio_led, LED_FULL); in ieee80211_led_radio()
29 led_trigger_event(&local->radio_led, LED_OFF); in ieee80211_led_radio()
34 local->rx_led.name = kasprintf(GFP_KERNEL, "%srx", in ieee80211_alloc_led_names()
35 wiphy_name(local->hw.wiphy)); in ieee80211_alloc_led_names()
36 local->tx_led.name = kasprintf(GFP_KERNEL, "%stx", in ieee80211_alloc_led_names()
[all …]
/linux/Documentation/devicetree/bindings/soc/tegra/
H A Dnvidia,tegra20-pmc.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/soc/tegra/nvidia,tegra20-pmc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Thierry Reding <thierry.reding@gmail.com>
11 - Jonathan Hunter <jonathanh@nvidia.com>
16 - nvidia,tegra20-pmc
17 - nvidia,tegra30-pmc
18 - nvidia,tegra114-pmc
19 - nvidia,tegra124-pmc
[all …]
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00leds.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 Copyright (C) 2004 - 2009 Ivo van Doorn <IvDoorn@gmail.com>
21 struct rt2x00_led *led = &rt2x00dev->led_qual; in rt2x00leds_led_quality()
24 if ((led->type != LED_TYPE_QUALITY) || !(led->flags & LED_REGISTERED)) in rt2x00leds_led_quality()
31 rssi += rt2x00dev->rssi_offset; in rt2x00leds_led_quality()
35 * to a LED value inside the range LED_OFF - LED_FULL. in rt2x00leds_led_quality()
56 if (brightness != led->led_dev.brightness) { in rt2x00leds_led_quality()
57 led->led_dev.brightness_set(&led->led_dev, brightness); in rt2x00leds_led_quality()
58 led->led_dev.brightness = brightness; in rt2x00leds_led_quality()
66 if (!(led->flags & LED_REGISTERED)) in rt2x00led_led_simple()
[all …]
/linux/drivers/leds/rgb/
H A Dleds-ktd202x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Datasheet: https://www.kinet-ic.com/uploads/KTD2026-7-04h.pdf
11 #include <linux/led-class-multicolor.h>
50 /* Register 2-3 */
63 /* Register 6-9 */
110 if (!chip->enabled) in ktd202x_chip_disable()
113 regmap_write(chip->regmap, KTD202X_REG_RESET_CONTROL, KTD202X_ENABLE_CTRL_SLEEP); in ktd202x_chip_disable()
115 ret = regulator_bulk_disable(ARRAY_SIZE(chip->regulators), chip->regulators); in ktd202x_chip_disable()
117 dev_err(chip->dev, "Failed to disable regulators: %d\n", ret); in ktd202x_chip_disable()
121 chip->enabled = false; in ktd202x_chip_disable()
[all …]
/linux/arch/arm/boot/dts/marvell/
H A Dorion5x-lacie-d2-network.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2014 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include "orion5x-mv88f5182.dtsi"
16 compatible = "lacie,d2-network", "marvell,orion5x-88f5182", "marvell,orion5x";
25 stdout-path = &uart0;
34 gpio-keys {
[all …]

123