Home
last modified time | relevance | path

Searched refs:mpt (Results 1 – 11 of 11) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/i915/gvt/
Dmpt.h56 if (!intel_gvt_host.mpt->host_init) in intel_gvt_hypervisor_host_init()
59 return intel_gvt_host.mpt->host_init(dev, gvt, ops); in intel_gvt_hypervisor_host_init()
69 if (!intel_gvt_host.mpt->host_exit) in intel_gvt_hypervisor_host_exit()
72 intel_gvt_host.mpt->host_exit(dev, gvt); in intel_gvt_hypervisor_host_exit()
85 if (!intel_gvt_host.mpt->attach_vgpu) in intel_gvt_hypervisor_attach_vgpu()
88 return intel_gvt_host.mpt->attach_vgpu(vgpu, &vgpu->handle); in intel_gvt_hypervisor_attach_vgpu()
101 if (!intel_gvt_host.mpt->detach_vgpu) in intel_gvt_hypervisor_detach_vgpu()
104 intel_gvt_host.mpt->detach_vgpu(vgpu->handle); in intel_gvt_hypervisor_detach_vgpu()
138 ret = intel_gvt_host.mpt->inject_msi(vgpu->handle, addr, data); in intel_gvt_hypervisor_inject_msi()
153 return intel_gvt_host.mpt->from_virt_to_mfn(p); in intel_gvt_hypervisor_virt_to_mfn()
[all …]
Dgvt.c214 intel_gvt_host.mpt = try_then_request_module( in intel_gvt_init_host()
220 intel_gvt_host.mpt = try_then_request_module( in intel_gvt_init_host()
227 if (!intel_gvt_host.mpt) in intel_gvt_init_host()
Dgvt.h63 struct intel_gvt_mpt *mpt; member
/Linux-v4.19/arch/x86/kernel/
Dmpparse.c193 static void __init smp_dump_mptable(struct mpc_table *mpc, unsigned char *mpt) in smp_dump_mptable() argument
196 pr_cont("type %x\n", *mpt); in smp_dump_mptable()
209 unsigned char *mpt = ((unsigned char *)mpc) + count; in smp_read_mpc() local
230 switch (*mpt) { in smp_read_mpc()
234 MP_processor_info((struct mpc_cpu *)mpt); in smp_read_mpc()
235 skip_entry(&mpt, &count, sizeof(struct mpc_cpu)); in smp_read_mpc()
238 MP_bus_info((struct mpc_bus *)mpt); in smp_read_mpc()
239 skip_entry(&mpt, &count, sizeof(struct mpc_bus)); in smp_read_mpc()
242 MP_ioapic_info((struct mpc_ioapic *)mpt); in smp_read_mpc()
243 skip_entry(&mpt, &count, sizeof(struct mpc_ioapic)); in smp_read_mpc()
[all …]
/Linux-v4.19/drivers/infiniband/hw/mthca/
Dmthca_mr.c601 mr->mem.arbel.mpt = mthca_table_find(dev->mr_table.mpt_table, key, NULL); in mthca_fmr_alloc()
602 BUG_ON(!mr->mem.arbel.mpt); in mthca_fmr_alloc()
604 mr->mem.tavor.mpt = dev->mr_table.tavor_fmr.mpt_base + in mthca_fmr_alloc()
605 sizeof *(mr->mem.tavor.mpt) * idx; in mthca_fmr_alloc()
736 writeb(MTHCA_MPT_STATUS_SW, fmr->mem.tavor.mpt); in mthca_tavor_map_phys_fmr()
748 __raw_writel((__force u32) mpt_entry.lkey, &fmr->mem.tavor.mpt->key); in mthca_tavor_map_phys_fmr()
749 memcpy_toio(&fmr->mem.tavor.mpt->start, &mpt_entry.start, in mthca_tavor_map_phys_fmr()
753 writeb(MTHCA_MPT_STATUS_HW, fmr->mem.tavor.mpt); in mthca_tavor_map_phys_fmr()
779 *(u8 *) fmr->mem.arbel.mpt = MTHCA_MPT_STATUS_SW; in mthca_arbel_map_phys_fmr()
793 fmr->mem.arbel.mpt->key = cpu_to_be32(key); in mthca_arbel_map_phys_fmr()
[all …]
Dmthca_provider.h86 struct mthca_mpt_entry __iomem *mpt; member
90 struct mthca_mpt_entry *mpt; member
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dmr.c1011 *(u8 *) fmr->mpt = MLX4_MPT_STATUS_SW; in mlx4_map_phys_fmr()
1025 fmr->mpt->key = cpu_to_be32(key); in mlx4_map_phys_fmr()
1026 fmr->mpt->lkey = cpu_to_be32(key); in mlx4_map_phys_fmr()
1027 fmr->mpt->length = cpu_to_be64(npages * (1ull << fmr->page_shift)); in mlx4_map_phys_fmr()
1028 fmr->mpt->start = cpu_to_be64(iova); in mlx4_map_phys_fmr()
1033 *(u8 *) fmr->mpt = MLX4_MPT_STATUS_HW; in mlx4_map_phys_fmr()
1094 fmr->mpt = mlx4_table_find(&priv->mr_table.dmpt_table, in mlx4_fmr_enable()
1096 if (!fmr->mpt) in mlx4_fmr_enable()
1110 *(u8 *)fmr->mpt = MLX4_MPT_STATUS_SW; in mlx4_fmr_unmap()
1130 *(u8 *)fmr->mpt = MLX4_MPT_STATUS_SW; in mlx4_fmr_free()
[all …]
Dresource_tracker.c457 dev->quotas.mpt = dev->caps.num_mpts - dev->caps.reserved_mrws; in mlx4_init_quotas()
470 dev->quotas.mpt = in mlx4_init_quotas()
1560 enum res_mpt_states state, struct res_mpt **mpt) in mr_res_start_move_to() argument
1602 if (mpt) in mr_res_start_move_to()
1603 *mpt = r; in mr_res_start_move_to()
1882 struct res_mpt *mpt; in mpt_alloc_res() local
1909 RES_MPT_MAPPED, &mpt); in mpt_alloc_res()
1913 err = __mlx4_mpt_alloc_icm(dev, mpt->key); in mpt_alloc_res()
2415 struct res_mpt *mpt; in mpt_free_res() local
2421 err = get_res(dev, slave, id, RES_MPT, &mpt); in mpt_free_res()
[all …]
Dmain.c1001 dev->quotas.mpt = func_cap->mpt_quota; in mlx4_slave_cap()
/Linux-v4.19/include/linux/mlx4/
Ddevice.h711 struct mlx4_mpt_entry *mpt; member
844 int mpt; member
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dmain.c527 props->max_mr = dev->dev->quotas.mpt; in mlx4_ib_query_device()