Searched refs:hem (Results 1 – 4 of 4) sorted by relevance
85 static bool hns_roce_check_hem_null(struct hns_roce_hem **hem, u64 hem_idx, in hns_roce_check_hem_null() argument93 if (i != hem_idx && hem[i]) in hns_roce_check_hem_null()251 struct hns_roce_hem *hem; in hns_roce_alloc_hem() local258 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 …]
95 struct hns_roce_hem *hem; member110 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() argument146 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()
313 struct hns_roce_hem **hem; member
3623 struct hns_roce_hem *hem; in hns_roce_v2_set_hem() local3657 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()