int ret_code;
 
        ret_code = i40e_allocate_dma_mem(hw, &hw->aq.asq.desc_buf,
-                                        i40e_mem_atq_ring,
                                         (hw->aq.num_asq_entries *
                                         sizeof(struct i40e_aq_desc)),
                                         I40E_ADMINQ_DESC_ALIGNMENT);
        int ret_code;
 
        ret_code = i40e_allocate_dma_mem(hw, &hw->aq.arq.desc_buf,
-                                        i40e_mem_arq_ring,
                                         (hw->aq.num_arq_entries *
                                         sizeof(struct i40e_aq_desc)),
                                         I40E_ADMINQ_DESC_ALIGNMENT);
        for (i = 0; i < hw->aq.num_arq_entries; i++) {
                bi = &hw->aq.arq.r.arq_bi[i];
                ret_code = i40e_allocate_dma_mem(hw, bi,
-                                                i40e_mem_arq_buf,
                                                 hw->aq.arq_buf_size,
                                                 I40E_ADMINQ_DESC_ALIGNMENT);
                if (ret_code)
        for (i = 0; i < hw->aq.num_asq_entries; i++) {
                bi = &hw->aq.asq.r.asq_bi[i];
                ret_code = i40e_allocate_dma_mem(hw, bi,
-                                                i40e_mem_asq_buf,
                                                 hw->aq.asq_buf_size,
                                                 I40E_ADMINQ_DESC_ALIGNMENT);
                if (ret_code)
 
 
 struct i40e_hw;
 
-/* Memory allocation types */
-enum i40e_memory_type {
-       i40e_mem_arq_buf = 0,           /* ARQ indirect command buffer */
-       i40e_mem_asq_buf = 1,
-       i40e_mem_atq_buf = 2,           /* ATQ indirect command buffer */
-       i40e_mem_arq_ring = 3,          /* ARQ descriptor ring */
-       i40e_mem_atq_ring = 4,          /* ATQ descriptor ring */
-       i40e_mem_pd = 5,                /* Page Descriptor */
-       i40e_mem_bp = 6,                /* Backing Page - 4KB */
-       i40e_mem_bp_jumbo = 7,          /* Backing Page - > 4KB */
-       i40e_mem_reserved
-};
-
 /* prototype for functions used for dynamic memory allocation */
 int i40e_allocate_dma_mem(struct i40e_hw *hw,
                          struct i40e_dma_mem *mem,
-                         enum i40e_memory_type type,
                          u64 size, u32 alignment);
 int i40e_free_dma_mem(struct i40e_hw *hw,
                      struct i40e_dma_mem *mem);
 
                            enum i40e_sd_entry_type type,
                            u64 direct_mode_sz)
 {
-       enum i40e_memory_type mem_type __attribute__((unused));
        struct i40e_hmc_sd_entry *sd_entry;
        bool dma_mem_alloc_done = false;
        struct i40e_dma_mem mem;
 
        sd_entry = &hmc_info->sd_table.sd_entry[sd_index];
        if (!sd_entry->valid) {
-               if (I40E_SD_TYPE_PAGED == type) {
-                       mem_type = i40e_mem_pd;
+               if (type == I40E_SD_TYPE_PAGED)
                        alloc_len = I40E_HMC_PAGED_BP_SIZE;
-               } else {
-                       mem_type = i40e_mem_bp_jumbo;
+               else
                        alloc_len = direct_mode_sz;
-               }
 
                /* allocate a 4K pd page or 2M backing page */
-               ret_code = i40e_allocate_dma_mem(hw, &mem, mem_type, alloc_len,
+               ret_code = i40e_allocate_dma_mem(hw, &mem, alloc_len,
                                                 I40E_HMC_PD_BP_BUF_ALIGNMENT);
                if (ret_code)
                        goto exit;
                        page = rsrc_pg;
                } else {
                        /* allocate a 4K backing page */
-                       ret_code = i40e_allocate_dma_mem(hw, page, i40e_mem_bp,
+                       ret_code = i40e_allocate_dma_mem(hw, page,
                                                I40E_HMC_PAGED_BP_SIZE,
                                                I40E_HMC_PD_BP_BUF_ALIGNMENT);
                        if (ret_code)
 
 }
 
 /**
- * i40e_allocate_dma_mem_d - OS specific memory alloc for shared code
+ * i40e_allocate_dma_mem - OS specific memory alloc for shared code
  * @hw:   pointer to the HW structure
  * @mem:  ptr to mem struct to fill out
  * @size: size of memory requested
  * @alignment: what to align the allocation to
  **/
-int i40e_allocate_dma_mem_d(struct i40e_hw *hw, struct i40e_dma_mem *mem,
-                           u64 size, u32 alignment)
+int i40e_allocate_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem,
+                         u64 size, u32 alignment)
 {
        struct i40e_pf *pf = i40e_hw_to_pf(hw);
 
 }
 
 /**
- * i40e_free_dma_mem_d - OS specific memory free for shared code
+ * i40e_free_dma_mem - OS specific memory free for shared code
  * @hw:   pointer to the HW structure
  * @mem:  ptr to mem struct to free
  **/
-int i40e_free_dma_mem_d(struct i40e_hw *hw, struct i40e_dma_mem *mem)
+int i40e_free_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem)
 {
        struct i40e_pf *pf = i40e_hw_to_pf(hw);
 
 }
 
 /**
- * i40e_allocate_virt_mem_d - OS specific memory alloc for shared code
+ * i40e_allocate_virt_mem - OS specific memory alloc for shared code
  * @hw:   pointer to the HW structure
  * @mem:  ptr to mem struct to fill out
  * @size: size of memory requested
  **/
-int i40e_allocate_virt_mem_d(struct i40e_hw *hw, struct i40e_virt_mem *mem,
-                            u32 size)
+int i40e_allocate_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem,
+                          u32 size)
 {
        mem->size = size;
        mem->va = kzalloc(size, GFP_KERNEL);
 }
 
 /**
- * i40e_free_virt_mem_d - OS specific memory free for shared code
+ * i40e_free_virt_mem - OS specific memory free for shared code
  * @hw:   pointer to the HW structure
  * @mem:  ptr to mem struct to free
  **/
-int i40e_free_virt_mem_d(struct i40e_hw *hw, struct i40e_virt_mem *mem)
+int i40e_free_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem)
 {
        /* it's ok to kfree a NULL pointer */
        kfree(mem->va);
 
        u32 size;
 };
 
-#define i40e_allocate_dma_mem(h, m, unused, s, a) \
-                       i40e_allocate_dma_mem_d(h, m, s, a)
-#define i40e_free_dma_mem(h, m) i40e_free_dma_mem_d(h, m)
-
 struct i40e_virt_mem {
        void *va;
        u32 size;
 };
 
-#define i40e_allocate_virt_mem(h, m, s) i40e_allocate_virt_mem_d(h, m, s)
-#define i40e_free_virt_mem(h, m) i40e_free_virt_mem_d(h, m)
-
 #define i40e_debug(h, m, s, ...)                               \
 do {                                                           \
        if (((m) & (h)->debug_mask))                            \