Home
last modified time | relevance | path

Searched refs:led (Results 1 – 25 of 35) sorted by relevance

12

/arch/arm/plat-versatile/
Dleds.c51 struct versatile_led *led = container_of(cdev, in versatile_led_set() local
56 reg |= led->mask; in versatile_led_set()
58 reg &= ~led->mask; in versatile_led_set()
64 struct versatile_led *led = container_of(cdev, in versatile_led_get() local
68 return (reg & led->mask) ? LED_FULL : LED_OFF; in versatile_led_get()
78 struct versatile_led *led; in versatile_leds_init() local
80 led = kzalloc(sizeof(*led), GFP_KERNEL); in versatile_leds_init()
81 if (!led) in versatile_leds_init()
84 led->cdev.name = versatile_leds[i].name; in versatile_leds_init()
85 led->cdev.brightness_set = versatile_led_set; in versatile_leds_init()
[all …]
/arch/arm/mach-ks8695/
Dleds.c19 static inline void ks8695_led_on(unsigned int led) in ks8695_led_on() argument
21 gpio_set_value(led, 0); in ks8695_led_on()
24 static inline void ks8695_led_off(unsigned int led) in ks8695_led_off() argument
26 gpio_set_value(led, 1); in ks8695_led_off()
29 static inline void ks8695_led_toggle(unsigned int led) in ks8695_led_toggle() argument
31 unsigned long is_off = gpio_get_value(led); in ks8695_led_toggle()
33 ks8695_led_on(led); in ks8695_led_toggle()
35 ks8695_led_off(led); in ks8695_led_toggle()
/arch/arm/mach-at91/
Dleds.c109 static inline void at91_led_on(unsigned int led) in at91_led_on() argument
111 at91_set_gpio_value(led, 0); in at91_led_on()
114 static inline void at91_led_off(unsigned int led) in at91_led_off() argument
116 at91_set_gpio_value(led, 1); in at91_led_off()
119 static inline void at91_led_toggle(unsigned int led) in at91_led_toggle() argument
121 unsigned long is_off = at91_get_gpio_value(led); in at91_led_toggle()
123 at91_led_on(led); in at91_led_toggle()
125 at91_led_off(led); in at91_led_toggle()
/arch/arm/mach-sa1100/
DMakefile10 led-y := leds.o
17 led-$(CONFIG_SA1100_ASSABET) += leds-assabet.o
21 led-$(CONFIG_SA1100_BADGE4) += leds-badge4.o
24 led-$(CONFIG_SA1100_CERF) += leds-cerf.o
32 led-$(CONFIG_SA1100_HACKKIT) += leds-hackkit.o
38 led-$(CONFIG_SA1100_LART) += leds-lart.o
50 obj-$(CONFIG_LEDS) += $(led-y)
/arch/mips/sgi-ip32/
Dip32-reset.c86 unsigned long led = mace->perif.ctrl.misc ^ MACEISA_LED_RED; in blink_timeout() local
87 mace->perif.ctrl.misc = led; in blink_timeout()
162 unsigned long led; in panic_event() local
169 led = mace->perif.ctrl.misc | MACEISA_LED_GREEN; in panic_event()
170 mace->perif.ctrl.misc = led; in panic_event()
185 unsigned long led = mace->perif.ctrl.misc; in ip32_reboot_setup() local
186 led |= MACEISA_LED_RED; in ip32_reboot_setup()
187 led &= ~MACEISA_LED_GREEN; in ip32_reboot_setup()
188 mace->perif.ctrl.misc = led; in ip32_reboot_setup()
/arch/arm/mach-davinci/
Dboard-dm365-evm.c417 struct cpld_led *led = container_of(cdev, struct cpld_led, cdev); in cpld_led_set() local
421 reg &= ~led->mask; in cpld_led_set()
423 reg |= led->mask; in cpld_led_set()
429 struct cpld_led *led = container_of(cdev, struct cpld_led, cdev); in cpld_led_get() local
432 return (reg & led->mask) ? LED_OFF : LED_FULL; in cpld_led_get()
445 struct cpld_led *led; in cpld_leds_init() local
447 led = kzalloc(sizeof(*led), GFP_KERNEL); in cpld_leds_init()
448 if (!led) in cpld_leds_init()
451 led->cdev.name = cpld_leds[i].name; in cpld_leds_init()
452 led->cdev.brightness_set = cpld_led_set; in cpld_leds_init()
[all …]
/arch/arm/mach-omap1/
DMakefile25 led-y := leds.o
60 led-$(CONFIG_MACH_OMAP_H2) += leds-h2p2-debug.o
61 led-$(CONFIG_MACH_OMAP_H3) += leds-h2p2-debug.o
62 led-$(CONFIG_MACH_OMAP_INNOVATOR) += leds-innovator.o
63 led-$(CONFIG_MACH_OMAP_PERSEUS2) += leds-h2p2-debug.o
64 led-$(CONFIG_MACH_OMAP_OSK) += leds-osk.o
65 obj-$(CONFIG_LEDS) += $(led-y)
/arch/arm/plat-omap/
Ddebug-leds.c227 struct dbg_led *led = container_of(cdev, struct dbg_led, cdev); in fpga_led_set() local
232 hw_led_state &= ~led->mask; in fpga_led_set()
234 hw_led_state |= led->mask; in fpga_led_set()
242 struct dbg_led *led; in newled_init() local
245 for (i = 0, led = dbg_leds; i < ARRAY_SIZE(dbg_leds); i++, led++) { in newled_init()
246 led->cdev.brightness_set = fpga_led_set; in newled_init()
247 status = led_classdev_register(dev, &led->cdev); in newled_init()
/arch/sparc/kernel/
Dled.c118 static struct proc_dir_entry *led; variable
127 led = proc_create("led", 0, NULL, &led_proc_fops); in led_init()
128 if (!led) in led_init()
/arch/arm/mach-pxa/
DMakefile99 led-y := leds.o
100 led-$(CONFIG_ARCH_LUBBOCK) += leds-lubbock.o
101 led-$(CONFIG_MACH_MAINSTONE) += leds-mainstone.o
102 led-$(CONFIG_ARCH_PXA_IDP) += leds-idp.o
104 obj-$(CONFIG_LEDS) += $(led-y)
Dsaarb.c81 .led = &saarb_led[0],
Dtavorevb3.c91 .led = &evb3_led[0],
Dmagician.c427 .led = {
436 .led = {
445 .led = {
/arch/mips/emma/markeins/
DMakefile10 obj-$(CONFIG_NEC_MARKEINS) += irq.o setup.o led.o platform.o
/arch/mips/cobalt/
DMakefile5 obj-y := buttons.o irq.o lcd.o led.o reset.o rtc.o serial.o setup.o time.o
/arch/mips/alchemy/devboards/
Ddb1000.c246 static void db1100_mmcled_set(struct led_classdev *led, enum led_brightness b) in db1100_mmcled_set() argument
277 static void db1100_mmc1led_set(struct led_classdev *led, enum led_brightness b) in db1100_mmc1led_set() argument
295 .led = &db1100_mmc_led,
302 .led = &db1100_mmc1_led,
Ddb1300.c488 static void db1300_mmcled_set(struct led_classdev *led, in db1300_mmcled_set() argument
505 .led = &db1300_mmc_led,
553 static void db1300_movinand_led_set(struct led_classdev *led, in db1300_movinand_led_set() argument
569 .led = &db1300_movinand_led,
Ddb1200.c406 static void db1200_mmcled_set(struct led_classdev *led, in db1200_mmcled_set() argument
474 static void pb1200_mmc1led_set(struct led_classdev *led, in pb1200_mmc1led_set() argument
513 .led = &db1200_mmc_led,
520 .led = &pb1200_mmc1_led,
/arch/arm/mach-s3c24xx/
Dmach-gta02.c104 char led; in gta02_panic_blink() local
106 led = (state) ? 1 : 0; in gta02_panic_blink()
107 gpio_direction_output(GTA02_GPIO_AUX_LED, led); in gta02_panic_blink()
/arch/powerpc/boot/dts/
Dmotionpro.dts25 compatible = "promess,motionpro-led";
31 compatible = "promess,motionpro-led";
/arch/arm/mach-realview/
Dcore.c446 u32 led = 1 << smp_processor_id(); in realview_leds_event() local
453 val = val & ~led; in realview_leds_event()
457 val = val | led; in realview_leds_event()
/arch/mips/include/asm/mach-au1x00/
Dau1100_mmc.h48 struct led_classdev *led; member
/arch/arm/boot/dts/
Dusb_a9g20-dab-mmx.dtsi35 * led already used by mother board but active as high
Dimx6q-arm2.dts70 debug-led {
/arch/mips/txx9/generic/
Dsetup.c779 struct gpio_led *led = &iocled->leds[i]; in txx9_iocled_init() local
782 led->name = iocled->names[i]; in txx9_iocled_init()
783 led->gpio = basenum + i; in txx9_iocled_init()
784 led->active_low = lowactive; in txx9_iocled_init()
786 led->default_trigger = *deftriggers++; in txx9_iocled_init()

12