Lines Matching refs:dma_mem
3197 void *dma_mem, *key, *mask; in dpaa2_eth_set_vlan_qos() local
3211 dma_mem = kzalloc(DPAA2_CLASSIFIER_DMA_SIZE, GFP_KERNEL); in dpaa2_eth_set_vlan_qos()
3212 if (!dma_mem) in dpaa2_eth_set_vlan_qos()
3221 err = dpni_prepare_key_cfg(&kg_cfg, dma_mem); in dpaa2_eth_set_vlan_qos()
3230 qos_cfg.key_cfg_iova = dma_map_single(dev, dma_mem, in dpaa2_eth_set_vlan_qos()
3297 kfree(dma_mem); in dpaa2_eth_set_vlan_qos()
3743 u8 *dma_mem; in dpaa2_eth_set_dist_key() local
3773 dma_mem = kzalloc(DPAA2_CLASSIFIER_DMA_SIZE, GFP_KERNEL); in dpaa2_eth_set_dist_key()
3774 if (!dma_mem) in dpaa2_eth_set_dist_key()
3777 err = dpni_prepare_key_cfg(&cls_cfg, dma_mem); in dpaa2_eth_set_dist_key()
3784 key_iova = dma_map_single(dev, dma_mem, DPAA2_CLASSIFIER_DMA_SIZE, in dpaa2_eth_set_dist_key()
3807 kfree(dma_mem); in dpaa2_eth_set_dist_key()