Lines Matching refs:bt_l0
368 dma_free_coherent(dev, bt_size, table->bt_l0[index->l0], in free_mhop_hem()
370 table->bt_l0[index->l0] = NULL; in free_mhop_hem()
389 !table->bt_l0[index->l0]) { in alloc_mhop_hem()
390 table->bt_l0[index->l0] = dma_alloc_coherent(dev, bt_size, in alloc_mhop_hem()
393 if (!table->bt_l0[index->l0]) { in alloc_mhop_hem()
411 *(table->bt_l0[index->l0] + mhop->l1_idx) = in alloc_mhop_hem()
434 *(table->bt_l0[index->l0] + mhop->l1_idx) = bt_ba; in alloc_mhop_hem()
436 *(table->bt_l0[index->l0] + mhop->l1_idx) = bt_ba; in alloc_mhop_hem()
799 table->bt_l0 = kcalloc(num_bt_l0, sizeof(*table->bt_l0), in hns_roce_init_hem_table()
801 if (!table->bt_l0) in hns_roce_init_hem_table()
820 kfree(table->bt_l0); in hns_roce_init_hem_table()
821 table->bt_l0 = NULL; in hns_roce_init_hem_table()
864 kfree(table->bt_l0); in hns_roce_cleanup_mhop_hem_table()
865 table->bt_l0 = NULL; in hns_roce_cleanup_mhop_hem_table()