Banks in the United States and Europe have taken billions of dollars of charges on exposures to subprime mortgages -- loans made to borrowers with patchy credit histories -- after the value of mortgage-backed securities held by the banks plunged .