TAMPA, Fla. — Derek Carr kept throwing touchdowns and the officials kept throwing flags as two records were set Sunday by the Oakland Raiders in a 30-24 overtime win against Tampa Bay.

Carr finished with a franchise-record 513 yards passing – completing 40 of 59 passes without an interception. The Raiders (6-2) overcame an NFL-record 23 penalties for 200 yards to remain unbeaten on the road.

Carr threw to Seth Roberts for the winning score with under two minutes to go in overtime. He tied the game with a touchdown throw to Mychal Rivera with 1:38 remaining in regulation.

“It was an awesome performance. I’ve seen some good ones. I think we’ll continue to see good ones from him,” Raiders Coach Jack Del Rio said.

Carr said when he was told he had thrown for more yards in a game than any other quarterback in team history, he nearly cried.

“Not in a weird way, just like that’s stuff you dream of as a kid,” the third-year pro said. “I’m just blessed.”

Carr broke a 52-year-old record set by Cotton Davidson.

Offensive tackle Donald Penn and Amari Cooper also caught TD passes. Cooper had 12 receptions for 173 yards and Michael Crabtree added eight catches for 108 yards.

Jameis Winston threw for 180 yards and two touchdowns for the Buccaneers (3-4).