Ephraim ... Samaria
These names all refer to the people of the northern kingdom of Israel.
All the people will know, even Ephraim and the inhabitants of Samaria
"All the people will know that the Lord has judged them, even those in Ephraim and Samaria"