Searched refs:led_num (Results 1 – 10 of 10) sorted by relevance
/Linux-v6.6/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-v6.6/drivers/leds/ |
D | leds-pca963x.c | 103 int led_num; /* 0 .. 15 potentially */ member 126 ledout_addr = chipdef->ledout_base + (led->led_num / 4); in pca963x_brightness() 127 shift = 2 * (led->led_num % 4); in pca963x_brightness() 137 led->led_num, in pca963x_brightness() 152 led->led_num, in pca963x_brightness() 176 ledout_addr = chipdef->ledout_base + (led->led_num / 4); in pca963x_blink() 177 shift = 2 * (led->led_num % 4); in pca963x_blink() 208 set_bit(led->led_num, leds_on); in pca963x_power_state() 210 clear_bit(led->led_num, leds_on); in pca963x_power_state() 352 led->led_num = reg; in pca963x_register_leds()
|
D | leds-pca955x.c | 131 int led_num; /* 0 .. 15 potentially */ member 152 static inline u8 pca955x_ledsel(u8 oldval, int led_num, int state) in pca955x_ledsel() argument 154 return (oldval & (~(0x3 << (led_num << 1)))) | in pca955x_ledsel() 155 ((state & 0x3) << (led_num << 1)); in pca955x_ledsel() 257 ret = pca955x_read_ls(pca955x->client, pca955x_led->led_num / 4, &ls); in pca955x_led_get() 261 ls = (ls >> ((pca955x_led->led_num % 4) << 1)) & 0x3; in pca955x_led_get() 296 chip_ls = pca955x_led->led_num / 4; in pca955x_led_set() 297 ls_led = pca955x_led->led_num % 4; in pca955x_led_set() 395 pca955x_read_input(pca955x->client, led->led_num / 8, ®); in pca955x_gpio_get_value() 397 return !!(reg & (1 << (led->led_num % 8))); in pca955x_gpio_get_value() [all …]
|
/Linux-v6.6/drivers/net/phy/ |
D | bcm-phy-lib.c | 1045 u8 led_num; in bcm_phy_led_brightness_set() local 1053 led_num = index % 2; in bcm_phy_led_brightness_set() 1060 ret &= ~(BCM_LED_SRC_MASK << BCM54XX_SHD_LEDS_SHIFT(led_num)); in bcm_phy_led_brightness_set() 1062 ret |= BCM_LED_SRC_OFF << BCM54XX_SHD_LEDS_SHIFT(led_num); in bcm_phy_led_brightness_set() 1064 ret |= BCM_LED_SRC_ON << BCM54XX_SHD_LEDS_SHIFT(led_num); in bcm_phy_led_brightness_set()
|
D | mediatek-ge-soc.c | 1352 static bool mt7988_phy_led_get_polarity(struct phy_device *phydev, int led_num) in mt7988_phy_led_get_polarity() argument 1357 if (led_num == 0) in mt7988_phy_led_get_polarity()
|
/Linux-v6.6/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-v6.6/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()
|