Lines Matching refs:mdl
1130 if (mem_info->mdl == NULL) in bnad_mem_free()
1134 if (mem_info->mdl[i].kva != NULL) { in bnad_mem_free()
1136 BNA_GET_DMA_ADDR(&(mem_info->mdl[i].dma), in bnad_mem_free()
1139 mem_info->mdl[i].len, in bnad_mem_free()
1140 mem_info->mdl[i].kva, dma_pa); in bnad_mem_free()
1142 kfree(mem_info->mdl[i].kva); in bnad_mem_free()
1145 kfree(mem_info->mdl); in bnad_mem_free()
1146 mem_info->mdl = NULL; in bnad_mem_free()
1157 mem_info->mdl = NULL; in bnad_mem_alloc()
1161 mem_info->mdl = kcalloc(mem_info->num, sizeof(struct bna_mem_descr), in bnad_mem_alloc()
1163 if (mem_info->mdl == NULL) in bnad_mem_alloc()
1168 mem_info->mdl[i].len = mem_info->len; in bnad_mem_alloc()
1169 mem_info->mdl[i].kva = in bnad_mem_alloc()
1174 if (mem_info->mdl[i].kva == NULL) in bnad_mem_alloc()
1178 &(mem_info->mdl[i].dma)); in bnad_mem_alloc()
1182 mem_info->mdl[i].len = mem_info->len; in bnad_mem_alloc()
1183 mem_info->mdl[i].kva = kzalloc(mem_info->len, in bnad_mem_alloc()
1185 if (mem_info->mdl[i].kva == NULL) in bnad_mem_alloc()