Lines Matching full:rules
405 unsigned long rules) in xway_gphy_led_hw_is_supported() argument
413 if (rules & (BIT(TRIGGER_NETDEV_RX) | BIT(TRIGGER_NETDEV_TX)) && in xway_gphy_led_hw_is_supported()
414 !(rules & (BIT(TRIGGER_NETDEV_LINK) | in xway_gphy_led_hw_is_supported()
421 if (rules & ~supported_triggers) in xway_gphy_led_hw_is_supported()
428 unsigned long *rules) in xway_gphy_led_hw_control_get() argument
444 *rules |= BIT(TRIGGER_NETDEV_LINK_10); in xway_gphy_led_hw_control_get()
447 *rules |= BIT(TRIGGER_NETDEV_LINK_100); in xway_gphy_led_hw_control_get()
450 *rules |= BIT(TRIGGER_NETDEV_LINK_1000); in xway_gphy_led_hw_control_get()
455 *rules |= BIT(TRIGGER_NETDEV_LINK); in xway_gphy_led_hw_control_get()
458 *rules |= BIT(TRIGGER_NETDEV_TX); in xway_gphy_led_hw_control_get()
461 *rules |= BIT(TRIGGER_NETDEV_RX); in xway_gphy_led_hw_control_get()
467 unsigned long rules) in xway_gphy_led_hw_control_set() argument
475 if (rules & BIT(TRIGGER_NETDEV_LINK) || in xway_gphy_led_hw_control_set()
476 rules & BIT(TRIGGER_NETDEV_LINK_10)) in xway_gphy_led_hw_control_set()
479 if (rules & BIT(TRIGGER_NETDEV_LINK) || in xway_gphy_led_hw_control_set()
480 rules & BIT(TRIGGER_NETDEV_LINK_100)) in xway_gphy_led_hw_control_set()
483 if (rules & BIT(TRIGGER_NETDEV_LINK) || in xway_gphy_led_hw_control_set()
484 rules & BIT(TRIGGER_NETDEV_LINK_1000)) in xway_gphy_led_hw_control_set()
487 if (rules & BIT(TRIGGER_NETDEV_TX)) in xway_gphy_led_hw_control_set()
490 if (rules & BIT(TRIGGER_NETDEV_RX)) in xway_gphy_led_hw_control_set()