Lines Matching refs:av_table

172 		index = mthca_alloc(&dev->av_table.alloc);  in mthca_create_ah()
183 ah->avdma = dev->av_table.ddr_av_base + in mthca_create_ah()
189 ah->av = dma_pool_zalloc(dev->av_table.pool, in mthca_create_ah()
235 memcpy_toio(dev->av_table.av_map + index * MTHCA_AV_SIZE, in mthca_create_ah()
247 mthca_free(&dev->av_table.alloc, in mthca_destroy_ah()
248 (ah->avdma - dev->av_table.ddr_av_base) / in mthca_destroy_ah()
253 dma_pool_free(dev->av_table.pool, ah->av, ah->avdma); in mthca_destroy_ah()
333 err = mthca_alloc_init(&dev->av_table.alloc, in mthca_init_av_table()
334 dev->av_table.num_ddr_avs, in mthca_init_av_table()
335 dev->av_table.num_ddr_avs - 1, in mthca_init_av_table()
340 dev->av_table.pool = dma_pool_create("mthca_av", &dev->pdev->dev, in mthca_init_av_table()
343 if (!dev->av_table.pool) in mthca_init_av_table()
347 dev->av_table.av_map = ioremap(pci_resource_start(dev->pdev, 4) + in mthca_init_av_table()
348 dev->av_table.ddr_av_base - in mthca_init_av_table()
350 dev->av_table.num_ddr_avs * in mthca_init_av_table()
352 if (!dev->av_table.av_map) in mthca_init_av_table()
355 dev->av_table.av_map = NULL; in mthca_init_av_table()
360 dma_pool_destroy(dev->av_table.pool); in mthca_init_av_table()
363 mthca_alloc_cleanup(&dev->av_table.alloc); in mthca_init_av_table()
372 if (dev->av_table.av_map) in mthca_cleanup_av_table()
373 iounmap(dev->av_table.av_map); in mthca_cleanup_av_table()
374 dma_pool_destroy(dev->av_table.pool); in mthca_cleanup_av_table()
375 mthca_alloc_cleanup(&dev->av_table.alloc); in mthca_cleanup_av_table()