Lines Matching defs:led

95 qca8k_led_brightness_set(struct qca8k_led *led,
99 struct qca8k_priv *priv = led->priv;
102 qca8k_get_enable_led_reg(led->port_num, led->led_num, &reg_info);
138 * To abstract this and have less code, we use the port and led numm
142 if (led->port_num == 0 || led->port_num == 4) {
158 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev);
160 return qca8k_led_brightness_set(led, brightness);
164 qca8k_led_brightness_get(struct qca8k_led *led)
167 struct qca8k_priv *priv = led->priv;
171 qca8k_get_enable_led_reg(led->port_num, led->led_num, &reg_info);
179 if (led->port_num == 0 || led->port_num == 4) {
195 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev);
198 struct qca8k_priv *priv = led->priv;
212 qca8k_get_enable_led_reg(led->port_num, led->led_num, &reg_info);
214 if (led->port_num == 0 || led->port_num == 4) {
230 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev);
233 struct qca8k_priv *priv = led->priv;
236 qca8k_get_enable_led_reg(led->port_num, led->led_num, &reg_info);
241 if (led->port_num == 0 || led->port_num == 4) {
255 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev);
258 struct qca8k_priv *priv = led->priv;
261 qca8k_get_enable_led_reg(led->port_num, led->led_num, &reg_info);
267 if (led->port_num == 0 || led->port_num == 4) {
288 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev);
290 struct qca8k_priv *priv = led->priv;
302 qca8k_get_control_led_reg(led->port_num, led->led_num, &reg_info);
312 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev);
314 struct qca8k_priv *priv = led->priv;
322 qca8k_get_control_led_reg(led->port_num, led->led_num, &reg_info);
352 struct qca8k_led *led = container_of(ldev, struct qca8k_led, cdev);
353 struct qca8k_priv *priv = led->priv;
356 dp = dsa_to_port(priv->ds, qca8k_phy_to_port(led->port_num));
367 struct fwnode_handle *led = NULL, *leds = NULL;
382 fwnode_for_each_child_node(leds, led) {
383 /* Reg represent the led number of the port.
386 * 1. is gigabit led
387 * 2. is mbit led
388 * 3. additional status led
390 if (fwnode_property_read_u32(led, "reg", &led_num))
406 state = led_init_default_state_get(led);
430 init_data.fwnode = led;