/drivers/input/misc/ |
D | keychord.c | 69 static int check_keychord(struct keychord_device *kdev, in check_keychord() argument 74 if (keychord->count != kdev->key_down) in check_keychord() 78 if (!test_bit(keychord->keycodes[i], kdev->keystate)) in check_keychord() 89 struct keychord_device *kdev = handle->private; in keychord_event() local 97 spin_lock_irqsave(&kdev->lock, flags); in keychord_event() 99 if (!test_bit(code, kdev->keystate) == !value) in keychord_event() 101 __change_bit(code, kdev->keystate); in keychord_event() 103 kdev->key_down++; in keychord_event() 105 kdev->key_down--; in keychord_event() 111 if (!test_bit(code, kdev->keybit)) in keychord_event() [all …]
|
/drivers/gpu/drm/i915/ |
D | i915_sysfs.c | 49 show_rc6_mask(struct device *kdev, struct device_attribute *attr, char *buf) in show_rc6_mask() argument 51 struct drm_minor *dminor = container_of(kdev, struct drm_minor, kdev); in show_rc6_mask() 56 show_rc6_ms(struct device *kdev, struct device_attribute *attr, char *buf) in show_rc6_ms() argument 58 struct drm_minor *dminor = container_of(kdev, struct drm_minor, kdev); in show_rc6_ms() 64 show_rc6p_ms(struct device *kdev, struct device_attribute *attr, char *buf) in show_rc6p_ms() argument 66 struct drm_minor *dminor = container_of(kdev, struct drm_minor, kdev); in show_rc6p_ms() 72 show_rc6pp_ms(struct device *kdev, struct device_attribute *attr, char *buf) in show_rc6pp_ms() argument 74 struct drm_minor *dminor = container_of(kdev, struct drm_minor, kdev); in show_rc6pp_ms() 118 struct drm_minor *dminor = container_of(dev, struct drm_minor, kdev); in i915_l3_read() 151 struct drm_minor *dminor = container_of(dev, struct drm_minor, kdev); in i915_l3_write() [all …]
|
D | intel_panel.c | 444 &connector->kdev, dev, in intel_panel_setup_backlight()
|
D | i915_irq.c | 544 kobject_uevent_env(&dev_priv->dev->primary->kdev.kobj, in ivybridge_parity_work() 1041 kobject_uevent_env(&dev->primary->kdev.kobj, KOBJ_CHANGE, error_event); in i915_error_work_func() 1055 kobject_uevent_env(&dev->primary->kdev.kobj, KOBJ_CHANGE, in i915_error_work_func() 1074 kobject_uevent_env(&dev->primary->kdev.kobj, in i915_error_work_func()
|
D | intel_dp.c | 655 intel_dp->adapter.dev.parent = &intel_connector->base.kdev; in intel_dp_i2c_init()
|
/drivers/gpu/drm/ |
D | drm_sysfs.c | 25 #define to_drm_minor(d) container_of(d, struct drm_minor, kdev) 26 #define to_drm_connector(d) container_of(d, struct drm_connector, kdev) 373 BUG_ON(device_is_registered(&connector->kdev)); in drm_sysfs_connector_add() 375 connector->kdev.parent = &dev->primary->kdev; in drm_sysfs_connector_add() 376 connector->kdev.class = drm_class; in drm_sysfs_connector_add() 377 connector->kdev.release = drm_sysfs_device_release; in drm_sysfs_connector_add() 382 dev_set_name(&connector->kdev, "card%d-%s", in drm_sysfs_connector_add() 384 ret = device_register(&connector->kdev); in drm_sysfs_connector_add() 394 ret = device_create_file(&connector->kdev, &connector_attrs[attr_cnt]); in drm_sysfs_connector_add() 411 ret = device_create_file(&connector->kdev, &connector_attrs_opt1[opt_cnt]); in drm_sysfs_connector_add() [all …]
|
/drivers/s390/kvm/ |
D | kvm_virtio.c | 185 struct kvm_device *kdev = to_kvmdev(vdev); in kvm_find_vq() local 190 if (index >= kdev->desc->num_vq) in kvm_find_vq() 196 config = kvm_vq_config(kdev->desc)+index; in kvm_find_vq() 251 struct kvm_device *kdev = to_kvmdev(vdev); in kvm_find_vqs() local 255 if (nvqs > kdev->desc->num_vq) in kvm_find_vqs() 303 struct kvm_device *kdev; in add_kvm_device() local 305 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in add_kvm_device() 306 if (!kdev) { in add_kvm_device() 312 kdev->vdev.dev.parent = kvm_root; in add_kvm_device() 313 kdev->vdev.id.device = d->type; in add_kvm_device() [all …]
|
/drivers/net/ethernet/broadcom/ |
D | bcm63xx_enet.c | 256 struct device *kdev; in bcm_enet_receive_queue() local 260 kdev = &priv->pdev->dev; in bcm_enet_receive_queue() 332 dma_sync_single_for_cpu(kdev, desc->address, in bcm_enet_receive_queue() 335 dma_sync_single_for_device(kdev, desc->address, in bcm_enet_receive_queue() 786 struct device *kdev; in bcm_enet_open() local 795 kdev = &priv->pdev->dev; in bcm_enet_open() 806 dev_err(kdev, "could not attach to PHY\n"); in bcm_enet_open() 825 dev_info(kdev, "attached PHY at address %d [%s]\n", in bcm_enet_open() 865 p = dma_alloc_coherent(kdev, size, &priv->rx_desc_dma, in bcm_enet_open() 877 p = dma_alloc_coherent(kdev, size, &priv->tx_desc_dma, in bcm_enet_open() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_drv.c | 1044 static int vmw_pm_suspend(struct device *kdev) in vmw_pm_suspend() argument 1046 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_suspend() 1054 static int vmw_pm_resume(struct device *kdev) in vmw_pm_resume() argument 1056 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_resume() 1061 static int vmw_pm_prepare(struct device *kdev) in vmw_pm_prepare() argument 1063 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_prepare() 1089 static void vmw_pm_complete(struct device *kdev) in vmw_pm_complete() argument 1091 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_complete()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_backlight.c | 85 bd = backlight_device_register("nv_backlight", &connector->kdev, drm, in nv40_backlight_init() 207 bd = backlight_device_register("nv_backlight", &connector->kdev, in nv50_backlight_init()
|
/drivers/gpu/drm/gma500/ |
D | cdv_intel_dp.c | 667 intel_dp->adapter.dev.parent = &connector->base.kdev; in cdv_intel_dp_i2c_init()
|
/drivers/gpu/drm/radeon/ |
D | radeon_legacy_encoders.c | 395 bd = backlight_device_register(bl_name, &drm_connector->kdev, in radeon_legacy_backlight_init()
|
D | atombios_encoders.c | 209 bd = backlight_device_register(bl_name, &drm_connector->kdev, in radeon_atom_backlight_init()
|