Searched refs:trunks (Results 1 – 2 of 2) sorted by relevance
41 struct hns_roce_buf_list *trunks; in hns_roce_buf_free() local47 trunks = buf->trunk_list; in hns_roce_buf_free()48 if (trunks) { in hns_roce_buf_free()52 trunks[i].buf, trunks[i].map); in hns_roce_buf_free()54 kfree(trunks); in hns_roce_buf_free()71 struct hns_roce_buf_list *trunks; in hns_roce_buf_alloc() local97 trunks = kcalloc(ntrunk, sizeof(*trunks), gfp_flags); in hns_roce_buf_alloc()98 if (!trunks) { in hns_roce_buf_alloc()106 trunks[i].buf = dma_alloc_coherent(hr_dev->dev, trunk_size, in hns_roce_buf_alloc()107 &trunks[i].map, gfp_flags); in hns_roce_buf_alloc()[all …]
96 stations and trunks.