Lines Matching refs:hma
4006 if (!adapter->hma.sgt) in adap_free_hma_mem()
4009 if (adapter->hma.flags & HMA_DMA_MAPPED_FLAG) { in adap_free_hma_mem()
4010 dma_unmap_sg(adapter->pdev_dev, adapter->hma.sgt->sgl, in adap_free_hma_mem()
4011 adapter->hma.sgt->nents, DMA_BIDIRECTIONAL); in adap_free_hma_mem()
4012 adapter->hma.flags &= ~HMA_DMA_MAPPED_FLAG; in adap_free_hma_mem()
4015 for_each_sg(adapter->hma.sgt->sgl, iter, in adap_free_hma_mem()
4016 adapter->hma.sgt->orig_nents, i) { in adap_free_hma_mem()
4022 kfree(adapter->hma.phy_addr); in adap_free_hma_mem()
4023 sg_free_table(adapter->hma.sgt); in adap_free_hma_mem()
4024 kfree(adapter->hma.sgt); in adap_free_hma_mem()
4025 adapter->hma.sgt = NULL; in adap_free_hma_mem()
4068 adapter->hma.sgt = kzalloc(sizeof(*adapter->hma.sgt), GFP_KERNEL); in adap_config_hma()
4069 if (unlikely(!adapter->hma.sgt)) { in adap_config_hma()
4073 sgt = adapter->hma.sgt; in adap_config_hma()
4079 kfree(adapter->hma.sgt); in adap_config_hma()
4080 adapter->hma.sgt = NULL; in adap_config_hma()
4084 sgl = adapter->hma.sgt->sgl; in adap_config_hma()
4106 adapter->hma.flags |= HMA_DMA_MAPPED_FLAG; in adap_config_hma()
4108 adapter->hma.phy_addr = kcalloc(sgt->nents, sizeof(dma_addr_t), in adap_config_hma()
4110 if (unlikely(!adapter->hma.phy_addr)) in adap_config_hma()
4115 adapter->hma.phy_addr[i] = sg_dma_address(iter); in adap_config_hma()
4158 cpu_to_be64(adapter->hma.phy_addr[j + k]); in adap_config_hma()