/linux-6.3-rc2/drivers/soc/ti/ |
A D | knav_qmss_queue.c | 55 (kdev->instances + (idx << kdev->inst_shift)) 208 kdev->base_id + kdev->num_queues > id) { in knav_queue_find_by_id() 431 struct knav_device *kdev = inst->kdev; in knav_queue_debug_show_instance() local 472 dev_name(kdev->dev), kdev->base_id, in knav_queue_debug_show() 473 kdev->base_id + kdev->num_queues - 1); in knav_queue_debug_show() 766 if (!kdev) in knav_pool_create() 801 pool->kdev = kdev; in knav_pool_create() 1224 range->kdev = kdev; in knav_setup_queue_range() 1692 inst->kdev = kdev; in knav_queue_init_queue() 1718 size = (1 << kdev->inst_shift) * kdev->num_queues_in_use; in knav_queue_init_queues() [all …]
|
A D | knav_qmss_acc.c | 26 struct knav_device *kdev = range->kdev; in __knav_acc_notify() local 57 struct knav_device *kdev = range->kdev; in knav_acc_set_notify() local 92 kdev = range->kdev; in knav_acc_int_handler() 129 dev_dbg(kdev->dev, in knav_acc_int_handler() 133 dev_dbg(kdev->dev, in knav_acc_int_handler() 137 dev_dbg(kdev->dev, in knav_acc_int_handler() 198 struct knav_device *kdev = range->kdev; in knav_range_setup_acc_irq() local 221 dev_dbg(kdev->dev, in knav_range_setup_acc_irq() 229 dev_dbg(kdev->dev, in knav_range_setup_acc_irq() 374 struct knav_device *kdev = range->kdev; in knav_acc_init_range() local [all …]
|
A D | knav_qmss.h | 224 struct knav_device *kdev; member 254 struct knav_device *kdev; member 330 struct knav_device *kdev; member 348 #define for_each_region(kdev, region) \ argument 351 #define first_region(kdev) \ argument 352 list_first_entry_or_null(&kdev->regions, \ 358 #define first_queue_range(kdev) \ argument 362 #define for_each_pool(kdev, pool) \ argument 365 #define for_each_pdsp(kdev, pdsp) \ argument 368 #define for_each_qmgr(kdev, qmgr) \ argument [all …]
|
A D | knav_dma.c | 415 if (!kdev) { in knav_dma_open_channel() 500 if (!kdev) { in knav_dma_close_channel() 520 struct device *dev = kdev->dev; in pktdma_get_regs() 571 struct device *dev = kdev->dev; in pktdma_init_chan() 729 kdev = devm_kzalloc(dev, in knav_dma_probe() 731 if (!kdev) { in knav_dma_probe() 736 kdev->dev = dev; in knav_dma_probe() 737 INIT_LIST_HEAD(&kdev->list); in knav_dma_probe() 739 pm_runtime_enable(kdev->dev); in knav_dma_probe() 756 if (list_empty(&kdev->list)) { in knav_dma_probe() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_sysfs.c | 323 struct device *kdev; in drm_sysfs_connector_add() local 326 if (connector->kdev) in drm_sysfs_connector_add() 329 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in drm_sysfs_connector_add() 330 if (!kdev) in drm_sysfs_connector_add() 336 kdev->parent = dev->primary->kdev; in drm_sysfs_connector_add() 354 connector->kdev = kdev; in drm_sysfs_connector_add() 362 put_device(kdev); in drm_sysfs_connector_add() 475 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in drm_sysfs_minor_alloc() 476 if (!kdev) in drm_sysfs_minor_alloc() 503 return kdev; in drm_sysfs_minor_alloc() [all …]
|
A D | drm_drv.c | 108 put_device(minor->kdev); in drm_minor_alloc_release() 155 minor->kdev = drm_sysfs_minor_alloc(minor); in drm_minor_alloc() 156 if (IS_ERR(minor->kdev)) in drm_minor_alloc() 157 return PTR_ERR(minor->kdev); in drm_minor_alloc() 185 ret = device_add(minor->kdev); in drm_minor_register() 212 if (!minor || !device_is_registered(minor->kdev)) in drm_minor_unregister() 224 device_del(minor->kdev); in drm_minor_unregister() 225 dev_set_drvdata(minor->kdev, NULL); /* safety belt */ in drm_minor_unregister() 854 ret = sysfs_create_link(minor->kdev->kobj.parent, in create_compat_control_link() 855 &minor->kdev->kobj, in create_compat_control_link() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/i915/ |
A D | i915_sysfs.c | 67 struct device *kdev = kobj_to_dev(kobj); in i915_l3_read() local 95 struct device *kdev = kobj_to_dev(kobj); in i915_l3_write() local 166 struct device *kdev = kobj_to_dev(kobj); in error_state_read() local 201 struct device *kdev = kobj_to_dev(kobj); in error_state_write() local 221 drm_err(&kdev_minor_to_i915(kdev)->drm, in i915_setup_error_capture() 236 struct device *kdev = dev_priv->drm.primary->kdev; in i915_setup_sysfs() local 246 ret = device_create_bin_file(kdev, in i915_setup_sysfs() 259 i915_setup_error_capture(kdev); in i915_setup_sysfs() 266 struct device *kdev = dev_priv->drm.primary->kdev; in i915_teardown_sysfs() local 268 i915_teardown_error_capture(kdev); in i915_teardown_sysfs() [all …]
|
A D | intel_runtime_pm.c | 489 struct device *kdev = rpm->kdev; in __intel_runtime_pm_put() local 495 pm_runtime_mark_last_busy(kdev); in __intel_runtime_pm_put() 496 pm_runtime_put_autosuspend(kdev); in __intel_runtime_pm_put() 562 struct device *kdev = rpm->kdev; in intel_runtime_pm_enable() local 575 pm_runtime_mark_last_busy(kdev); in intel_runtime_pm_enable() 587 ret = pm_runtime_get_sync(kdev); in intel_runtime_pm_enable() 602 pm_runtime_allow(kdev); in intel_runtime_pm_enable() 609 pm_runtime_put_autosuspend(kdev); in intel_runtime_pm_enable() 617 struct device *kdev = rpm->kdev; in intel_runtime_pm_disable() local 626 pm_runtime_put(kdev); in intel_runtime_pm_disable() [all …]
|
A D | i915_driver.c | 1349 static int i915_pm_prepare(struct device *kdev) in i915_pm_prepare() argument 1364 static int i915_pm_suspend(struct device *kdev) in i915_pm_suspend() argument 1418 static int i915_pm_resume(struct device *kdev) in i915_pm_resume() argument 1429 static int i915_pm_freeze(struct device *kdev) in i915_pm_freeze() argument 1466 static int i915_pm_thaw_early(struct device *kdev) in i915_pm_thaw_early() argument 1468 return i915_pm_resume_early(kdev); in i915_pm_thaw_early() 1471 static int i915_pm_thaw(struct device *kdev) in i915_pm_thaw() argument 1473 return i915_pm_resume(kdev); in i915_pm_thaw() 1479 return i915_pm_resume_early(kdev); in i915_pm_restore_early() 1482 static int i915_pm_restore(struct device *kdev) in i915_pm_restore() argument [all …]
|
A D | i915_utils.c | 20 struct device *kdev = dev_priv->drm.dev; in __i915_printk() local 35 dev_printk(level, kdev, "%pV", &vaf); in __i915_printk() 37 dev_printk(level, kdev, "[" DRM_NAME ":%ps] %pV", in __i915_printk() 49 dev_notice(kdev, "%s", FDO_BUG_MSG); in __i915_printk()
|
/linux-6.3-rc2/drivers/net/ethernet/broadcom/genet/ |
A D | bcmmii.c | 188 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_config() local 293 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_probe() local 294 struct device_node *dn = kdev->of_node; in bcmgenet_mii_probe() 347 if (has_acpi_companion(kdev)) { in bcmgenet_mii_probe() 407 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_of_find_mdio() local 427 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_pdata_init() local 520 struct device *kdev = &priv->pdev->dev; in bcmgenet_phy_interface_init() local 580 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_pd_init() local 632 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_bus_init() local 633 struct device_node *dn = kdev->of_node; in bcmgenet_mii_bus_init() [all …]
|
A D | bcmgenet_wol.c | 43 struct device *kdev = &priv->pdev->dev; in bcmgenet_get_wol() local 45 if (!device_can_wakeup(kdev)) { in bcmgenet_get_wol() 65 struct device *kdev = &priv->pdev->dev; in bcmgenet_set_wol() local 67 if (!device_can_wakeup(kdev)) in bcmgenet_set_wol() 78 device_set_wakeup_enable(kdev, 1); in bcmgenet_set_wol() 86 device_set_wakeup_enable(kdev, 0); in bcmgenet_set_wol()
|
/linux-6.3-rc2/drivers/cpuidle/ |
A D | sysfs.c | 157 return kdev->dev; in to_cpuidle_device() 200 complete(&kdev->kobj_unregister); in cpuidle_sysfs_release() 622 &kdev->kobj, "driver"); in cpuidle_add_driver_sysfs() 708 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in cpuidle_add_sysfs() 709 if (!kdev) in cpuidle_add_sysfs() 711 kdev->dev = dev; in cpuidle_add_sysfs() 718 kobject_put(&kdev->kobj); in cpuidle_add_sysfs() 719 kfree(kdev); in cpuidle_add_sysfs() 723 dev->kobj_dev = kdev; in cpuidle_add_sysfs() 737 kobject_put(&kdev->kobj); in cpuidle_remove_sysfs() [all …]
|
/linux-6.3-rc2/drivers/reset/ |
A D | reset-brcmstb.c | 85 struct device *kdev = &pdev->dev; in brcmstb_reset_probe() local 89 priv = devm_kzalloc(kdev, sizeof(*priv), GFP_KERNEL); in brcmstb_reset_probe() 94 priv->base = devm_ioremap_resource(kdev, res); in brcmstb_reset_probe() 98 dev_set_drvdata(kdev, priv); in brcmstb_reset_probe() 104 priv->rcdev.of_node = kdev->of_node; in brcmstb_reset_probe() 107 return devm_reset_controller_register(kdev, &priv->rcdev); in brcmstb_reset_probe()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/amdkfd/ |
A D | kfd_crat.c | 1412 switch (kdev->adev->asic_type) { in kfd_get_gpu_cache_info() 1450 switch (KFD_GC_VERSION(kdev)) { in kfd_get_gpu_cache_info() 1895 pci_dev_id(kdev->adev->pdev); in kfd_find_numa_node_in_srat() 1984 struct kfd_dev *kdev, in kfd_fill_gpu_direct_io_link_to_cpu() argument 1998 if (kfd_dev_is_large_bar(kdev)) in kfd_fill_gpu_direct_io_link_to_cpu() 2016 kdev->adev, NULL, true); in kfd_fill_gpu_direct_io_link_to_cpu() 2032 kfd_find_numa_node_in_srat(kdev); in kfd_fill_gpu_direct_io_link_to_cpu() 2046 struct kfd_dev *kdev, in kfd_fill_gpu_xgmi_link_to_gpu() argument 2155 if (!kfd_iommu_check_device(kdev)) in kfd_create_vcrat_image_gpu() 2218 if (kdev->hive_id) { in kfd_create_vcrat_image_gpu() [all …]
|
A D | kfd_iommu.h | 42 int kfd_iommu_add_perf_counters(struct kfd_topology_device *kdev); 77 static inline int kfd_iommu_add_perf_counters(struct kfd_topology_device *kdev) in kfd_iommu_add_perf_counters() argument
|
A D | kfd_topology.c | 988 struct kfd_topology_device *kdev = in find_system_memory() local 1022 if (!kdev->gpu) { in kfd_add_non_crat_information() 1024 dmi_walk(find_system_memory, kdev); in kfd_add_non_crat_information() 1055 struct kfd_topology_device *kdev; in kfd_topology_init() local 1119 kfd_add_perf_to_topology(kdev); in kfd_topology_init() 1144 kfd_add_non_crat_information(kdev); in kfd_topology_init() 1445 kdev->node_props.p2p_links_count++; in kfd_create_indirect_link_prop() 1452 if (kfd_dev_is_large_bar(kdev->gpu)) { in kfd_create_indirect_link_prop() 1482 kdev->gpu->adev, in kfd_add_peer_prop() 2128 *kdev = NULL; in kfd_topology_enum_kfd_devices() [all …]
|
A D | kfd_iommu.c | 328 int kfd_iommu_add_perf_counters(struct kfd_topology_device *kdev) in kfd_iommu_add_perf_counters() argument 332 if (!(kdev->node_props.capability & HSA_CAP_ATS_PRESENT)) in kfd_iommu_add_perf_counters() 344 list_add_tail(&props->list, &kdev->perf_props); in kfd_iommu_add_perf_counters()
|
A D | kfd_device.c | 1132 unsigned int kfd_get_num_sdma_engines(struct kfd_dev *kdev) in kfd_get_num_sdma_engines() argument 1135 if (!kdev->adev->gmc.xgmi.supported) in kfd_get_num_sdma_engines() 1136 return kdev->adev->sdma.num_instances; in kfd_get_num_sdma_engines() 1138 return min(kdev->adev->sdma.num_instances, 2); in kfd_get_num_sdma_engines() 1141 unsigned int kfd_get_num_xgmi_sdma_engines(struct kfd_dev *kdev) in kfd_get_num_xgmi_sdma_engines() argument 1144 return kdev->adev->sdma.num_instances - kfd_get_num_sdma_engines(kdev); in kfd_get_num_xgmi_sdma_engines()
|
/linux-6.3-rc2/drivers/fpga/ |
A D | ts73xx-fpga.c | 103 struct device *kdev = &pdev->dev; in ts73xx_fpga_probe() local 108 priv = devm_kzalloc(kdev, sizeof(*priv), GFP_KERNEL); in ts73xx_fpga_probe() 112 priv->dev = kdev; in ts73xx_fpga_probe() 115 priv->io_base = devm_ioremap_resource(kdev, res); in ts73xx_fpga_probe() 119 mgr = devm_fpga_mgr_register(kdev, "TS-73xx FPGA Manager", in ts73xx_fpga_probe()
|
/linux-6.3-rc2/drivers/net/ethernet/broadcom/ |
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() 387 dma_unmap_single(kdev, desc->address, in bcm_enet_receive_queue() 894 struct device *kdev; in bcm_enet_open() local 903 kdev = &priv->pdev->dev; in bcm_enet_open() 1189 struct device *kdev; in bcm_enet_stop() local 1192 kdev = &priv->pdev->dev; in bcm_enet_stop() 2105 struct device *kdev; in bcm_enetsw_open() local 2112 kdev = &priv->pdev->dev; in bcm_enetsw_open() 2346 struct device *kdev; in bcm_enetsw_stop() local [all …]
|
/linux-6.3-rc2/drivers/accel/ |
A D | drm_accel.c | 116 void accel_set_device_instance_params(struct device *kdev, int index) in accel_set_device_instance_params() argument 118 kdev->devt = MKDEV(ACCEL_MAJOR, index); in accel_set_device_instance_params() 119 kdev->class = accel_class; in accel_set_device_instance_params() 120 kdev->type = &accel_sysfs_device_minor; in accel_set_device_instance_params()
|
/linux-6.3-rc2/include/drm/ |
A D | drm_accel.h | 59 void accel_set_device_instance_params(struct device *kdev, int index); 88 static inline void accel_set_device_instance_params(struct device *kdev, int index) in accel_set_device_instance_params() argument
|
/linux-6.3-rc2/drivers/gpu/drm/i915/display/ |
A D | intel_audio.c | 1068 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_audio_component_get_power() 1097 static void i915_audio_component_put_power(struct device *kdev, in i915_audio_component_put_power() argument 1100 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_audio_component_put_power() 1113 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_audio_component_codec_wake_override() 1119 cookie = i915_audio_component_get_power(kdev); in i915_audio_component_codec_wake_override() 1135 i915_audio_component_put_power(kdev, cookie); in i915_audio_component_codec_wake_override() 1141 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_audio_component_get_cdclk_freq() 1200 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_audio_component_sync_audio_rate() 1211 cookie = i915_audio_component_get_power(kdev); in i915_audio_component_sync_audio_rate() 1234 i915_audio_component_put_power(kdev, cookie); in i915_audio_component_sync_audio_rate() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
A D | radeon_audio.c | 745 static int radeon_audio_component_get_eld(struct device *kdev, int port, in radeon_audio_component_get_eld() argument 749 struct drm_device *dev = dev_get_drvdata(kdev); in radeon_audio_component_get_eld() 784 static int radeon_audio_component_bind(struct device *kdev, in radeon_audio_component_bind() argument 787 struct drm_device *dev = dev_get_drvdata(kdev); in radeon_audio_component_bind() 791 if (WARN_ON(!device_link_add(hda_kdev, kdev, DL_FLAG_STATELESS))) in radeon_audio_component_bind() 796 acomp->dev = kdev; in radeon_audio_component_bind() 803 static void radeon_audio_component_unbind(struct device *kdev, in radeon_audio_component_unbind() argument 806 struct drm_device *dev = dev_get_drvdata(kdev); in radeon_audio_component_unbind() 810 device_link_remove(hda_kdev, kdev); in radeon_audio_component_unbind()
|