If memory serves, Raphael Semmes was the only many to hold flag rank in both the army and the navy simultaneously - Rear Admiral in the Confederate Navy and Brigadier General in the Confederate Army.
His status as a legitimate Brigadier General is suspect. He was never confirmed to that rank by the Confederate Senate.