Home
last modified time | relevance | path

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

/linux-6.12.1/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()
255 struct hns_roce_hem *hem; in hns_roce_alloc_hem() local
268 hem = kmalloc(sizeof(*hem), in hns_roce_alloc_hem()
270 if (!hem) in hns_roce_alloc_hem()
274 &hem->dma, gfp_mask); in hns_roce_alloc_hem()
278 hem->buf = buf; in hns_roce_alloc_hem()
279 hem->size = hem_alloc_size; in hns_roce_alloc_hem()
281 return hem; in hns_roce_alloc_hem()
284 kfree(hem); in hns_roce_alloc_hem()
[all …]
Dhns_roce_hem.h88 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem);
Dhns_roce_device.h259 struct hns_roce_hem **hem; member
Dhns_roce_hw_v2.c4098 struct hns_roce_hem *hem; in hns_roce_v2_set_hem() local
4132 hem = table->hem[hem_idx]; in hns_roce_v2_set_hem()
4134 ret = set_hem_to_hw(hr_dev, obj, hem->dma, table->type, step_idx); in hns_roce_v2_set_hem()