mana_gd_alloc_res_map
err = mana_gd_alloc_res_map(num_msg, &hwc->inflight_msg_res);
int mana_gd_alloc_res_map(u32 res_avail, struct gdma_resource *r);