/linux/drivers/soc/ti/ |
H A D | knav_qmss_queue.c | 28 static struct knav_device *kdev; variable 56 #define knav_queue_idx_to_inst(kdev, idx) \ argument 57 (kdev->instances + (idx << kdev->inst_shift)) 63 #define for_each_instance(idx, inst, kdev) \ argument 64 for (idx = 0, inst = kdev->instances; \ 65 idx < (kdev)->num_queues_in_use; \ 66 idx++, inst = knav_queue_idx_to_inst(kdev, idx)) 129 dev_warn(range->kdev->dev, in knav_queue_setup_irq() 194 knav_queue_match_id_to_inst(struct knav_device *kdev, unsigned id) in knav_queue_match_id_to_inst() argument 199 for_each_instance(idx, inst, kdev) { in knav_queue_match_id_to_inst() [all …]
|
H A D | knav_qmss_acc.c | 20 #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 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 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 …]
|
H A D | knav_dma.c | 127 static struct knav_dma_pool_device *kdev; variable 221 dev_err(kdev->dev, "timeout waiting for teardown\n"); in chan_teardown() 253 dev_dbg(kdev->dev, "channel stopped\n"); in chan_stop() 354 list_for_each_entry(dma, &kdev->list, list) { in knav_dma_debug_show() 381 dev_err(kdev->dev, "No 'ti,navigator-dma-names' property\n"); in of_channel_match_helper() 387 dev_err(kdev->dev, "Missing the phandle args name %s\n", name); in of_channel_match_helper() 392 dev_err(kdev->dev, "Missing args for %s\n", name); in of_channel_match_helper() 415 if (!kdev) { in knav_dma_open_channel() 422 dev_err(kdev->dev, "No DMA instance with name %s\n", name); in knav_dma_open_channel() 426 dev_dbg(kdev->dev, "initializing %s channel %d from DMA %s\n", in knav_dma_open_channel() [all …]
|
/linux/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() 353 device_initialize(kdev); in drm_sysfs_connector_add() 354 kdev->class = drm_class; in drm_sysfs_connector_add() 355 kdev->type = &drm_sysfs_device_connector; in drm_sysfs_connector_add() 356 kdev->parent = dev->primary->kdev; in drm_sysfs_connector_add() 357 kdev->groups = connector_dev_groups; in drm_sysfs_connector_add() 358 kdev->release = drm_sysfs_release; in drm_sysfs_connector_add() [all …]
|
H A D | drm_drv.c | 120 put_device(minor->kdev); in drm_minor_alloc_release() 163 minor->kdev = drm_sysfs_minor_alloc(minor); in drm_minor_alloc() 164 if (IS_ERR(minor->kdev)) in drm_minor_alloc() 165 return PTR_ERR(minor->kdev); in drm_minor_alloc() 192 ret = device_add(minor->kdev); in drm_minor_register() 217 if (!minor || !device_is_registered(minor->kdev)) in drm_minor_unregister() 223 device_del(minor->kdev); in drm_minor_unregister() 224 dev_set_drvdata(minor->kdev, NULL); /* safety belt */ in drm_minor_unregister() 881 ret = sysfs_create_link(minor->kdev->kobj.parent, in create_compat_control_link() 882 &minor->kdev->kobj, in create_compat_control_link() [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_sysfs.c | 41 struct drm_i915_private *kdev_minor_to_i915(struct device *kdev) in kdev_minor_to_i915() argument 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() 178 dev_priv->sysfs_gt = kobject_create_and_add("gt", &kdev->kobj); in i915_setup_sysfs() [all …]
|
H A D | i915_driver.c | 1340 static int i915_pm_prepare(struct device *kdev) in i915_pm_prepare() argument 1342 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_pm_prepare() 1345 dev_err(kdev, "DRM not initialized, aborting suspend.\n"); in i915_pm_prepare() 1355 static int i915_pm_suspend(struct device *kdev) in i915_pm_suspend() argument 1357 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_pm_suspend() 1360 dev_err(kdev, "DRM not initialized, aborting suspend.\n"); in i915_pm_suspend() 1370 static int i915_pm_suspend_late(struct device *kdev) in i915_pm_suspend_late() argument 1372 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_pm_suspend_late() 1389 static int i915_pm_poweroff_late(struct device *kdev) in i915_pm_poweroff_late() argument 1391 struct drm_i915_private *i915 = kdev_to_i915(kdev); in i915_pm_poweroff_late() [all …]
|
H A D | i915_sysfs.h | 12 struct drm_i915_private *kdev_minor_to_i915(struct device *kdev);
|
/linux/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmmii.c | 196 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_config() local 267 dev_err(kdev, "unknown phy mode: %d\n", priv->phy_interface); in bcmgenet_mii_config() 295 dev_info(kdev, "configuring instance for %s\n", phy_name); in bcmgenet_mii_config() 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 427 dev_err(kdev, "unable to find MDIO bus node\n"); in bcmgenet_mii_of_find_mdio() 437 struct device *kdev = &priv->pdev->dev; in bcmgenet_mii_pdata_init() local 438 struct bcmgenet_platform_data *pd = kdev->platform_data; in bcmgenet_mii_pdata_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/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_crat.c | 1425 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() 1715 kfd_fill_gpu_cache_info_from_gfx_config(kdev->kfd, in kfd_get_gpu_cache_info() 1981 struct kfd_node *kdev, uint8_t type, uint64_t size, in kfd_fill_gpu_memory_affinity() argument [all …]
|
H A D | kfd_topology.c | 976 struct kfd_topology_device *kdev = in find_system_memory() local 983 list_for_each_entry(mem, &kdev->mem_props, list) { in find_system_memory() 996 static void kfd_add_non_crat_information(struct kfd_topology_device *kdev) in kfd_add_non_crat_information() argument 999 if (!kdev->gpu) { in kfd_add_non_crat_information() 1001 dmi_walk(find_system_memory, kdev); in kfd_add_non_crat_information() 1013 struct kfd_topology_device *kdev; in kfd_topology_init() local 1053 kdev = list_first_entry(&temp_topology_device_list, in kfd_topology_init() 1076 kdev = list_first_entry(&topology_device_list, in kfd_topology_init() 1079 kfd_add_non_crat_information(kdev); in kfd_topology_init() 1408 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 D | kfd_crat.h | 311 int kfd_get_gpu_cache_info(struct kfd_node *kdev, struct kfd_gpu_cache_info **pcache_info); 317 int flags, struct kfd_node *kdev,
|
/linux/drivers/cpuidle/ |
H A D | sysfs.c | 161 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(sizeof(*kdev), GFP_KERNEL); in cpuidle_add_sysfs() [all …]
|
/linux/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/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()
|
H A D | xe_device.h | 20 static inline struct xe_device *kdev_to_xe_device(struct device *kdev) in kdev_to_xe_device() argument 22 struct drm_device *drm = dev_get_drvdata(kdev); in kdev_to_xe_device()
|
/linux/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/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/drivers/gpu/drm/i915/display/ |
H A D | intel_audio.c | 1030 static unsigned long i915_audio_component_get_power(struct device *kdev) in i915_audio_component_get_power() argument 1032 struct intel_display *display = to_intel_display(kdev); in i915_audio_component_get_power() 1062 static void i915_audio_component_put_power(struct device *kdev, in i915_audio_component_put_power() argument 1065 struct intel_display *display = to_intel_display(kdev); in i915_audio_component_put_power() 1077 static void i915_audio_component_codec_wake_override(struct device *kdev, in i915_audio_component_codec_wake_override() argument 1080 struct intel_display *display = to_intel_display(kdev); in i915_audio_component_codec_wake_override() 1087 cookie = i915_audio_component_get_power(kdev); in i915_audio_component_codec_wake_override() 1103 i915_audio_component_put_power(kdev, cookie); in i915_audio_component_codec_wake_override() 1107 static int i915_audio_component_get_cdclk_freq(struct device *kdev) in i915_audio_component_get_cdclk_freq() argument 1109 struct intel_display *display = to_intel_display(kdev); in i915_audio_component_get_cdclk_freq() [all …]
|
/linux/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/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/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 …]
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | sysfs_engines.c | 501 struct device *kdev = i915->drm.primary->kdev; in intel_engines_add_sysfs() local 505 dir = kobject_create_and_add("engine", &kdev->kobj); in intel_engines_add_sysfs() 533 dev_warn(kdev, "Failed to add sysfs engine '%s'\n", in intel_engines_add_sysfs()
|