Lines Matching refs:hma
4005 if (!adapter->hma.sgt) in adap_free_hma_mem()
4008 if (adapter->hma.flags & HMA_DMA_MAPPED_FLAG) { in adap_free_hma_mem()
4009 dma_unmap_sg(adapter->pdev_dev, adapter->hma.sgt->sgl, in adap_free_hma_mem()
4010 adapter->hma.sgt->nents, DMA_BIDIRECTIONAL); in adap_free_hma_mem()
4011 adapter->hma.flags &= ~HMA_DMA_MAPPED_FLAG; in adap_free_hma_mem()
4014 for_each_sg(adapter->hma.sgt->sgl, iter, in adap_free_hma_mem()
4015 adapter->hma.sgt->orig_nents, i) { in adap_free_hma_mem()
4021 kfree(adapter->hma.phy_addr); in adap_free_hma_mem()
4022 sg_free_table(adapter->hma.sgt); in adap_free_hma_mem()
4023 kfree(adapter->hma.sgt); in adap_free_hma_mem()
4024 adapter->hma.sgt = NULL; in adap_free_hma_mem()
4067 adapter->hma.sgt = kzalloc(sizeof(*adapter->hma.sgt), GFP_KERNEL); in adap_config_hma()
4068 if (unlikely(!adapter->hma.sgt)) { in adap_config_hma()
4072 sgt = adapter->hma.sgt; in adap_config_hma()
4078 kfree(adapter->hma.sgt); in adap_config_hma()
4079 adapter->hma.sgt = NULL; in adap_config_hma()
4083 sgl = adapter->hma.sgt->sgl; in adap_config_hma()
4105 adapter->hma.flags |= HMA_DMA_MAPPED_FLAG; in adap_config_hma()
4107 adapter->hma.phy_addr = kcalloc(sgt->nents, sizeof(dma_addr_t), in adap_config_hma()
4109 if (unlikely(!adapter->hma.phy_addr)) in adap_config_hma()
4114 adapter->hma.phy_addr[i] = sg_dma_address(iter); in adap_config_hma()
4157 cpu_to_be64(adapter->hma.phy_addr[j + k]); in adap_config_hma()