/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_leds.c | 1 // 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 D | leds-class.rst | 8 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 D | leds-mlxcpld.rst | 10 ----------- 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 D | leds-lp5521.rst | 10 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 D | leds-lgm.yaml | 1 # 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/include/linux/ |
H A D | leds.h | 1 /* 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 D | leds-mt6323.c | 1 // 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 D | leds-pca963x.c | 1 // 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 D | led-core.c | 1 // 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() 71 if (!led_cdev->blink_delay_on || !led_cdev->blink_delay_off) { in led_timer_function() [all …]
|
H A D | leds-mlxcpld.c | 2 * drivers/leds/leds-mlxcpld.c 39 #include <linux/hwmon-sysfs.h> 50 #define MLXCPLD_LED_OFFSET_HALF 0x01 /* Offset from solid: 3Hz blink */ 51 #define MLXCPLD_LED_OFFSET_FULL 0x02 /* Offset from solid: 6Hz blink */ 67 * struct mlxcpld_param - LED access parameters: 79 * struct mlxcpld_led_priv - LED private data: 91 * struct mlxcpld_led_profile - system LED profile (defined per system class): 107 * struct mlxcpld_led_pdata - system LED private data 266 * 0x6 for 3Hz blink red, 0xd for solid green, 0xe for 3Hz blink in mlxcpld_led_store_hw() 269 * 0xf0 - lower nibble is to be used (bits from 0 to 3), mask 0x0f - in mlxcpld_led_store_hw() [all …]
|
H A D | leds-pca9532.c | 1 // 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/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | led.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved. 17 #include "iwl-io.h" 18 #include "iwl-trans.h" 19 #include "iwl-modparams.h" 38 { .throughput = 1 * 1024 - 1, .blink_time = 260 }, 39 { .throughput = 5 * 1024 - 1, .blink_time = 220 }, 40 { .throughput = 10 * 1024 - 1, .blink_time = 190 }, 41 { .throughput = 20 * 1024 - 1, .blink_time = 170 }, 42 { .throughput = 50 * 1024 - 1, .blink_time = 150 }, [all …]
|
/linux/arch/arc/include/asm/ |
H A D | entry-arcv2.h | 1 /* 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 D | leds-lgm-sso.c | 1 // 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 D | qcom.h | 1 /* 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/mvm/ |
H A D | led.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2012-2014, 2018-2019 Intel Corporation 7 #include "iwl-io.h" 8 #include "iwl-csr.h" 35 if (fw_has_capa(&mvm->fw->ucode_capa, in iwl_mvm_led_set() 41 iwl_write32(mvm->trans, CSR_LED_REG, in iwl_mvm_led_set() 60 IWL_ERR(mvm, "Blink led mode not supported, used default\n"); in iwl_mvm_leds_init() 70 return -EINVAL; in iwl_mvm_leds_init() 73 mvm->led.name = kasprintf(GFP_KERNEL, "%s-led", in iwl_mvm_leds_init() 74 wiphy_name(mvm->hw->wiphy)); in iwl_mvm_leds_init() [all …]
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | htc_drv_init.c | 2 * 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 …]
|
/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | mac.c | 1 // 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 D | e1000_mac.c | 1 // 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/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-config.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2005-2014, 2018-2021 Intel Corporation 4 * Copyright (C) 2016-2017 Intel Deutschland GmbH 5 * Copyright (C) 2018-2024 Intel Corporation 15 #include "iwl-csr.h" 16 #include "iwl-drv.h" 50 * IWL_LED_BLINK: adjust led blink rate based on blink table 61 * enum iwl_nvm_type - nvm formats 107 MODULE_FIRMWARE(pfx "-" __stringify(api) ".ucode"); \ 118 * struct iwl_base_params - params not likely to change within a device family [all …]
|
/linux/net/mac80211/ |
H A D | led.c | 1 // 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 D | nvidia,tegra20-pmc.yaml | 1 # 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 D | rt2x00leds.c | 1 // 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 D | leds-ktd202x.c | 1 // 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 D | orion5x-lacie-d2-network.dts | 1 // 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 …]
|