• Home
  • Raw
  • Download

Lines Matching refs:rt2x00dev

19 void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, int rssi)  in rt2x00leds_led_quality()  argument
21 struct rt2x00_led *led = &rt2x00dev->led_qual; in rt2x00leds_led_quality()
31 rssi += rt2x00dev->rssi_offset; in rt2x00leds_led_quality()
73 void rt2x00led_led_activity(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00led_led_activity() argument
75 if (rt2x00dev->led_qual.type == LED_TYPE_ACTIVITY) in rt2x00led_led_activity()
76 rt2x00led_led_simple(&rt2x00dev->led_qual, enabled); in rt2x00led_led_activity()
79 void rt2x00leds_led_assoc(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_assoc() argument
81 if (rt2x00dev->led_assoc.type == LED_TYPE_ASSOC) in rt2x00leds_led_assoc()
82 rt2x00led_led_simple(&rt2x00dev->led_assoc, enabled); in rt2x00leds_led_assoc()
85 void rt2x00leds_led_radio(struct rt2x00_dev *rt2x00dev, bool enabled) in rt2x00leds_led_radio() argument
87 if (rt2x00dev->led_radio.type == LED_TYPE_RADIO) in rt2x00leds_led_radio()
88 rt2x00led_led_simple(&rt2x00dev->led_radio, enabled); in rt2x00leds_led_radio()
91 static int rt2x00leds_register_led(struct rt2x00_dev *rt2x00dev, in rt2x00leds_register_led() argument
95 struct device *device = wiphy_dev(rt2x00dev->hw->wiphy); in rt2x00leds_register_led()
103 rt2x00_err(rt2x00dev, "Failed to register led handler\n"); in rt2x00leds_register_led()
112 void rt2x00leds_register(struct rt2x00_dev *rt2x00dev) in rt2x00leds_register() argument
118 const char *phy_name = wiphy_name(rt2x00dev->hw->wiphy); in rt2x00leds_register()
120 if (rt2x00dev->led_radio.flags & LED_INITIALIZED) { in rt2x00leds_register()
122 rt2x00dev->ops->name, phy_name); in rt2x00leds_register()
124 retval = rt2x00leds_register_led(rt2x00dev, in rt2x00leds_register()
125 &rt2x00dev->led_radio, in rt2x00leds_register()
131 if (rt2x00dev->led_assoc.flags & LED_INITIALIZED) { in rt2x00leds_register()
133 rt2x00dev->ops->name, phy_name); in rt2x00leds_register()
135 retval = rt2x00leds_register_led(rt2x00dev, in rt2x00leds_register()
136 &rt2x00dev->led_assoc, in rt2x00leds_register()
142 if (rt2x00dev->led_qual.flags & LED_INITIALIZED) { in rt2x00leds_register()
144 rt2x00dev->ops->name, phy_name); in rt2x00leds_register()
146 retval = rt2x00leds_register_led(rt2x00dev, in rt2x00leds_register()
147 &rt2x00dev->led_qual, in rt2x00leds_register()
158 if (rt2x00dev->led_radio.led_dev.blink_set) { in rt2x00leds_register()
161 rt2x00dev->led_radio.led_dev.blink_set( in rt2x00leds_register()
162 &rt2x00dev->led_radio.led_dev, &on_period, &off_period); in rt2x00leds_register()
168 rt2x00leds_unregister(rt2x00dev); in rt2x00leds_register()
187 void rt2x00leds_unregister(struct rt2x00_dev *rt2x00dev) in rt2x00leds_unregister() argument
189 if (rt2x00dev->led_qual.flags & LED_REGISTERED) in rt2x00leds_unregister()
190 rt2x00leds_unregister_led(&rt2x00dev->led_qual); in rt2x00leds_unregister()
191 if (rt2x00dev->led_assoc.flags & LED_REGISTERED) in rt2x00leds_unregister()
192 rt2x00leds_unregister_led(&rt2x00dev->led_assoc); in rt2x00leds_unregister()
193 if (rt2x00dev->led_radio.flags & LED_REGISTERED) in rt2x00leds_unregister()
194 rt2x00leds_unregister_led(&rt2x00dev->led_radio); in rt2x00leds_unregister()
206 void rt2x00leds_suspend(struct rt2x00_dev *rt2x00dev) in rt2x00leds_suspend() argument
208 if (rt2x00dev->led_qual.flags & LED_REGISTERED) in rt2x00leds_suspend()
209 rt2x00leds_suspend_led(&rt2x00dev->led_qual); in rt2x00leds_suspend()
210 if (rt2x00dev->led_assoc.flags & LED_REGISTERED) in rt2x00leds_suspend()
211 rt2x00leds_suspend_led(&rt2x00dev->led_assoc); in rt2x00leds_suspend()
212 if (rt2x00dev->led_radio.flags & LED_REGISTERED) in rt2x00leds_suspend()
213 rt2x00leds_suspend_led(&rt2x00dev->led_radio); in rt2x00leds_suspend()
225 void rt2x00leds_resume(struct rt2x00_dev *rt2x00dev) in rt2x00leds_resume() argument
227 if (rt2x00dev->led_radio.flags & LED_REGISTERED) in rt2x00leds_resume()
228 rt2x00leds_resume_led(&rt2x00dev->led_radio); in rt2x00leds_resume()
229 if (rt2x00dev->led_assoc.flags & LED_REGISTERED) in rt2x00leds_resume()
230 rt2x00leds_resume_led(&rt2x00dev->led_assoc); in rt2x00leds_resume()
231 if (rt2x00dev->led_qual.flags & LED_REGISTERED) in rt2x00leds_resume()
232 rt2x00leds_resume_led(&rt2x00dev->led_qual); in rt2x00leds_resume()