Home
last modified time | relevance | path

Searched refs:ldev (Results 1 – 25 of 27) sorted by relevance

12

/linux-2.6.39/sound/aoa/fabrics/
Dlayout.c661 struct layout_dev *ldev = snd_kcontrol_chip(kcontrol); in detect_choice_get() local
665 ucontrol->value.integer.value[0] = ldev->switch_on_headphone; in detect_choice_get()
668 ucontrol->value.integer.value[0] = ldev->switch_on_lineout; in detect_choice_get()
679 struct layout_dev *ldev = snd_kcontrol_chip(kcontrol); in detect_choice_put() local
683 ldev->switch_on_headphone = !!ucontrol->value.integer.value[0]; in detect_choice_put()
686 ldev->switch_on_lineout = !!ucontrol->value.integer.value[0]; in detect_choice_put()
717 struct layout_dev *ldev = snd_kcontrol_chip(kcontrol); in detected_get() local
722 v = ldev->gpio.methods->get_detect(&ldev->gpio, in detected_get()
726 v = ldev->gpio.methods->get_detect(&ldev->gpio, in detected_get()
755 struct layout_dev *ldev, in check_codec() argument
[all …]
/linux-2.6.39/drivers/cpuidle/governors/
Dladder.c53 static inline void ladder_do_selection(struct ladder_device *ldev, in ladder_do_selection() argument
56 ldev->states[old_idx].stats.promotion_count = 0; in ladder_do_selection()
57 ldev->states[old_idx].stats.demotion_count = 0; in ladder_do_selection()
58 ldev->last_state_idx = new_idx; in ladder_do_selection()
67 struct ladder_device *ldev = &__get_cpu_var(ladder_devices); in ladder_select_state() local
69 int last_residency, last_idx = ldev->last_state_idx; in ladder_select_state()
74 ladder_do_selection(ldev, last_idx, 0); in ladder_select_state()
78 last_state = &ldev->states[last_idx]; in ladder_select_state()
92 ladder_do_selection(ldev, last_idx, last_idx + 1); in ladder_select_state()
106 ladder_do_selection(ldev, last_idx, i); in ladder_select_state()
[all …]
/linux-2.6.39/drivers/leds/
Dleds-dac124s085.c21 struct led_classdev ldev; member
54 static void dac124s085_set_brightness(struct led_classdev *ldev, in dac124s085_set_brightness() argument
57 struct dac124s085_led *led = container_of(ldev, struct dac124s085_led, in dac124s085_set_brightness()
58 ldev); in dac124s085_set_brightness()
87 led->ldev.name = led->name; in dac124s085_probe()
88 led->ldev.brightness = LED_OFF; in dac124s085_probe()
89 led->ldev.max_brightness = 0xfff; in dac124s085_probe()
90 led->ldev.brightness_set = dac124s085_set_brightness; in dac124s085_probe()
91 ret = led_classdev_register(&spi->dev, &led->ldev); in dac124s085_probe()
102 led_classdev_unregister(&dac->leds[i].ldev); in dac124s085_probe()
[all …]
Dleds-lp3944.c65 #define ldev_to_led(c) container_of(c, struct lp3944_led_data, ldev)
72 struct led_classdev ldev; member
182 __func__, led->ldev.name, status); in lp3944_led_set()
218 __func__, led->ldev.name, reg, id, status, val); in lp3944_led_set()
322 led->ldev.name = pled->name; in lp3944_configure()
323 led->ldev.max_brightness = 1; in lp3944_configure()
324 led->ldev.brightness_set = lp3944_led_set_brightness; in lp3944_configure()
325 led->ldev.blink_set = lp3944_led_set_blink; in lp3944_configure()
326 led->ldev.flags = LED_CORE_SUSPENDRESUME; in lp3944_configure()
329 err = led_classdev_register(&client->dev, &led->ldev); in lp3944_configure()
[all …]
Dleds-pca9532.c29 #define ldev_to_led(c) container_of(c, struct pca9532_led, ldev)
75 b += data->leds[i].ldev.brightness; in pca9532_calcpwm()
215 led_classdev_unregister(&data->leds[i].ldev); in pca9532_destroy_devices()
255 led->ldev.name = led->name; in pca9532_configure()
256 led->ldev.brightness = LED_OFF; in pca9532_configure()
257 led->ldev.brightness_set = pca9532_set_brightness; in pca9532_configure()
258 led->ldev.blink_set = pca9532_set_blink; in pca9532_configure()
260 err = led_classdev_register(&client->dev, &led->ldev); in pca9532_configure()
Dleds-locomo.c57 static int locomoled_probe(struct locomo_dev *ldev) in locomoled_probe() argument
61 ret = led_classdev_register(&ldev->dev, &locomo_led0); in locomoled_probe()
65 ret = led_classdev_register(&ldev->dev, &locomo_led1); in locomoled_probe()
/linux-2.6.39/drivers/lguest/
Dlguest_device.c253 struct lguest_device *ldev = to_lgdev(vdev); in lg_find_vq() local
259 if (index >= ldev->desc->num_vq) in lg_find_vq()
271 memcpy(&lvq->config, lg_vq(ldev->desc)+index, sizeof(lvq->config)); in lg_find_vq()
357 struct lguest_device *ldev = to_lgdev(vdev); in lg_find_vqs() local
361 if (nvqs > ldev->desc->num_vq) in lg_find_vqs()
410 struct lguest_device *ldev; in add_lguest_device() local
413 ldev = kzalloc(sizeof(*ldev), GFP_KERNEL); in add_lguest_device()
414 if (!ldev) { in add_lguest_device()
421 ldev->vdev.dev.parent = lguest_root; in add_lguest_device()
427 ldev->vdev.id.device = d->type; in add_lguest_device()
[all …]
/linux-2.6.39/drivers/parisc/
Dlba_pci.c637 struct lba_device *ldev = LBA_DEV(parisc_walk_tree(bus->bridge)); in lba_fixup_bus() local
638 int lba_portbase = HBA_PORT_BASE(ldev->hba.hba_num); in lba_fixup_bus()
659 ldev->hba.io_space.name, in lba_fixup_bus()
660 ldev->hba.io_space.start, ldev->hba.io_space.end, in lba_fixup_bus()
661 ldev->hba.io_space.flags); in lba_fixup_bus()
663 ldev->hba.lmmio_space.name, in lba_fixup_bus()
664 ldev->hba.lmmio_space.start, ldev->hba.lmmio_space.end, in lba_fixup_bus()
665 ldev->hba.lmmio_space.flags); in lba_fixup_bus()
667 err = request_resource(&ioport_resource, &(ldev->hba.io_space)); in lba_fixup_bus()
673 bus->resource[0] = &(ldev->hba.io_space); in lba_fixup_bus()
[all …]
/linux-2.6.39/drivers/acpi/
Dproc.c304 struct device *ldev; in acpi_system_wakeup_device_seq_show() local
309 ldev = acpi_get_physical_device(dev->handle); in acpi_system_wakeup_device_seq_show()
315 || (ldev && device_may_wakeup(ldev))) ? in acpi_system_wakeup_device_seq_show()
317 if (ldev) in acpi_system_wakeup_device_seq_show()
319 ldev->bus ? ldev->bus->name : "no-bus", in acpi_system_wakeup_device_seq_show()
320 dev_name(ldev)); in acpi_system_wakeup_device_seq_show()
322 put_device(ldev); in acpi_system_wakeup_device_seq_show()
/linux-2.6.39/drivers/block/drbd/
Ddrbd_nl.c208 fp = mdev->ldev->dc.fencing; in drbd_try_outdate_peer()
389 mdev->ldev->md.uuid[UI_CURRENT] &= ~(u64)1; in drbd_set_role()
401 && mdev->ldev->md.uuid[UI_BITMAP] == 0) || forced) in drbd_set_role()
404 mdev->ldev->md.uuid[UI_CURRENT] |= (u64)1; in drbd_set_role()
604 prev_first_sect = drbd_md_first_sector(mdev->ldev); in drbd_determin_dev_size()
605 prev_size = mdev->ldev->md.md_size_sect; in drbd_determin_dev_size()
606 la_size = mdev->ldev->md.la_size_sect; in drbd_determin_dev_size()
609 drbd_md_set_sector_offsets(mdev, mdev->ldev); in drbd_determin_dev_size()
611 size = drbd_new_dev_size(mdev, mdev->ldev, flags & DDSF_FORCED); in drbd_determin_dev_size()
632 mdev->ldev->md.la_size_sect = size; in drbd_determin_dev_size()
[all …]
Ddrbd_main.c698 fp = mdev->ldev->dc.fencing; in is_valid_state()
821 fp = mdev->ldev->dc.fencing; in sanitize_state()
873 if (mdev->ed_uuid == mdev->ldev->md.uuid[UI_CURRENT]) { in sanitize_state()
1203 u32 mdf = mdev->ldev->md.flags & ~(MDF_CONSISTENT|MDF_PRIMARY_IND| in __drbd_set_state()
1220 if (mdf != mdev->ldev->md.flags) { in __drbd_set_state()
1221 mdev->ldev->md.flags = mdf; in __drbd_set_state()
1225 drbd_set_ed_uuid(mdev, mdev->ldev->md.uuid[UI_CURRENT]); in __drbd_set_state()
1340 fp = mdev->ldev->dc.fencing; in after_state_ch()
1428 mdev->ldev->md.uuid[UI_BITMAP] == 0 && ns.disk >= D_UP_TO_DATE) { in after_state_ch()
1441 if (ns.peer == R_PRIMARY && mdev->ldev->md.uuid[UI_BITMAP] == 0) { in after_state_ch()
[all …]
Ddrbd_receiver.c962 rv = blkdev_issue_flush(mdev->ldev->backing_bdev, GFP_KERNEL, in drbd_flush()
1063 if (wo == WO_bdev_flush && mdev->ldev->dc.no_disk_flush) in drbd_bump_write_ordering()
1065 if (wo == WO_drain_io && mdev->ldev->dc.no_disk_drain) in drbd_bump_write_ordering()
1113 bio->bi_bdev = mdev->ldev->backing_bdev; in drbd_submit_ee()
1890 struct gendisk *disk = mdev->ldev->backing_bdev->bd_contains->bd_disk; in drbd_rs_should_slow_down()
2135 self = mdev->ldev->md.uuid[UI_BITMAP] & 1; in drbd_asb_recover_0p()
2326 self = mdev->ldev->md.uuid[UI_CURRENT] & ~((u64)1); in drbd_uuid_compare()
2346 if (mdev->p_uuid[UI_BITMAP] == (u64)0 && mdev->ldev->md.uuid[UI_BITMAP] != (u64)0) { in drbd_uuid_compare()
2351 …if ((mdev->ldev->md.uuid[UI_BITMAP] & ~((u64)1)) == (mdev->p_uuid[UI_HISTORY_START] & ~((u64)1)) && in drbd_uuid_compare()
2352 …(mdev->ldev->md.uuid[UI_HISTORY_START] & ~((u64)1)) == (mdev->p_uuid[UI_HISTORY_START + 1] & ~((u6… in drbd_uuid_compare()
[all …]
Ddrbd_bitmap.c655 u64 bits_on_disk = ((u64)mdev->ldev->md.md_size_sect-MD_BM_OFFSET) << 12; in drbd_bm_resize()
957 mdev->ldev->md.md_offset + mdev->ldev->md.bm_offset; in bm_page_io_async()
964 (drbd_md_last_sector(mdev->ldev) - on_disk_sector + 1)<<9); in bm_page_io_async()
986 bio->bi_bdev = mdev->ldev->md_bdev; in bm_page_io_async()
Ddrbd_actlog.c364 sector = mdev->ldev->md.md_offset in w_al_write_transaction()
365 + mdev->ldev->md.al_offset + mdev->al_tr_pos; in w_al_write_transaction()
367 if (!drbd_md_sync_page_io(mdev, mdev->ldev, sector, WRITE)) in w_al_write_transaction()
Ddrbd_int.h973 struct drbd_backing_dev *ldev __protected_by(local);
1269 extern void drbd_free_bc(struct drbd_backing_dev *ldev);
1825 switch (mdev->ldev->dc.on_io_error) { in __drbd_chk_io_error_()
2450 r = blkdev_issue_flush(mdev->ldev->md_bdev, GFP_KERNEL, NULL); in drbd_md_flush()
Ddrbd_req.c999 req->private_bio->bi_bdev = mdev->ldev->backing_bdev; in drbd_make_request_common()
1184 mdev->ldev->backing_bdev->bd_disk->queue; in drbd_merge_bvec()
/linux-2.6.39/drivers/video/backlight/
Dlocomolcd.c168 static int locomolcd_probe(struct locomo_dev *ldev) in locomolcd_probe() argument
174 locomolcd_dev = ldev; in locomolcd_probe()
176 locomo_gpio_set_dir(ldev->dev.parent, LOCOMO_GPIO_FL_VR, 0); in locomolcd_probe()
190 &ldev->dev, NULL, in locomolcd_probe()
/linux-2.6.39/arch/arm/common/
Dlocomo.c535 static inline struct locomo *locomo_chip_driver(struct locomo_dev *ldev) in locomo_chip_driver() argument
537 return (struct locomo *)dev_get_drvdata(ldev->dev.parent); in locomo_chip_driver()
662 void locomo_m62332_senddata(struct locomo_dev *ldev, unsigned int dac_data, int channel) in locomo_m62332_senddata() argument
664 struct locomo *lchip = locomo_chip_driver(ldev); in locomo_m62332_senddata()
831 struct locomo_dev *ldev = LOCOMO_DEV(dev); in locomo_bus_suspend() local
836 ret = drv->suspend(ldev, state); in locomo_bus_suspend()
842 struct locomo_dev *ldev = LOCOMO_DEV(dev); in locomo_bus_resume() local
847 ret = drv->resume(ldev); in locomo_bus_resume()
853 struct locomo_dev *ldev = LOCOMO_DEV(dev); in locomo_bus_probe() local
858 ret = drv->probe(ldev); in locomo_bus_probe()
[all …]
/linux-2.6.39/include/linux/
Dleds-pca9532.h34 struct led_classdev ldev; member
/linux-2.6.39/drivers/hid/
Dhid-picolcd.c1012 static int picolcd_get_contrast(struct lcd_device *ldev) in picolcd_get_contrast() argument
1014 struct picolcd_data *data = lcd_get_data(ldev); in picolcd_get_contrast()
1018 static int picolcd_set_contrast(struct lcd_device *ldev, int contrast) in picolcd_set_contrast() argument
1020 struct picolcd_data *data = lcd_get_data(ldev); in picolcd_set_contrast()
1035 static int picolcd_check_lcd_fb(struct lcd_device *ldev, struct fb_info *fb) in picolcd_check_lcd_fb() argument
1037 return fb && fb == picolcd_fbinfo((struct picolcd_data *)lcd_get_data(ldev)); in picolcd_check_lcd_fb()
1049 struct lcd_device *ldev; in picolcd_init_lcd() local
1059 ldev = lcd_device_register(dev_name(dev), dev, data, &picolcd_lcdops); in picolcd_init_lcd()
1060 if (IS_ERR(ldev)) { in picolcd_init_lcd()
1062 return PTR_ERR(ldev); in picolcd_init_lcd()
[all …]
/linux-2.6.39/net/ipv6/
Dip6_tunnel.c704 struct net_device *ldev = NULL; in ip6_tnl_rcv_ctl() local
707 ldev = dev_get_by_index_rcu(net, p->link); in ip6_tnl_rcv_ctl()
710 likely(ipv6_chk_addr(net, &p->laddr, ldev, 0))) && in ip6_tnl_rcv_ctl()
843 struct net_device *ldev = NULL; in ip6_tnl_xmit_ctl() local
847 ldev = dev_get_by_index_rcu(net, p->link); in ip6_tnl_xmit_ctl()
849 if (unlikely(!ipv6_chk_addr(net, &p->laddr, ldev, 0))) in ip6_tnl_xmit_ctl()
/linux-2.6.39/arch/arm/include/asm/hardware/
Dlocomo.h212 void locomo_m62332_senddata(struct locomo_dev *ldev, unsigned int dac_data, int channel);
/linux-2.6.39/fs/squashfs/
Dsquashfs_fs.h406 struct squashfs_ldev_inode ldev; member
Dinode.c338 struct squashfs_ldev_inode *sqsh_ino = &squashfs_ino.ldev; in squashfs_read_inode()
/linux-2.6.39/net/decnet/
Daf_decnet.c729 struct net_device *dev, *ldev; in dn_bind() local
754 ldev = NULL; in dn_bind()
759 ldev = dev; in dn_bind()
764 if (ldev == NULL) in dn_bind()

12