Searched refs:hem (Results 1 – 5 of 5) sorted by relevance
87 static bool hns_roce_check_hem_null(struct hns_roce_hem **hem, u64 start_idx, in hns_roce_check_hem_null() argument94 if (hem[i]) in hns_roce_check_hem_null()283 struct hns_roce_hem *hem; in hns_roce_alloc_hem() local290 hem = kmalloc(sizeof(*hem), in hns_roce_alloc_hem()292 if (!hem) in hns_roce_alloc_hem()295 hem->refcount = 0; in hns_roce_alloc_hem()296 INIT_LIST_HEAD(&hem->chunk_list); in hns_roce_alloc_hem()311 list_add_tail(&chunk->list, &hem->chunk_list); in hns_roce_alloc_hem()335 return hem; in hns_roce_alloc_hem()338 hns_roce_free_hem(hr_dev, hem); in hns_roce_alloc_hem()[all …]
95 struct hns_roce_hem *hem; member110 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem);150 static inline void hns_roce_hem_first(struct hns_roce_hem *hem, in hns_roce_hem_first() argument153 iter->hem = hem; in hns_roce_hem_first()154 iter->chunk = list_empty(&hem->chunk_list) ? NULL : in hns_roce_hem_first()155 list_entry(hem->chunk_list.next, in hns_roce_hem_first()168 if (iter->chunk->list.next == &iter->hem->chunk_list) { in hns_roce_hem_next()
334 struct hns_roce_hem **hem; member
3040 struct hns_roce_hem *hem; in hns_roce_v2_set_hem() local3083 hem = table->hem[hem_idx]; in hns_roce_v2_set_hem()3084 for (hns_roce_hem_first(hem, &iter); in hns_roce_v2_set_hem()
4341 Henrik Nordstrom <http://hem.passagen.se/hno/> - Provided a variety