Lines Matching refs:virt
206 static int mlx4_MAP_ICM(struct mlx4_dev *dev, struct mlx4_icm *icm, u64 virt) in mlx4_MAP_ICM() argument
208 return mlx4_map_cmd(dev, MLX4_CMD_MAP_ICM, icm, virt); in mlx4_MAP_ICM()
211 int mlx4_UNMAP_ICM(struct mlx4_dev *dev, u64 virt, u32 page_count) in mlx4_UNMAP_ICM() argument
213 return mlx4_cmd(dev, virt, page_count, 0, MLX4_CMD_UNMAP_ICM, in mlx4_UNMAP_ICM()
217 int mlx4_MAP_ICM_page(struct mlx4_dev *dev, u64 dma_addr, u64 virt) in mlx4_MAP_ICM_page() argument
228 inbox[0] = cpu_to_be64(virt); in mlx4_MAP_ICM_page()
238 (unsigned long long) dma_addr, (unsigned long long) virt); in mlx4_MAP_ICM_page()
273 if (mlx4_MAP_ICM(dev, table->icm[i], table->virt + in mlx4_table_get()
297 mlx4_UNMAP_ICM(dev, table->virt + i * MLX4_TABLE_CHUNK_SIZE, in mlx4_table_put()
384 u64 virt, int obj_size, int nobj, int reserved, in mlx4_init_icm_table() argument
398 table->virt = virt; in mlx4_init_icm_table()
416 if (mlx4_MAP_ICM(dev, table->icm[i], virt + i * MLX4_TABLE_CHUNK_SIZE)) { in mlx4_init_icm_table()
434 mlx4_UNMAP_ICM(dev, virt + i * MLX4_TABLE_CHUNK_SIZE, in mlx4_init_icm_table()
448 mlx4_UNMAP_ICM(dev, table->virt + i * MLX4_TABLE_CHUNK_SIZE, in mlx4_cleanup_icm_table()