Lines Matching refs:rules
419 static int qca808x_led_parse_netdev(struct phy_device *phydev, unsigned long rules, in qca808x_led_parse_netdev() argument
423 if (test_bit(TRIGGER_NETDEV_TX, &rules)) in qca808x_led_parse_netdev()
425 if (test_bit(TRIGGER_NETDEV_RX, &rules)) in qca808x_led_parse_netdev()
427 if (test_bit(TRIGGER_NETDEV_LINK_10, &rules)) in qca808x_led_parse_netdev()
429 if (test_bit(TRIGGER_NETDEV_LINK_100, &rules)) in qca808x_led_parse_netdev()
431 if (test_bit(TRIGGER_NETDEV_LINK_1000, &rules)) in qca808x_led_parse_netdev()
433 if (test_bit(TRIGGER_NETDEV_LINK_2500, &rules)) in qca808x_led_parse_netdev()
435 if (test_bit(TRIGGER_NETDEV_HALF_DUPLEX, &rules)) in qca808x_led_parse_netdev()
437 if (test_bit(TRIGGER_NETDEV_FULL_DUPLEX, &rules)) in qca808x_led_parse_netdev()
440 if (rules && !*offload_trigger) in qca808x_led_parse_netdev()
463 unsigned long rules) in qca808x_led_hw_is_supported() argument
470 return qca808x_led_parse_netdev(phydev, rules, &offload_trigger); in qca808x_led_hw_is_supported()
474 unsigned long rules) in qca808x_led_hw_control_set() argument
484 ret = qca808x_led_parse_netdev(phydev, rules, &offload_trigger); in qca808x_led_hw_control_set()
509 unsigned long *rules) in qca808x_led_hw_control_get() argument
525 set_bit(TRIGGER_NETDEV_TX, rules); in qca808x_led_hw_control_get()
527 set_bit(TRIGGER_NETDEV_RX, rules); in qca808x_led_hw_control_get()
529 set_bit(TRIGGER_NETDEV_LINK_10, rules); in qca808x_led_hw_control_get()
531 set_bit(TRIGGER_NETDEV_LINK_100, rules); in qca808x_led_hw_control_get()
533 set_bit(TRIGGER_NETDEV_LINK_1000, rules); in qca808x_led_hw_control_get()
535 set_bit(TRIGGER_NETDEV_LINK_2500, rules); in qca808x_led_hw_control_get()
537 set_bit(TRIGGER_NETDEV_HALF_DUPLEX, rules); in qca808x_led_hw_control_get()
539 set_bit(TRIGGER_NETDEV_FULL_DUPLEX, rules); in qca808x_led_hw_control_get()