Lines Matching refs:rules
1206 unsigned long rules) in mt798x_phy_led_hw_is_supported() argument
1212 if (rules & ~supported_triggers) in mt798x_phy_led_hw_is_supported()
1219 unsigned long *rules) in mt798x_phy_led_hw_control_get() argument
1261 if (!rules) in mt798x_phy_led_hw_control_get()
1265 *rules |= BIT(TRIGGER_NETDEV_LINK); in mt798x_phy_led_hw_control_get()
1268 *rules |= BIT(TRIGGER_NETDEV_LINK_10); in mt798x_phy_led_hw_control_get()
1271 *rules |= BIT(TRIGGER_NETDEV_LINK_100); in mt798x_phy_led_hw_control_get()
1274 *rules |= BIT(TRIGGER_NETDEV_LINK_1000); in mt798x_phy_led_hw_control_get()
1277 *rules |= BIT(TRIGGER_NETDEV_FULL_DUPLEX); in mt798x_phy_led_hw_control_get()
1280 *rules |= BIT(TRIGGER_NETDEV_HALF_DUPLEX); in mt798x_phy_led_hw_control_get()
1283 *rules |= BIT(TRIGGER_NETDEV_RX); in mt798x_phy_led_hw_control_get()
1286 *rules |= BIT(TRIGGER_NETDEV_TX); in mt798x_phy_led_hw_control_get()
1292 unsigned long rules) in mt798x_phy_led_hw_control_set() argument
1302 if (rules & BIT(TRIGGER_NETDEV_FULL_DUPLEX)) in mt798x_phy_led_hw_control_set()
1305 if (rules & BIT(TRIGGER_NETDEV_HALF_DUPLEX)) in mt798x_phy_led_hw_control_set()
1308 if (rules & (BIT(TRIGGER_NETDEV_LINK_10) | BIT(TRIGGER_NETDEV_LINK))) in mt798x_phy_led_hw_control_set()
1311 if (rules & (BIT(TRIGGER_NETDEV_LINK_100) | BIT(TRIGGER_NETDEV_LINK))) in mt798x_phy_led_hw_control_set()
1314 if (rules & (BIT(TRIGGER_NETDEV_LINK_1000) | BIT(TRIGGER_NETDEV_LINK))) in mt798x_phy_led_hw_control_set()
1317 if (rules & BIT(TRIGGER_NETDEV_RX)) { in mt798x_phy_led_hw_control_set()
1323 if (rules & BIT(TRIGGER_NETDEV_TX)) { in mt798x_phy_led_hw_control_set()