| /linux/drivers/gpu/drm/ |
| H A D | drm_sysfs.c | 48 * &drm_device.dev or &drm_connector.kdev. 346 struct device *kdev; in drm_sysfs_connector_add() local 349 if (connector->kdev) in drm_sysfs_connector_add() 352 kdev = kzalloc_obj(*kdev); in drm_sysfs_connector_add() 353 if (!kdev) in drm_sysfs_connector_add() 356 device_initialize(kdev); in drm_sysfs_connector_add() 357 kdev->class = drm_class; in drm_sysfs_connector_add() 358 kdev->type = &drm_sysfs_device_connector; in drm_sysfs_connector_add() 359 kdev in drm_sysfs_connector_add() 554 struct device *kdev; drm_sysfs_minor_alloc() local [all...] |
| H A D | drm_ioctl.c | 884 (long)old_encode_dev(file_priv->minor->kdev->devt), in drm_ioctl() 923 (long)old_encode_dev(file_priv->minor->kdev->devt), in drm_ioctl()
|
| H A D | drm_ioc32.c | 385 (long)old_encode_dev(file_priv->minor->kdev->devt), in drm_compat_ioctl()
|
| H A D | drm_file.c | 244 (long)old_encode_dev(file->minor->kdev->devt), in drm_file_free()
|
| /linux/drivers/cpuidle/ |
| H A D | sysfs.c | 161 struct cpuidle_device_kobj *kdev = in to_cpuidle_device() local 164 return kdev->dev; in to_cpuidle_device() 204 struct cpuidle_device_kobj *kdev = in cpuidle_sysfs_release() local 207 complete(&kdev->kobj_unregister); in cpuidle_sysfs_release() 480 struct cpuidle_device_kobj *kdev = device->kobj_dev; in cpuidle_add_state_sysfs() local 496 &kdev->kobj, "state%d", i); in cpuidle_add_state_sysfs() 617 struct cpuidle_device_kobj *kdev = dev->kobj_dev; in cpuidle_add_driver_sysfs() local 629 &kdev->kobj, "driver"); in cpuidle_add_driver_sysfs() 699 struct cpuidle_device_kobj *kdev; in cpuidle_add_sysfs() local 715 kdev = kzalloc_obj(*kdev); in cpuidle_add_sysfs() [all …]
|
| /linux/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_crat.c | 1442 static int kfd_fill_gpu_cache_info_from_gfx_config(struct kfd_dev *kdev, in kfd_fill_gpu_cache_info_from_gfx_config() argument 1446 struct amdgpu_device *adev = kdev->adev; in kfd_fill_gpu_cache_info_from_gfx_config() 1530 static int kfd_fill_gpu_cache_info_from_gfx_config_v2(struct kfd_dev *kdev, in kfd_fill_gpu_cache_info_from_gfx_config_v2() argument 1533 struct amdgpu_device *adev = kdev->adev; in kfd_fill_gpu_cache_info_from_gfx_config_v2() 1596 int kfd_get_gpu_cache_info(struct kfd_node *kdev, struct kfd_gpu_cache_info **pcache_info) in kfd_get_gpu_cache_info() argument 1601 switch (kdev->adev->asic_type) { in kfd_get_gpu_cache_info() 1639 switch (KFD_GC_VERSION(kdev)) { in kfd_get_gpu_cache_info() 1661 kfd_fill_gpu_cache_info_from_gfx_config_v2(kdev->kfd, in kfd_get_gpu_cache_info() 1738 kfd_fill_gpu_cache_info_from_gfx_config(kdev->kfd, in kfd_get_gpu_cache_info() 2004 struct kfd_node *kdev, uint8_ in kfd_fill_gpu_memory_affinity() argument 2033 kfd_find_numa_node_in_srat(struct kfd_node * kdev) kfd_find_numa_node_in_srat() argument 2131 kfd_fill_gpu_direct_io_link_to_cpu(int * avail_size,struct kfd_node * kdev,struct crat_subtype_iolink * sub_type_hdr,uint32_t proximity_domain) kfd_fill_gpu_direct_io_link_to_cpu() argument 2203 kfd_fill_gpu_xgmi_link_to_gpu(int * avail_size,struct kfd_node * kdev,struct kfd_node * peer_kdev,struct crat_subtype_iolink * sub_type_hdr,uint32_t proximity_domain_from,uint32_t proximity_domain_to) kfd_fill_gpu_xgmi_link_to_gpu() argument 2255 kfd_create_vcrat_image_gpu(void * pcrat_image,size_t * size,struct kfd_node * kdev,uint32_t proximity_domain) kfd_create_vcrat_image_gpu() argument 2425 kfd_create_crat_image_virtual(void ** crat_image,size_t * size,int flags,struct kfd_node * kdev,uint32_t proximity_domain) kfd_create_crat_image_virtual() argument [all...] |
| H A D | kfd_crat.h | 311 int kfd_get_gpu_cache_info(struct kfd_node *kdev, struct kfd_gpu_cache_info **pcache_info); 317 int flags, struct kfd_node *kdev,
|
| H A D | kfd_process.c | 777 struct kfd_node *kdev = pdd->dev; in kfd_process_alloc_gpuvm() 780 err = amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu(kdev->adev, gpu_va, size, in kfd_process_alloc_gpuvm() 786 err = amdgpu_amdkfd_gpuvm_map_memory_to_gpu(kdev->adev, *mem, in kfd_process_alloc_gpuvm() 791 err = amdgpu_amdkfd_gpuvm_sync_memory(kdev->adev, *mem, true); in kfd_process_alloc_gpuvm() 815 amdgpu_amdkfd_gpuvm_unmap_memory_from_gpu(kdev->adev, *mem, pdd->drm_priv); in kfd_process_alloc_gpuvm() 818 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(kdev->adev, *mem, pdd->drm_priv, in kfd_process_alloc_gpuvm() 1148 struct kfd_node *kdev; in kfd_process_kunmap_signal_bo() 1151 kdev = kfd_device_by_id(GET_GPU_ID(p->signal_handle)); in kfd_process_kunmap_signal_bo() 1152 if (!kdev) in kfd_process_kunmap_signal_bo() 1157 pdd = kfd_get_process_device_data(kdev, in kfd_process_kunmap_signal_bo() 775 struct kfd_node *kdev = pdd->dev; kfd_process_alloc_gpuvm() local 1145 struct kfd_node *kdev; kfd_process_kunmap_signal_bo() local [all...] |
| H A D | kfd_priv.h | 254 unsigned int kfd_get_num_sdma_engines(struct kfd_node *kdev); 255 unsigned int kfd_get_num_xgmi_sdma_engines(struct kfd_node *kdev); 1249 int kfd_topology_enum_kfd_devices(uint8_t idx, struct kfd_node **kdev);
|
| /linux/drivers/reset/ |
| H A D | reset-brcmstb.c | 85 struct device *kdev = &pdev->dev; in brcmstb_reset_probe() local 89 priv = devm_kzalloc_obj(kdev, *priv); in brcmstb_reset_probe() 97 dev_set_drvdata(kdev, priv); in brcmstb_reset_probe() 103 priv->rcdev.of_node = kdev->of_node; in brcmstb_reset_probe() 106 return devm_reset_controller_register(kdev, &priv->rcdev); in brcmstb_reset_probe()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_gt_ccs_mode.c | 93 num_cslices_show(struct device *kdev, in gt_ccs_mode_default() 96 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in gt_ccs_mode_default() 104 ccs_mode_show(struct device *kdev, in num_cslices_show() 107 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); 113 ccs_mode_store(struct device *kdev, struct device_attribute *attr, in ccs_mode_show() 116 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in ccs_mode_show() 99 num_cslices_show(struct device * kdev,struct device_attribute * attr,char * buf) num_cslices_show() argument 110 ccs_mode_show(struct device * kdev,struct device_attribute * attr,char * buf) ccs_mode_show() argument 119 ccs_mode_store(struct device * kdev,struct device_attribute * attr,const char * buff,size_t count) ccs_mode_store() argument
|
| /linux/drivers/net/ethernet/broadcom/asp2/ |
| H A D | bcmasp_intf.c | 244 struct device *kdev; in bcmasp_xmit() 247 kdev = &intf->parent->pdev->dev; in bcmasp_xmit() 281 mapping = dma_map_single(kdev, skb->data, size, in bcmasp_xmit() 286 mapping = skb_frag_dma_map(kdev, frag, 0, size, in bcmasp_xmit() 290 if (dma_mapping_error(kdev, mapping)) { in bcmasp_xmit() 295 dma_unmap_single(kdev, in bcmasp_xmit() 417 struct device *kdev = &intf->parent->pdev->dev; in bcmasp_tx_reclaim() 430 dma_unmap_single(kdev, mapping, in bcmasp_tx_reclaim() 493 struct device *kdev = &intf->parent->pdev->dev; in bcmasp_rx_poll() 539 dma_sync_single_for_cpu(kdev, DESC_ADD in bcmasp_rx_poll() 245 struct device *kdev; bcmasp_xmit() local 404 struct device *kdev = &intf->parent->pdev->dev; bcmasp_tx_reclaim() local 471 struct device *kdev = &intf->parent->pdev->dev; bcmasp_rx_poll() local 699 struct device *kdev = &intf->parent->pdev->dev; bcmasp_alloc_rx_buffers() local 737 struct device *kdev = &intf->parent->pdev->dev; bcmasp_reclaim_rx_buffers() local 748 struct device *kdev = &intf->parent->pdev->dev; bcmasp_alloc_buffers() local 788 struct device *kdev = &intf->parent->pdev->dev; bcmasp_reclaim_free_buffers() local 1389 struct device *kdev = &intf->parent->pdev->dev; bcmasp_interface_suspend() local 1442 struct device *kdev = &intf->parent->pdev->dev; bcmasp_interface_resume() local [all...] |
| /linux/drivers/net/ethernet/broadcom/genet/ |
| H A D | bcmgenet_wol.c | 43 struct device *kdev = &priv->pdev->dev; in bcmgenet_get_wol() local 52 if (!device_can_wakeup(kdev)) in bcmgenet_get_wol() 75 struct device *kdev = &priv->pdev->dev; in bcmgenet_set_wol() local 85 if (!device_can_wakeup(kdev)) in bcmgenet_set_wol() 96 device_set_wakeup_enable(kdev, 1); in bcmgenet_set_wol() 104 device_set_wakeup_enable(kdev, 0); in bcmgenet_set_wol()
|
| H A D | bcmgenet.c | 1989 struct device *kdev = &priv->pdev->dev; in bcmgenet_tx_reclaim() 2005 bcmgenet_free_tx_cb(kdev, cb_ptr); in bcmgenet_tx_reclaim() 2128 struct device *kdev = &priv->pdev->dev; in bcmgenet_xmit() 2185 mapping = dma_map_single(kdev, skb->data, size, in bcmgenet_xmit() 2191 mapping = skb_frag_dma_map(kdev, frag, 0, size, in bcmgenet_xmit() 2195 ret = dma_mapping_error(kdev, mapping); in bcmgenet_xmit() 2257 bcmgenet_free_tx_cb(kdev, tx_cb_ptr); in bcmgenet_xmit() 2636 struct device *kdev = &priv->pdev->dev; in init_umac() 2698 dev_dbg(kdev, "done init umac\n"); in init_umac() 1986 struct device *kdev = &priv->pdev->dev; bcmgenet_tx_reclaim() local 2130 struct device *kdev = &priv->pdev->dev; bcmgenet_xmit() local 2637 struct device *kdev = &priv->pdev->dev; init_umac() local
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | bcm63xx_enet.c | 304 struct device *kdev; in bcm_enet_receive_queue() local 309 kdev = &priv->pdev->dev; in bcm_enet_receive_queue() 381 dma_sync_single_for_cpu(kdev, desc->address, in bcm_enet_receive_queue() 384 dma_sync_single_for_device(kdev, desc->address, in bcm_enet_receive_queue() 387 dma_unmap_single(kdev, desc->address, in bcm_enet_receive_queue() 869 static void bcm_enet_free_rx_buf_ring(struct device *kdev, struct bcm_enet_priv *priv) in bcm_enet_free_rx_buf_ring() argument 880 dma_unmap_single(kdev, desc->address, priv->rx_buf_size, in bcm_enet_free_rx_buf_ring() 894 struct device *kdev; in bcm_enet_open() local 903 kdev = &priv->pdev->dev; in bcm_enet_open() 914 dev_err(kdev, "coul in bcm_enet_open() 1188 struct device *kdev; bcm_enet_stop() local 2102 struct device *kdev; bcm_enetsw_open() local 2342 struct device *kdev; bcm_enetsw_stop() local [all...] |
| H A D | bcmsysport.c | 529 struct device *kdev = &priv->pdev->dev; in bcm_sysport_set_wol() local 532 if (!device_can_wakeup(kdev)) in bcm_sysport_set_wol() 543 device_set_wakeup_enable(kdev, 1); in bcm_sysport_set_wol() 548 device_set_wakeup_enable(kdev, 0); in bcm_sysport_set_wol() 666 struct device *kdev = &priv->pdev->dev; in bcm_sysport_rx_refill() local 680 mapping = dma_map_single(kdev, skb->data, in bcm_sysport_rx_refill() 682 if (dma_mapping_error(kdev, mapping)) { in bcm_sysport_rx_refill() 692 dma_unmap_single(kdev, dma_unmap_addr(cb, dma_addr), in bcm_sysport_rx_refill() 859 struct device *kdev = &priv->pdev->dev; in bcm_sysport_tx_reclaim_one() local 863 dma_unmap_single(kdev, dma_unmap_add in bcm_sysport_tx_reclaim_one() 1289 struct device *kdev = &priv->pdev->dev; bcm_sysport_xmit() local [all...] |
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | sysfs_engines.c | 502 struct device *kdev = i915->drm.primary->kdev; in intel_engines_add_sysfs() local 506 dir = kobject_create_and_add("engine", &kdev->kobj); in intel_engines_add_sysfs() 534 dev_warn(kdev, "Failed to add sysfs engine '%s'\n", in intel_engines_add_sysfs()
|
| H A D | intel_gt_sysfs.c | 51 return >->i915->drm.primary->kdev->kobj; in gt_get_parent_obj()
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_sysfs.h | 12 struct drm_i915_private *kdev_minor_to_i915(struct device *kdev);
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_drv.c | 1476 static int vmw_pm_suspend(struct device *kdev) in vmw_pm_suspend() argument 1478 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_suspend() 1486 static int vmw_pm_resume(struct device *kdev) in vmw_pm_resume() argument 1488 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_resume() 1493 static int vmw_pm_freeze(struct device *kdev) in vmw_pm_freeze() argument 1495 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_freeze() 1535 static int vmw_pm_restore(struct device *kdev) in vmw_pm_restore() argument 1537 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_restore()
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_backlight.c | 358 bl->dev = backlight_device_register(backlight_name, connector->kdev, in nouveau_backlight_init()
|
| /linux/drivers/gpu/drm/i915/gvt/ |
| H A D | gtt.c | 680 struct device *kdev = spt->vgpu->gvt->gt->i915->drm.dev; in ppgtt_free_spt() local 684 dma_unmap_page(kdev, spt->shadow_page.mfn << I915_GTT_PAGE_SHIFT, 4096, in ppgtt_free_spt() 765 struct device *kdev = vgpu->gvt->gt->i915->drm.dev; in ppgtt_alloc_spt() local 788 daddr = dma_map_page(kdev, spt->shadow_page.page, in ppgtt_alloc_spt() 790 if (dma_mapping_error(kdev, daddr)) { in ppgtt_alloc_spt() 805 dma_unmap_page(kdev, daddr, PAGE_SIZE, DMA_BIDIRECTIONAL); in ppgtt_alloc_spt()
|
| /linux/include/drm/ |
| H A D | drm_connector.h | 2296 /** @kdev: kernel device for sysfs attributes */ 2297 struct device *kdev; 2109 struct device *kdev; global() member
|
| /linux/drivers/gpu/drm/gud/ |
| H A D | gud_connector.c | 140 bd = backlight_device_register(name, connector->kdev, connector, in gud_connector_backlight_register()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_backlight.c | 549 backlight_device_register(bl_name, aconnector->base.kdev, dm, in amdgpu_dm_register_backlight_device()
|