Lines Matching refs:mdl
1317 if (mem_info->mdl == NULL) in bnad_mem_free()
1321 if (mem_info->mdl[i].kva != NULL) { in bnad_mem_free()
1323 BNA_GET_DMA_ADDR(&(mem_info->mdl[i].dma), in bnad_mem_free()
1326 mem_info->mdl[i].len, in bnad_mem_free()
1327 mem_info->mdl[i].kva, dma_pa); in bnad_mem_free()
1329 kfree(mem_info->mdl[i].kva); in bnad_mem_free()
1332 kfree(mem_info->mdl); in bnad_mem_free()
1333 mem_info->mdl = NULL; in bnad_mem_free()
1344 mem_info->mdl = NULL; in bnad_mem_alloc()
1348 mem_info->mdl = kcalloc(mem_info->num, sizeof(struct bna_mem_descr), in bnad_mem_alloc()
1350 if (mem_info->mdl == NULL) in bnad_mem_alloc()
1355 mem_info->mdl[i].len = mem_info->len; in bnad_mem_alloc()
1356 mem_info->mdl[i].kva = in bnad_mem_alloc()
1360 if (mem_info->mdl[i].kva == NULL) in bnad_mem_alloc()
1364 &(mem_info->mdl[i].dma)); in bnad_mem_alloc()
1368 mem_info->mdl[i].len = mem_info->len; in bnad_mem_alloc()
1369 mem_info->mdl[i].kva = kzalloc(mem_info->len, in bnad_mem_alloc()
1371 if (mem_info->mdl[i].kva == NULL) in bnad_mem_alloc()