Home
last modified time | relevance | path

Searched refs:vdev (Results 1 – 25 of 633) sorted by relevance

12345678910>>...26

/linux-6.15/drivers/accel/ivpu/
H A Divpu_hw.c65 vdev->wa.interrupt_clear_with_0 = ivpu_hw_btrs_irqs_clear_with_0_mtl(vdev); in wa_init()
94 vdev->timeout.boot = -1; in timeouts_init()
95 vdev->timeout.jsm = -1; in timeouts_init()
96 vdev->timeout.tdr = -1; in timeouts_init()
157 vdev->hw->ranges.dma = vdev->hw->ranges.user; in memory_ranges_init()
186 ret = wp_enable(vdev); in ivpu_hw_power_up()
238 vdev->hw->d0i3_entry_vpu_ts = ivpu_hw_ip_read_perf_timer_counter(vdev); in save_d0i3_entry_timestamp()
250 if (wp_disable(vdev)) { in ivpu_hw_reset()
286 platform_init(vdev); in ivpu_hw_init()
287 wa_init(vdev); in ivpu_hw_init()
[all …]
H A Divpu_pm.c43 ivpu_ipc_reset(vdev); in ivpu_pm_prepare_cold_boot()
45 ivpu_fw_load(vdev); in ivpu_pm_prepare_cold_boot()
153 struct ivpu_device *vdev = pm->vdev; in ivpu_pm_recovery_work() local
163 ivpu_suspend(vdev); in ivpu_pm_recovery_work()
191 struct ivpu_device *vdev = pm->vdev; in ivpu_job_timeout_work() local
229 ivpu_suspend(vdev); in ivpu_pm_suspend_cb()
264 drm_WARN_ON(&vdev->drm, !xa_empty(&vdev->submitted_jobs_xa)); in ivpu_pm_runtime_suspend_cb()
265 drm_WARN_ON(&vdev->drm, work_pending(&vdev->pm->recovery_work)); in ivpu_pm_runtime_suspend_cb()
272 is_idle = ivpu_hw_is_idle(vdev) || vdev->pm->dct_active_percent; in ivpu_pm_runtime_suspend_cb()
370 pm->vdev = vdev; in ivpu_pm_init()
[all …]
H A Divpu_drv.c72 struct ivpu_device *vdev = file_priv->vdev; in ivpu_file_priv_get() local
100 struct ivpu_device *vdev = file_priv->vdev; in file_priv_release() local
121 struct ivpu_device *vdev = file_priv->vdev; in ivpu_file_priv_put() local
147 struct ivpu_device *vdev = file_priv->vdev; in ivpu_get_param_ioctl() local
243 file_priv->vdev = vdev; in ivpu_open()
547 vdev->hw = drmm_kzalloc(&vdev->drm, sizeof(*vdev->hw), GFP_KERNEL); in ivpu_dev_init()
551 vdev->mmu = drmm_kzalloc(&vdev->drm, sizeof(*vdev->mmu), GFP_KERNEL); in ivpu_dev_init()
555 vdev->fw = drmm_kzalloc(&vdev->drm, sizeof(*vdev->fw), GFP_KERNEL); in ivpu_dev_init()
559 vdev->ipc = drmm_kzalloc(&vdev->drm, sizeof(*vdev->ipc), GFP_KERNEL); in ivpu_dev_init()
563 vdev->pm = drmm_kzalloc(&vdev->drm, sizeof(*vdev->pm), GFP_KERNEL); in ivpu_dev_init()
[all …]
H A Divpu_hw_ip.c201 ret = wait_for_ip_bar(vdev); in ivpu_hw_ip_host_ss_configure()
206 host_ss_rst_clr(vdev); in ivpu_hw_ip_host_ss_configure()
706 pwr_island_delay_set(vdev); in ivpu_hw_ip_pwr_domain_enable()
707 pwr_island_enable(vdev); in ivpu_hw_ip_pwr_domain_enable()
721 host_ss_clk_enable(vdev); in ivpu_hw_ip_pwr_domain_enable()
723 host_ss_rst_enable(vdev); in ivpu_hw_ip_pwr_domain_enable()
834 vdev->fw->entry_point == vdev->fw->cold_boot_entry_point ? "cold boot" : "resume"); in soc_cpu_boot_37xx()
900 ret = soc_cpu_enable(vdev); in soc_cpu_boot_40xx()
1105 irq_wdt_mss_handler(vdev); in ivpu_hw_ip_irq_handler_37xx()
1169 db_set_37xx(vdev, db_id); in ivpu_hw_ip_db_set()
[all …]
H A Divpu_fw.c77 ret = request_firmware(&vdev->fw->file, ivpu_firmware, vdev->drm.dev); in ivpu_fw_request()
87 ret = firmware_request_nowarn(&vdev->fw->file, fw_names[i].name, vdev->drm.dev); in ivpu_fw_request()
322 fw->mem = ivpu_bo_create(vdev, &vdev->gctx, &fw_range, fw->runtime_size, in ivpu_fw_mem_init()
329 ret = ivpu_mmu_context_set_pages_ro(vdev, &vdev->gctx, fw->read_only_addr, in ivpu_fw_mem_init()
358 fw->mem_shave_nn = ivpu_bo_create(vdev, &vdev->gctx, &vdev->hw->ranges.shave, in ivpu_fw_mem_init()
404 ret = ivpu_fw_parse(vdev); in ivpu_fw_init()
408 ivpu_fw_init_wa(vdev); in ivpu_fw_init()
414 ivpu_fw_load(vdev); in ivpu_fw_init()
419 ivpu_fw_release(vdev); in ivpu_fw_init()
425 ivpu_fw_mem_fini(vdev); in ivpu_fw_fini()
[all …]
H A Divpu_hw.h53 int ivpu_hw_init(struct ivpu_device *vdev);
66 return vdev->hw->irq.btrs_irq_handler(vdev, irq); in ivpu_hw_btrs_irq_handler()
71 return vdev->hw->irq.ip_irq_handler(vdev, irq); in ivpu_hw_ip_irq_handler()
92 return ivpu_hw_btrs_dpu_freq_get(vdev); in ivpu_hw_dpu_freq_get()
97 ivpu_hw_ip_irq_clear(vdev); in ivpu_hw_irq_clear()
102 return vdev->hw->pll.profiling_freq; in ivpu_hw_profiling_freq_get()
107 ivpu_hw_ip_diagnose_failure(vdev); in ivpu_hw_diagnose_failure()
108 ivpu_hw_btrs_diagnose_failure(vdev); in ivpu_hw_diagnose_failure()
128 return ivpu_hw_btrs_is_idle(vdev); in ivpu_hw_is_idle()
138 ivpu_hw_ip_ipc_tx_set(vdev, vpu_addr); in ivpu_hw_ipc_tx_set()
[all …]
H A Divpu_hw_btrs.c108 freq_ratios_init_mtl(vdev); in ivpu_hw_btrs_freq_ratios_init()
110 freq_ratios_init_lnl(vdev); in ivpu_hw_btrs_freq_ratios_init()
183 return info_init_mtl(vdev); in ivpu_hw_btrs_info_init()
185 return info_init_lnl(vdev); in ivpu_hw_btrs_info_init()
268 wp_request_mtl(vdev, wp); in wp_request()
270 wp_request_lnl(vdev, wp); in wp_request()
277 ret = wp_request_sync(vdev); in wp_request_send()
283 wp_request(vdev, wp); in wp_request_send()
517 return ip_reset_mtl(vdev); in ivpu_hw_btrs_ip_reset()
519 return ip_reset_lnl(vdev); in ivpu_hw_btrs_ip_reset()
[all …]
H A Divpu_job.c80 struct ivpu_device *vdev = file_priv->vdev; in ivpu_cmdq_alloc() local
113 struct ivpu_device *vdev = file_priv->vdev; in ivpu_cmdq_create() local
146 struct ivpu_device *vdev = file_priv->vdev; in ivpu_hws_cmdq_init() local
165 struct ivpu_device *vdev = file_priv->vdev; in ivpu_register_db() local
214 struct ivpu_device *vdev = file_priv->vdev; in ivpu_cmdq_register() local
242 struct ivpu_device *vdev = file_priv->vdev; in ivpu_cmdq_unregister() local
385 struct ivpu_device *vdev = job->vdev; in ivpu_cmdq_push_job() local
461 fence->vdev = vdev; in ivpu_fence_create()
470 struct ivpu_device *vdev = job->vdev; in ivpu_job_destroy() local
495 job->vdev = vdev; in ivpu_job_create()
[all …]
H A Divpu_ipc.c30 ivpu_dbg(vdev, IPC, in ivpu_ipc_msg_dump()
41 ivpu_dbg(vdev, JSM, in ivpu_jsm_msg_dump()
133 ivpu_hw_ipc_tx_set(vdev, vpu_addr); in ivpu_ipc_tx()
305 drm_WARN_ON(&vdev->drm, pm_runtime_status_suspended(vdev->drm.dev) && in ivpu_ipc_send_receive_internal()
341 ret = ivpu_rpm_get(vdev); in ivpu_ipc_send_receive()
351 vdev->timeout.jsm); in ivpu_ipc_send_receive()
356 ivpu_rpm_put(vdev); in ivpu_ipc_send_receive()
366 ret = ivpu_rpm_get(vdev); in ivpu_ipc_send_and_wait()
382 ivpu_rpm_put(vdev); in ivpu_ipc_send_and_wait()
525 ivpu_ipc_reset(vdev); in ivpu_ipc_init()
[all …]
H A Divpu_hw_btrs.h20 int ivpu_hw_btrs_info_init(struct ivpu_device *vdev);
21 void ivpu_hw_btrs_freq_ratios_init(struct ivpu_device *vdev);
25 int ivpu_hw_btrs_d0i3_enable(struct ivpu_device *vdev);
26 int ivpu_hw_btrs_d0i3_disable(struct ivpu_device *vdev);
28 bool ivpu_hw_btrs_is_idle(struct ivpu_device *vdev);
29 int ivpu_hw_btrs_wait_for_idle(struct ivpu_device *vdev);
30 int ivpu_hw_btrs_ip_reset(struct ivpu_device *vdev);
32 void ivpu_hw_btrs_ats_print_lnl(struct ivpu_device *vdev);
35 u32 ivpu_hw_btrs_dpu_freq_get(struct ivpu_device *vdev);
45 void ivpu_hw_btrs_irq_enable(struct ivpu_device *vdev);
[all …]
/linux-6.15/drivers/vfio/
H A Diommufd.c28 return vdev->ops->bind_iommufd(vdev, ictx, &df->devid); in vfio_df_iommufd_bind()
48 return vdev->ops->attach_ioas(vdev, &ioas_id); in vfio_iommufd_compat_attach_ioas()
61 vdev->ops->unbind_iommufd(vdev); in vfio_df_iommufd_unbind()
66 if (vdev->iommufd_device) in vfio_iommufd_device_ictx()
74 if (vdev->iommufd_device) in vfio_iommufd_device_id()
121 vdev->iommufd_device = idev; in vfio_iommufd_physical_bind()
122 ida_init(&vdev->pasids); in vfio_iommufd_physical_bind()
156 if (vdev->iommufd_attached) in vfio_iommufd_physical_attach_ioas()
173 if (WARN_ON(!vdev->iommufd_device) || !vdev->iommufd_attached) in vfio_iommufd_physical_detach_ioas()
235 if (vdev->ops->dma_unmap) in vfio_emulated_unmap()
[all …]
/linux-6.15/drivers/net/ethernet/cisco/enic/
H A Dvnic_dev.c445 memset(vdev->args, 0, sizeof(vdev->args)); in vnic_dev_cmd_proxy()
447 vdev->args[0] = vdev->proxy_index; in vnic_dev_cmd_proxy()
480 err = vdev->devcmd_rtn(vdev, cmd, wait); in vnic_dev_cmd_no_proxy()
833 if (vdev->notify || vdev->notify_pa) { in vnic_dev_notify_set()
871 vdev->notify, vdev->notify_pa); in vnic_dev_notify_unset()
884 if (!vdev->notify || !vdev->notify_sz) in vnic_dev_notify_ready()
889 memcpy(&vdev->notify_copy, vdev->notify, vdev->notify_sz); in vnic_dev_notify_ready()
952 (!err && !(vdev->args[0] && vdev->args[1] && vdev->args[2]))) { in vnic_dev_intr_coal_timer_info()
1034 vdev->notify, vdev->notify_pa); in vnic_dev_unregister()
1038 vdev->stats, vdev->stats_pa); in vnic_dev_unregister()
[all …]
H A Dvnic_dev.h109 void *vnic_dev_priv(struct vnic_dev *vdev);
123 int vnic_dev_fw_info(struct vnic_dev *vdev,
128 int vnic_dev_hang_notify(struct vnic_dev *vdev);
136 int vnic_dev_link_status(struct vnic_dev *vdev);
137 u32 vnic_dev_port_speed(struct vnic_dev *vdev);
138 u32 vnic_dev_msg_lvl(struct vnic_dev *vdev);
139 u32 vnic_dev_mtu(struct vnic_dev *vdev);
140 int vnic_dev_close(struct vnic_dev *vdev);
142 int vnic_dev_disable(struct vnic_dev *vdev);
146 int vnic_dev_deinit(struct vnic_dev *vdev);
[all …]
/linux-6.15/include/linux/
H A Dvirtio_config.h307 return vdev->config->bus_name(vdev); in virtio_bus_name()
322 struct virtio_device *vdev = vq->vdev; in virtqueue_set_affinity() local
406 vdev->config->get((vdev), \
470 vdev->config->get((vdev), \
507 vdev->config->generation(vdev) : 0; in __virtio_cread_many()
515 vdev->config->get(vdev, offset + bytes * i, in __virtio_cread_many()
519 vdev->config->generation(vdev) : 0; in __virtio_cread_many()
535 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread8()
563 vdev->config->set(vdev, offset, &v, sizeof(v)); in virtio_cwrite16()
583 vdev->config->set(vdev, offset, &v, sizeof(v)); in virtio_cwrite32()
[all …]
H A Dvdpa.h515 return dev_get_drvdata(&vdev->dev); in vdpa_get_drvdata()
520 dev_set_drvdata(&vdev->dev, data); in vdpa_set_drvdata()
525 return vdev->dma_dev; in vdpa_get_dma_dev()
533 down_write(&vdev->cf_lock); in vdpa_reset()
534 vdev->features_valid = false; in vdpa_reset()
536 ret = ops->compat_reset(vdev, flags); in vdpa_reset()
538 ret = ops->reset(vdev); in vdpa_reset()
539 up_write(&vdev->cf_lock); in vdpa_reset()
548 vdev->features_valid = true; in vdpa_set_features_unlocked()
558 down_write(&vdev->cf_lock); in vdpa_set_features()
[all …]
/linux-6.15/drivers/scsi/fnic/
H A Dvnic_dev.c431 err = vnic_wq_devcmd2_alloc(vdev, &vdev->devcmd2->wq, in vnic_dev_init_devcmd2()
462 vdev->devcmd2->wq_ctrl = vdev->devcmd2->wq.ctrl; in vnic_dev_init_devcmd2()
508 err = (*vdev->devcmd_rtn)(vdev, cmd, wait); in vnic_dev_cmd_no_proxy()
520 memset(vdev->args, 0, sizeof(vdev->args)); in vnic_dev_cmd()
538 vdev->fw_info = dma_alloc_coherent(&vdev->pdev->dev, in vnic_dev_fw_info()
601 vdev->stats = dma_alloc_coherent(&vdev->pdev->dev, in vnic_dev_stats_dump()
763 vdev->notify = dma_alloc_coherent(&vdev->pdev->dev, in vnic_dev_notify_set()
801 memcpy(&vdev->notify_copy, vdev->notify, in vnic_dev_notify_ready()
885 if (vdev) { in vnic_dev_unregister()
899 vdev->stats, vdev->stats_pa); in vnic_dev_unregister()
[all …]
/linux-6.15/drivers/vfio/pci/
H A Dvfio_pci_core.c609 vdev->region[i].ops->release(vdev, &vdev->region[i]); in vfio_pci_core_disable()
1110 vdev, &vdev->region[i], &caps); in vfio_pci_ioctl_get_region_info()
1283 fill.vdev = &vdev->vdev; in vfio_pci_ioctl_get_pci_hot_reset_info()
1289 mutex_lock(&vdev->vdev.dev_set->lock); in vfio_pci_ioctl_get_pci_hot_reset_info()
1292 mutex_unlock(&vdev->vdev.dev_set->lock); in vfio_pci_ioctl_get_pci_hot_reset_info()
1977 vdev->vdev.ops->name); in vfio_pci_bus_notifier()
2126 if (vdev->vdev.mig_ops) { in vfio_pci_core_register_device()
2134 if (vdev->vdev.log_ops && !(vdev->vdev.log_ops->log_start && in vfio_pci_core_register_device()
2135 vdev->vdev.log_ops->log_stop && in vfio_pci_core_register_device()
2153 ret = vfio_assign_device_set(&vdev->vdev, vdev); in vfio_pci_core_register_device()
[all …]
H A Dvfio_pci_intrs.c92 if (likely(is_intx(vdev) && !vdev->virq_disabled)) { in vfio_send_intx_eventfd()
120 if (vdev->pci_2_3) in __vfio_pci_intx_mask()
134 if (vdev->pci_2_3) in __vfio_pci_intx_mask()
180 if (vdev->pci_2_3) in vfio_pci_intx_unmask_handler()
226 struct vfio_pci_core_device *vdev = ctx->vdev; in vfio_intx_handler() local
277 ctx->vdev = vdev; in vfio_intx_enable()
298 if (vdev->pci_2_3) { in vfio_intx_enable()
571 if (vdev->nointx) in vfio_msi_disable()
669 vfio_send_intx_eventfd(vdev, vfio_irq_ctx_get(vdev, 0)); in vfio_pci_set_intx_trigger()
673 vfio_send_intx_eventfd(vdev, vfio_irq_ctx_get(vdev, 0)); in vfio_pci_set_intx_trigger()
[all …]
/linux-6.15/drivers/scsi/snic/
H A Dvnic_dev.c438 memset(vdev->args, 0, sizeof(vdev->args)); in svnic_dev_cmd()
442 err = (*vdev->devcmd_rtn)(vdev, cmd, wait); in svnic_dev_cmd()
458 vdev->fw_info = dma_alloc_coherent(&vdev->pdev->dev, in svnic_dev_fw_info()
522 vdev->stats = dma_alloc_coherent(&vdev->pdev->dev, in svnic_dev_stats_dump()
595 vdev->notify = dma_alloc_coherent(&vdev->pdev->dev, in svnic_dev_notify_set()
633 memcpy(&vdev->notify_copy, vdev->notify, in vnic_dev_notify_ready()
683 if (vdev) { in svnic_dev_unregister()
697 vdev->stats, vdev->stats_pa); in svnic_dev_unregister()
701 vdev->fw_info, vdev->fw_info_pa); in svnic_dev_unregister()
714 if (!vdev) { in svnic_dev_alloc_discover()
[all …]
/linux-6.15/drivers/vfio/platform/
H A Dvfio_platform_common.c26 #define VFIO_PLATFORM_IS_ACPI(vdev) ((vdev)->acpihid != NULL) argument
61 vdev->name); in vfio_platform_acpi_probe()
117 vdev->of_reset = vfio_platform_lookup_reset(vdev->compat, in vfio_platform_get_reset()
121 vdev->of_reset = vfio_platform_lookup_reset(vdev->compat, in vfio_platform_get_reset()
141 while (vdev->get_resource(vdev, cnt)) in vfio_platform_regions_init()
151 vdev->get_resource(vdev, i); in vfio_platform_regions_init()
210 return vdev->of_reset(vdev); in vfio_platform_call_reset()
227 vdev->device, in vfio_platform_close_device()
259 vdev->device, in vfio_platform_open_device()
647 struct device *dev = vdev->vdev.dev; in vfio_platform_init_common()
[all …]
H A Dvfio_platform_irq.c291 while (vdev->get_irq(vdev, cnt) >= 0) in vfio_platform_irq_init()
296 if (!vdev->irqs) in vfio_platform_irq_init()
300 int hwirq = vdev->get_irq(vdev, i); in vfio_platform_irq_init()
323 vdev->name); in vfio_platform_irq_init()
330 vdev->irqs[i].name, &vdev->irqs[i]); in vfio_platform_irq_init()
337 vdev->num_irqs = cnt; in vfio_platform_irq_init()
343 free_irq(vdev->irqs[i].hwirq, &vdev->irqs[i]); in vfio_platform_irq_init()
347 kfree(vdev->irqs); in vfio_platform_irq_init()
359 free_irq(vdev->irqs[i].hwirq, &vdev->irqs[i]); in vfio_platform_irq_cleanup()
366 vdev->num_irqs = 0; in vfio_platform_irq_cleanup()
[all …]
H A Dvfio_amba.c52 if (!vdev->name) in vfio_amba_init_dev()
55 vdev->opaque = (void *) adev; in vfio_amba_init_dev()
63 kfree(vdev->name); in vfio_amba_init_dev()
73 vdev = vfio_alloc_device(vfio_platform_device, vdev, &adev->dev, in vfio_amba_probe()
75 if (IS_ERR(vdev)) in vfio_amba_probe()
76 return PTR_ERR(vdev); in vfio_amba_probe()
78 ret = vfio_register_group_dev(&vdev->vdev); in vfio_amba_probe()
87 vfio_put_device(&vdev->vdev); in vfio_amba_probe()
97 kfree(vdev->name); in vfio_amba_release_dev()
104 vfio_unregister_group_dev(&vdev->vdev); in vfio_amba_remove()
[all …]
/linux-6.15/drivers/vfio/cdx/
H A Dintr.c26 struct cdx_device *cdx_dev = to_cdx_device(vdev->vdev.dev); in vfio_cdx_msi_enable()
27 struct device *dev = vdev->vdev.dev; in vfio_cdx_msi_enable()
31 if (!vdev->cdx_irqs) in vfio_cdx_msi_enable()
36 kfree(vdev->cdx_irqs); in vfio_cdx_msi_enable()
52 vdev->config_msi = 1; in vfio_cdx_msi_enable()
79 vector, dev_name(vdev->vdev.dev)); in vfio_cdx_msi_set_vector_signal()
108 if (start >= vdev->msi_count || start + count > vdev->msi_count) in vfio_cdx_msi_set_block()
127 struct cdx_device *cdx_dev = to_cdx_device(vdev->vdev.dev); in vfio_cdx_msi_disable()
128 struct device *dev = vdev->vdev.dev; in vfio_cdx_msi_disable()
130 vfio_cdx_msi_set_block(vdev, 0, vdev->msi_count, NULL); in vfio_cdx_msi_disable()
[all …]
/linux-6.15/drivers/nfc/
H A Dvirtual_ncidev.c36 vdev->running = true; in virtual_nci_open()
47 vdev->running = false; in virtual_nci_close()
58 if (vdev->send_buff || !vdev->running) { in virtual_nci_send()
91 if (wait_event_interruptible(vdev->wq, vdev->send_buff)) in virtual_ncidev_read()
142 vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); in virtual_ncidev_open()
143 if (!vdev) in virtual_ncidev_open()
147 if (!vdev->ndev) { in virtual_ncidev_open()
148 kfree(vdev); in virtual_ncidev_open()
155 nci_set_drvdata(vdev->ndev, vdev); in virtual_ncidev_open()
161 kfree(vdev); in virtual_ncidev_open()
[all …]
/linux-6.15/drivers/media/v4l2-core/
H A Dv4l2-dev.c132 set_bit(vdev->num, devnode_bits(vdev->vfl_type)); in devnode_set()
183 if (WARN_ON(video_devices[vdev->minor] != vdev)) { in v4l2_device_release()
225 vdev->release(vdev); in v4l2_device_release()
857 vdev->entity.name = vdev->name; in video_register_media_controller()
861 vdev->entity.info.dev.minor = vdev->minor; in video_register_media_controller()
960 vdev->dev_parent = vdev->v4l2_dev->dev; in __video_register_device()
966 vdev->prio = &vdev->v4l2_dev->prio; in __video_register_device()
1030 vdev->index = get_index(vdev); in __video_register_device()
1031 video_devices[vdev->minor] = vdev; in __video_register_device()
1056 vdev->dev.parent = vdev->dev_parent; in __video_register_device()
[all …]

12345678910>>...26