Lines Matching refs:cmd_buff
121 u8 *cmd_buff; in dpaa2_switch_acl_entry_add() local
124 cmd_buff = kzalloc(DPAA2_ETHSW_PORT_ACL_CMD_BUF_SIZE, GFP_KERNEL); in dpaa2_switch_acl_entry_add()
125 if (!cmd_buff) in dpaa2_switch_acl_entry_add()
128 dpsw_acl_prepare_entry_cfg(acl_key, cmd_buff); in dpaa2_switch_acl_entry_add()
130 acl_entry_cfg->key_iova = dma_map_single(dev, cmd_buff, in dpaa2_switch_acl_entry_add()
141 dma_unmap_single(dev, acl_entry_cfg->key_iova, sizeof(cmd_buff), in dpaa2_switch_acl_entry_add()
148 kfree(cmd_buff); in dpaa2_switch_acl_entry_add()
161 u8 *cmd_buff; in dpaa2_switch_acl_entry_remove() local
164 cmd_buff = kzalloc(DPAA2_ETHSW_PORT_ACL_CMD_BUF_SIZE, GFP_KERNEL); in dpaa2_switch_acl_entry_remove()
165 if (!cmd_buff) in dpaa2_switch_acl_entry_remove()
168 dpsw_acl_prepare_entry_cfg(acl_key, cmd_buff); in dpaa2_switch_acl_entry_remove()
170 acl_entry_cfg->key_iova = dma_map_single(dev, cmd_buff, in dpaa2_switch_acl_entry_remove()
181 dma_unmap_single(dev, acl_entry_cfg->key_iova, sizeof(cmd_buff), in dpaa2_switch_acl_entry_remove()
188 kfree(cmd_buff); in dpaa2_switch_acl_entry_remove()