Lines Matching refs:inlen
103 struct mlx5_ib_mkey *mkey, u32 *in, int inlen) in mlx5_ib_create_mkey() argument
108 ret = mlx5_core_create_mkey(dev->mdev, &mkey->key, in, inlen); in mlx5_ib_create_mkey()
119 u32 *in, int inlen, u32 *out, int outlen, in mlx5_ib_create_mkey_cb() argument
124 return mlx5_cmd_exec_cb(async_ctx, in, inlen, out, outlen, in mlx5_ib_create_mkey_cb()
202 size_t inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in add_keys() local
209 in = kzalloc(inlen, GFP_KERNEL); in add_keys()
230 &ent->dev->async_ctx, in, inlen, in add_keys()
250 size_t inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in create_cache_mr() local
256 in = kzalloc(inlen, GFP_KERNEL); in create_cache_mr()
267 err = mlx5_core_create_mkey(ent->dev->mdev, &mr->mmkey.key, in, inlen); in create_cache_mr()
792 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5_ib_get_dma_mr() local
802 in = kzalloc(inlen, GFP_KERNEL); in mlx5_ib_get_dma_mr()
815 err = mlx5_ib_create_mkey(dev, &mr->mmkey, in, inlen); in mlx5_ib_get_dma_mr()
1276 int inlen; in reg_create() local
1291 inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in reg_create()
1293 inlen += sizeof(*pas) * in reg_create()
1295 in = kvzalloc(inlen, GFP_KERNEL); in reg_create()
1331 err = mlx5_ib_create_mkey(dev, &mr->mmkey, in, inlen); in reg_create()
1356 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5_ib_get_dm_mr() local
1366 in = kzalloc(inlen, GFP_KERNEL); in mlx5_ib_get_dm_mr()
1379 err = mlx5_ib_create_mkey(dev, &mr->mmkey, in, inlen); in mlx5_ib_get_dm_mr()
2020 int access_mode, u32 *in, int inlen) in _mlx5_alloc_mkey_descs() argument
2035 err = mlx5_ib_create_mkey(dev, &mr->mmkey, in, inlen); in _mlx5_alloc_mkey_descs()
2054 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5_ib_alloc_pi_mr() local
2068 in = kzalloc(inlen, GFP_KERNEL); in mlx5_ib_alloc_pi_mr()
2078 access_mode, in, inlen); in mlx5_ib_alloc_pi_mr()
2095 int ndescs, u32 *in, int inlen) in mlx5_alloc_mem_reg_descs() argument
2099 inlen); in mlx5_alloc_mem_reg_descs()
2103 int ndescs, u32 *in, int inlen) in mlx5_alloc_sg_gaps_descs() argument
2106 0, MLX5_MKC_ACCESS_MODE_KLMS, in, inlen); in mlx5_alloc_sg_gaps_descs()
2111 u32 *in, int inlen) in mlx5_alloc_integrity_descs() argument
2155 MLX5_MKC_ACCESS_MODE_KLMS, in, inlen); in mlx5_alloc_integrity_descs()
2192 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in __mlx5_ib_alloc_mr() local
2202 in = kzalloc(inlen, GFP_KERNEL); in __mlx5_ib_alloc_mr()
2213 err = mlx5_alloc_mem_reg_descs(pd, mr, ndescs, in, inlen); in __mlx5_ib_alloc_mr()
2216 err = mlx5_alloc_sg_gaps_descs(pd, mr, ndescs, in, inlen); in __mlx5_ib_alloc_mr()
2220 max_num_meta_sg, in, inlen); in __mlx5_ib_alloc_mr()
2257 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5_ib_alloc_mw() local
2269 err = ib_copy_from_udata(&req, udata, min(udata->inlen, sizeof(req))); in mlx5_ib_alloc_mw()
2276 if (udata->inlen > sizeof(req) && in mlx5_ib_alloc_mw()
2278 udata->inlen - sizeof(req))) in mlx5_ib_alloc_mw()
2283 in = kzalloc(inlen, GFP_KERNEL); in mlx5_ib_alloc_mw()
2300 err = mlx5_ib_create_mkey(dev, &mw->mmkey, in, inlen); in mlx5_ib_alloc_mw()