Home
last modified time | relevance | path

Searched full:vdev (Results 1 – 25 of 658) sorted by relevance

12345678910>>...27

/linux/drivers/accel/ivpu/
H A Divpu_hw.c45 static void platform_init(struct ivpu_device *vdev) in platform_init() argument
48 vdev->platform = IVPU_PLATFORM_SIMICS; in platform_init()
50 vdev->platform = IVPU_PLATFORM_SILICON; in platform_init()
52 ivpu_dbg(vdev, MISC, "Platform type: %s (%d)\n", in platform_init()
53 platform_to_str(vdev->platform), vdev->platform); in platform_init()
56 static void wa_init(struct ivpu_device *vdev) in wa_init() argument
58 vdev->wa.punit_disabled = ivpu_is_fpga(vdev); in wa_init()
59 vdev->wa.clear_runtime_mem = false; in wa_init()
61 if (ivpu_hw_btrs_gen(vdev) == IVPU_HW_BTRS_MTL) in wa_init()
62 vdev->wa.interrupt_clear_with_0 = ivpu_hw_btrs_irqs_clear_with_0_mtl(vdev); in wa_init()
[all …]
H A Divpu_pm.c34 static void ivpu_pm_prepare_cold_boot(struct ivpu_device *vdev) in ivpu_pm_prepare_cold_boot() argument
36 struct ivpu_fw_info *fw = vdev->fw; in ivpu_pm_prepare_cold_boot()
38 ivpu_cmdq_reset_all_contexts(vdev); in ivpu_pm_prepare_cold_boot()
39 ivpu_ipc_reset(vdev); in ivpu_pm_prepare_cold_boot()
40 ivpu_fw_load(vdev); in ivpu_pm_prepare_cold_boot()
44 static void ivpu_pm_prepare_warm_boot(struct ivpu_device *vdev) in ivpu_pm_prepare_warm_boot() argument
46 struct ivpu_fw_info *fw = vdev->fw; in ivpu_pm_prepare_warm_boot()
50 ivpu_pm_prepare_cold_boot(vdev); in ivpu_pm_prepare_warm_boot()
54 ivpu_dbg(vdev, FW_BOOT, "Save/restore entry point %llx", bp->save_restore_ret_address); in ivpu_pm_prepare_warm_boot()
58 static int ivpu_suspend(struct ivpu_device *vdev) in ivpu_suspend() argument
[all …]
H A Divpu_drv.c70 struct ivpu_device *vdev = file_priv->vdev; in ivpu_file_priv_get() local
74 ivpu_dbg(vdev, KREF, "file_priv get: ctx %u refcount %u\n", in ivpu_file_priv_get()
80 static void file_priv_unbind(struct ivpu_device *vdev, struct ivpu_file_priv *file_priv) in file_priv_unbind() argument
84 ivpu_dbg(vdev, FILE, "file_priv unbind: ctx %u\n", file_priv->ctx.id); in file_priv_unbind()
87 ivpu_bo_unbind_all_bos_from_context(vdev, &file_priv->ctx); in file_priv_unbind()
88 ivpu_mmu_user_context_fini(vdev, &file_priv->ctx); in file_priv_unbind()
90 drm_WARN_ON(&vdev->drm, !xa_erase_irq(&vdev->context_xa, file_priv->ctx.id)); in file_priv_unbind()
98 struct ivpu_device *vdev = file_priv->vdev; in file_priv_release() local
100 ivpu_dbg(vdev, FILE, "file_priv release: ctx %u bound %d\n", in file_priv_release()
103 pm_runtime_get_sync(vdev->drm.dev); in file_priv_release()
[all …]
H A Divpu_hw_ip.c69 static int wait_for_ip_bar(struct ivpu_device *vdev) in wait_for_ip_bar() argument
74 static void host_ss_rst_clr(struct ivpu_device *vdev) in host_ss_rst_clr() argument
85 static int host_ss_noc_qreqn_check_37xx(struct ivpu_device *vdev, u32 exp_val) in host_ss_noc_qreqn_check_37xx() argument
95 static int host_ss_noc_qreqn_check_40xx(struct ivpu_device *vdev, u32 exp_val) in host_ss_noc_qreqn_check_40xx() argument
105 static int host_ss_noc_qreqn_check(struct ivpu_device *vdev, u32 exp_val) in host_ss_noc_qreqn_check() argument
107 if (ivpu_hw_ip_gen(vdev) == IVPU_HW_IP_37XX) in host_ss_noc_qreqn_check()
108 return host_ss_noc_qreqn_check_37xx(vdev, exp_val); in host_ss_noc_qreqn_check()
110 return host_ss_noc_qreqn_check_40xx(vdev, exp_val); in host_ss_noc_qreqn_check()
113 static int host_ss_noc_qacceptn_check_37xx(struct ivpu_device *vdev, u32 exp_val) in host_ss_noc_qacceptn_check_37xx() argument
123 static int host_ss_noc_qacceptn_check_40xx(struct ivpu_device *vdev, u32 exp_val) in host_ss_noc_qacceptn_check_40xx() argument
[all …]
H A Divpu_fw.c37 #define IVPU_FW_CHECK_API_COMPAT(vdev, fw_hdr, name, min_major) \ argument
38 ivpu_fw_check_api(vdev, fw_hdr, #name, \
44 #define IVPU_FW_CHECK_API_VER_LT(vdev, fw_hdr, name, major, minor) \ argument
45 ivpu_fw_check_api_ver_lt(vdev, fw_hdr, #name, VPU_##name##_API_VER_INDEX, major, minor)
67 static int ivpu_fw_request(struct ivpu_device *vdev) in ivpu_fw_request() argument
73 ret = request_firmware(&vdev->fw->file, ivpu_firmware, vdev->drm.dev); in ivpu_fw_request()
75 vdev->fw->name = ivpu_firmware; in ivpu_fw_request()
80 if (fw_names[i].gen != ivpu_hw_ip_gen(vdev)) in ivpu_fw_request()
83 ret = firmware_request_nowarn(&vdev->fw->file, fw_names[i].name, vdev->drm.dev); in ivpu_fw_request()
85 vdev->fw->name = fw_names[i].name; in ivpu_fw_request()
[all …]
H A Divpu_hw.h28 bool (*btrs_irq_handler)(struct ivpu_device *vdev, int irq);
29 bool (*ip_irq_handler)(struct ivpu_device *vdev, int irq);
58 int ivpu_hw_init(struct ivpu_device *vdev);
59 int ivpu_hw_power_up(struct ivpu_device *vdev);
60 int ivpu_hw_power_down(struct ivpu_device *vdev);
61 int ivpu_hw_reset(struct ivpu_device *vdev);
62 int ivpu_hw_boot_fw(struct ivpu_device *vdev);
63 void ivpu_hw_profiling_freq_drive(struct ivpu_device *vdev, bool enable);
64 void ivpu_irq_handlers_init(struct ivpu_device *vdev);
65 void ivpu_hw_irq_enable(struct ivpu_device *vdev);
[all …]
H A Divpu_hw_btrs.c65 int ivpu_hw_btrs_irqs_clear_with_0_mtl(struct ivpu_device *vdev) in ivpu_hw_btrs_irqs_clear_with_0_mtl() argument
77 static void freq_ratios_init_mtl(struct ivpu_device *vdev) in freq_ratios_init_mtl() argument
79 struct ivpu_hw_info *hw = vdev->hw; in freq_ratios_init_mtl()
90 static void freq_ratios_init_lnl(struct ivpu_device *vdev) in freq_ratios_init_lnl() argument
92 struct ivpu_hw_info *hw = vdev->hw; in freq_ratios_init_lnl()
103 void ivpu_hw_btrs_freq_ratios_init(struct ivpu_device *vdev) in ivpu_hw_btrs_freq_ratios_init() argument
105 struct ivpu_hw_info *hw = vdev->hw; in ivpu_hw_btrs_freq_ratios_init()
107 if (ivpu_hw_btrs_gen(vdev) == IVPU_HW_BTRS_MTL) in ivpu_hw_btrs_freq_ratios_init()
108 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()
[all …]
H A Divpu_debugfs.c33 struct ivpu_device *vdev = seq_to_ivpu(s); in bo_list_show() local
35 ivpu_bo_list(&vdev->drm, &p); in bo_list_show()
42 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_name_show() local
44 seq_printf(s, "%s\n", vdev->fw->name); in fw_name_show()
50 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_trace_capability_show() local
55 ret = ivpu_jsm_trace_get_capability(vdev, &trace_destination_mask, in fw_trace_capability_show()
68 struct ivpu_device *vdev = seq_to_ivpu(s); in fw_trace_config_show() local
71 * so we use values from vdev->fw instead of calling ivpu_jsm_trace_get_config() in fw_trace_config_show()
73 u32 trace_level = vdev->fw->trace_level; in fw_trace_config_show()
74 u32 trace_destination_mask = vdev->fw->trace_destination_mask; in fw_trace_config_show()
[all …]
H A Divpu_ipc.c26 static void ivpu_ipc_msg_dump(struct ivpu_device *vdev, char *c, in ivpu_ipc_msg_dump() argument
29 ivpu_dbg(vdev, IPC, in ivpu_ipc_msg_dump()
35 static void ivpu_jsm_msg_dump(struct ivpu_device *vdev, char *c, in ivpu_jsm_msg_dump() argument
40 ivpu_dbg(vdev, JSM, in ivpu_jsm_msg_dump()
48 ivpu_ipc_rx_mark_free(struct ivpu_device *vdev, struct ivpu_ipc_hdr *ipc_hdr, in ivpu_ipc_rx_mark_free() argument
57 static void ivpu_ipc_mem_fini(struct ivpu_device *vdev) in ivpu_ipc_mem_fini() argument
59 struct ivpu_ipc_info *ipc = vdev->ipc; in ivpu_ipc_mem_fini()
66 ivpu_ipc_tx_prepare(struct ivpu_device *vdev, struct ivpu_ipc_consumer *cons, in ivpu_ipc_tx_prepare() argument
69 struct ivpu_ipc_info *ipc = vdev->ipc; in ivpu_ipc_tx_prepare()
76 ivpu_err_ratelimited(vdev, "Failed to reserve IPC buffer, size %ld\n", in ivpu_ipc_tx_prepare()
[all …]
H A Divpu_job.c28 static void ivpu_cmdq_ring_db(struct ivpu_device *vdev, struct ivpu_cmdq *cmdq) in ivpu_cmdq_ring_db() argument
30 ivpu_hw_db_set(vdev, cmdq->db_id); in ivpu_cmdq_ring_db()
33 static int ivpu_preemption_buffers_create(struct ivpu_device *vdev, in ivpu_preemption_buffers_create() argument
36 u64 primary_size = ALIGN(vdev->fw->primary_preempt_buf_size, PAGE_SIZE); in ivpu_preemption_buffers_create()
37 u64 secondary_size = ALIGN(vdev->fw->secondary_preempt_buf_size, PAGE_SIZE); in ivpu_preemption_buffers_create()
40 if (vdev->hw->sched_mode != VPU_SCHEDULING_MODE_HW) in ivpu_preemption_buffers_create()
43 range.start = vdev->hw->ranges.user.end - (primary_size * IVPU_NUM_CMDQS_PER_CTX); in ivpu_preemption_buffers_create()
44 range.end = vdev->hw->ranges.user.end; in ivpu_preemption_buffers_create()
45 cmdq->primary_preempt_buf = ivpu_bo_create(vdev, &file_priv->ctx, &range, primary_size, in ivpu_preemption_buffers_create()
48 ivpu_err(vdev, "Failed to create primary preemption buffer\n"); in ivpu_preemption_buffers_create()
[all …]
H A Divpu_mmu.c301 static void ivpu_mmu_config_check(struct ivpu_device *vdev) in ivpu_mmu_config_check() argument
306 if (ivpu_is_simics(vdev)) in ivpu_mmu_config_check()
313 ivpu_dbg(vdev, MMU, "IDR0 0x%x != IDR0_REF 0x%x\n", val, val_ref); in ivpu_mmu_config_check()
317 ivpu_dbg(vdev, MMU, "IDR1 0x%x != IDR1_REF 0x%x\n", val, IVPU_MMU_IDR1_REF); in ivpu_mmu_config_check()
321 ivpu_dbg(vdev, MMU, "IDR3 0x%x != IDR3_REF 0x%x\n", val, IVPU_MMU_IDR3_REF); in ivpu_mmu_config_check()
323 if (ivpu_is_simics(vdev)) in ivpu_mmu_config_check()
325 else if (ivpu_is_fpga(vdev)) in ivpu_mmu_config_check()
332 ivpu_dbg(vdev, MMU, "IDR5 0x%x != IDR5_REF 0x%x\n", val, val_ref); in ivpu_mmu_config_check()
335 static int ivpu_mmu_cdtab_alloc(struct ivpu_device *vdev) in ivpu_mmu_cdtab_alloc() argument
337 struct ivpu_mmu_info *mmu = vdev->mmu; in ivpu_mmu_cdtab_alloc()
[all …]
H A Divpu_jsm_msg.c92 int ivpu_jsm_register_db(struct ivpu_device *vdev, u32 ctx_id, u32 db_id, in ivpu_jsm_register_db() argument
104 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_REGISTER_DB_DONE, &resp, in ivpu_jsm_register_db()
105 VPU_IPC_CHAN_ASYNC_CMD, vdev->timeout.jsm); in ivpu_jsm_register_db()
107 ivpu_err_ratelimited(vdev, "Failed to register doorbell %u: %d\n", db_id, ret); in ivpu_jsm_register_db()
112 int ivpu_jsm_unregister_db(struct ivpu_device *vdev, u32 db_id) in ivpu_jsm_unregister_db() argument
120 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_UNREGISTER_DB_DONE, &resp, in ivpu_jsm_unregister_db()
121 VPU_IPC_CHAN_ASYNC_CMD, vdev->timeout.jsm); in ivpu_jsm_unregister_db()
123 ivpu_warn_ratelimited(vdev, "Failed to unregister doorbell %u: %d\n", db_id, ret); in ivpu_jsm_unregister_db()
128 int ivpu_jsm_get_heartbeat(struct ivpu_device *vdev, u32 engine, u64 *heartbeat) in ivpu_jsm_get_heartbeat() argument
139 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_QUERY_ENGINE_HB_DONE, &resp, in ivpu_jsm_get_heartbeat()
[all …]
H A Divpu_hw_btrs.h21 int ivpu_hw_btrs_info_init(struct ivpu_device *vdev);
22 void ivpu_hw_btrs_freq_ratios_init(struct ivpu_device *vdev);
23 int ivpu_hw_btrs_irqs_clear_with_0_mtl(struct ivpu_device *vdev);
24 int ivpu_hw_btrs_wp_drive(struct ivpu_device *vdev, bool enable);
25 int ivpu_hw_btrs_wait_for_clock_res_own_ack(struct ivpu_device *vdev);
26 int ivpu_hw_btrs_d0i3_enable(struct ivpu_device *vdev);
27 int ivpu_hw_btrs_d0i3_disable(struct ivpu_device *vdev);
28 void ivpu_hw_btrs_set_port_arbitration_weights_lnl(struct ivpu_device *vdev);
29 bool ivpu_hw_btrs_is_idle(struct ivpu_device *vdev);
30 int ivpu_hw_btrs_wait_for_idle(struct ivpu_device *vdev);
[all …]
H A Divpu_mmu_context.c47 static void *ivpu_pgtable_alloc_page(struct ivpu_device *vdev, dma_addr_t *dma) in ivpu_pgtable_alloc_page() argument
59 dma_addr = dma_map_page(vdev->drm.dev, page, 0, PAGE_SIZE, DMA_BIDIRECTIONAL); in ivpu_pgtable_alloc_page()
60 if (dma_mapping_error(vdev->drm.dev, dma_addr)) in ivpu_pgtable_alloc_page()
72 dma_unmap_page(vdev->drm.dev, dma_addr, PAGE_SIZE, DMA_BIDIRECTIONAL); in ivpu_pgtable_alloc_page()
79 static void ivpu_pgtable_free_page(struct ivpu_device *vdev, u64 *cpu_addr, dma_addr_t dma_addr) in ivpu_pgtable_free_page() argument
86 dma_unmap_page(vdev->drm.dev, dma_addr & ~IVPU_MMU_ENTRY_FLAGS_MASK, PAGE_SIZE, in ivpu_pgtable_free_page()
93 static int ivpu_mmu_pgtable_init(struct ivpu_device *vdev, struct ivpu_mmu_pgtable *pgtable) in ivpu_mmu_pgtable_init() argument
97 pgtable->pgd_dma_ptr = ivpu_pgtable_alloc_page(vdev, &pgd_dma); in ivpu_mmu_pgtable_init()
106 static void ivpu_mmu_pgtables_free(struct ivpu_device *vdev, struct ivpu_mmu_pgtable *pgtable) in ivpu_mmu_pgtables_free() argument
130 ivpu_pgtable_free_page(vdev, pte_dma_ptr, pte_dma); in ivpu_mmu_pgtables_free()
[all …]
/linux/drivers/net/ethernet/cisco/enic/
H A Dvnic_dev.c26 void *vnic_dev_priv(struct vnic_dev *vdev) in vnic_dev_priv() argument
28 return vdev->priv; in vnic_dev_priv()
31 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument
43 vdev_err(vdev, "vNIC BAR0 res hdr length error\n"); in vnic_dev_discover_res()
50 vdev_err(vdev, "vNIC BAR0 res hdr not mem-mapped\n"); in vnic_dev_discover_res()
59 vdev_err(vdev, "vNIC BAR0 res magic/version error exp (%lx/%lx) or (%lx/%lx), curr (%x/%x)\n", in vnic_dev_discover_res()
96 vdev_err(vdev, "vNIC BAR0 resource %d out-of-bounds, offset 0x%x + size 0x%x > bar len 0x%lx\n", in vnic_dev_discover_res()
111 vdev->res[type].count = count; in vnic_dev_discover_res()
112 vdev->res[type].vaddr = (char __iomem *)bar[bar_num].vaddr + in vnic_dev_discover_res()
114 vdev->res[type].bus_addr = bar[bar_num].bus_addr + bar_offset; in vnic_dev_discover_res()
[all …]
H A Dvnic_dev.h103 int (*devcmd_rtn)(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
109 void *vnic_dev_priv(struct vnic_dev *vdev);
110 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev,
112 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type,
115 int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring,
117 void vnic_dev_free_desc_ring(struct vnic_dev *vdev,
119 int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
121 void vnic_dev_cmd_proxy_by_index_start(struct vnic_dev *vdev, u16 index);
122 void vnic_dev_cmd_proxy_end(struct vnic_dev *vdev);
123 int vnic_dev_fw_info(struct vnic_dev *vdev,
[all …]
/linux/drivers/vfio/
H A Diommufd.c13 bool vfio_iommufd_device_has_compat_ioas(struct vfio_device *vdev, in vfio_iommufd_device_has_compat_ioas() argument
23 struct vfio_device *vdev = df->device; in vfio_df_iommufd_bind() local
26 lockdep_assert_held(&vdev->dev_set->lock); in vfio_df_iommufd_bind()
28 return vdev->ops->bind_iommufd(vdev, ictx, &df->devid); in vfio_df_iommufd_bind()
31 int vfio_iommufd_compat_attach_ioas(struct vfio_device *vdev, in vfio_iommufd_compat_attach_ioas() argument
37 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_compat_attach_ioas()
40 if (vfio_device_is_noiommu(vdev)) in vfio_iommufd_compat_attach_ioas()
48 return vdev->ops->attach_ioas(vdev, &ioas_id); in vfio_iommufd_compat_attach_ioas()
53 struct vfio_device *vdev = df->device; in vfio_df_iommufd_unbind() local
55 lockdep_assert_held(&vdev->dev_set->lock); in vfio_df_iommufd_unbind()
[all …]
/linux/drivers/scsi/fnic/
H A Dvnic_dev.c61 int (*devcmd_rtn)(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
70 void *vnic_dev_priv(struct vnic_dev *vdev) in vnic_dev_priv() argument
72 return vdev->priv; in vnic_dev_priv()
75 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument
142 vdev->res[type].count = count; in vnic_dev_discover_res()
143 vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset; in vnic_dev_discover_res()
147 vdev->res[RES_TYPE_WQ].count, vdev->res[RES_TYPE_RQ].count, in vnic_dev_discover_res()
148 vdev->res[RES_TYPE_CQ].count, vdev->res[RES_TYPE_INTR_CTRL].count); in vnic_dev_discover_res()
153 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, in vnic_dev_get_res_count() argument
156 return vdev->res[type].count; in vnic_dev_get_res_count()
[all …]
/linux/drivers/vfio/pci/
H A Dvfio_pci_core.c108 static void vfio_pci_probe_mmaps(struct vfio_pci_core_device *vdev) in vfio_pci_probe_mmaps() argument
117 res = &vdev->pdev->resource[bar]; in vfio_pci_probe_mmaps()
134 vdev->bar_mmap_supported[bar] = true; in vfio_pci_probe_mmaps()
160 &vdev->dummy_resources_list); in vfio_pci_probe_mmaps()
161 vdev->bar_mmap_supported[bar] = true; in vfio_pci_probe_mmaps()
173 vdev->bar_mmap_supported[bar] = false; in vfio_pci_probe_mmaps()
214 static void vfio_pci_probe_power_state(struct vfio_pci_core_device *vdev) in vfio_pci_probe_power_state() argument
216 struct pci_dev *pdev = vdev->pdev; in vfio_pci_probe_power_state()
224 vdev->needs_pm_restore = !(pmcsr & PCI_PM_CTRL_NO_SOFT_RESET); in vfio_pci_probe_power_state()
229 * D3->D0 transition. Save state prior to D0/1/2->D3, stash it on the vdev,
[all …]
/linux/drivers/vfio/platform/
H A Dvfio_platform_common.c26 #define VFIO_PLATFORM_IS_ACPI(vdev) ((vdev)->acpihid != NULL) argument
50 static int vfio_platform_acpi_probe(struct vfio_platform_device *vdev, in vfio_platform_acpi_probe() argument
61 vdev->name); in vfio_platform_acpi_probe()
66 vdev->acpihid = acpi_device_hid(adev); in vfio_platform_acpi_probe()
68 return WARN_ON(!vdev->acpihid) ? -EINVAL : 0; in vfio_platform_acpi_probe()
71 static int vfio_platform_acpi_call_reset(struct vfio_platform_device *vdev, in vfio_platform_acpi_call_reset() argument
75 struct device *dev = vdev->device; in vfio_platform_acpi_call_reset()
92 static bool vfio_platform_acpi_has_reset(struct vfio_platform_device *vdev) in vfio_platform_acpi_has_reset() argument
95 struct device *dev = vdev->device; in vfio_platform_acpi_has_reset()
104 static bool vfio_platform_has_reset(struct vfio_platform_device *vdev) in vfio_platform_has_reset() argument
[all …]
H A Dvfio_platform_irq.c41 static int vfio_platform_set_irq_mask(struct vfio_platform_device *vdev, in vfio_platform_set_irq_mask() argument
49 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_mask()
56 return vfio_virqfd_enable((void *) &vdev->irqs[index], in vfio_platform_set_irq_mask()
59 &vdev->irqs[index].mask, fd); in vfio_platform_set_irq_mask()
61 vfio_virqfd_disable(&vdev->irqs[index].mask); in vfio_platform_set_irq_mask()
66 vfio_platform_mask(&vdev->irqs[index]); in vfio_platform_set_irq_mask()
72 vfio_platform_mask(&vdev->irqs[index]); in vfio_platform_set_irq_mask()
101 static int vfio_platform_set_irq_unmask(struct vfio_platform_device *vdev, in vfio_platform_set_irq_unmask() argument
109 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_unmask()
116 return vfio_virqfd_enable((void *) &vdev->irqs[index], in vfio_platform_set_irq_unmask()
[all …]
/linux/include/linux/
H A Dvirtio_config.h43 * vdev: the virtio_device
48 * vdev: the virtio_device
53 * vdev: the virtio_device
56 * vdev: the virtio_device
59 * vdev: the virtio_device
62 * vdev: the virtio device
67 * vdev: the virtio_device
77 * vdev: the virtio_device
79 * vdev: the virtio_device
82 * vdev: the virtio_device
[all …]
H A Dvdpa.h140 * @vdev: vdpa device
147 * @vdev: vdpa device
151 * @vdev: vdpa device
155 * @vdev: vdpa device
163 * @vdev: vdpa device
165 * @cb: virtio-vdev interrupt callback structure
167 * @vdev: vdpa device
171 * @vdev: vdpa device
175 * @vdev: vdpa device
180 * @vdev: vdpa device
[all …]
/linux/drivers/scsi/snic/
H A Dvnic_dev.c54 int (*devcmd_rtn)(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
63 void *svnic_dev_priv(struct vnic_dev *vdev) in svnic_dev_priv() argument
65 return vdev->priv; in svnic_dev_priv()
68 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument
144 vdev->res[type].count = count; in vnic_dev_discover_res()
145 vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset; in vnic_dev_discover_res()
151 unsigned int svnic_dev_get_res_count(struct vnic_dev *vdev, in svnic_dev_get_res_count() argument
154 return vdev->res[type].count; in svnic_dev_get_res_count()
157 void __iomem *svnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, in svnic_dev_get_res() argument
160 if (!vdev->res[type].vaddr) in svnic_dev_get_res()
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-dev.c49 struct video_device *vdev = to_video_device(cd); in index_show() local
51 return sprintf(buf, "%i\n", vdev->index); in index_show()
58 struct video_device *vdev = to_video_device(cd); in dev_debug_show() local
60 return sprintf(buf, "%i\n", vdev->dev_debug); in dev_debug_show()
66 struct video_device *vdev = to_video_device(cd); in dev_debug_store() local
74 vdev->dev_debug = value; in dev_debug_store()
82 struct video_device *vdev = to_video_device(cd); in name_show() local
84 return sprintf(buf, "%.*s\n", (int)sizeof(vdev->name), vdev->name); in name_show()
127 /* Mark device node number vdev->num as used */
128 static inline void devnode_set(struct video_device *vdev) in devnode_set() argument
[all …]

12345678910>>...27