Searched refs:led_num (Results 1 – 10 of 10) sorted by relevance
/linux-6.12.1/drivers/net/dsa/qca/ |
D | qca8k-leds.c | 22 qca8k_get_enable_led_reg(int port_num, int led_num, struct qca8k_led_pattern_en *reg_info) in qca8k_get_enable_led_reg() argument 26 reg_info->reg = QCA8K_LED_CTRL_REG(led_num); in qca8k_get_enable_led_reg() 34 reg_info->shift = QCA8K_LED_PHY123_PATTERN_EN_SHIFT(port_num, led_num); in qca8k_get_enable_led_reg() 37 reg_info->reg = QCA8K_LED_CTRL_REG(led_num); in qca8k_get_enable_led_reg() 48 qca8k_get_control_led_reg(int port_num, int led_num, struct qca8k_led_pattern_en *reg_info) in qca8k_get_control_led_reg() argument 50 reg_info->reg = QCA8K_LED_CTRL_REG(led_num); in qca8k_get_control_led_reg() 102 qca8k_get_enable_led_reg(led->port_num, led->led_num, ®_info); in qca8k_led_brightness_set() 171 qca8k_get_enable_led_reg(led->port_num, led->led_num, ®_info); in qca8k_led_brightness_get() 212 qca8k_get_enable_led_reg(led->port_num, led->led_num, ®_info); in qca8k_cled_blink_set() 236 qca8k_get_enable_led_reg(led->port_num, led->led_num, ®_info); in qca8k_cled_trigger_offload() [all …]
|
D | qca8k.h | 438 u8 led_num; member
|
/linux-6.12.1/drivers/leds/ |
D | leds-pca963x.c | 104 int led_num; /* 0 .. 15 potentially */ member 127 ledout_addr = chipdef->ledout_base + (led->led_num / 4); in pca963x_brightness() 128 shift = 2 * (led->led_num % 4); in pca963x_brightness() 138 led->led_num, in pca963x_brightness() 153 led->led_num, in pca963x_brightness() 177 ledout_addr = chipdef->ledout_base + (led->led_num / 4); in pca963x_blink() 178 shift = 2 * (led->led_num % 4); in pca963x_blink() 209 set_bit(led->led_num, leds_on); in pca963x_power_state() 211 clear_bit(led->led_num, leds_on); in pca963x_power_state() 353 led->led_num = reg; in pca963x_register_leds()
|
D | leds-pca955x.c | 121 int led_num; /* 0 .. 15 potentially */ member 142 static inline u8 pca955x_ledsel(u8 oldval, int led_num, int state) in pca955x_ledsel() argument 144 return (oldval & (~(0x3 << (led_num << 1)))) | in pca955x_ledsel() 145 ((state & 0x3) << (led_num << 1)); in pca955x_ledsel() 247 ret = pca955x_read_ls(pca955x->client, pca955x_led->led_num / 4, &ls); in pca955x_led_get() 251 ls = (ls >> ((pca955x_led->led_num % 4) << 1)) & 0x3; in pca955x_led_get() 286 chip_ls = pca955x_led->led_num / 4; in pca955x_led_set() 287 ls_led = pca955x_led->led_num % 4; in pca955x_led_set() 385 pca955x_read_input(pca955x->client, led->led_num / 8, ®); in pca955x_gpio_get_value() 387 return !!(reg & (1 << (led->led_num % 8))); in pca955x_gpio_get_value() [all …]
|
/linux-6.12.1/drivers/net/phy/ |
D | bcm-phy-lib.c | 1088 u8 led_num; in bcm_phy_led_brightness_set() local 1096 led_num = index % 2; in bcm_phy_led_brightness_set() 1103 ret &= ~(BCM_LED_SRC_MASK << BCM54XX_SHD_LEDS_SHIFT(led_num)); in bcm_phy_led_brightness_set() 1105 ret |= BCM_LED_SRC_OFF << BCM54XX_SHD_LEDS_SHIFT(led_num); in bcm_phy_led_brightness_set() 1107 ret |= BCM_LED_SRC_ON << BCM54XX_SHD_LEDS_SHIFT(led_num); in bcm_phy_led_brightness_set()
|
D | mediatek-ge-soc.c | 1369 static bool mt7988_phy_led_get_polarity(struct phy_device *phydev, int led_num) in mt7988_phy_led_get_polarity() argument 1374 if (led_num == 0) in mt7988_phy_led_get_polarity()
|
/linux-6.12.1/drivers/media/pci/ddbridge/ |
D | ddbridge-hw.c | 117 .led_num = 1,
|
D | ddbridge.h | 111 u8 led_num; member
|
D | ddbridge-core.c | 2851 if (!dev->link[0].info->led_num) in ddb_set_led() 3152 if (dev->link[0].info->led_num) in ddb_device_attrs_del() 3179 if (dev->link[0].info->led_num) in ddb_device_attrs_add()
|
/linux-6.12.1/drivers/net/phy/mscc/ |
D | mscc_main.c | 176 u8 led_num, in vsc85xx_led_cntl_set() argument 184 reg_val &= ~LED_MODE_SEL_MASK(led_num); in vsc85xx_led_cntl_set() 185 reg_val |= LED_MODE_SEL(led_num, (u16)mode); in vsc85xx_led_cntl_set()
|