Home
last modified time | relevance | path

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

12345678910>>...23

/linux-6.3-rc2/drivers/accel/ivpu/
A Divpu_pm.c32 ivpu_ipc_reset(vdev); in ivpu_pm_prepare_cold_boot()
33 ivpu_fw_load(vdev); in ivpu_pm_prepare_cold_boot()
55 ret = ivpu_shutdown(vdev); in ivpu_suspend()
78 ivpu_hw_power_down(vdev); in ivpu_resume()
82 ret = ivpu_boot(vdev); in ivpu_resume()
84 ivpu_mmu_disable(vdev); in ivpu_resume()
101 struct ivpu_device *vdev = pm->vdev; in ivpu_pm_recovery_work() local
176 ret = ivpu_resume(vdev); in ivpu_pm_resume_cb()
193 if (!ivpu_hw_is_idle(vdev) && vdev->pm->suspend_reschedule_counter) { in ivpu_pm_runtime_suspend_cb()
265 ivpu_shutdown(vdev); in ivpu_pm_reset_prepare_cb()
[all …]
A Divpu_hw.h66 return vdev->hw->ops->info_init(vdev); in ivpu_hw_info_init()
73 return vdev->hw->ops->power_up(vdev); in ivpu_hw_power_up()
78 return vdev->hw->ops->boot_fw(vdev); in ivpu_hw_boot_fw()
83 return vdev->hw->ops->is_idle(vdev); in ivpu_hw_is_idle()
90 return vdev->hw->ops->power_down(vdev); in ivpu_hw_power_down()
95 vdev->hw->ops->wdt_disable(vdev); in ivpu_hw_wdt_disable()
121 vdev->hw->ops->reg_db_set(vdev, db_id); in ivpu_hw_reg_db_set()
141 vdev->hw->ops->irq_clear(vdev); in ivpu_hw_irq_clear()
146 vdev->hw->ops->irq_enable(vdev); in ivpu_hw_irq_enable()
151 vdev->hw->ops->irq_disable(vdev); in ivpu_hw_irq_disable()
[all …]
A Divpu_drv.c56 struct ivpu_device *vdev = file_priv->vdev; in ivpu_file_priv_get() local
87 struct ivpu_device *vdev = file_priv->vdev; in file_priv_release() local
103 struct ivpu_device *vdev = file_priv->vdev; in ivpu_file_priv_put() local
117 struct ivpu_device *vdev = file_priv->vdev; in ivpu_get_param_ioctl() local
217 file_priv->vdev = vdev; in ivpu_open()
397 ret = devm_request_irq(vdev->drm.dev, vdev->irq, vdev->hw->ops->irq_handler, in ivpu_irq_init()
451 vdev->hw = drmm_kzalloc(&vdev->drm, sizeof(*vdev->hw), GFP_KERNEL); in ivpu_dev_init()
455 vdev->mmu = drmm_kzalloc(&vdev->drm, sizeof(*vdev->mmu), GFP_KERNEL); in ivpu_dev_init()
459 vdev->fw = drmm_kzalloc(&vdev->drm, sizeof(*vdev->fw), GFP_KERNEL); in ivpu_dev_init()
463 vdev->ipc = drmm_kzalloc(&vdev->drm, sizeof(*vdev->ipc), GFP_KERNEL); in ivpu_dev_init()
[all …]
A Divpu_fw.c55 return request_firmware(&vdev->fw->file, ivpu_firmware, vdev->drm.dev); in ivpu_fw_request()
58 ret = firmware_request_nowarn(&vdev->fw->file, fw_names[i], vdev->drm.dev); in ivpu_fw_request()
205 fw->mem_shave_nn = ivpu_bo_alloc_internal(vdev, vdev->hw->ranges.global_high.start, in ivpu_fw_mem_init()
234 ret = ivpu_fw_request(vdev); in ivpu_fw_init()
238 ret = ivpu_fw_parse(vdev); in ivpu_fw_init()
242 ret = ivpu_fw_mem_init(vdev); in ivpu_fw_init()
249 ivpu_fw_release(vdev); in ivpu_fw_init()
255 ivpu_fw_mem_fini(vdev); in ivpu_fw_fini()
256 ivpu_fw_release(vdev); in ivpu_fw_fini()
376 vdev->pm->is_warmboot = true; in ivpu_fw_boot_params_setup()
[all …]
A Divpu_hw_mtl.c92 vdev->platform = platform; in ivpu_hw_read_platform()
97 ivpu_platform_to_str(vdev->platform), vdev->platform); in ivpu_hw_read_platform()
102 vdev->wa.punit_disabled = ivpu_is_fpga(vdev); in ivpu_hw_wa_init()
108 if (ivpu_is_simics(vdev) || ivpu_is_fpga(vdev)) { in ivpu_hw_timeouts_init()
110 vdev->timeout.jsm = 50000; in ivpu_hw_timeouts_init()
114 vdev->timeout.boot = 1000; in ivpu_hw_timeouts_init()
115 vdev->timeout.jsm = 500; in ivpu_hw_timeouts_init()
116 vdev->timeout.tdr = 2000; in ivpu_hw_timeouts_init()
476 if (ivpu_is_fpga(vdev)) in ivpu_boot_wait_for_pwr_island_status()
559 if (ivpu_is_fpga(vdev)) { in ivpu_boot_tbu_mmu_enable()
[all …]
A Divpu_mmu.c238 if (ivpu_is_simics(vdev)) in ivpu_mmu_config_check()
255 if (ivpu_is_simics(vdev)) in ivpu_mmu_config_check()
257 else if (ivpu_is_fpga(vdev)) in ivpu_mmu_config_check()
520 ret = ivpu_mmu_cmdq_sync(vdev); in ivpu_mmu_reset()
605 ret = ivpu_mmu_cmdq_sync(vdev); in ivpu_mmu_invalidate_tlb()
671 ret = ivpu_mmu_cmdq_sync(vdev); in ivpu_mmu_cd_add()
681 ret = ivpu_mmu_cd_add(vdev, 0, vdev->gctx.pgtable.pgd_dma); in ivpu_mmu_cd_add_gbl()
712 ivpu_mmu_config_check(vdev); in ivpu_mmu_init()
730 ret = ivpu_mmu_enable(vdev); in ivpu_mmu_init()
750 ret = ivpu_mmu_reset(vdev); in ivpu_mmu_enable()
[all …]
A Divpu_ipc.c36 ivpu_dbg(vdev, IPC, in ivpu_ipc_msg_dump()
47 ivpu_dbg(vdev, JSM, in ivpu_jsm_msg_dump()
65 struct ivpu_ipc_info *ipc = vdev->ipc; in ivpu_ipc_mem_fini()
287 ivpu_ipc_consumer_del(vdev, &cons); in ivpu_ipc_send_receive_internal()
300 ret = ivpu_rpm_get(vdev); in ivpu_ipc_send_receive()
311 vdev->timeout.jsm); in ivpu_ipc_send_receive()
313 ivpu_hw_diagnose_failure(vdev); in ivpu_ipc_send_receive()
314 ivpu_pm_schedule_recovery(vdev); in ivpu_ipc_send_receive()
318 ivpu_rpm_put(vdev); in ivpu_ipc_send_receive()
459 ivpu_ipc_reset(vdev); in ivpu_ipc_init()
[all …]
A Divpu_job.c38 struct ivpu_device *vdev = file_priv->vdev; in ivpu_cmdq_alloc() local
79 struct ivpu_device *vdev = file_priv->vdev; in ivpu_cmdq_acquire() local
182 struct ivpu_device *vdev = job->vdev; in ivpu_cmdq_push_job() local
242 fence->vdev = vdev; in ivpu_fence_create()
251 struct ivpu_device *vdev = job->vdev; in job_get() local
262 struct ivpu_device *vdev = job->vdev; in job_release() local
281 struct ivpu_device *vdev = job->vdev; in job_put() local
290 struct ivpu_device *vdev = file_priv->vdev; in ivpu_create_job() local
306 job->vdev = vdev; in ivpu_create_job()
374 struct ivpu_device *vdev = job->vdev; in ivpu_direct_job_submission() local
[all …]
A Divpu_drv.h49 #define ivpu_err(vdev, fmt, ...) \ argument
52 #define ivpu_err_ratelimited(vdev, fmt, ...) \ argument
55 #define ivpu_warn(vdev, fmt, ...) \ argument
61 #define ivpu_info(vdev, fmt, ...) drm_info(&(vdev)->drm, fmt, ##__VA_ARGS__) argument
68 #define IVPU_WA(wa_name) (vdev->wa.wa_name)
118 struct ivpu_device *vdev; member
139 int ivpu_boot(struct ivpu_device *vdev);
140 int ivpu_shutdown(struct ivpu_device *vdev);
149 return to_pci_dev(vdev->drm.dev)->revision; in ivpu_revision()
154 return to_pci_dev(vdev->drm.dev)->device; in ivpu_device_id()
[all …]
/linux-6.3-rc2/drivers/vfio/pci/
A Dvfio_pci_intrs.c58 if (likely(is_intx(vdev) && !vdev->virq_disabled)) in vfio_send_intx_eventfd()
120 } else if (vdev->ctx[0].masked && !vdev->virq_disabled) { in vfio_pci_intx_unmask_handler()
181 if (!vdev->ctx) in vfio_intx_enable()
192 vdev->ctx[0].masked = vdev->virq_disabled; in vfio_intx_enable()
194 pci_intx(vdev->pdev, !vdev->ctx[0].masked); in vfio_intx_enable()
236 irqflags, vdev->ctx[0].name, vdev); in vfio_intx_set_signal()
249 if (!vdev->pci_2_3 && vdev->ctx[0].masked) in vfio_intx_set_signal()
289 if (!vdev->ctx) in vfio_msi_enable()
431 vfio_msi_set_block(vdev, 0, vdev->num_ctx, NULL, msix); in vfio_msi_disable()
554 if (!(irq_is(vdev, index) || is_irq_none(vdev))) in vfio_pci_set_msi_trigger()
[all …]
A Dvfio_pci_core.c608 vdev->region[i].ops->release(vdev, &vdev->region[i]); in vfio_pci_core_disable()
732 vdev->nointx || vdev->pdev->is_virtfn) in vfio_pci_get_irq_count()
872 vdev->region[vdev->num_regions].type = type; in vfio_pci_core_register_dev_region()
874 vdev->region[vdev->num_regions].ops = ops; in vfio_pci_core_register_dev_region()
1056 vdev, &vdev->region[i], &caps); in vfio_pci_ioctl_get_region_info()
1986 vdev->vdev.ops->name); in vfio_pci_bus_notifier()
2136 if (vdev->vdev.mig_ops) { in vfio_pci_core_register_device()
2144 if (vdev->vdev.log_ops && !(vdev->vdev.log_ops->log_start && in vfio_pci_core_register_device()
2145 vdev->vdev.log_ops->log_stop && in vfio_pci_core_register_device()
2163 ret = vfio_assign_device_set(&vdev->vdev, vdev); in vfio_pci_core_register_device()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/cisco/enic/
A Dvnic_dev.c449 memset(vdev->args, 0, sizeof(vdev->args)); in vnic_dev_cmd_proxy()
451 vdev->args[0] = vdev->proxy_index; in vnic_dev_cmd_proxy()
484 err = vdev->devcmd_rtn(vdev, cmd, wait); in vnic_dev_cmd_no_proxy()
837 if (vdev->notify || vdev->notify_pa) { in vnic_dev_notify_set()
875 vdev->notify, vdev->notify_pa); in vnic_dev_notify_unset()
888 if (!vdev->notify || !vdev->notify_sz) in vnic_dev_notify_ready()
893 memcpy(&vdev->notify_copy, vdev->notify, vdev->notify_sz); in vnic_dev_notify_ready()
956 (!err && !(vdev->args[0] && vdev->args[1] && vdev->args[2]))) { in vnic_dev_intr_coal_timer_info()
1038 vdev->notify, vdev->notify_pa); in vnic_dev_unregister()
1042 vdev->stats, vdev->stats_pa); in vnic_dev_unregister()
[all …]
A Dvnic_dev.h104 void *vnic_dev_priv(struct vnic_dev *vdev);
118 int vnic_dev_fw_info(struct vnic_dev *vdev,
123 int vnic_dev_hang_notify(struct vnic_dev *vdev);
131 int vnic_dev_link_status(struct vnic_dev *vdev);
132 u32 vnic_dev_port_speed(struct vnic_dev *vdev);
133 u32 vnic_dev_msg_lvl(struct vnic_dev *vdev);
134 u32 vnic_dev_mtu(struct vnic_dev *vdev);
135 int vnic_dev_close(struct vnic_dev *vdev);
137 int vnic_dev_disable(struct vnic_dev *vdev);
141 int vnic_dev_deinit(struct vnic_dev *vdev);
[all …]
/linux-6.3-rc2/include/linux/
A Dvirtio_config.h305 return vdev->config->bus_name(vdev); in virtio_bus_name()
320 struct virtio_device *vdev = vq->vdev; in virtqueue_set_affinity() local
404 vdev->config->get((vdev), \
468 vdev->config->get((vdev), \
505 vdev->config->generation(vdev) : 0; in __virtio_cread_many()
513 vdev->config->get(vdev, offset + bytes * i, in __virtio_cread_many()
517 vdev->config->generation(vdev) : 0; in __virtio_cread_many()
533 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread8()
561 vdev->config->set(vdev, offset, &v, sizeof(v)); in virtio_cwrite16()
581 vdev->config->set(vdev, offset, &v, sizeof(v)); in virtio_cwrite32()
[all …]
A Dvdpa.h333 int (*reset)(struct vdpa_device *vdev);
427 return dev_get_drvdata(&vdev->dev); in vdpa_get_drvdata()
432 dev_set_drvdata(&vdev->dev, data); in vdpa_set_drvdata()
437 return vdev->dma_dev; in vdpa_get_dma_dev()
445 down_write(&vdev->cf_lock); in vdpa_reset()
446 vdev->features_valid = false; in vdpa_reset()
447 ret = ops->reset(vdev); in vdpa_reset()
448 up_write(&vdev->cf_lock); in vdpa_reset()
457 vdev->features_valid = true; in vdpa_set_features_unlocked()
467 down_write(&vdev->cf_lock); in vdpa_set_features()
[all …]
/linux-6.3-rc2/drivers/scsi/fnic/
A Dvnic_dev.c427 err = vnic_wq_devcmd2_alloc(vdev, &vdev->devcmd2->wq, in vnic_dev_init_devcmd2()
458 vdev->devcmd2->wq_ctrl = vdev->devcmd2->wq.ctrl; in vnic_dev_init_devcmd2()
504 err = (*vdev->devcmd_rtn)(vdev, cmd, wait); in vnic_dev_cmd_no_proxy()
516 memset(vdev->args, 0, sizeof(vdev->args)); in vnic_dev_cmd()
534 vdev->fw_info = dma_alloc_coherent(&vdev->pdev->dev, in vnic_dev_fw_info()
597 vdev->stats = dma_alloc_coherent(&vdev->pdev->dev, in vnic_dev_stats_dump()
759 vdev->notify = dma_alloc_coherent(&vdev->pdev->dev, in vnic_dev_notify_set()
797 memcpy(&vdev->notify_copy, vdev->notify, in vnic_dev_notify_ready()
881 if (vdev) { in vnic_dev_unregister()
895 vdev->stats, vdev->stats_pa); in vnic_dev_unregister()
[all …]
A Dvnic_dev.h100 void *vnic_dev_priv(struct vnic_dev *vdev);
115 int vnic_dev_fw_info(struct vnic_dev *vdev,
119 int vnic_dev_stats_clear(struct vnic_dev *vdev);
120 int vnic_dev_cmd_init(struct vnic_dev *vdev);
122 int vnic_dev_hang_notify(struct vnic_dev *vdev);
131 u32 vnic_dev_port_speed(struct vnic_dev *vdev);
132 u32 vnic_dev_msg_lvl(struct vnic_dev *vdev);
133 u32 vnic_dev_mtu(struct vnic_dev *vdev);
135 int vnic_dev_close(struct vnic_dev *vdev);
136 int vnic_dev_enable(struct vnic_dev *vdev);
[all …]
/linux-6.3-rc2/drivers/scsi/snic/
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.3-rc2/drivers/vfio/platform/
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()
637 struct device *dev = vdev->vdev.dev; in vfio_platform_init_common()
[all …]
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 …]
A Dvfio_platform.c46 vdev->opaque = (void *) pdev; in vfio_platform_init_dev()
47 vdev->name = pdev->name; in vfio_platform_init_dev()
50 vdev->get_irq = get_platform_irq; in vfio_platform_init_dev()
62 vdev = vfio_alloc_device(vfio_platform_device, vdev, &pdev->dev, in vfio_platform_probe()
64 if (IS_ERR(vdev)) in vfio_platform_probe()
65 return PTR_ERR(vdev); in vfio_platform_probe()
67 ret = vfio_register_group_dev(&vdev->vdev); in vfio_platform_probe()
76 vfio_put_device(&vdev->vdev); in vfio_platform_probe()
92 vfio_unregister_group_dev(&vdev->vdev); in vfio_platform_remove()
93 pm_runtime_disable(vdev->device); in vfio_platform_remove()
[all …]
/linux-6.3-rc2/drivers/vfio/
A Diommufd.c39 if (!vdev->ops->bind_iommufd) in vfio_iommufd_bind()
42 ret = vdev->ops->bind_iommufd(vdev, ictx, &device_id); in vfio_iommufd_bind()
49 ret = vdev->ops->attach_ioas(vdev, &ioas_id); in vfio_iommufd_bind()
61 vdev->ops->unbind_iommufd(vdev); in vfio_iommufd_bind()
73 vdev->ops->unbind_iommufd(vdev); in vfio_iommufd_unbind()
89 vdev->iommufd_device = idev; in vfio_iommufd_physical_bind()
130 vdev->ops->dma_unmap(vdev, iova, length); in vfio_emulated_unmap()
143 vdev->iommufd_ictx = ictx; in vfio_iommufd_emulated_bind()
153 if (vdev->iommufd_access) { in vfio_iommufd_emulated_unbind()
158 vdev->iommufd_ictx = NULL; in vfio_iommufd_emulated_unbind()
[all …]
/linux-6.3-rc2/drivers/media/v4l2-core/
A Dv4l2-dev.c130 set_bit(vdev->num, devnode_bits(vdev->vfl_type)); in devnode_set()
181 if (WARN_ON(video_devices[vdev->minor] != vdev)) { in v4l2_device_release()
223 vdev->release(vdev); in v4l2_device_release()
835 vdev->entity.name = vdev->name; in video_register_media_controller()
839 vdev->entity.info.dev.minor = vdev->minor; in video_register_media_controller()
938 vdev->dev_parent = vdev->v4l2_dev->dev; in __video_register_device()
944 vdev->prio = &vdev->v4l2_dev->prio; in __video_register_device()
1008 vdev->index = get_index(vdev); in __video_register_device()
1009 video_devices[vdev->minor] = vdev; in __video_register_device()
1034 vdev->dev.parent = vdev->dev_parent; in __video_register_device()
[all …]
/linux-6.3-rc2/drivers/nfc/
A Dvirtual_ncidev.c40 mutex_lock(&vdev->mtx); in virtual_nci_close()
42 vdev->send_buff = NULL; in virtual_nci_close()
53 if (vdev->send_buff) { in virtual_nci_send()
86 if (wait_event_interruptible(vdev->wq, vdev->send_buff)) in virtual_ncidev_read()
133 vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); in virtual_ncidev_open()
134 if (!vdev) in virtual_ncidev_open()
138 if (!vdev->ndev) { in virtual_ncidev_open()
139 kfree(vdev); in virtual_ncidev_open()
146 nci_set_drvdata(vdev->ndev, vdev); in virtual_ncidev_open()
152 kfree(vdev); in virtual_ncidev_open()
[all …]
/linux-6.3-rc2/arch/sparc/kernel/
A Dvio.c84 if (vdev->tx_irq == 0 && vdev->tx_ino != ~0UL) in vio_device_probe()
85 vdev->tx_irq = sun4v_build_virq(vdev->cdev_handle, in vio_device_probe()
88 if (vdev->rx_irq == 0 && vdev->rx_ino != ~0UL) in vio_device_probe()
89 vdev->rx_irq = sun4v_build_virq(vdev->cdev_handle, in vio_device_probe()
192 dp = vdev->dp; in show_pciobppath_attr()
327 vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); in vio_create_one()
328 if (!vdev) { in vio_create_one()
338 memset(vdev->compat, 0, sizeof(vdev->compat)); in vio_create_one()
395 dev_name(&vdev->dev), vdev->tx_ino, vdev->rx_ino); in vio_create_one()
404 if (vdev->dp) in vio_create_one()
[all …]

Completed in 79 milliseconds

12345678910>>...23