ST. PETERSBURG, Fla. — The Baltimore Orioles got on base and Manny Machado drove them in.

Machado capped a six-run fourth inning with a grand slam off Jake Odorizzi, leading the Orioles over the Tampa Bay Rays 11-2 on Tuesday night.

“Guys are getting on base, hitting singles, doubles and doing the little things to give us an opportunity to have that big inning,” said Machado, who drove in a fifth run with a single in the eighth. “I think people are overlooking how well we’re executing and hitting in key situations. Things are starting to click for us. It’s been fun the last couple of days.”

Chris Davis and Adam Jones also homered for the Orioles, who entered the day tied for the second wild card and two games behind AL East-leading Toronto, which lost to the New York Yankees.

Machado’s homer was his 34th this season, while Davis got his 35th and Jones got his 26th.

“When they start talking about MVP, they’ve got to start talking about him, too,” Orioles manager Buck Showalter said of Machado, who has 90 RBIs and 48 multihit games.

Odorizzi (9-6) lost for the first time in 10 starts since the All-Star break, giving up seven runs, six hits and three walks over four innings. Machado’s slam was set up by two walks, a hit batter and J.J. Hardy’s two-run double.

“I think you could tell fairly early on that Odo’ didn’t quite have all of his weapons tonight,” said Rays manager Kevin Cash. “We’ve seen him so good here as of late. Tonight, he just didn’t have the best feel for the changeup.”

Yovani Gallardo (5-7) pitched five innings for Baltimore, giving up two runs (one earned) and five hits while striking out five.

Jones’ eighth-inning homer was the Orioles’ major league-leading 218th of the season, moving them ahead of last year’s team for second-most ever among Baltimore teams. The 1996 Orioles set the club record with 257.

Logan Forsythe led off the Rays’ first with his 18th home run, and Kevin Kiermaier extended his hitting streak to 10 games with a single.

“Other than not going deeper in the ballgame, I feel pretty good about it,” said Gallardo, who won for the second time in his last 13 starts. “After giving up that home run to start the ballgame, I was able to make pitches whenever I had to.

DAVIS LEAVES GAME EARLY

Davis left in the fifth inning with what Showalter described as a sore left palm. “It’s something he’s had for a long time, something he doesn’t really like talking about,” said Showalter, who will re-evaluate the situation before Wednesday’s game.

TRAINER’S ROOM

Orioles: RHP Chris Tillman, who has missed three starts with right shoulder bursitis, will throw a bullpen session in hopes of starting Sunday’s game at Detroit. Showalter said he will forego a decision on any rotation changes until he is satisfied the 15-game winner is both healthy and effective.

Rays: 3B Evan Longoria, hit on the right hand by a pitched ball Monday, started. “It’s sore,” Longoria said. “It’s OK.”

NEW VISION

Longoria was surprised at the timing of hitting coach Derek Shelton’s firing on Tuesday.

“As much as I don’t like to see Shelty go, I’m on board with them making a change and wanting to go in a different direction,” Longoria said.

Rays minor league hitting coordinator Chad Mottola replaced Shelton.

“It gives Chad a few extra weeks to get to know our hitters better,” Silverman said.

UP NEXT

Orioles: RHP Dylan Bundy will start Wednesday’s series finale. He is 5-3 in eight starts since giving up three home runs in a 5-2 loss at Tropicana Filed on July 17.

Rays: LHP Drew Smyly is 4-1 lifetime against the Orioles, but gave up eight runs, including a first-inning grand slam, to Davis in a 12-5 loss at Baltimore on June 26.