Searched refs:hem (Results 1 – 5 of 5) sorted by relevance
56 static bool hns_roce_check_hem_null(struct hns_roce_hem **hem, u64 start_idx, in hns_roce_check_hem_null() argument62 if (hem[start_idx + i]) in hns_roce_check_hem_null()200 struct hns_roce_hem *hem; in hns_roce_alloc_hem() local207 hem = kmalloc(sizeof(*hem), in hns_roce_alloc_hem()209 if (!hem) in hns_roce_alloc_hem()212 hem->refcount = 0; in hns_roce_alloc_hem()213 INIT_LIST_HEAD(&hem->chunk_list); in hns_roce_alloc_hem()228 list_add_tail(&chunk->list, &hem->chunk_list); in hns_roce_alloc_hem()252 return hem; in hns_roce_alloc_hem()255 hns_roce_free_hem(hr_dev, hem); in hns_roce_alloc_hem()[all …]
90 struct hns_roce_hem *hem; member105 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem);131 static inline void hns_roce_hem_first(struct hns_roce_hem *hem, in hns_roce_hem_first() argument134 iter->hem = hem; in hns_roce_hem_first()135 iter->chunk = list_empty(&hem->chunk_list) ? NULL : in hns_roce_hem_first()136 list_entry(hem->chunk_list.next, in hns_roce_hem_first()149 if (iter->chunk->list.next == &iter->hem->chunk_list) { in hns_roce_hem_next()
282 struct hns_roce_hem **hem; member
2334 struct hns_roce_hem *hem; in hns_roce_v2_set_hem() local2390 hem = table->hem[hem_idx]; in hns_roce_v2_set_hem()2391 for (hns_roce_hem_first(hem, &iter); in hns_roce_v2_set_hem()
4341 Henrik Nordstrom <http://hem.passagen.se/hno/> - Provided a variety