Lines Matching full:mode

61 		/* Switch LED off to indicate that mode isn't supported */  in rtl8168_led_hw_control_is_supported()
75 u16 mode = 0; in rtl8168_led_hw_control_set() local
78 mode |= RTL8168_LED_CTRL_LINK_10; in rtl8168_led_hw_control_set()
80 mode |= RTL8168_LED_CTRL_LINK_100; in rtl8168_led_hw_control_set()
82 mode |= RTL8168_LED_CTRL_LINK_1000; in rtl8168_led_hw_control_set()
84 mode |= RTL8168_LED_CTRL_ACT; in rtl8168_led_hw_control_set()
86 return rtl8168_led_mod_ctrl(tp, 0x000f << shift, mode << shift); in rtl8168_led_hw_control_set()
95 int mode; in rtl8168_led_hw_control_get() local
97 mode = rtl8168_get_led_mode(tp); in rtl8168_led_hw_control_get()
98 if (mode < 0) in rtl8168_led_hw_control_get()
99 return mode; in rtl8168_led_hw_control_get()
101 if (mode & RTL8168_LED_CTRL_OPTION2) { in rtl8168_led_hw_control_get()
103 netdev_notice(ldev->ndev, "Deactivating unsupported Option2 LED mode\n"); in rtl8168_led_hw_control_get()
106 mode = (mode >> shift) & 0x000f; in rtl8168_led_hw_control_get()
108 if (mode & RTL8168_LED_CTRL_ACT) in rtl8168_led_hw_control_get()
111 if (mode & RTL8168_LED_CTRL_LINK_10) in rtl8168_led_hw_control_get()
113 if (mode & RTL8168_LED_CTRL_LINK_100) in rtl8168_led_hw_control_get()
115 if (mode & RTL8168_LED_CTRL_LINK_1000) in rtl8168_led_hw_control_get()
174 /* Switch LED off to indicate that mode isn't supported */ in rtl8125_led_hw_control_is_supported()
187 u16 mode = 0; in rtl8125_led_hw_control_set() local
190 mode |= RTL8125_LED_CTRL_LINK_10; in rtl8125_led_hw_control_set()
192 mode |= RTL8125_LED_CTRL_LINK_100; in rtl8125_led_hw_control_set()
194 mode |= RTL8125_LED_CTRL_LINK_1000; in rtl8125_led_hw_control_set()
196 mode |= RTL8125_LED_CTRL_LINK_2500; in rtl8125_led_hw_control_set()
198 mode |= RTL8125_LED_CTRL_ACT; in rtl8125_led_hw_control_set()
200 return rtl8125_set_led_mode(tp, ldev->index, mode); in rtl8125_led_hw_control_set()
208 int mode; in rtl8125_led_hw_control_get() local
210 mode = rtl8125_get_led_mode(tp, ldev->index); in rtl8125_led_hw_control_get()
211 if (mode < 0) in rtl8125_led_hw_control_get()
212 return mode; in rtl8125_led_hw_control_get()
214 if (mode & RTL8125_LED_CTRL_LINK_10) in rtl8125_led_hw_control_get()
216 if (mode & RTL8125_LED_CTRL_LINK_100) in rtl8125_led_hw_control_get()
218 if (mode & RTL8125_LED_CTRL_LINK_1000) in rtl8125_led_hw_control_get()
220 if (mode & RTL8125_LED_CTRL_LINK_2500) in rtl8125_led_hw_control_get()
222 if (mode & RTL8125_LED_CTRL_ACT) in rtl8125_led_hw_control_get()