| /linux-6.15/drivers/soc/ti/ |
| H A D | knav_qmss_queue.c | 57 (kdev->instances + (idx << kdev->inst_shift)) 209 kdev->base_id + kdev->num_queues > id) { in knav_queue_find_by_id() 432 struct knav_device *kdev = inst->kdev; in knav_queue_debug_show_instance() local 473 dev_name(kdev->dev), kdev->base_id, in knav_queue_debug_show() 474 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() 1723 inst->kdev = kdev; in knav_queue_init_queue() 1749 size = (1 << kdev->inst_shift) * kdev->num_queues_in_use; in knav_queue_init_queues() [all …]
|
| H 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 …]
|
| H 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 …]
|
| H 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() 717 kdev = devm_kzalloc(dev, in knav_dma_probe() 719 if (!kdev) { in knav_dma_probe() 724 kdev->dev = dev; in knav_dma_probe() 725 INIT_LIST_HEAD(&kdev->list); in knav_dma_probe() 727 pm_runtime_enable(kdev->dev); in knav_dma_probe() 744 if (list_empty(&kdev->list)) { in knav_dma_probe() [all …]
|
| /linux-6.15/drivers/gpu/drm/ |
| H A D | drm_sysfs.c | 343 struct device *kdev; in drm_sysfs_connector_add() local 346 if (connector->kdev) in drm_sysfs_connector_add() 349 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in drm_sysfs_connector_add() 350 if (!kdev) in drm_sysfs_connector_add() 356 kdev->parent = dev->primary->kdev; in drm_sysfs_connector_add() 374 connector->kdev = kdev; in drm_sysfs_connector_add() 385 put_device(kdev); in drm_sysfs_connector_add() 517 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in drm_sysfs_minor_alloc() 518 if (!kdev) in drm_sysfs_minor_alloc() 545 return kdev; in drm_sysfs_minor_alloc() [all …]
|
| H A D | drm_drv.c | 122 put_device(minor->kdev); in drm_minor_alloc_release() 165 minor->kdev = drm_sysfs_minor_alloc(minor); in drm_minor_alloc() 166 if (IS_ERR(minor->kdev)) in drm_minor_alloc() 167 return PTR_ERR(minor->kdev); in drm_minor_alloc() 194 ret = device_add(minor->kdev); in drm_minor_register() 219 if (!minor || !device_is_registered(minor->kdev)) in drm_minor_unregister() 225 device_del(minor->kdev); in drm_minor_unregister() 226 dev_set_drvdata(minor->kdev, NULL); /* safety belt */ in drm_minor_unregister() 949 ret = sysfs_create_link(minor->kdev->kobj.parent, in create_compat_control_link() 950 &minor->kdev->kobj, in create_compat_control_link() [all …]
|
| /linux-6.15/drivers/gpu/drm/i915/ |
| H A D | intel_runtime_pm.c | 300 struct device *kdev = rpm->kdev; in __intel_runtime_pm_put() local 306 pm_runtime_mark_last_busy(kdev); in __intel_runtime_pm_put() 307 pm_runtime_put_autosuspend(kdev); in __intel_runtime_pm_put() 371 struct device *kdev = rpm->kdev; in intel_runtime_pm_enable() local 384 pm_runtime_mark_last_busy(kdev); in intel_runtime_pm_enable() 396 ret = pm_runtime_get_sync(kdev); in intel_runtime_pm_enable() 411 pm_runtime_allow(kdev); in intel_runtime_pm_enable() 418 pm_runtime_put_autosuspend(kdev); in intel_runtime_pm_enable() 424 struct device *kdev = rpm->kdev; in intel_runtime_pm_disable() local 433 pm_runtime_put(kdev); in intel_runtime_pm_disable() [all …]
|
| H A D | i915_sysfs.c | 43 struct drm_minor *minor = dev_get_drvdata(kdev); in kdev_minor_to_i915() 66 struct device *kdev = kobj_to_dev(kobj); in i915_l3_read() local 67 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in i915_l3_read() 94 struct device *kdev = kobj_to_dev(kobj); in i915_l3_write() local 95 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in i915_l3_write() 160 struct device *kdev = dev_priv->drm.primary->kdev; in i915_setup_sysfs() local 164 ret = device_create_bin_file(kdev, &dpf_attrs); in i915_setup_sysfs() 170 ret = device_create_bin_file(kdev, in i915_setup_sysfs() 190 struct device *kdev = dev_priv->drm.primary->kdev; in i915_teardown_sysfs() local 194 device_remove_bin_file(kdev, &dpf_attrs_1); in i915_teardown_sysfs() [all …]
|
| H A D | i915_driver.c | 1337 static int i915_pm_prepare(struct device *kdev) in i915_pm_prepare() argument 1352 static int i915_pm_suspend(struct device *kdev) in i915_pm_suspend() argument 1406 static int i915_pm_resume(struct device *kdev) in i915_pm_resume() argument 1416 static void i915_pm_complete(struct device *kdev) in i915_pm_complete() argument 1427 static int i915_pm_freeze(struct device *kdev) in i915_pm_freeze() argument 1466 return i915_pm_resume_early(kdev); in i915_pm_thaw_early() 1469 static int i915_pm_thaw(struct device *kdev) in i915_pm_thaw() argument 1471 return i915_pm_resume(kdev); in i915_pm_thaw() 1477 return i915_pm_resume_early(kdev); in i915_pm_restore_early() 1480 static int i915_pm_restore(struct device *kdev) in i915_pm_restore() argument [all …]
|
| H A D | intel_runtime_pm.h | 43 struct device *kdev; /* points to i915->drm.dev */ member 102 return pm_runtime_suspended(rpm->kdev); in intel_runtime_pm_suspended()
|
| /linux-6.15/drivers/net/ethernet/broadcom/genet/ |
| H A D | bcmmii.c | 196 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_config() local 303 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_probe() local 304 struct device_node *dn = kdev->of_node; in bcmgenet_mii_probe() 357 if (has_acpi_companion(kdev)) { in bcmgenet_mii_probe() 417 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_of_find_mdio() local 437 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_pdata_init() local 534 struct device *kdev = &priv->pdev->dev; in bcmgenet_phy_interface_init() local 594 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_pd_init() local 646 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_bus_init() local 647 struct device_node *dn = kdev->of_node; in bcmgenet_mii_bus_init() [all …]
|
| 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()
|
| /linux-6.15/drivers/cpuidle/ |
| H A D | sysfs.c | 164 return kdev->dev; in to_cpuidle_device() 207 complete(&kdev->kobj_unregister); in cpuidle_sysfs_release() 629 &kdev->kobj, "driver"); in cpuidle_add_driver_sysfs() 715 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in cpuidle_add_sysfs() 716 if (!kdev) in cpuidle_add_sysfs() 718 kdev->dev = dev; in cpuidle_add_sysfs() 725 kobject_put(&kdev->kobj); in cpuidle_add_sysfs() 726 kfree(kdev); in cpuidle_add_sysfs() 730 dev->kobj_dev = kdev; in cpuidle_add_sysfs() 744 kobject_put(&kdev->kobj); in cpuidle_remove_sysfs() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_crat.c | 1584 switch (kdev->adev->asic_type) { in kfd_get_gpu_cache_info() 1622 switch (KFD_GC_VERSION(kdev)) { in kfd_get_gpu_cache_info() 2017 pci_dev_id(kdev->adev->pdev); in kfd_find_numa_node_in_srat() 2109 struct kfd_node *kdev, in kfd_fill_gpu_direct_io_link_to_cpu() argument 2123 if (kfd_dev_is_large_bar(kdev)) in kfd_fill_gpu_direct_io_link_to_cpu() 2131 kdev->adev->smuio.funcs->get_pkg_type(kdev->adev) == in kfd_fill_gpu_direct_io_link_to_cpu() 2167 kfd_find_numa_node_in_srat(kdev); in kfd_fill_gpu_direct_io_link_to_cpu() 2181 struct kfd_node *kdev, in kfd_fill_gpu_xgmi_link_to_gpu() argument 2309 if (kdev->adev->debug_largebar) in kfd_create_vcrat_image_gpu() 2357 if (kdev->kfd->hive_id) { in kfd_create_vcrat_image_gpu() [all …]
|
| H A D | kfd_topology.c | 959 struct kfd_topology_device *kdev = in find_system_memory() local 982 if (!kdev->gpu) { in kfd_add_non_crat_information() 984 dmi_walk(find_system_memory, kdev); in kfd_add_non_crat_information() 996 struct kfd_topology_device *kdev; in kfd_topology_init() local 1062 kfd_add_non_crat_information(kdev); in kfd_topology_init() 1406 if (list_empty(&kdev->io_link_props)) in kfd_create_indirect_link_prop() 1447 kdev->node_props.p2p_links_count++; in kfd_create_indirect_link_prop() 1484 kdev->gpu->adev, in kfd_add_peer_prop() 1803 start = ffs(kdev->xcc_mask) - 1; in kfd_fill_cache_non_crat_info() 2292 *kdev = NULL; in kfd_topology_enum_kfd_devices() [all …]
|
| /linux-6.15/drivers/reset/ |
| H 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() 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-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_gt_ccs_mode.c | 92 num_cslices_show(struct device *kdev, in num_cslices_show() argument 95 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in num_cslices_show() 103 ccs_mode_show(struct device *kdev, in ccs_mode_show() argument 106 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in ccs_mode_show() 112 ccs_mode_store(struct device *kdev, struct device_attribute *attr, in ccs_mode_store() argument 115 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in ccs_mode_store()
|
| /linux-6.15/drivers/fpga/ |
| H A D | ts73xx-fpga.c | 103 struct device *kdev = &pdev->dev; in ts73xx_fpga_probe() local 107 priv = devm_kzalloc(kdev, sizeof(*priv), GFP_KERNEL); in ts73xx_fpga_probe() 111 priv->dev = kdev; in ts73xx_fpga_probe() 117 mgr = devm_fpga_mgr_register(kdev, "TS-73xx FPGA Manager", in ts73xx_fpga_probe()
|
| /linux-6.15/drivers/net/ethernet/broadcom/asp2/ |
| H A D | bcmasp_intf.c | 276 struct device *kdev; in bcmasp_xmit() local 279 kdev = &intf->parent->pdev->dev; in bcmasp_xmit() 306 mapping = dma_map_single(kdev, skb->data, size, in bcmasp_xmit() 315 if (dma_mapping_error(kdev, mapping)) { in bcmasp_xmit() 446 struct device *kdev = &intf->parent->pdev->dev; in bcmasp_tx_reclaim() local 457 dma_unmap_single(kdev, mapping, in bcmasp_tx_reclaim() 513 struct device *kdev = &intf->parent->pdev->dev; in bcmasp_rx_poll() local 701 struct device *kdev = &intf->parent->pdev->dev; in bcmasp_alloc_buffers() local 713 if (dma_mapping_error(kdev, intf->rx_ring_dma)) in bcmasp_alloc_buffers() 751 struct device *kdev = &intf->parent->pdev->dev; in bcmasp_reclaim_free_buffers() local [all …]
|
| /linux-6.15/drivers/accel/ |
| H A D | drm_accel.c | 112 void accel_set_device_instance_params(struct device *kdev, int index) in accel_set_device_instance_params() argument 114 kdev->devt = MKDEV(ACCEL_MAJOR, index); in accel_set_device_instance_params() 115 kdev->class = &accel_class; in accel_set_device_instance_params() 116 kdev->type = &accel_sysfs_device_minor; in accel_set_device_instance_params()
|
| /linux-6.15/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() 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() 2103 struct device *kdev; in bcm_enetsw_open() local 2110 kdev = &priv->pdev->dev; in bcm_enetsw_open() 2344 struct device *kdev; in bcm_enetsw_stop() local [all …]
|
| /linux-6.15/drivers/gpu/drm/i915/display/ |
| H A D | intel_audio.c | 1041 struct intel_display *display = to_intel_display(kdev); in intel_audio_component_get_power() 1070 static void intel_audio_component_put_power(struct device *kdev, in intel_audio_component_put_power() argument 1073 struct intel_display *display = to_intel_display(kdev); in intel_audio_component_put_power() 1087 struct intel_display *display = to_intel_display(kdev); in intel_audio_component_codec_wake_override() 1093 cookie = intel_audio_component_get_power(kdev); in intel_audio_component_codec_wake_override() 1109 intel_audio_component_put_power(kdev, cookie); in intel_audio_component_codec_wake_override() 1115 struct intel_display *display = to_intel_display(kdev); in intel_audio_component_get_cdclk_freq() 1174 struct intel_display *display = to_intel_display(kdev); in intel_audio_component_sync_audio_rate() 1185 cookie = intel_audio_component_get_power(kdev); in intel_audio_component_sync_audio_rate() 1209 intel_audio_component_put_power(kdev, cookie); in intel_audio_component_sync_audio_rate() [all …]
|
| /linux-6.15/include/drm/ |
| H A D | drm_accel.h | 59 void accel_set_device_instance_params(struct device *kdev, int index); 76 static inline void accel_set_device_instance_params(struct device *kdev, int index) in accel_set_device_instance_params() argument
|
| /linux-6.15/drivers/gpu/drm/radeon/ |
| H A D | radeon_audio.c | 747 static int radeon_audio_component_get_eld(struct device *kdev, int port, in radeon_audio_component_get_eld() argument 751 struct drm_device *dev = dev_get_drvdata(kdev); in radeon_audio_component_get_eld() 792 static int radeon_audio_component_bind(struct device *kdev, in radeon_audio_component_bind() argument 795 struct drm_device *dev = dev_get_drvdata(kdev); in radeon_audio_component_bind() 799 if (WARN_ON(!device_link_add(hda_kdev, kdev, DL_FLAG_STATELESS))) in radeon_audio_component_bind() 804 acomp->dev = kdev; in radeon_audio_component_bind() 811 static void radeon_audio_component_unbind(struct device *kdev, in radeon_audio_component_unbind() argument 814 struct drm_device *dev = dev_get_drvdata(kdev); in radeon_audio_component_unbind() 818 device_link_remove(hda_kdev, kdev); in radeon_audio_component_unbind()
|
| /linux-6.15/drivers/hid/ |
| H A D | hid-cp2112.c | 873 static ssize_t name##_store(struct device *kdev, \ 877 struct hid_device *hdev = to_hid_device(kdev); \ 889 static ssize_t name##_show(struct device *kdev, \ 892 struct hid_device *hdev = to_hid_device(kdev); \ 948 static ssize_t pstr_store(struct device *kdev, struct device_attribute *kattr, in pstr_store() argument 951 struct hid_device *hdev = to_hid_device(kdev); in pstr_store() 977 static ssize_t pstr_show(struct device *kdev, struct device_attribute *kattr, in pstr_show() argument 980 struct hid_device *hdev = to_hid_device(kdev); in pstr_show() 1010 static ssize_t name##_store(struct device *kdev, struct device_attribute *kattr, \ 1013 return pstr_store(kdev, kattr, buf, count, _report); \ [all …]
|