Searched refs:hem_alloc_size (Results 1 – 1 of 1) sorted by relevance
252 unsigned long hem_alloc_size) in hns_roce_alloc_hem() argument 258 order = get_order(hem_alloc_size); in hns_roce_alloc_hem() 259 if (PAGE_SIZE << order != hem_alloc_size) { in hns_roce_alloc_hem() 260 dev_err(hr_dev->dev, "invalid hem_alloc_size: %lu!\n", in hns_roce_alloc_hem() 261 hem_alloc_size); in hns_roce_alloc_hem() 269 buf = dma_alloc_coherent(hr_dev->dev, hem_alloc_size, in hns_roce_alloc_hem() 275 hem->size = hem_alloc_size; in hns_roce_alloc_hem()