/arch/arm/mach-ebsa110/ |
D | leds.c | 19 static void ebsa110_led_set(struct led_classdev *cdev, in ebsa110_led_set() argument 32 static enum led_brightness ebsa110_led_get(struct led_classdev *cdev) in ebsa110_led_get() argument 42 struct led_classdev *cdev; in ebsa110_leds_init() local 48 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in ebsa110_leds_init() 49 if (!cdev) in ebsa110_leds_init() 52 cdev->name = "ebsa110:0"; in ebsa110_leds_init() 53 cdev->brightness_set = ebsa110_led_set; in ebsa110_leds_init() 54 cdev->brightness_get = ebsa110_led_get; in ebsa110_leds_init() 55 cdev->default_trigger = "heartbeat"; in ebsa110_leds_init() 57 ret = led_classdev_register(NULL, cdev); in ebsa110_leds_init() [all …]
|
/arch/arm/mach-integrator/ |
D | leds.c | 23 struct led_classdev cdev; member 42 static void integrator_led_set(struct led_classdev *cdev, in integrator_led_set() argument 45 struct integrator_led *led = container_of(cdev, in integrator_led_set() 46 struct integrator_led, cdev); in integrator_led_set() 60 static enum led_brightness integrator_led_get(struct led_classdev *cdev) in integrator_led_get() argument 62 struct integrator_led *led = container_of(cdev, in integrator_led_get() 63 struct integrator_led, cdev); in integrator_led_get() 69 static void cm_led_set(struct led_classdev *cdev, in cm_led_set() argument 78 static enum led_brightness cm_led_get(struct led_classdev *cdev) in cm_led_get() argument 97 led->cdev.name = integrator_leds[i].name; in integrator_leds_init() [all …]
|
/arch/arm/mach-footbridge/ |
D | ebsa285.c | 27 struct led_classdev cdev; member 47 static void ebsa285_led_set(struct led_classdev *cdev, in ebsa285_led_set() argument 50 struct ebsa285_led *led = container_of(cdev, in ebsa285_led_set() 51 struct ebsa285_led, cdev); in ebsa285_led_set() 60 static enum led_brightness ebsa285_led_get(struct led_classdev *cdev) in ebsa285_led_get() argument 62 struct ebsa285_led *led = container_of(cdev, in ebsa285_led_get() 63 struct ebsa285_led, cdev); in ebsa285_led_get() 90 led->cdev.name = ebsa285_leds[i].name; in ebsa285_leds_init() 91 led->cdev.brightness_set = ebsa285_led_set; in ebsa285_leds_init() 92 led->cdev.brightness_get = ebsa285_led_get; in ebsa285_leds_init() [all …]
|
D | netwinder-hw.c | 666 struct led_classdev cdev; member 687 static void netwinder_led_set(struct led_classdev *cdev, in netwinder_led_set() argument 690 struct netwinder_led *led = container_of(cdev, in netwinder_led_set() 691 struct netwinder_led, cdev); in netwinder_led_set() 705 static enum led_brightness netwinder_led_get(struct led_classdev *cdev) in netwinder_led_get() argument 707 struct netwinder_led *led = container_of(cdev, in netwinder_led_get() 708 struct netwinder_led, cdev); in netwinder_led_get() 733 led->cdev.name = netwinder_leds[i].name; in netwinder_leds_init() 734 led->cdev.brightness_set = netwinder_led_set; in netwinder_leds_init() 735 led->cdev.brightness_get = netwinder_led_get; in netwinder_leds_init() [all …]
|
/arch/arm/plat-omap/ |
D | debug-leds.c | 52 struct led_classdev cdev; member 82 static void dbg_led_set(struct led_classdev *cdev, in dbg_led_set() argument 85 struct dbg_led *led = container_of(cdev, struct dbg_led, cdev); in dbg_led_set() 96 static enum led_brightness dbg_led_get(struct led_classdev *cdev) in dbg_led_get() argument 98 struct dbg_led *led = container_of(cdev, struct dbg_led, cdev); in dbg_led_get() 124 led->cdev.name = dbg_leds[i].name; in fpga_probe() 125 led->cdev.brightness_set = dbg_led_set; in fpga_probe() 126 led->cdev.brightness_get = dbg_led_get; in fpga_probe() 127 led->cdev.default_trigger = dbg_leds[i].trigger; in fpga_probe() 130 if (led_classdev_register(NULL, &led->cdev) < 0) { in fpga_probe()
|
/arch/arm/mach-pxa/ |
D | idp.c | 197 struct led_classdev cdev; member 213 static void idp_led_set(struct led_classdev *cdev, in idp_led_set() argument 216 struct idp_led *led = container_of(cdev, in idp_led_set() 217 struct idp_led, cdev); in idp_led_set() 228 static enum led_brightness idp_led_get(struct led_classdev *cdev) in idp_led_get() argument 230 struct idp_led *led = container_of(cdev, in idp_led_get() 231 struct idp_led, cdev); in idp_led_get() 250 led->cdev.name = idp_leds[i].name; in idp_leds_init() 251 led->cdev.brightness_set = idp_led_set; in idp_leds_init() 252 led->cdev.brightness_get = idp_led_get; in idp_leds_init() [all …]
|
D | lubbock.c | 563 struct led_classdev cdev; member 585 static void lubbock_led_set(struct led_classdev *cdev, in lubbock_led_set() argument 588 struct lubbock_led *led = container_of(cdev, in lubbock_led_set() 589 struct lubbock_led, cdev); in lubbock_led_set() 600 static enum led_brightness lubbock_led_get(struct led_classdev *cdev) in lubbock_led_get() argument 602 struct lubbock_led *led = container_of(cdev, in lubbock_led_get() 603 struct lubbock_led, cdev); in lubbock_led_get() 625 led->cdev.name = lubbock_leds[i].name; in lubbock_leds_init() 626 led->cdev.brightness_set = lubbock_led_set; in lubbock_leds_init() 627 led->cdev.brightness_get = lubbock_led_get; in lubbock_leds_init() [all …]
|
D | mainstone.c | 632 struct led_classdev cdev; member 654 static void mainstone_led_set(struct led_classdev *cdev, in mainstone_led_set() argument 657 struct mainstone_led *led = container_of(cdev, in mainstone_led_set() 658 struct mainstone_led, cdev); in mainstone_led_set() 669 static enum led_brightness mainstone_led_get(struct led_classdev *cdev) in mainstone_led_get() argument 671 struct mainstone_led *led = container_of(cdev, in mainstone_led_get() 672 struct mainstone_led, cdev); in mainstone_led_get() 694 led->cdev.name = mainstone_leds[i].name; in mainstone_leds_init() 695 led->cdev.brightness_set = mainstone_led_set; in mainstone_leds_init() 696 led->cdev.brightness_get = mainstone_led_get; in mainstone_leds_init() [all …]
|
/arch/s390/include/asm/ |
D | cmb.h | 7 extern int enable_cmf(struct ccw_device *cdev); 8 extern int disable_cmf(struct ccw_device *cdev); 9 extern u64 cmf_read(struct ccw_device *cdev, int index); 10 extern int cmf_readall(struct ccw_device *cdev, struct cmbdata *data);
|
D | ccwdev.h | 167 int ccw_device_is_pathgroup(struct ccw_device *cdev); 168 int ccw_device_is_multipath(struct ccw_device *cdev); 195 int ccw_device_tm_start_key(struct ccw_device *cdev, struct tcw *tcw, 205 int ccw_device_tm_intrg(struct ccw_device *cdev); 207 int ccw_device_get_mdc(struct ccw_device *cdev, u8 mask); 209 extern int ccw_device_set_online(struct ccw_device *cdev); 210 extern int ccw_device_set_offline(struct ccw_device *cdev);
|
D | ccwgroup.h | 28 struct ccw_device *cdev[0]; member 68 extern int ccwgroup_probe_ccwdev(struct ccw_device *cdev); 69 extern void ccwgroup_remove_ccwdev(struct ccw_device *cdev);
|
D | qdio.h | 359 struct ccw_device *cdev; member
|
/arch/arm/mach-goldfish/ |
D | switch.c | 48 struct device *cdev; member 115 ret = sysfs_update_file(&qs->cdev->kobj, &class_device_attr_state.attr); in goldfish_switch_work() 157 qs->cdev = device_create(goldfish_switch_class, &pdev->dev, 0, in goldfish_switch_probe() 159 if(unlikely(IS_ERR(qs->cdev))) { in goldfish_switch_probe() 160 ret = PTR_ERR(qs->cdev); in goldfish_switch_probe() 163 dev_set_drvdata(qs->cdev, qs); in goldfish_switch_probe() 165 ret = device_create_file(qs->cdev, &dev_attr_state); in goldfish_switch_probe() 169 ret = device_create_file(qs->cdev, &dev_attr_direction); in goldfish_switch_probe() 184 device_unregister(qs->cdev); in goldfish_switch_probe() 199 device_unregister(qs->cdev); in goldfish_switch_remove()
|
/arch/mips/goldfish/ |
D | switch.c | 43 struct device *cdev; member 110 ret = sysfs_update_file(&qs->cdev->kobj, &class_device_attr_state.attr); in goldfish_switch_work() 156 qs->cdev = device_create(goldfish_switch_class, &pdev->dev, 0, in goldfish_switch_probe() 158 if (unlikely(IS_ERR(qs->cdev))) { in goldfish_switch_probe() 159 ret = PTR_ERR(qs->cdev); in goldfish_switch_probe() 162 dev_set_drvdata(qs->cdev, qs); in goldfish_switch_probe() 164 ret = device_create_file(qs->cdev, &dev_attr_state); in goldfish_switch_probe() 168 ret = device_create_file(qs->cdev, &dev_attr_direction); in goldfish_switch_probe() 183 device_unregister(qs->cdev); in goldfish_switch_probe() 198 device_unregister(qs->cdev); in goldfish_switch_remove()
|
/arch/arm/mach-sa1100/ |
D | assabet.c | 670 struct led_classdev cdev; member 691 static void assabet_led_set(struct led_classdev *cdev, in assabet_led_set() argument 694 struct assabet_led *led = container_of(cdev, in assabet_led_set() 695 struct assabet_led, cdev); in assabet_led_set() 703 static enum led_brightness assabet_led_get(struct led_classdev *cdev) in assabet_led_get() argument 705 struct assabet_led *led = container_of(cdev, in assabet_led_get() 706 struct assabet_led, cdev); in assabet_led_get() 725 led->cdev.name = assabet_leds[i].name; in assabet_leds_init() 726 led->cdev.brightness_set = assabet_led_set; in assabet_leds_init() 727 led->cdev.brightness_get = assabet_led_get; in assabet_leds_init() [all …]
|
/arch/arm/mach-davinci/ |
D | board-dm365-evm.c | 557 struct led_classdev cdev; member 575 static void cpld_led_set(struct led_classdev *cdev, enum led_brightness b) in cpld_led_set() argument 577 struct cpld_led *led = container_of(cdev, struct cpld_led, cdev); in cpld_led_set() 587 static enum led_brightness cpld_led_get(struct led_classdev *cdev) in cpld_led_get() argument 589 struct cpld_led *led = container_of(cdev, struct cpld_led, cdev); in cpld_led_get() 611 led->cdev.name = cpld_leds[i].name; in cpld_leds_init() 612 led->cdev.brightness_set = cpld_led_set; in cpld_leds_init() 613 led->cdev.brightness_get = cpld_led_get; in cpld_leds_init() 614 led->cdev.default_trigger = cpld_leds[i].trigger; in cpld_leds_init() 617 if (led_classdev_register(NULL, &led->cdev) < 0) { in cpld_leds_init()
|
/arch/mips/sni/ |
D | setup.c | 62 char *cdev; in sni_console_setup() local 67 cdev = prom_getenv("console_dev"); in sni_console_setup() 68 if (strncmp(cdev, "tty", 3) == 0) { in sni_console_setup() 83 if (strncmp(cdev, "tty552", 6) == 0) in sni_console_setup()
|
/arch/mips/txx9/rbtx4939/ |
D | setup.c | 192 struct led_classdev cdev; member 202 container_of(led_cdev, struct rbtx4939_led_data, cdev); in rbtx4939_led_brightness_set() 231 led_dat->cdev.brightness_set = rbtx4939_led_brightness_set; in rbtx4939_led_probe() 233 led_dat->cdev.name = led_dat->name; in rbtx4939_led_probe() 235 led_dat->cdev.default_trigger = default_triggers[i]; in rbtx4939_led_probe() 236 rc = led_classdev_register(&pdev->dev, &led_dat->cdev); in rbtx4939_led_probe() 239 led_dat->cdev.brightness_set(&led_dat->cdev, 0); in rbtx4939_led_probe()
|
/arch/arm/boot/dts/ |
D | ste-snowball.dts | 317 trip0-cdev-num = <1>; 318 trip0-cdev-name0 = "thermal-cpufreq-0"; 322 trip1-cdev-num = <1>; 323 trip1-cdev-name0 = "thermal-cpufreq-0"; 327 trip2-cdev-num = <1>; 328 trip2-cdev-name0 = "thermal-cpufreq-0"; 332 trip3-cdev-num = <0>;
|
/arch/sh/boards/mach-landisk/ |
D | gio.c | 29 static struct cdev *cdev_p;
|
/arch/alpha/kernel/ |
D | sys_marvel.c | 319 marvel_map_irq(const struct pci_dev *cdev, u8 slot, u8 pin) in marvel_map_irq() argument 321 struct pci_dev *dev = (struct pci_dev *)cdev; in marvel_map_irq()
|
/arch/x86/kernel/cpu/ |
D | common.c | 752 const struct cpu_dev *const *cdev; in early_cpu_init() local 759 for (cdev = __x86_cpu_dev_start; cdev < __x86_cpu_dev_end; cdev++) { in early_cpu_init() 760 const struct cpu_dev *cpudev = *cdev; in early_cpu_init()
|
D | perf_event.c | 1827 static ssize_t get_attr_rdpmc(struct device *cdev, in get_attr_rdpmc() argument 1844 static ssize_t set_attr_rdpmc(struct device *cdev, in set_attr_rdpmc() argument
|
/arch/arm/mach-omap1/ |
D | board-palmtt.c | 184 .cdev = {
|
/arch/tile/kernel/ |
D | hardwall.c | 1084 static struct cdev hardwall_dev;
|