Home
last modified time | relevance | path

Searched refs:hem (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_hem.c85 static bool hns_roce_check_hem_null(struct hns_roce_hem **hem, u64 hem_idx, in hns_roce_check_hem_null() argument
93 if (i != hem_idx && hem[i]) in hns_roce_check_hem_null()
251 struct hns_roce_hem *hem; in hns_roce_alloc_hem() local
258 hem = kmalloc(sizeof(*hem), in hns_roce_alloc_hem()
260 if (!hem) in hns_roce_alloc_hem()
263 hem->refcount = 0; in hns_roce_alloc_hem()
264 INIT_LIST_HEAD(&hem->chunk_list); in hns_roce_alloc_hem()
279 list_add_tail(&chunk->list, &hem->chunk_list); in hns_roce_alloc_hem()
303 return hem; in hns_roce_alloc_hem()
306 hns_roce_free_hem(hr_dev, hem); in hns_roce_alloc_hem()
[all …]
Dhns_roce_hem.h95 struct hns_roce_hem *hem; member
110 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem);
143 static inline void hns_roce_hem_first(struct hns_roce_hem *hem, in hns_roce_hem_first() argument
146 iter->hem = hem; in hns_roce_hem_first()
147 iter->chunk = list_empty(&hem->chunk_list) ? NULL : in hns_roce_hem_first()
148 list_entry(hem->chunk_list.next, in hns_roce_hem_first()
161 if (iter->chunk->list.next == &iter->hem->chunk_list) { in hns_roce_hem_next()
Dhns_roce_device.h313 struct hns_roce_hem **hem; member
Dhns_roce_hw_v2.c3623 struct hns_roce_hem *hem; in hns_roce_v2_set_hem() local
3657 hem = table->hem[hem_idx]; in hns_roce_v2_set_hem()
3658 for (hns_roce_hem_first(hem, &iter); in hns_roce_v2_set_hem()