Proper method to wire through different surfaces
You can't run power cords through/inside the wall, so you'll have to install a receptacle behind the TV and fireplace.

You can run nonmetallic sheathed cable (romex) inside the wall, so there should be no problem running it from the receptacle through the wall and to the dimmer.