Lines Matching refs:mdl
1316 if (mem_info->mdl == NULL) in bnad_mem_free()
1320 if (mem_info->mdl[i].kva != NULL) { in bnad_mem_free()
1322 BNA_GET_DMA_ADDR(&(mem_info->mdl[i].dma), in bnad_mem_free()
1325 mem_info->mdl[i].len, in bnad_mem_free()
1326 mem_info->mdl[i].kva, dma_pa); in bnad_mem_free()
1328 kfree(mem_info->mdl[i].kva); in bnad_mem_free()
1331 kfree(mem_info->mdl); in bnad_mem_free()
1332 mem_info->mdl = NULL; in bnad_mem_free()
1343 mem_info->mdl = NULL; in bnad_mem_alloc()
1347 mem_info->mdl = kcalloc(mem_info->num, sizeof(struct bna_mem_descr), in bnad_mem_alloc()
1349 if (mem_info->mdl == NULL) in bnad_mem_alloc()
1354 mem_info->mdl[i].len = mem_info->len; in bnad_mem_alloc()
1355 mem_info->mdl[i].kva = in bnad_mem_alloc()
1359 if (mem_info->mdl[i].kva == NULL) in bnad_mem_alloc()
1363 &(mem_info->mdl[i].dma)); in bnad_mem_alloc()
1367 mem_info->mdl[i].len = mem_info->len; in bnad_mem_alloc()
1368 mem_info->mdl[i].kva = kzalloc(mem_info->len, in bnad_mem_alloc()
1370 if (mem_info->mdl[i].kva == NULL) in bnad_mem_alloc()