Lines Matching refs:rules

141 	unsigned long rules;  member
545 changed |= (priv->led[index].rules != 0); in air_hw_led_on_set()
549 priv->led[index].rules = 0; in air_hw_led_on_set()
576 changed |= (priv->led[index].rules != 0); in air_hw_led_blink_set()
615 priv->led[index].rules = 0; in air_led_blink_set()
640 priv->led[index].rules = 0; in air_led_brightness_set()
646 unsigned long *rules) in air_led_hw_control_get() argument
653 *rules = priv->led[index].rules; in air_led_hw_control_get()
659 unsigned long rules) in air_led_hw_control_set() argument
668 priv->led[index].rules = rules; in air_led_hw_control_set()
670 if (rules & BIT(TRIGGER_NETDEV_FULL_DUPLEX)) in air_led_hw_control_set()
673 if (rules & (BIT(TRIGGER_NETDEV_LINK_10) | BIT(TRIGGER_NETDEV_LINK))) in air_led_hw_control_set()
676 if (rules & (BIT(TRIGGER_NETDEV_LINK_100) | BIT(TRIGGER_NETDEV_LINK))) in air_led_hw_control_set()
679 if (rules & (BIT(TRIGGER_NETDEV_LINK_1000) | BIT(TRIGGER_NETDEV_LINK))) in air_led_hw_control_set()
682 if (rules & (BIT(TRIGGER_NETDEV_LINK_2500) | BIT(TRIGGER_NETDEV_LINK))) in air_led_hw_control_set()
685 if (rules & BIT(TRIGGER_NETDEV_RX)) { in air_led_hw_control_set()
692 if (rules & BIT(TRIGGER_NETDEV_TX)) { in air_led_hw_control_set()
706 priv->led[index].rules = 0; in air_led_hw_control_set()
790 air_led_hw_control_set(phydev, i, priv->led[i].rules); in air_leds_init()
797 unsigned long rules) in en8811h_led_hw_is_supported() argument
803 if (rules & ~en8811h_led_trig) in en8811h_led_hw_is_supported()
827 priv->led[0].rules = AIR_DEFAULT_TRIGGER_LED0; in en8811h_probe()
828 priv->led[1].rules = AIR_DEFAULT_TRIGGER_LED1; in en8811h_probe()
829 priv->led[2].rules = AIR_DEFAULT_TRIGGER_LED2; in en8811h_probe()