Lines Matching refs:rules
65 qca8k_parse_netdev(unsigned long rules, u32 *offload_trigger) in qca8k_parse_netdev() argument
68 if (test_bit(TRIGGER_NETDEV_TX, &rules)) in qca8k_parse_netdev()
70 if (test_bit(TRIGGER_NETDEV_RX, &rules)) in qca8k_parse_netdev()
72 if (test_bit(TRIGGER_NETDEV_LINK_10, &rules)) in qca8k_parse_netdev()
74 if (test_bit(TRIGGER_NETDEV_LINK_100, &rules)) in qca8k_parse_netdev()
76 if (test_bit(TRIGGER_NETDEV_LINK_1000, &rules)) in qca8k_parse_netdev()
78 if (test_bit(TRIGGER_NETDEV_HALF_DUPLEX, &rules)) in qca8k_parse_netdev()
80 if (test_bit(TRIGGER_NETDEV_FULL_DUPLEX, &rules)) in qca8k_parse_netdev()
83 if (rules && !*offload_trigger) in qca8k_parse_netdev()
278 qca8k_cled_hw_control_is_supported(struct led_classdev *ldev, unsigned long rules) in qca8k_cled_hw_control_is_supported() argument
282 return qca8k_parse_netdev(rules, &offload_trigger); in qca8k_cled_hw_control_is_supported()
286 qca8k_cled_hw_control_set(struct led_classdev *ldev, unsigned long rules) in qca8k_cled_hw_control_set() argument
294 ret = qca8k_parse_netdev(rules, &offload_trigger); in qca8k_cled_hw_control_set()
310 qca8k_cled_hw_control_get(struct led_classdev *ldev, unsigned long *rules) in qca8k_cled_hw_control_get() argument
333 set_bit(TRIGGER_NETDEV_TX, rules); in qca8k_cled_hw_control_get()
335 set_bit(TRIGGER_NETDEV_RX, rules); in qca8k_cled_hw_control_get()
337 set_bit(TRIGGER_NETDEV_LINK_10, rules); in qca8k_cled_hw_control_get()
339 set_bit(TRIGGER_NETDEV_LINK_100, rules); in qca8k_cled_hw_control_get()
341 set_bit(TRIGGER_NETDEV_LINK_1000, rules); in qca8k_cled_hw_control_get()
343 set_bit(TRIGGER_NETDEV_HALF_DUPLEX, rules); in qca8k_cled_hw_control_get()
345 set_bit(TRIGGER_NETDEV_FULL_DUPLEX, rules); in qca8k_cled_hw_control_get()