/arch/arm/mach-integrator/ |
D | leds.c | 45 struct integrator_led *led = container_of(cdev, in integrator_led_set() local 50 reg |= led->mask; in integrator_led_set() 52 reg &= ~led->mask; in integrator_led_set() 62 struct integrator_led *led = container_of(cdev, in integrator_led_get() local 66 return (reg & led->mask) ? LED_FULL : LED_OFF; in integrator_led_get() 90 struct integrator_led *led; in integrator_leds_init() local 92 led = kzalloc(sizeof(*led), GFP_KERNEL); in integrator_leds_init() 93 if (!led) in integrator_leds_init() 97 led->cdev.name = integrator_leds[i].name; in integrator_leds_init() 100 led->cdev.brightness_set = cm_led_set; in integrator_leds_init() [all …]
|
/arch/arm/mach-footbridge/ |
D | ebsa285.c | 50 struct ebsa285_led *led = container_of(cdev, in ebsa285_led_set() local 54 hw_led_state |= led->mask; in ebsa285_led_set() 56 hw_led_state &= ~led->mask; in ebsa285_led_set() 62 struct ebsa285_led *led = container_of(cdev, in ebsa285_led_get() local 65 return hw_led_state & led->mask ? LED_OFF : LED_FULL; in ebsa285_led_get() 84 struct ebsa285_led *led; in ebsa285_leds_init() local 86 led = kzalloc(sizeof(*led), GFP_KERNEL); in ebsa285_leds_init() 87 if (!led) in ebsa285_leds_init() 90 led->cdev.name = ebsa285_leds[i].name; in ebsa285_leds_init() 91 led->cdev.brightness_set = ebsa285_led_set; in ebsa285_leds_init() [all …]
|
D | netwinder-hw.c | 690 struct netwinder_led *led = container_of(cdev, in netwinder_led_set() local 698 reg &= ~led->mask; in netwinder_led_set() 700 reg |= led->mask; in netwinder_led_set() 701 nw_gpio_modify_op(led->mask, reg); in netwinder_led_set() 707 struct netwinder_led *led = container_of(cdev, in netwinder_led_get() local 716 return (reg & led->mask) ? LED_OFF : LED_FULL; in netwinder_led_get() 727 struct netwinder_led *led; in netwinder_leds_init() local 729 led = kzalloc(sizeof(*led), GFP_KERNEL); in netwinder_leds_init() 730 if (!led) in netwinder_leds_init() 733 led->cdev.name = netwinder_leds[i].name; in netwinder_leds_init() [all …]
|
/arch/arm/plat-omap/ |
D | debug-leds.c | 85 struct dbg_led *led = container_of(cdev, struct dbg_led, cdev); in dbg_led_set() local 90 reg |= led->mask; in dbg_led_set() 92 reg &= ~led->mask; in dbg_led_set() 98 struct dbg_led *led = container_of(cdev, struct dbg_led, cdev); in dbg_led_get() local 102 return (reg & led->mask) ? LED_FULL : LED_OFF; in dbg_led_get() 118 struct dbg_led *led; in fpga_probe() local 120 led = kzalloc(sizeof(*led), GFP_KERNEL); in fpga_probe() 121 if (!led) in fpga_probe() 124 led->cdev.name = dbg_leds[i].name; in fpga_probe() 125 led->cdev.brightness_set = dbg_led_set; in fpga_probe() [all …]
|
/arch/arm/mach-pxa/ |
D | idp.c | 216 struct idp_led *led = container_of(cdev, in idp_led_set() local 221 reg &= ~led->mask; in idp_led_set() 223 reg |= led->mask; in idp_led_set() 230 struct idp_led *led = container_of(cdev, in idp_led_get() local 233 return (IDP_CPLD_LED_CONTROL & led->mask) ? LED_OFF : LED_FULL; in idp_led_get() 244 struct idp_led *led; in idp_leds_init() local 246 led = kzalloc(sizeof(*led), GFP_KERNEL); in idp_leds_init() 247 if (!led) in idp_leds_init() 250 led->cdev.name = idp_leds[i].name; in idp_leds_init() 251 led->cdev.brightness_set = idp_led_set; in idp_leds_init() [all …]
|
D | lubbock.c | 588 struct lubbock_led *led = container_of(cdev, in lubbock_led_set() local 593 reg |= led->mask; in lubbock_led_set() 595 reg &= ~led->mask; in lubbock_led_set() 602 struct lubbock_led *led = container_of(cdev, in lubbock_led_get() local 606 return (reg & led->mask) ? LED_FULL : LED_OFF; in lubbock_led_get() 619 struct lubbock_led *led; in lubbock_leds_init() local 621 led = kzalloc(sizeof(*led), GFP_KERNEL); in lubbock_leds_init() 622 if (!led) in lubbock_leds_init() 625 led->cdev.name = lubbock_leds[i].name; in lubbock_leds_init() 626 led->cdev.brightness_set = lubbock_led_set; in lubbock_leds_init() [all …]
|
D | mainstone.c | 657 struct mainstone_led *led = container_of(cdev, in mainstone_led_set() local 662 reg |= led->mask; in mainstone_led_set() 664 reg &= ~led->mask; in mainstone_led_set() 671 struct mainstone_led *led = container_of(cdev, in mainstone_led_get() local 675 return (reg & led->mask) ? LED_FULL : LED_OFF; in mainstone_led_get() 688 struct mainstone_led *led; in mainstone_leds_init() local 690 led = kzalloc(sizeof(*led), GFP_KERNEL); in mainstone_leds_init() 691 if (!led) in mainstone_leds_init() 694 led->cdev.name = mainstone_leds[i].name; in mainstone_leds_init() 695 led->cdev.brightness_set = mainstone_led_set; in mainstone_leds_init() [all …]
|
/arch/mips/sgi-ip32/ |
D | ip32-reset.c | 86 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/boot/dts/ |
D | kirkwood-iomega_ix2_200.dts | 42 pmx_led_backup: pmx-led-backup { 46 pmx_led_power: pmx-led-power { 54 pmx_led_rebuild: pmx-led-rebuild { 62 pmx_led_sata_brt_ctrl_1: pmx-led-sata-brt-ctrl-1 { 66 pmx_led_sata_brt_ctrl_2: pmx-led-sata-brt-ctrl-2 { 70 pmx_led_backup_brt_ctrl_1: pmx-led-backup-brt-ctrl-1 { 74 pmx_led_backup_brt_ctrl_2: pmx-led-backup-brt-ctrl-2 { 78 pmx_led_power_brt_ctrl_1: pmx-led-power-brt-ctrl-1 { 82 pmx_led_power_brt_ctrl_2: pmx-led-power-brt-ctrl-2 { 86 pmx_led_health_brt_ctrl_1: pmx-led-health-brt-ctrl-1 { [all …]
|
D | kirkwood-nsa310.dts | 33 pmx_led_esata_green: pmx-led-esata-green { 38 pmx_led_esata_red: pmx-led-esata-red { 43 pmx_led_usb_green: pmx-led-usb-green { 48 pmx_led_usb_red: pmx-led-usb-red { 53 pmx_led_sys_green: pmx-led-sys-green { 58 pmx_led_sys_red: pmx-led-sys-red { 63 pmx_led_hdd_green: pmx-led-hdd-green { 68 pmx_led_hdd_red: pmx-led-hdd-red {
|
D | kirkwood-nsa310a.dts | 27 pmx_led_esata_green: pmx-led-esata-green { 32 pmx_led_esata_red: pmx-led-esata-red { 37 pmx_led_usb_green: pmx-led-usb-green { 42 pmx_led_sys_green: pmx-led-sys-green { 47 pmx_led_sys_red: pmx-led-sys-red { 52 pmx_led_hdd_green: pmx-led-hdd-green { 57 pmx_led_hdd_red: pmx-led-hdd-red {
|
D | kirkwood-lsxl.dtsi | 28 pmx_led_function_blue: pmx-led-function-blue { 32 pmx_led_alarm: pmx-led-alarm { 36 pmx_led_info: pmx-led-info { 40 pmx_led_power: pmx-led-power { 60 pmx_led_function_red: pmx-led-function_red { 136 led@1 { 141 led@2 { 146 led@3 { 151 led@4 { 157 led@5 {
|
D | kirkwood-iconnect.dts | 42 pmx_led_level: pmx-led-level { 46 pmx_led_power_blue: pmx-led-power-blue { 54 pmx_led_usb1: pmx-led-usb1 { 58 pmx_led_usb2: pmx-led-usb2 { 62 pmx_led_usb3: pmx-led-usb3 { 66 pmx_led_usb4: pmx-led-usb4 { 70 pmx_led_otb: pmx-led-otb { 96 led-level {
|
D | kirkwood-mplcec4.dts | 32 pmx_led_health: pmx-led-health { 47 pmx_led_user1o: pmx-led-user1o { 52 pmx_led_user1g: pmx-led-user1g { 57 pmx_led_user0o: pmx-led-user0o { 62 pmx_led_user0g: pmx-led-user0g { 67 pmx_led_misc: pmx-led-misc {
|
D | armada-xp-netgear-rn2120.dts | 74 sata1_led_pin: sata1-led-pin { 79 sata2_led_pin: sata2-led-pin { 84 sata3_led_pin: sata3-led-pin { 89 sata4_led_pin: sata4-led-pin { 134 err_led_pin: err-led-pin { 275 red-sata1-led { 281 red-sata2-led { 287 red-sata3-led { 293 red-sata4-led { 299 red-err-led {
|
D | imx27-phytec-phycore-rdk.dts | 226 ledr1: led@3 { 231 ledg1: led@4 { 236 ledb1: led@5 { 241 ledr2: led@6 { 246 ledg2: led@7 { 251 ledb2: led@8 { 256 ledr3: led@9 { 262 ledg3: led@10 { 268 ledb3: led@11 {
|
D | armada-370-netgear-rn102.dts | 62 power_led_pin: power-led-pin { 67 sata1_led_pin: sata1-led-pin { 72 sata2_led_pin: sata2-led-pin { 77 backup_led_pin: backup-led-pin { 201 blue-power-led { 207 green-sata1-led { 213 green-sata2-led { 219 green-backup-led {
|
D | armada-370-netgear-rn104.dts | 72 backup_led_pin: backup-led-pin { 77 power_led_pin: power-led-pin { 202 blue-backup-led { 208 blue-power-led { 214 blue-sata1-led { 220 blue-sata2-led { 226 blue-sata3-led { 232 blue-sata4-led {
|
D | kirkwood-nsa320.dts | 55 pmx_led_hdd2_green: pmx-led-hdd2-green { 60 pmx_led_hdd2_red: pmx-led-hdd2-red { 70 pmx_led_usb_green: pmx-led-usb-green { 85 pmx_led_sys_green: pmx-led-sys-green { 90 pmx_led_sys_orange: pmx-led-sys-orange { 95 pmx_led_hdd1_green: pmx-led-hdd1-green { 100 pmx_led_hdd1_red: pmx-led-hdd1-red {
|
D | kirkwood-guruplug-server-plus.dts | 22 pmx_led_health_r: pmx-led-health-r { 26 pmx_led_health_g: pmx-led-health-g { 30 pmx_led_wmode_r: pmx-led-wmode-r { 34 pmx_led_wmode_g: pmx-led-wmode-g {
|
D | kirkwood-topkick.dts | 37 pmx_led_disk_yellow: pmx-led-disk-yellow { 47 pmx_led_sys_red: pmx-led-sys-red { 52 pmx_led_sys_blue: pmx-led-sys-blue { 57 pmx_led_wifi_green: pmx-led-wifi-green { 82 pmx_led_wifi_yellow: pmx-led-wifi-yellow {
|
D | kirkwood-dnskw.dtsi | 68 pmx_led_power: pmx-led-power { 72 pmx_led_red_right_hdd: pmx-led-red-right-hdd { 76 pmx_led_red_left_hdd: pmx-led-red-left-hdd { 80 pmx_led_red_usb_325: pmx-led-red-usb-325 { 88 pmx_led_red_usb_320: pmx-led-red-usb-320 { 116 pmx_led_white_usb: pmx-led-white-usb {
|
/arch/arm/mach-sa1100/ |
D | assabet.c | 694 struct assabet_led *led = container_of(cdev, in assabet_led_set() local 698 ASSABET_BCR_clear(led->mask); in assabet_led_set() 700 ASSABET_BCR_set(led->mask); in assabet_led_set() 705 struct assabet_led *led = container_of(cdev, in assabet_led_get() local 708 return (ASSABET_BCR & led->mask) ? LED_OFF : LED_FULL; in assabet_led_get() 719 struct assabet_led *led; in assabet_leds_init() local 721 led = kzalloc(sizeof(*led), GFP_KERNEL); in assabet_leds_init() 722 if (!led) in assabet_leds_init() 725 led->cdev.name = assabet_leds[i].name; in assabet_leds_init() 726 led->cdev.brightness_set = assabet_led_set; in assabet_leds_init() [all …]
|
/arch/arm/mach-davinci/ |
D | board-dm365-evm.c | 577 struct cpld_led *led = container_of(cdev, struct cpld_led, cdev); in cpld_led_set() local 581 reg &= ~led->mask; in cpld_led_set() 583 reg |= led->mask; in cpld_led_set() 589 struct cpld_led *led = container_of(cdev, struct cpld_led, cdev); in cpld_led_get() local 592 return (reg & led->mask) ? LED_OFF : LED_FULL; in cpld_led_get() 605 struct cpld_led *led; in cpld_leds_init() local 607 led = kzalloc(sizeof(*led), GFP_KERNEL); in cpld_leds_init() 608 if (!led) in cpld_leds_init() 611 led->cdev.name = cpld_leds[i].name; in cpld_leds_init() 612 led->cdev.brightness_set = cpld_led_set; in cpld_leds_init() [all …]
|
/arch/sparc/kernel/ |
D | led.c | 118 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()
|