Home
last modified time | relevance | path

Searched refs:kdev (Results 1 – 25 of 63) sorted by relevance

123

/Linux-v5.15/drivers/soc/ti/
Dknav_qmss_queue.c26 static struct knav_device *kdev; variable
54 #define knav_queue_idx_to_inst(kdev, idx) \ argument
55 (kdev->instances + (idx << kdev->inst_shift))
61 #define for_each_instance(idx, inst, kdev) \ argument
62 for (idx = 0, inst = kdev->instances; \
63 idx < (kdev)->num_queues_in_use; \
64 idx++, inst = knav_queue_idx_to_inst(kdev, idx))
128 dev_warn(range->kdev->dev, in knav_queue_setup_irq()
193 knav_queue_match_id_to_inst(struct knav_device *kdev, unsigned id) in knav_queue_match_id_to_inst() argument
198 for_each_instance(idx, inst, kdev) { in knav_queue_match_id_to_inst()
[all …]
Dknav_qmss_acc.c20 #define knav_range_offset_to_inst(kdev, range, q) \ argument
21 (range->queue_base_inst + (q << kdev->inst_shift))
26 struct knav_device *kdev = range->kdev; in __knav_acc_notify() local
30 range_base = kdev->base_id + range->queue_base; in __knav_acc_notify()
34 inst = knav_range_offset_to_inst(kdev, range, in __knav_acc_notify()
38 dev_dbg(kdev->dev, "acc-irq: notifying %d\n", in __knav_acc_notify()
45 inst = knav_range_offset_to_inst(kdev, range, queue); in __knav_acc_notify()
46 dev_dbg(kdev->dev, "acc-irq: notifying %d\n", in __knav_acc_notify()
57 struct knav_device *kdev = range->kdev; in knav_acc_set_notify() local
71 dev_dbg(kdev->dev, "setup-notify: re-triggering irq for %s\n", in knav_acc_set_notify()
[all …]
Dknav_qmss.h224 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
349 list_for_each_entry(region, &kdev->regions, list)
351 #define first_region(kdev) \ argument
352 list_first_entry_or_null(&kdev->regions, \
355 #define for_each_queue_range(kdev, range) \ argument
356 list_for_each_entry(range, &kdev->queue_ranges, list)
358 #define first_queue_range(kdev) \ argument
[all …]
Dknav_dma.c135 static struct knav_dma_pool_device *kdev; variable
229 dev_err(kdev->dev, "timeout waiting for teardown\n"); in chan_teardown()
261 dev_dbg(kdev->dev, "channel stopped\n"); in chan_stop()
362 list_for_each_entry(dma, &kdev->list, list) { in knav_dma_debug_show()
389 dev_err(kdev->dev, "No 'ti,navigator-dma-names' property\n"); in of_channel_match_helper()
395 dev_err(kdev->dev, "Missing the phandle args name %s\n", name); in of_channel_match_helper()
400 dev_err(kdev->dev, "Missing args for %s\n", name); in of_channel_match_helper()
424 if (!kdev) { in knav_dma_open_channel()
431 dev_err(kdev->dev, "No DMA instance with name %s\n", name); in knav_dma_open_channel()
435 dev_dbg(kdev->dev, "initializing %s channel %d from DMA %s\n", in knav_dma_open_channel()
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/
Di915_sysfs.c42 static inline struct drm_i915_private *kdev_minor_to_i915(struct device *kdev) in kdev_minor_to_i915() argument
44 struct drm_minor *minor = dev_get_drvdata(kdev); in kdev_minor_to_i915()
61 static ssize_t rc6_enable_show(struct device *kdev, in rc6_enable_show() argument
64 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in rc6_enable_show()
78 static ssize_t rc6_residency_ms_show(struct device *kdev, in rc6_residency_ms_show() argument
81 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in rc6_residency_ms_show()
86 static ssize_t rc6p_residency_ms_show(struct device *kdev, in rc6p_residency_ms_show() argument
89 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in rc6p_residency_ms_show()
94 static ssize_t rc6pp_residency_ms_show(struct device *kdev, in rc6pp_residency_ms_show() argument
97 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in rc6pp_residency_ms_show()
[all …]
Dintel_runtime_pm.c366 ret = pm_runtime_get_sync(rpm->kdev); in __intel_runtime_pm_get()
446 if (pm_runtime_get_if_active(rpm->kdev, ignore_usecount) <= 0) in __intel_runtime_pm_get_if_active()
487 pm_runtime_get_noresume(rpm->kdev); in intel_runtime_pm_get_noresume()
498 struct device *kdev = rpm->kdev; in __intel_runtime_pm_put() local
504 pm_runtime_mark_last_busy(kdev); in __intel_runtime_pm_put()
505 pm_runtime_put_autosuspend(kdev); in __intel_runtime_pm_put()
571 struct device *kdev = rpm->kdev; in intel_runtime_pm_enable() local
581 dev_pm_set_driver_flags(kdev, DPM_FLAG_NO_DIRECT_COMPLETE); in intel_runtime_pm_enable()
583 pm_runtime_set_autosuspend_delay(kdev, 10000); /* 10s */ in intel_runtime_pm_enable()
584 pm_runtime_mark_last_busy(kdev); in intel_runtime_pm_enable()
[all …]
Di915_drv.c1382 static int i915_pm_prepare(struct device *kdev) in i915_pm_prepare() argument
1384 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_pm_prepare()
1387 dev_err(kdev, "DRM not initialized, aborting suspend.\n"); in i915_pm_prepare()
1397 static int i915_pm_suspend(struct device *kdev) in i915_pm_suspend() argument
1399 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_pm_suspend()
1402 dev_err(kdev, "DRM not initialized, aborting suspend.\n"); in i915_pm_suspend()
1412 static int i915_pm_suspend_late(struct device *kdev) in i915_pm_suspend_late() argument
1414 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_pm_suspend_late()
1431 static int i915_pm_poweroff_late(struct device *kdev) in i915_pm_poweroff_late() argument
1433 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_pm_poweroff_late()
[all …]
Di915_utils.c18 struct device *kdev = dev_priv->drm.dev; in __i915_printk() local
33 dev_printk(level, kdev, "%pV", &vaf); in __i915_printk()
35 dev_printk(level, kdev, "[" DRM_NAME ":%ps] %pV", in __i915_printk()
47 dev_notice(kdev, "%s", FDO_BUG_MSG); in __i915_printk()
/Linux-v5.15/drivers/gpu/drm/
Ddrm_sysfs.c277 if (connector->kdev) in drm_sysfs_connector_add()
280 connector->kdev = in drm_sysfs_connector_add()
281 device_create_with_groups(drm_class, dev->primary->kdev, 0, in drm_sysfs_connector_add()
288 if (IS_ERR(connector->kdev)) { in drm_sysfs_connector_add()
289 DRM_ERROR("failed to register connector device: %ld\n", PTR_ERR(connector->kdev)); in drm_sysfs_connector_add()
290 return PTR_ERR(connector->kdev); in drm_sysfs_connector_add()
294 return sysfs_create_link(&connector->kdev->kobj, in drm_sysfs_connector_add()
301 if (!connector->kdev) in drm_sysfs_connector_remove()
305 sysfs_remove_link(&connector->kdev->kobj, "ddc"); in drm_sysfs_connector_remove()
310 device_unregister(connector->kdev); in drm_sysfs_connector_remove()
[all …]
Ddrm_drv.c104 put_device(minor->kdev); in drm_minor_alloc_release()
143 minor->kdev = drm_sysfs_minor_alloc(minor); in drm_minor_alloc()
144 if (IS_ERR(minor->kdev)) in drm_minor_alloc()
145 return PTR_ERR(minor->kdev); in drm_minor_alloc()
169 ret = device_add(minor->kdev); in drm_minor_register()
192 if (!minor || !device_is_registered(minor->kdev)) in drm_minor_unregister()
200 device_del(minor->kdev); in drm_minor_unregister()
201 dev_set_drvdata(minor->kdev, NULL); /* safety belt */ in drm_minor_unregister()
811 ret = sysfs_create_link(minor->kdev->kobj.parent, in create_compat_control_link()
812 &minor->kdev->kobj, in create_compat_control_link()
[all …]
/Linux-v5.15/drivers/net/ethernet/broadcom/genet/
Dbcmmii.c186 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_config() local
255 dev_err(kdev, "unknown phy mode: %d\n", priv->phy_interface); in bcmgenet_mii_config()
279 dev_info(kdev, "configuring instance for %s\n", phy_name); in bcmgenet_mii_config()
287 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_probe() local
288 struct device_node *dn = kdev->of_node; in bcmgenet_mii_probe()
311 if (has_acpi_companion(kdev)) { in bcmgenet_mii_probe()
370 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_of_find_mdio() local
380 dev_err(kdev, "unable to find MDIO bus node\n"); in bcmgenet_mii_of_find_mdio()
390 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_pdata_init() local
391 struct bcmgenet_platform_data *pd = kdev->platform_data; in bcmgenet_mii_pdata_init()
[all …]
Dbcmgenet_wol.c58 struct device *kdev = &priv->pdev->dev; in bcmgenet_set_wol() local
60 if (!device_can_wakeup(kdev)) in bcmgenet_set_wol()
71 device_set_wakeup_enable(kdev, 1); in bcmgenet_set_wol()
77 device_set_wakeup_enable(kdev, 0); in bcmgenet_set_wol()
/Linux-v5.15/drivers/cpuidle/
Dsysfs.c154 struct cpuidle_device_kobj *kdev = in to_cpuidle_device() local
157 return kdev->dev; in to_cpuidle_device()
197 struct cpuidle_device_kobj *kdev = in cpuidle_sysfs_release() local
200 complete(&kdev->kobj_unregister); in cpuidle_sysfs_release()
472 struct cpuidle_device_kobj *kdev = device->kobj_dev; in cpuidle_add_state_sysfs() local
488 &kdev->kobj, "state%d", i); in cpuidle_add_state_sysfs()
607 struct cpuidle_device_kobj *kdev = dev->kobj_dev; in cpuidle_add_driver_sysfs() local
619 &kdev->kobj, "driver"); in cpuidle_add_driver_sysfs()
688 struct cpuidle_device_kobj *kdev; in cpuidle_add_sysfs() local
704 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in cpuidle_add_sysfs()
[all …]
/Linux-v5.15/drivers/reset/
Dreset-brcmstb.c85 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-v5.15/drivers/fpga/
Dts73xx-fpga.c103 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_create(kdev, "TS-73xx FPGA Manager", in ts73xx_fpga_probe()
124 return devm_fpga_mgr_register(kdev, mgr); in ts73xx_fpga_probe()
/Linux-v5.15/drivers/gpu/drm/amd/amdkfd/
Dkfd_crat.c1326 static int kfd_fill_gpu_cache_info(struct kfd_dev *kdev, in kfd_fill_gpu_cache_info() argument
1343 switch (kdev->device_info->asic_family) { in kfd_fill_gpu_cache_info()
1838 struct kfd_dev *kdev, uint8_t type, uint64_t size, in kfd_fill_gpu_memory_affinity() argument
1867 static void kfd_find_numa_node_in_srat(struct kfd_dev *kdev) in kfd_find_numa_node_in_srat() argument
1872 u32 pci_id = pci_domain_nr(kdev->pdev->bus) << 16 | in kfd_find_numa_node_in_srat()
1873 pci_dev_id(kdev->pdev); in kfd_find_numa_node_in_srat()
1948 set_dev_node(&kdev->pdev->dev, numa_node); in kfd_find_numa_node_in_srat()
1962 struct kfd_dev *kdev, in kfd_fill_gpu_direct_io_link_to_cpu() argument
1966 struct amdgpu_device *adev = (struct amdgpu_device *)kdev->kgd; in kfd_fill_gpu_direct_io_link_to_cpu()
1978 if (kfd_dev_is_large_bar(kdev)) in kfd_fill_gpu_direct_io_link_to_cpu()
[all …]
Dkfd_iommu.h41 int kfd_iommu_add_perf_counters(struct kfd_topology_device *kdev);
76 static inline int kfd_iommu_add_perf_counters(struct kfd_topology_device *kdev) in kfd_iommu_add_perf_counters() argument
Dkfd_topology.c926 struct kfd_topology_device *kdev = in find_system_memory() local
933 list_for_each_entry(mem, &kdev->mem_props, list) { in find_system_memory()
947 static int kfd_add_perf_to_topology(struct kfd_topology_device *kdev) in kfd_add_perf_to_topology() argument
950 return kfd_iommu_add_perf_counters(kdev); in kfd_add_perf_to_topology()
957 static void kfd_add_non_crat_information(struct kfd_topology_device *kdev) in kfd_add_non_crat_information() argument
960 if (!kdev->gpu) { in kfd_add_non_crat_information()
962 dmi_walk(find_system_memory, kdev); in kfd_add_non_crat_information()
993 struct kfd_topology_device *kdev; in kfd_topology_init() local
1055 kdev = list_first_entry(&temp_topology_device_list, in kfd_topology_init()
1057 kfd_add_perf_to_topology(kdev); in kfd_topology_init()
[all …]
Dkfd_iommu.c338 int kfd_iommu_add_perf_counters(struct kfd_topology_device *kdev) in kfd_iommu_add_perf_counters() argument
342 if (!(kdev->node_props.capability & HSA_CAP_ATS_PRESENT)) in kfd_iommu_add_perf_counters()
354 list_add_tail(&props->list, &kdev->perf_props); in kfd_iommu_add_perf_counters()
/Linux-v5.15/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c304 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, "could not attach to PHY\n"); in bcm_enet_open()
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/display/
Dintel_audio.c996 static unsigned long i915_audio_component_get_power(struct device *kdev) in i915_audio_component_get_power() argument
998 struct drm_i915_private *dev_priv = kdev_to_i915(kdev); in i915_audio_component_get_power()
1027 static void i915_audio_component_put_power(struct device *kdev, in i915_audio_component_put_power() argument
1030 struct drm_i915_private *dev_priv = kdev_to_i915(kdev); in i915_audio_component_put_power()
1040 static void i915_audio_component_codec_wake_override(struct device *kdev, in i915_audio_component_codec_wake_override() argument
1043 struct drm_i915_private *dev_priv = kdev_to_i915(kdev); in i915_audio_component_codec_wake_override()
1050 cookie = i915_audio_component_get_power(kdev); in i915_audio_component_codec_wake_override()
1068 i915_audio_component_put_power(kdev, cookie); in i915_audio_component_codec_wake_override()
1072 static int i915_audio_component_get_cdclk_freq(struct device *kdev) in i915_audio_component_get_cdclk_freq() argument
1074 struct drm_i915_private *dev_priv = kdev_to_i915(kdev); in i915_audio_component_get_cdclk_freq()
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/gt/
Dsysfs_engines.c498 struct device *kdev = i915->drm.primary->kdev; in intel_engines_add_sysfs() local
502 dir = kobject_create_and_add("engine", &kdev->kobj); in intel_engines_add_sysfs()
530 dev_err(kdev, "Failed to add sysfs engine '%s'\n", in intel_engines_add_sysfs()
/Linux-v5.15/drivers/hid/
Dhid-ft260.c797 static ssize_t name##_show(struct device *kdev, \
801 struct hid_device *hdev = to_hid_device(kdev); \
817 static ssize_t name##_store(struct device *kdev, \
822 struct hid_device *hdev = to_hid_device(kdev); \
883 static ssize_t i2c_reset_store(struct device *kdev, in i2c_reset_store() argument
887 struct hid_device *hdev = to_hid_device(kdev); in i2c_reset_store()
Dhid-cp2112.c867 static ssize_t name##_store(struct device *kdev, \
871 struct hid_device *hdev = to_hid_device(kdev); \
883 static ssize_t name##_show(struct device *kdev, \
886 struct hid_device *hdev = to_hid_device(kdev); \
947 static ssize_t pstr_store(struct device *kdev, in pstr_store() argument
951 struct hid_device *hdev = to_hid_device(kdev); in pstr_store()
979 static ssize_t pstr_show(struct device *kdev, in pstr_show() argument
982 struct hid_device *hdev = to_hid_device(kdev); in pstr_show()
/Linux-v5.15/drivers/gpu/drm/vmwgfx/
Dvmwgfx_drv.c1459 static int vmw_pm_suspend(struct device *kdev) in vmw_pm_suspend() argument
1461 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_suspend()
1469 static int vmw_pm_resume(struct device *kdev) in vmw_pm_resume() argument
1471 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_resume()
1476 static int vmw_pm_freeze(struct device *kdev) in vmw_pm_freeze() argument
1478 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_freeze()
1524 static int vmw_pm_restore(struct device *kdev) in vmw_pm_restore() argument
1526 struct pci_dev *pdev = to_pci_dev(kdev); in vmw_pm_restore()

123