Home
last modified time | relevance | path

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

123

/linux/drivers/soc/ti/
H A 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 …]
H 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
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 …]
/linux/drivers/gpu/drm/
H A Ddrm_sysfs.c346 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->parent = dev->primary->kdev; in drm_sysfs_connector_add()
360 kdev->groups = connector_dev_groups; in drm_sysfs_connector_add()
361 kdev->release = drm_sysfs_release; in drm_sysfs_connector_add()
[all …]
H A Ddrm_drv.c123 put_device(minor->kdev); in drm_minor_alloc_release()
166 minor->kdev = drm_sysfs_minor_alloc(minor); in drm_minor_alloc()
167 if (IS_ERR(minor->kdev)) in drm_minor_alloc()
168 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()
598 return kobject_uevent_env(&dev->primary->kdev->kobj, KOBJ_CHANGE, envp); in drm_dev_wedged_event()
1006 ret = sysfs_create_link(minor->kdev->kobj.parent, in create_compat_control_link()
[all …]
/linux/drivers/cpuidle/
H A Dsysfs.c161 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 Dkfd_crat.c1425 static int kfd_fill_gpu_cache_info_from_gfx_config(struct kfd_dev *kdev, in kfd_fill_gpu_cache_info_from_gfx_config() argument
1429 struct amdgpu_device *adev = kdev->adev; in kfd_fill_gpu_cache_info_from_gfx_config()
1513 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
1516 struct amdgpu_device *adev = kdev->adev; in kfd_fill_gpu_cache_info_from_gfx_config_v2()
1579 int kfd_get_gpu_cache_info(struct kfd_node *kdev, struct kfd_gpu_cache_info **pcache_info) in kfd_get_gpu_cache_info() argument
1584 switch (kdev->adev->asic_type) { in kfd_get_gpu_cache_info()
1622 switch (KFD_GC_VERSION(kdev)) { in kfd_get_gpu_cache_info()
1644 kfd_fill_gpu_cache_info_from_gfx_config_v2(kdev->kfd, in kfd_get_gpu_cache_info()
1718 kfd_fill_gpu_cache_info_from_gfx_config(kdev->kfd, in kfd_get_gpu_cache_info()
1984 struct kfd_node *kdev, uint8_t type, uint64_t size, in kfd_fill_gpu_memory_affinity() argument
[all …]
H A Dkfd_topology.c966 struct kfd_topology_device *kdev = in find_system_memory() local
974 list_for_each_entry(mem, &kdev->mem_props, list) { in find_system_memory()
986 static void kfd_add_non_crat_information(struct kfd_topology_device *kdev) in kfd_add_non_crat_information() argument
989 if (!kdev->gpu) { in kfd_add_non_crat_information()
991 dmi_walk(find_system_memory, kdev); in kfd_add_non_crat_information()
1003 struct kfd_topology_device *kdev; in kfd_topology_init() local
1043 kdev = list_first_entry(&temp_topology_device_list, in kfd_topology_init()
1066 kdev = list_first_entry(&topology_device_list, in kfd_topology_init()
1069 kfd_add_non_crat_information(kdev); in kfd_topology_init()
1405 static int kfd_create_indirect_link_prop(struct kfd_topology_device *kdev, int gpu_node) in kfd_create_indirect_link_prop() argument
[all …]
H A Dkfd_crat.h311 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 Dkfd_process.c742 struct kfd_node *kdev = pdd->dev; in kfd_process_alloc_gpuvm() local
745 err = amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu(kdev->adev, gpu_va, size, in kfd_process_alloc_gpuvm()
751 err = amdgpu_amdkfd_gpuvm_map_memory_to_gpu(kdev->adev, *mem, in kfd_process_alloc_gpuvm()
756 err = amdgpu_amdkfd_gpuvm_sync_memory(kdev->adev, *mem, true); in kfd_process_alloc_gpuvm()
774 amdgpu_amdkfd_gpuvm_unmap_memory_from_gpu(kdev->adev, *mem, pdd->drm_priv); in kfd_process_alloc_gpuvm()
777 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(kdev->adev, *mem, pdd->drm_priv, in kfd_process_alloc_gpuvm()
1075 struct kfd_node *kdev; in kfd_process_kunmap_signal_bo() local
1078 kdev = kfd_device_by_id(GET_GPU_ID(p->signal_handle)); in kfd_process_kunmap_signal_bo()
1079 if (!kdev) in kfd_process_kunmap_signal_bo()
1084 pdd = kfd_get_process_device_data(kdev, p); in kfd_process_kunmap_signal_bo()
/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmmii.c197 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_config() local
268 dev_err(kdev, "unknown phy mode: %d\n", priv->phy_interface); in bcmgenet_mii_config()
296 dev_info(kdev, "configuring instance for %s\n", phy_name); in bcmgenet_mii_config()
304 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_probe() local
305 struct device_node *dn = kdev->of_node; in bcmgenet_mii_probe()
358 if (has_acpi_companion(kdev)) { in bcmgenet_mii_probe()
421 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_of_find_mdio() local
431 dev_err(kdev, "unable to find MDIO bus node\n"); in bcmgenet_mii_of_find_mdio()
518 struct device *kdev = &priv->pdev->dev; in bcmgenet_phy_interface_init() local
519 int phy_mode = device_get_phy_mode(kdev); in bcmgenet_phy_interface_init()
[all …]
H A Dbcmgenet_wol.c43 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/drivers/reset/
H 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()
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 Dxe_gt_ccs_mode.c93 num_cslices_show(struct device *kdev, in num_cslices_show() argument
96 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in num_cslices_show()
104 ccs_mode_show(struct device *kdev, in ccs_mode_show() argument
107 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in ccs_mode_show()
113 ccs_mode_store(struct device *kdev, struct device_attribute *attr, in ccs_mode_store() argument
116 struct xe_gt *gt = kobj_to_gt(&kdev->kobj); in ccs_mode_store()
/linux/drivers/fpga/
H A Dts73xx-fpga.c103 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/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp_intf.c243 struct device *kdev; in bcmasp_xmit() local
246 kdev = &intf->parent->pdev->dev; in bcmasp_xmit()
273 mapping = dma_map_single(kdev, skb->data, size, in bcmasp_xmit()
278 mapping = skb_frag_dma_map(kdev, frag, 0, size, in bcmasp_xmit()
282 if (dma_mapping_error(kdev, mapping)) { in bcmasp_xmit()
413 struct device *kdev = &intf->parent->pdev->dev; in bcmasp_tx_reclaim() local
424 dma_unmap_single(kdev, mapping, in bcmasp_tx_reclaim()
480 struct device *kdev = &intf->parent->pdev->dev; in bcmasp_rx_poll() local
522 dma_sync_single_for_cpu(kdev, DESC_ADDR(desc->buf), desc->size, in bcmasp_rx_poll()
666 struct device *kdev = &intf->parent->pdev->dev; in bcmasp_alloc_buffers() local
[all …]
/linux/drivers/net/ethernet/broadcom/
H A 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 …]
H A Dbcmsysport.c527 struct device *kdev = &priv->pdev->dev; in bcm_sysport_set_wol() local
530 if (!device_can_wakeup(kdev)) in bcm_sysport_set_wol()
541 device_set_wakeup_enable(kdev, 1); in bcm_sysport_set_wol()
546 device_set_wakeup_enable(kdev, 0); in bcm_sysport_set_wol()
664 struct device *kdev = &priv->pdev->dev; in bcm_sysport_rx_refill() local
678 mapping = dma_map_single(kdev, skb->data, in bcm_sysport_rx_refill()
680 if (dma_mapping_error(kdev, mapping)) { in bcm_sysport_rx_refill()
690 dma_unmap_single(kdev, dma_unmap_addr(cb, dma_addr), in bcm_sysport_rx_refill()
857 struct device *kdev = &priv->pdev->dev; in bcm_sysport_tx_reclaim_one() local
861 dma_unmap_single(kdev, dma_unmap_addr(cb, dma_addr), in bcm_sysport_tx_reclaim_one()
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dradeon_audio.c747 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/drivers/hid/
H A Dhid-cp2112.c888 static ssize_t name##_store(struct device *kdev, \
892 struct hid_device *hdev = to_hid_device(kdev); \
904 static ssize_t name##_show(struct device *kdev, \
907 struct hid_device *hdev = to_hid_device(kdev); \
963 static ssize_t pstr_store(struct device *kdev, struct device_attribute *kattr, in pstr_store() argument
966 struct hid_device *hdev = to_hid_device(kdev); in pstr_store()
992 static ssize_t pstr_show(struct device *kdev, struct device_attribute *kattr, in pstr_show() argument
995 struct hid_device *hdev = to_hid_device(kdev); in pstr_show()
1025 static ssize_t name##_store(struct device *kdev, struct device_attribute *kattr, \
1028 return pstr_store(kdev, kattr, buf, count, _report); \
[all …]
H A Dhid-ft260.c845 static ssize_t name##_show(struct device *kdev, \
849 struct hid_device *hdev = to_hid_device(kdev); \
865 static ssize_t name##_store(struct device *kdev, \
870 struct hid_device *hdev = to_hid_device(kdev); \
931 static ssize_t i2c_reset_store(struct device *kdev, in i2c_reset_store() argument
935 struct hid_device *hdev = to_hid_device(kdev); in i2c_reset_store()
/linux/drivers/gpu/drm/i915/gt/
H A Dsysfs_engines.c502 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 Dintel_gt_sysfs.c51 return &gt->i915->drm.primary->kdev->kobj; in gt_get_parent_obj()
/linux/drivers/gpu/drm/i915/
H A Di915_sysfs.h12 struct drm_i915_private *kdev_minor_to_i915(struct device *kdev);
H A Di915_gpu_error.c2563 struct device *kdev = kobj_to_dev(kobj); in error_state_read() local
2564 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in error_state_read()
2598 struct device *kdev = kobj_to_dev(kobj); in error_state_write() local
2599 struct drm_i915_private *dev_priv = kdev_minor_to_i915(kdev); in error_state_write()
2617 struct device *kdev = i915->drm.primary->kdev; in i915_gpu_error_sysfs_setup() local
2619 if (sysfs_create_bin_file(&kdev->kobj, &error_state_attr)) in i915_gpu_error_sysfs_setup()
2625 struct device *kdev = i915->drm.primary->kdev; in i915_gpu_error_sysfs_teardown() local
2627 sysfs_remove_bin_file(&kdev->kobj, &error_state_attr); in i915_gpu_error_sysfs_teardown()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_drv.c1476 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()

123