| /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 | 346 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 D | drm_drv.c | 123 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/gpu/drm/i915/ |
| H A D | intel_runtime_pm.c | 172 ret = pm_runtime_get_sync(rpm->kdev); in __intel_runtime_pm_get() 329 pm_runtime_get_if_active(rpm->kdev) <= 0) || in __intel_runtime_pm_get_if_active() 331 pm_runtime_get_if_in_use(rpm->kdev) <= 0)) in __intel_runtime_pm_get_if_active() 368 pm_runtime_get_noresume(rpm->kdev); in intel_runtime_pm_get_noresume() 379 struct device *kdev = rpm->kdev; in __intel_runtime_pm_put() local 385 pm_runtime_mark_last_busy(kdev); in __intel_runtime_pm_put() 386 pm_runtime_put_autosuspend(kdev); in __intel_runtime_pm_put() 450 struct device *kdev = rpm->kdev; in intel_runtime_pm_enable() local 460 dev_pm_set_driver_flags(kdev, DPM_FLAG_NO_DIRECT_COMPLETE); in intel_runtime_pm_enable() 462 pm_runtime_set_autosuspend_delay(kdev, 10000); /* 10s */ in intel_runtime_pm_enable() [all …]
|
| H A D | i915_sysfs.c | 43 struct drm_i915_private *kdev_minor_to_i915(struct device *kdev) in kdev_minor_to_i915() argument 45 struct drm_minor *minor = dev_get_drvdata(kdev); in kdev_minor_to_i915() 68 struct device *kdev = kobj_to_dev(kobj); in i915_l3_read() local 69 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in i915_l3_read() 96 struct device *kdev = kobj_to_dev(kobj); in i915_l3_write() local 97 struct drm_i915_private *i915 = kdev_minor_to_i915(kdev); in i915_l3_write() 162 struct device *kdev = dev_priv->drm.primary->kdev; in i915_setup_sysfs() local 166 ret = device_create_bin_file(kdev, &dpf_attrs); in i915_setup_sysfs() 172 ret = device_create_bin_file(kdev, in i915_setup_sysfs() 180 dev_priv->sysfs_gt = kobject_create_and_add("gt", &kdev->kobj); in i915_setup_sysfs() [all …]
|
| H A D | intel_runtime_pm.h | 44 struct device *kdev; /* points to i915->drm.dev */ member 103 return pm_runtime_suspended(rpm->kdev); in intel_runtime_pm_suspended()
|
| /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_obj(*kdev); in cpuidle_add_sysfs() [all …]
|
| /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() 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 D | kfd_topology.c | 966 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 …]
|
| /linux/drivers/accel/qaic/ |
| H A D | qaic_sysfs.c | 35 struct device *kdev = to_accel_kdev(qdev->qddev); in set_dbc_state() local 54 kobject_uevent_env(&kdev->kobj, KOBJ_CHANGE, envp); in set_dbc_state() 59 struct device *kdev = to_accel_kdev(qddev); in qaic_sysfs_init() local 78 ret = sysfs_create_file(&kdev->kobj, &dbc_attr->dev_attr.attr); in qaic_sysfs_init() 84 sysfs_remove_file(&kdev->kobj, &dbc_attr->dev_attr.attr); in qaic_sysfs_init() 98 struct device *kdev = to_accel_kdev(qddev); in qaic_sysfs_remove() local 107 sysfs_remove_file(&kdev->kobj, &dbc_attrs[i].dev_attr.attr); in qaic_sysfs_remove()
|
| /linux/drivers/net/ethernet/broadcom/genet/ |
| H A D | bcmmii.c | 197 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 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/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 | 93 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/net/ethernet/broadcom/asp2/ |
| H A D | bcmasp_intf.c | 243 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 …]
|
| H A D | bcmasp_ethtool.c | 167 struct device *kdev = &priv->pdev->dev; in bcmasp_get_wol() local 176 if (!device_can_wakeup(kdev)) in bcmasp_get_wol() 198 struct device *kdev = &priv->pdev->dev; in bcmasp_set_wol() local 208 if (!device_can_wakeup(kdev)) in bcmasp_set_wol()
|
| /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/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() 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/drivers/accel/ |
| H A D | drm_accel.c | 99 void accel_set_device_instance_params(struct device *kdev, int index) in accel_set_device_instance_params() argument 101 kdev->devt = MKDEV(ACCEL_MAJOR, index); in accel_set_device_instance_params() 102 kdev->class = &accel_class; in accel_set_device_instance_params() 103 kdev->type = &accel_sysfs_device_minor; in accel_set_device_instance_params()
|
| /linux/include/drm/ |
| H A D | drm_accel.h | 59 void accel_set_device_instance_params(struct device *kdev, int index); 75 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 | 888 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 …]
|