Home
last modified time | relevance | path

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

123

/linux/drivers/soc/ti/
A Dknav_qmss_queue.c55 (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()
767 if (!kdev) in knav_pool_create()
802 pool->kdev = kdev; in knav_pool_create()
1226 range->kdev = kdev; in knav_setup_queue_range()
1694 inst->kdev = kdev; in knav_queue_init_queue()
1720 size = (1 << kdev->inst_shift) * kdev->num_queues_in_use; in knav_queue_init_queues()
[all …]
A Dknav_qmss_acc.c26 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 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
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 Dknav_dma.c424 if (!kdev) { in knav_dma_open_channel()
510 if (!kdev) { in knav_dma_close_channel()
530 struct device *dev = kdev->dev; in pktdma_get_regs()
581 struct device *dev = kdev->dev; in pktdma_init_chan()
739 kdev = devm_kzalloc(dev, in knav_dma_probe()
741 if (!kdev) { in knav_dma_probe()
746 kdev->dev = dev; in knav_dma_probe()
747 INIT_LIST_HEAD(&kdev->list); in knav_dma_probe()
749 pm_runtime_enable(kdev->dev); in knav_dma_probe()
767 if (list_empty(&kdev->list)) { in knav_dma_probe()
[all …]
/linux/drivers/gpu/drm/i915/
A Di915_sysfs.c167 struct device *kdev = kobj_to_dev(kobj); in i915_l3_read() local
195 struct device *kdev = kobj_to_dev(kobj); in i915_l3_write() local
444 struct device *kdev = kobj_to_dev(kobj); in error_state_read() local
504 struct device *kdev = dev_priv->drm.primary->kdev; in i915_setup_sysfs() local
509 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs()
516 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs()
523 ret = sysfs_merge_group(&kdev->kobj, in i915_setup_sysfs()
537 ret = device_create_bin_file(kdev, in i915_setup_sysfs()
553 i915_setup_error_capture(kdev); in i915_setup_sysfs()
560 struct device *kdev = dev_priv->drm.primary->kdev; in i915_teardown_sysfs() local
[all …]
A Dintel_runtime_pm.c488 struct device *kdev = rpm->kdev; in __intel_runtime_pm_put() local
494 pm_runtime_mark_last_busy(kdev); in __intel_runtime_pm_put()
495 pm_runtime_put_autosuspend(kdev); in __intel_runtime_pm_put()
561 struct device *kdev = rpm->kdev; in intel_runtime_pm_enable() local
574 pm_runtime_mark_last_busy(kdev); in intel_runtime_pm_enable()
586 ret = pm_runtime_get_sync(kdev); in intel_runtime_pm_enable()
598 pm_runtime_put_autosuspend(kdev); in intel_runtime_pm_enable()
606 struct device *kdev = rpm->kdev; in intel_runtime_pm_disable() local
615 pm_runtime_put(kdev); in intel_runtime_pm_disable()
638 struct device *kdev = &pdev->dev; in intel_runtime_pm_init_early() local
[all …]
A Di915_drv.c1381 static int i915_pm_prepare(struct device *kdev) in i915_pm_prepare() argument
1396 static int i915_pm_suspend(struct device *kdev) in i915_pm_suspend() argument
1450 static int i915_pm_resume(struct device *kdev) in i915_pm_resume() argument
1461 static int i915_pm_freeze(struct device *kdev) in i915_pm_freeze() argument
1498 static int i915_pm_thaw_early(struct device *kdev) in i915_pm_thaw_early() argument
1500 return i915_pm_resume_early(kdev); in i915_pm_thaw_early()
1503 static int i915_pm_thaw(struct device *kdev) in i915_pm_thaw() argument
1505 return i915_pm_resume(kdev); in i915_pm_thaw()
1511 return i915_pm_resume_early(kdev); in i915_pm_restore_early()
1514 static int i915_pm_restore(struct device *kdev) in i915_pm_restore() argument
[all …]
A 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/drivers/gpu/drm/
A Ddrm_sysfs.c322 struct device *kdev; in drm_sysfs_connector_add() local
325 if (connector->kdev) in drm_sysfs_connector_add()
328 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in drm_sysfs_connector_add()
329 if (!kdev) in drm_sysfs_connector_add()
335 kdev->parent = dev->primary->kdev; in drm_sysfs_connector_add()
353 connector->kdev = kdev; in drm_sysfs_connector_add()
361 put_device(kdev); in drm_sysfs_connector_add()
454 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in drm_sysfs_minor_alloc()
455 if (!kdev) in drm_sysfs_minor_alloc()
470 return kdev; in drm_sysfs_minor_alloc()
[all …]
A 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/drivers/net/ethernet/broadcom/genet/
A Dbcmmii.c190 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_config() local
291 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_probe() local
292 struct device_node *dn = kdev->of_node; in bcmgenet_mii_probe()
345 if (has_acpi_companion(kdev)) { in bcmgenet_mii_probe()
402 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_of_find_mdio() local
422 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_pdata_init() local
515 struct device *kdev = &priv->pdev->dev; in bcmgenet_phy_interface_init() local
575 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_pd_init() local
627 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_bus_init() local
628 struct device_node *dn = kdev->of_node; in bcmgenet_mii_bus_init()
[all …]
A 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/drivers/cpuidle/
A Dsysfs.c157 return kdev->dev; in to_cpuidle_device()
200 complete(&kdev->kobj_unregister); in cpuidle_sysfs_release()
620 &kdev->kobj, "driver"); in cpuidle_add_driver_sysfs()
706 kdev = kzalloc(sizeof(*kdev), GFP_KERNEL); in cpuidle_add_sysfs()
707 if (!kdev) in cpuidle_add_sysfs()
709 kdev->dev = dev; in cpuidle_add_sysfs()
716 kobject_put(&kdev->kobj); in cpuidle_add_sysfs()
717 kfree(kdev); in cpuidle_add_sysfs()
721 dev->kobj_dev = kdev; in cpuidle_add_sysfs()
735 kobject_put(&kdev->kobj); in cpuidle_remove_sysfs()
[all …]
/linux/drivers/reset/
A 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/drivers/fpga/
A 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/drivers/gpu/drm/amd/amdkfd/
A Dkfd_crat.c1873 pci_dev_id(kdev->pdev); in kfd_find_numa_node_in_srat()
1962 struct kfd_dev *kdev, in kfd_fill_gpu_direct_io_link_to_cpu() argument
1978 if (kfd_dev_is_large_bar(kdev)) in kfd_fill_gpu_direct_io_link_to_cpu()
1996 kdev->kgd, NULL, true); in kfd_fill_gpu_direct_io_link_to_cpu()
2012 kfd_find_numa_node_in_srat(kdev); in kfd_fill_gpu_direct_io_link_to_cpu()
2026 struct kfd_dev *kdev, in kfd_fill_gpu_xgmi_link_to_gpu() argument
2137 if (!kfd_iommu_check_device(kdev)) in kfd_create_vcrat_image_gpu()
2157 kdev, HSA_MEM_HEAP_TYPE_FB_PUBLIC, in kfd_create_vcrat_image_gpu()
2219 if (kdev->hive_id) { in kfd_create_vcrat_image_gpu()
2230 &avail_size, kdev, peer_dev->gpu, in kfd_create_vcrat_image_gpu()
[all …]
A 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
A 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()
950 return kfd_iommu_add_perf_counters(kdev); in kfd_add_perf_to_topology()
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
1057 kfd_add_perf_to_topology(kdev); in kfd_topology_init()
1079 kdev = list_first_entry(&topology_device_list, in kfd_topology_init()
1082 kfd_add_non_crat_information(kdev); in kfd_topology_init()
1541 *kdev = NULL; in kfd_topology_enum_kfd_devices()
[all …]
A 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()
A Dkfd_process.c714 struct kfd_dev *kdev = pdd->dev; in kfd_process_alloc_gpuvm() local
717 err = amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu(kdev->kgd, gpu_va, size, in kfd_process_alloc_gpuvm()
722 err = amdgpu_amdkfd_gpuvm_map_memory_to_gpu(kdev->kgd, *mem, in kfd_process_alloc_gpuvm()
727 err = amdgpu_amdkfd_gpuvm_sync_memory(kdev->kgd, *mem, true); in kfd_process_alloc_gpuvm()
734 err = amdgpu_amdkfd_gpuvm_map_gtt_bo_to_kernel(kdev->kgd, in kfd_process_alloc_gpuvm()
748 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(kdev->kgd, *mem, pdd->drm_priv, in kfd_process_alloc_gpuvm()
959 struct kfd_dev *kdev; in kfd_process_kunmap_signal_bo() local
962 kdev = kfd_device_by_id(GET_GPU_ID(p->signal_handle)); in kfd_process_kunmap_signal_bo()
963 if (!kdev) in kfd_process_kunmap_signal_bo()
968 pdd = kfd_get_process_device_data(kdev, p); in kfd_process_kunmap_signal_bo()
[all …]
/linux/drivers/net/ethernet/broadcom/
A Dbcm63xx_enet.c304 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()
2100 struct device *kdev; in bcm_enetsw_open() local
2107 kdev = &priv->pdev->dev; in bcm_enetsw_open()
2341 struct device *kdev; in bcm_enetsw_stop() local
[all …]
/linux/drivers/gpu/drm/i915/display/
A Dintel_audio.c1009 struct drm_i915_private *dev_priv = kdev_to_i915(kdev); in i915_audio_component_get_power()
1038 static void i915_audio_component_put_power(struct device *kdev, in i915_audio_component_put_power() argument
1041 struct drm_i915_private *dev_priv = kdev_to_i915(kdev); in i915_audio_component_put_power()
1054 struct drm_i915_private *dev_priv = kdev_to_i915(kdev); in i915_audio_component_codec_wake_override()
1061 cookie = i915_audio_component_get_power(kdev); in i915_audio_component_codec_wake_override()
1079 i915_audio_component_put_power(kdev, cookie); in i915_audio_component_codec_wake_override()
1085 struct drm_i915_private *dev_priv = kdev_to_i915(kdev); in i915_audio_component_get_cdclk_freq()
1147 struct drm_i915_private *dev_priv = kdev_to_i915(kdev); in i915_audio_component_sync_audio_rate()
1157 cookie = i915_audio_component_get_power(kdev); in i915_audio_component_sync_audio_rate()
1178 i915_audio_component_put_power(kdev, cookie); in i915_audio_component_sync_audio_rate()
[all …]
/linux/drivers/gpu/drm/i915/gt/
A 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/drivers/hid/
A 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()
/linux/drivers/gpu/drm/vmwgfx/
A 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()

Completed in 89 milliseconds

123