I am maybe wrong but I thing that calResMap(...) out parametr data - links to cpu memory(dram) ?
What about function like calResMap(&data, &pitch, Res, 0) where data is existing cpu pointer to some data - and all I need just to copy that to gpu.