Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/infiniband/hw/hns/
Dhns_roce_hem.c84 static bool hns_roce_check_hem_null(struct hns_roce_hem **hem, u64 hem_idx, in hns_roce_check_hem_null() argument
92 if (i != hem_idx && hem[i]) in hns_roce_check_hem_null()
257 struct hns_roce_hem *hem; in hns_roce_alloc_hem() local
264 hem = kmalloc(sizeof(*hem), in hns_roce_alloc_hem()
266 if (!hem) in hns_roce_alloc_hem()
269 INIT_LIST_HEAD(&hem->chunk_list); in hns_roce_alloc_hem()
284 list_add_tail(&chunk->list, &hem->chunk_list); in hns_roce_alloc_hem()
308 return hem; in hns_roce_alloc_hem()
311 hns_roce_free_hem(hr_dev, hem); in hns_roce_alloc_hem()
315 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem) in hns_roce_free_hem() argument
[all …]
Dhns_roce_hem.h89 struct hns_roce_hem *hem; member
104 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem);
136 static inline void hns_roce_hem_first(struct hns_roce_hem *hem, in hns_roce_hem_first() argument
139 iter->hem = hem; in hns_roce_hem_first()
140 iter->chunk = list_empty(&hem->chunk_list) ? NULL : in hns_roce_hem_first()
141 list_entry(hem->chunk_list.next, in hns_roce_hem_first()
154 if (iter->chunk->list.next == &iter->hem->chunk_list) { in hns_roce_hem_next()
Dhns_roce_device.h247 struct hns_roce_hem **hem; member
Dhns_roce_hw_v2.c4047 struct hns_roce_hem *hem; in hns_roce_v2_set_hem() local
4081 hem = table->hem[hem_idx]; in hns_roce_v2_set_hem()
4082 for (hns_roce_hem_first(hem, &iter); in hns_roce_v2_set_hem()