/linux-6.14.4/drivers/net/ethernet/intel/igc/ |
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-6.14.4/Documentation/leds/ |
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-[email protected]. [all …]
|
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 …]
|
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-6.14.4/Documentation/devicetree/bindings/leds/ |
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 <[email protected]> 11 - Amireddy Mallikarjuna reddy <[email protected]> 15 const: intel,lgm-ssoled 23 clock-names: 25 - const: sso 26 - const: fpid [all …]
|
/linux-6.14.4/include/linux/ |
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-6.14.4/drivers/leds/ |
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 …]
|
D | leds-mlxreg.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 16 #define MLXREG_LED_OFFSET_BLINK_3HZ 0x01 /* Offset from solid: 3Hz blink */ 17 #define MLXREG_LED_OFFSET_BLINK_6HZ 0x02 /* Offset from solid: 6Hz blink */ 22 #define MLXREG_LED_BLINK_3HZ 167 /* ~167 msec off/on - HW support */ 23 #define MLXREG_LED_BLINK_6HZ 83 /* ~83 msec off/on - HW support */ 27 * struct mlxreg_led_data - led control data: 46 * struct mlxreg_led_priv_data - platform private data: 61 struct mlxreg_led_priv_data *priv = led_data->data_parent; in mlxreg_led_store_hw() 62 struct mlxreg_core_platform_data *led_pdata = priv->pdata; in mlxreg_led_store_hw() 63 struct mlxreg_core_data *data = led_data->data; in mlxreg_led_store_hw() [all …]
|
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 …]
|
D | leds-cht-wcove.c | 1 // SPDX-License-Identifier: GPL-2.0 30 #define CHT_WC_LED1_SWCTL BIT(0) /* HW or SW control of charging led */ 112 mutex_lock(&led->mutex); in cht_wc_leds_brightness_set() 115 ret = regmap_update_bits(led->regmap, led->regs->ctrl, in cht_wc_leds_brightness_set() 116 led->regs->on_off_mask, led->regs->off_val); in cht_wc_leds_brightness_set() 118 dev_err(cdev->dev, "Failed to turn off: %d\n", ret); in cht_wc_leds_brightness_set() 122 /* Disable HW blinking */ in cht_wc_leds_brightness_set() 123 ret = regmap_update_bits(led->regmap, led->regs->fsm, in cht_wc_leds_brightness_set() 126 dev_err(cdev->dev, "Failed to update LED FSM reg: %d\n", ret); in cht_wc_leds_brightness_set() 128 ret = regmap_write(led->regmap, led->regs->pwm, value); in cht_wc_leds_brightness_set() [all …]
|
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 …]
|
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 …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 56 See Documentation/ABI/testing/sysfs-class-led for details. 65 This option enables support for on-chip LED drivers found on Marvell 72 This option enables support for the AN30259A 3-channel 76 will be called leds-an30259a. 86 If you're looking for APU2/3, use the pcengines-apu2 driver. 90 module will be called leds-apu. 112 - AW20036 (3x12) 36 LEDs 113 - AW20054 (6x9) 54 LEDs 114 - AW20072 (6x12) 72 LEDs [all …]
|
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-6.14.4/drivers/net/wireless/intel/iwlwifi/dvm/ |
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-6.14.4/arch/arc/include/asm/ |
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-6.14.4/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_x540.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2024 Intel Corporation. */ 20 static int ixgbe_update_flash_X540(struct ixgbe_hw *hw); 21 static int ixgbe_poll_flash_update_done_X540(struct ixgbe_hw *hw); 22 static int ixgbe_get_swfw_sync_semaphore(struct ixgbe_hw *hw); 23 static void ixgbe_release_swfw_sync_semaphore(struct ixgbe_hw *hw); 25 enum ixgbe_media_type ixgbe_get_media_type_X540(struct ixgbe_hw *hw) in ixgbe_get_media_type_X540() argument 30 int ixgbe_get_invariants_X540(struct ixgbe_hw *hw) in ixgbe_get_invariants_X540() argument 32 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X540() 33 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_get_invariants_X540() [all …]
|
/linux-6.14.4/drivers/net/phy/ |
D | air_en8811h.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * - Only full duplex supported 7 * - Forced speed (AN off) is not supported by hardware (100Mbps) 128 * GPIO5 <-> LED0 On: Link detected, blink Rx/Tx 129 * GPIO4 <-> LED1 On: Link detected at 2500 or 1000 Mbps 130 * GPIO3 <-> LED2 On: Link detected at 2500 or 100 Mbps 400 for (offset = 0; offset < fw->size; offset += 4) { in __air_write_buf() 401 val = get_unaligned_le16(&fw->data[offset + 2]); in __air_write_buf() 406 val = get_unaligned_le16(&fw->data[offset]); in __air_write_buf() 437 /* Because of mdio-lock, may have to wait for multiple loads */ in en8811h_wait_mcu_ready() [all …]
|
/linux-6.14.4/drivers/leds/blink/ |
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-6.14.4/drivers/net/phy/qcom/ |
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-6.14.4/drivers/net/wireless/intel/iwlwifi/mvm/ |
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-6.14.4/drivers/net/wireless/ath/ath9k/ |
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-6.14.4/drivers/net/dsa/mv88e6xxx/ |
D | leds.c | 1 // 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-6.14.4/drivers/net/ethernet/intel/e1000e/ |
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-6.14.4/drivers/net/ethernet/intel/igb/ |
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 …]
|