mmkey 449 drivers/infiniband/hw/mlx5/cq.c struct mlx5_core_mkey *mmkey; mmkey 549 drivers/infiniband/hw/mlx5/cq.c mmkey = xa_load(&dev->mdev->priv.mkey_table, mmkey 551 drivers/infiniband/hw/mlx5/cq.c mr = to_mibmr(mmkey); mmkey 1257 drivers/infiniband/hw/mlx5/devx.c mkey = &devx_mr->mmkey; mmkey 1349 drivers/infiniband/hw/mlx5/devx.c mlx5_base_mkey(obj->devx_mr.mmkey.key)); mmkey 600 drivers/infiniband/hw/mlx5/mlx5_ib.h struct mlx5_core_mkey mmkey; mmkey 636 drivers/infiniband/hw/mlx5/mlx5_ib.h struct mlx5_core_mkey mmkey; mmkey 641 drivers/infiniband/hw/mlx5/mlx5_ib.h struct mlx5_core_mkey mmkey; mmkey 1043 drivers/infiniband/hw/mlx5/mlx5_ib.h static inline struct mlx5_ib_mr *to_mibmr(struct mlx5_core_mkey *mmkey) mmkey 1045 drivers/infiniband/hw/mlx5/mlx5_ib.h return container_of(mmkey, struct mlx5_ib_mr, mmkey); mmkey 62 drivers/infiniband/hw/mlx5/mr.c int err = mlx5_core_destroy_mkey(dev->mdev, &mr->mmkey); mmkey 111 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.type = MLX5_MKEY_MR; mmkey 115 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.key = mlx5_idx_to_mkey(MLX5_GET(create_mkey_out, mr->out, mkey_index)) | key; mmkey 126 drivers/infiniband/hw/mlx5/mr.c err = xa_err(__xa_store(mkeys, mlx5_base_mkey(mr->mmkey.key), mmkey 127 drivers/infiniband/hw/mlx5/mr.c &mr->mmkey, GFP_ATOMIC)); mmkey 180 drivers/infiniband/hw/mlx5/mr.c err = mlx5_core_create_mkey_cb(dev->mdev, &mr->mmkey, mmkey 218 drivers/infiniband/hw/mlx5/mr.c mlx5_core_destroy_mkey(dev->mdev, &mr->mmkey); mmkey 555 drivers/infiniband/hw/mlx5/mr.c mlx5_core_destroy_mkey(dev->mdev, &mr->mmkey); mmkey 716 drivers/infiniband/hw/mlx5/mr.c err = mlx5_core_create_mkey(mdev, &mr->mmkey, in, inlen); mmkey 721 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.type = MLX5_MKEY_MR; mmkey 722 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.lkey = mr->mmkey.key; mmkey 723 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.rkey = mr->mmkey.key; mmkey 878 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.iova = virt_addr; mmkey 879 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.size = len; mmkey 880 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.pd = to_mpd(pd)->pdn; mmkey 996 drivers/infiniband/hw/mlx5/mr.c wr.mkey = mr->mmkey.key; mmkey 997 drivers/infiniband/hw/mlx5/mr.c wr.length = mr->mmkey.size; mmkey 998 drivers/infiniband/hw/mlx5/mr.c wr.virt_addr = mr->mmkey.iova; mmkey 1112 drivers/infiniband/hw/mlx5/mr.c err = mlx5_core_create_mkey(dev->mdev, &mr->mmkey, in, inlen); mmkey 1117 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.type = MLX5_MKEY_MR; mmkey 1122 drivers/infiniband/hw/mlx5/mr.c mlx5_ib_dbg(dev, "mkey = 0x%x\n", mr->mmkey.key); mmkey 1141 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.lkey = mr->mmkey.key; mmkey 1142 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.rkey = mr->mmkey.key; mmkey 1183 drivers/infiniband/hw/mlx5/mr.c err = mlx5_core_create_mkey(mdev, &mr->mmkey, in, inlen); mmkey 1318 drivers/infiniband/hw/mlx5/mr.c mlx5_ib_dbg(dev, "mkey 0x%x\n", mr->mmkey.key); mmkey 1363 drivers/infiniband/hw/mlx5/mr.c umrwr.mkey = mr->mmkey.key; mmkey 1379 drivers/infiniband/hw/mlx5/mr.c umrwr.mkey = mr->mmkey.key; mmkey 1472 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.iova = addr; mmkey 1473 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.size = len; mmkey 1474 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.pd = to_mpd(pd)->pdn; mmkey 1676 drivers/infiniband/hw/mlx5/mr.c err = mlx5_core_create_mkey(dev->mdev, &mr->mmkey, in, inlen); mmkey 1680 drivers/infiniband/hw/mlx5/mr.c mr->mmkey.type = MLX5_MKEY_MR; mmkey 1681 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.lkey = mr->mmkey.key; mmkey 1682 drivers/infiniband/hw/mlx5/mr.c mr->ibmr.rkey = mr->mmkey.key; mmkey 1936 drivers/infiniband/hw/mlx5/mr.c err = mlx5_core_create_mkey(dev->mdev, &mw->mmkey, in, inlen); mmkey 1940 drivers/infiniband/hw/mlx5/mr.c mw->mmkey.type = MLX5_MKEY_MW; mmkey 1941 drivers/infiniband/hw/mlx5/mr.c mw->ibmw.rkey = mw->mmkey.key; mmkey 1949 drivers/infiniband/hw/mlx5/mr.c mlx5_core_destroy_mkey(dev->mdev, &mw->mmkey); mmkey 1971 drivers/infiniband/hw/mlx5/mr.c mlx5_base_mkey(mmw->mmkey.key)); mmkey 1979 drivers/infiniband/hw/mlx5/mr.c err = mlx5_core_destroy_mkey(dev->mdev, &mmw->mmkey); mmkey 437 drivers/infiniband/hw/mlx5/odp.c mr->mmkey.iova = 0; mmkey 460 drivers/infiniband/hw/mlx5/odp.c mr->ibmr.lkey = mr->mmkey.key; mmkey 461 drivers/infiniband/hw/mlx5/odp.c mr->ibmr.rkey = mr->mmkey.key; mmkey 464 drivers/infiniband/hw/mlx5/odp.c mr->mmkey.key, dev->mdev, mr); mmkey 512 drivers/infiniband/hw/mlx5/odp.c mtt->mmkey.iova = addr; mmkey 639 drivers/infiniband/hw/mlx5/odp.c start_idx = (io_virt - (mr->mmkey.iova & page_mask)) >> page_shift; mmkey 739 drivers/infiniband/hw/mlx5/odp.c static bool mkey_is_eq(struct mlx5_core_mkey *mmkey, u32 key) mmkey 741 drivers/infiniband/hw/mlx5/odp.c if (!mmkey) mmkey 743 drivers/infiniband/hw/mlx5/odp.c if (mmkey->type == MLX5_MKEY_MW) mmkey 744 drivers/infiniband/hw/mlx5/odp.c return mlx5_base_mkey(mmkey->key) == mlx5_base_mkey(key); mmkey 745 drivers/infiniband/hw/mlx5/odp.c return mmkey->key == key; mmkey 748 drivers/infiniband/hw/mlx5/odp.c static int get_indirect_num_descs(struct mlx5_core_mkey *mmkey) mmkey 753 drivers/infiniband/hw/mlx5/odp.c if (mmkey->type == MLX5_MKEY_MW) { mmkey 754 drivers/infiniband/hw/mlx5/odp.c mw = container_of(mmkey, struct mlx5_ib_mw, mmkey); mmkey 758 drivers/infiniband/hw/mlx5/odp.c devx_mr = container_of(mmkey, struct mlx5_ib_devx_mr, mmkey 759 drivers/infiniband/hw/mlx5/odp.c mmkey); mmkey 783 drivers/infiniband/hw/mlx5/odp.c struct mlx5_core_mkey *mmkey; mmkey 796 drivers/infiniband/hw/mlx5/odp.c mmkey = xa_load(&dev->mdev->priv.mkey_table, mlx5_base_mkey(key)); mmkey 797 drivers/infiniband/hw/mlx5/odp.c if (!mkey_is_eq(mmkey, key)) { mmkey 803 drivers/infiniband/hw/mlx5/odp.c if (prefetch && mmkey->type != MLX5_MKEY_MR) { mmkey 809 drivers/infiniband/hw/mlx5/odp.c switch (mmkey->type) { mmkey 811 drivers/infiniband/hw/mlx5/odp.c mr = container_of(mmkey, struct mlx5_ib_mr, mmkey); mmkey 848 drivers/infiniband/hw/mlx5/odp.c ndescs = get_indirect_num_descs(mmkey); mmkey 872 drivers/infiniband/hw/mlx5/odp.c ret = mlx5_core_query_mkey(dev->mdev, mmkey, out, outlen); mmkey 905 drivers/infiniband/hw/mlx5/odp.c mlx5_ib_dbg(dev, "wrong mkey type %d\n", mmkey->type); mmkey 1643 drivers/infiniband/hw/mlx5/odp.c struct mlx5_core_mkey *mmkey; mmkey 1646 drivers/infiniband/hw/mlx5/odp.c mmkey = xa_load(&dev->mdev->priv.mkey_table, mmkey 1648 drivers/infiniband/hw/mlx5/odp.c mr = container_of(mmkey, struct mlx5_ib_mr, mmkey); mmkey 1663 drivers/infiniband/hw/mlx5/odp.c struct mlx5_core_mkey *mmkey; mmkey 1666 drivers/infiniband/hw/mlx5/odp.c mmkey = xa_load(&dev->mdev->priv.mkey_table, mmkey 1668 drivers/infiniband/hw/mlx5/odp.c if (!mmkey || mmkey->key != sg_list[i].lkey) { mmkey 1673 drivers/infiniband/hw/mlx5/odp.c if (mmkey->type != MLX5_MKEY_MR) { mmkey 1678 drivers/infiniband/hw/mlx5/odp.c mr = container_of(mmkey, struct mlx5_ib_mr, mmkey);