Home
last modified time | relevance | path

Searched refs:led_dev (Results 1 – 25 of 26) sorted by relevance

12

/drivers/net/wireless/rt2x00/
Drt2x00leds.c67 if (brightness != led->led_dev.brightness) { in rt2x00leds_led_quality()
68 led->led_dev.brightness_set(&led->led_dev, brightness); in rt2x00leds_led_quality()
69 led->led_dev.brightness = brightness; in rt2x00leds_led_quality()
80 led->led_dev.brightness_set(&led->led_dev, brightness); in rt2x00led_led_simple()
81 led->led_dev.brightness = brightness; in rt2x00led_led_simple()
109 led->led_dev.name = name; in rt2x00leds_register_led()
110 led->led_dev.brightness = LED_OFF; in rt2x00leds_register_led()
112 retval = led_classdev_register(device, &led->led_dev); in rt2x00leds_register_led()
169 if (rt2x00dev->led_radio.led_dev.blink_set) { in rt2x00leds_register()
172 rt2x00dev->led_radio.led_dev.blink_set( in rt2x00leds_register()
[all …]
Drt2x00leds.h36 struct led_classdev led_dev; member
Drt2500usb.c291 container_of(led_cdev, struct rt2x00_led, led_dev); in rt2500usb_brightness_set()
310 container_of(led_cdev, struct rt2x00_led, led_dev); in rt2500usb_blink_set()
327 led->led_dev.brightness_set = rt2500usb_brightness_set; in rt2500usb_init_led()
328 led->led_dev.blink_set = rt2500usb_blink_set; in rt2500usb_init_led()
Drt2400pci.c214 container_of(led_cdev, struct rt2x00_led, led_dev); in rt2400pci_brightness_set()
233 container_of(led_cdev, struct rt2x00_led, led_dev); in rt2400pci_blink_set()
250 led->led_dev.brightness_set = rt2400pci_brightness_set; in rt2400pci_init_led()
251 led->led_dev.blink_set = rt2400pci_blink_set; in rt2400pci_init_led()
Drt2500pci.c214 container_of(led_cdev, struct rt2x00_led, led_dev); in rt2500pci_brightness_set()
233 container_of(led_cdev, struct rt2x00_led, led_dev); in rt2500pci_blink_set()
250 led->led_dev.brightness_set = rt2500pci_brightness_set; in rt2500pci_init_led()
251 led->led_dev.blink_set = rt2500pci_blink_set; in rt2500pci_init_led()
Drt73usb.c197 container_of(led_cdev, struct rt2x00_led, led_dev); in rt73usb_brightness_set()
238 container_of(led_cdev, struct rt2x00_led, led_dev); in rt73usb_blink_set()
255 led->led_dev.brightness_set = rt73usb_brightness_set; in rt73usb_init_led()
256 led->led_dev.blink_set = rt73usb_blink_set; in rt73usb_init_led()
Drt61pci.c252 container_of(led_cdev, struct rt2x00_led, led_dev); in rt61pci_brightness_set()
291 container_of(led_cdev, struct rt2x00_led, led_dev); in rt61pci_blink_set()
308 led->led_dev.brightness_set = rt61pci_brightness_set; in rt61pci_init_led()
309 led->led_dev.blink_set = rt61pci_blink_set; in rt61pci_init_led()
/drivers/net/wireless/p54/
Dled.c49 if (priv->leds[i].led_dev.brightness == LED_OFF) in p54_update_leds()
53 !!priv->leds[i].led_dev.brightness; in p54_update_leds()
67 static void p54_led_brightness_set(struct led_classdev *led_dev, in p54_led_brightness_set() argument
70 struct p54_led_dev *led = container_of(led_dev, struct p54_led_dev, in p54_led_brightness_set()
71 led_dev); in p54_led_brightness_set()
98 led->led_dev.name = led->name; in p54_register_led()
99 led->led_dev.default_trigger = trigger; in p54_register_led()
100 led->led_dev.brightness_set = p54_led_brightness_set; in p54_register_led()
102 err = led_classdev_register(wiphy_dev(priv->hw->wiphy), &led->led_dev); in p54_register_led()
156 led_classdev_unregister(&priv->leds[i].led_dev); in p54_unregister_leds()
Dp54.h151 struct led_classdev led_dev; member
/drivers/net/wireless/brcm80211/brcmsmac/
Dled.c35 static void brcms_led_brightness_set(struct led_classdev *led_dev, in brcms_led_brightness_set() argument
38 struct brcms_info *wl = container_of(led_dev, in brcms_led_brightness_set()
39 struct brcms_info, led_dev); in brcms_led_brightness_set()
45 if (wl->led_dev.dev) in brcms_led_unregister()
46 led_classdev_unregister(&wl->led_dev); in brcms_led_unregister()
107 wl->led_dev.name = wl->radio_led.name; in brcms_led_register()
108 wl->led_dev.default_trigger = in brcms_led_register()
110 wl->led_dev.brightness_set = brcms_led_brightness_set; in brcms_led_register()
111 err = led_classdev_register(wiphy_dev(wl->wiphy), &wl->led_dev); in brcms_led_register()
Dmac80211_if.h87 struct led_classdev led_dev; member
/drivers/leds/
Dleds-lm3530.c107 struct led_classdev led_dev; member
199 dev_err(drvdata->led_dev.dev, "Failed to enable vin:%d\n", ret); in lm3530_led_enable()
216 dev_err(drvdata->led_dev.dev, "Failed to disable vin:%d\n", in lm3530_led_disable()
264 if (brightness > drvdata->led_dev.max_brightness) in lm3530_init_registers()
265 brightness = drvdata->led_dev.max_brightness; in lm3530_init_registers()
292 drvdata->led_dev.max_brightness); in lm3530_init_registers()
310 container_of(led_cdev, struct lm3530_data, led_dev); in lm3530_brightness_set()
357 drvdata = container_of(led_cdev, struct lm3530_data, led_dev); in lm3530_mode_get()
378 drvdata = container_of(led_cdev, struct lm3530_data, led_dev); in lm3530_mode_set()
442 drvdata->led_dev.name = LM3530_LED_DEV; in lm3530_probe()
[all …]
Dleds-lp8788.c30 struct led_classdev led_dev; member
122 container_of(led_cdev, struct lp8788_led, led_dev); in lp8788_brightness_set()
141 led->led_dev.max_brightness = MAX_BRIGHTNESS; in lp8788_led_probe()
142 led->led_dev.brightness_set = lp8788_brightness_set; in lp8788_led_probe()
147 led->led_dev.name = DEFAULT_LED_NAME; in lp8788_led_probe()
149 led->led_dev.name = led_pdata->name; in lp8788_led_probe()
162 ret = led_classdev_register(dev, &led->led_dev); in lp8788_led_probe()
175 led_classdev_unregister(&led->led_dev); in lp8788_led_remove()
/drivers/net/wireless/ath/ath5k/
Dled.c113 ath5k_led_brightness_set(struct led_classdev *led_dev, in ath5k_led_brightness_set() argument
116 struct ath5k_led *led = container_of(led_dev, struct ath5k_led, in ath5k_led_brightness_set()
117 led_dev); in ath5k_led_brightness_set()
134 led->led_dev.name = led->name; in ath5k_register_led()
135 led->led_dev.default_trigger = trigger; in ath5k_register_led()
136 led->led_dev.brightness_set = ath5k_led_brightness_set; in ath5k_register_led()
138 err = led_classdev_register(ah->dev, &led->led_dev); in ath5k_register_led()
151 led_classdev_unregister(&led->led_dev); in ath5k_unregister_led()
Dath5k.h1183 struct led_classdev led_dev; /* led classdev */ member
/drivers/net/wireless/b43legacy/
Dleds.c69 static void b43legacy_led_brightness_set(struct led_classdev *led_dev, in b43legacy_led_brightness_set() argument
72 struct b43legacy_led *led = container_of(led_dev, struct b43legacy_led, in b43legacy_led_brightness_set()
73 led_dev); in b43legacy_led_brightness_set()
106 led->led_dev.name = led->name; in b43legacy_register_led()
107 led->led_dev.default_trigger = default_trigger; in b43legacy_register_led()
108 led->led_dev.brightness_set = b43legacy_led_brightness_set; in b43legacy_register_led()
110 err = led_classdev_register(dev->dev->dev, &led->led_dev); in b43legacy_register_led()
123 led_classdev_unregister(&led->led_dev); in b43legacy_unregister_led()
Dleds.h17 struct led_classdev led_dev; member
/drivers/net/wireless/rtl818x/rtl8187/
Dleds.c102 static void rtl8187_led_brightness_set(struct led_classdev *led_dev, in rtl8187_led_brightness_set() argument
105 struct rtl8187_led *led = container_of(led_dev, struct rtl8187_led, in rtl8187_led_brightness_set()
106 led_dev); in rtl8187_led_brightness_set()
151 led->led_dev.name = led->name; in rtl8187_register_led()
152 led->led_dev.default_trigger = default_trigger; in rtl8187_register_led()
153 led->led_dev.brightness_set = rtl8187_led_brightness_set; in rtl8187_register_led()
155 err = led_classdev_register(&priv->udev->dev, &led->led_dev); in rtl8187_register_led()
169 led_classdev_unregister(&led->led_dev); in rtl8187_unregister_led()
Dleds.h45 struct led_classdev led_dev; member
/drivers/net/wireless/b43/
Dleds.c109 static void b43_led_brightness_set(struct led_classdev *led_dev, in b43_led_brightness_set() argument
112 struct b43_led *led = container_of(led_dev, struct b43_led, led_dev); in b43_led_brightness_set()
137 led->led_dev.name = led->name; in b43_register_led()
138 led->led_dev.default_trigger = default_trigger; in b43_register_led()
139 led->led_dev.brightness_set = b43_led_brightness_set; in b43_register_led()
141 err = led_classdev_register(dev->dev->dev, &led->led_dev); in b43_register_led()
155 led_classdev_unregister(&led->led_dev); in b43_unregister_led()
Dleds.h19 struct led_classdev led_dev; member
/drivers/media/rc/
Dttusbir.c56 static enum led_brightness ttusbir_brightness_get(struct led_classdev *led_dev) in ttusbir_brightness_get() argument
58 struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); in ttusbir_brightness_get()
81 static void ttusbir_brightness_set(struct led_classdev *led_dev, enum in ttusbir_brightness_set() argument
84 struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); in ttusbir_brightness_set()
Dredrat3.c817 static void redrat3_brightness_set(struct led_classdev *led_dev, enum in redrat3_brightness_set() argument
820 struct redrat3_dev *rr3 = container_of(led_dev, struct redrat3_dev, in redrat3_brightness_set()
/drivers/platform/x86/
Dtoshiba_acpi.c157 struct led_classdev led_dev; member
467 struct toshiba_acpi_dev, led_dev); in toshiba_illumination_set()
490 struct toshiba_acpi_dev, led_dev); in toshiba_illumination_get()
1817 led_classdev_unregister(&dev->led_dev); in toshiba_acpi_remove()
1903 dev->led_dev.name = "toshiba::illumination"; in toshiba_acpi_add()
1904 dev->led_dev.max_brightness = 1; in toshiba_acpi_add()
1905 dev->led_dev.brightness_set = toshiba_illumination_set; in toshiba_acpi_add()
1906 dev->led_dev.brightness_get = toshiba_illumination_get; in toshiba_acpi_add()
1907 if (!led_classdev_register(&acpi_dev->dev, &dev->led_dev)) in toshiba_acpi_add()
/drivers/hid/
Dhid-wiimote-modules.c294 static enum led_brightness wiimod_led_get(struct led_classdev *led_dev) in wiimod_led_get() argument
297 struct device *dev = led_dev->dev->parent; in wiimod_led_get()
305 if (wdata->leds[i] == led_dev) { in wiimod_led_get()
316 static void wiimod_led_set(struct led_classdev *led_dev, in wiimod_led_set() argument
320 struct device *dev = led_dev->dev->parent; in wiimod_led_set()
328 if (wdata->leds[i] == led_dev) { in wiimod_led_set()

12