Commonly known as, Viagra is a prescription drug primarily prescribed to address erectile impotence , also called male erectile difficulties . It functions via increasing arterial flow to the penis , which facilitates a firmer and more sustainable penile firmness sufficient for sexual activity .