PHOENIX -- Wade Miley threw pitch after pitch after pitch, trying to put Scott Rolen away.The Reds' veteran third baseman fouled off 10 pitches during a 15-pitch at-bat in the second inning before drawing a walk as part of a three-run rally that helped the Reds beat the D-backs, 5-2, on Tuesday night at Chase Field. The loss was the fifth straight for the reeling D-backs. Arizona is now 2-7 on its current homestand, which wraps up Wednesday, and the D-backs trail the first-place Giants by 8 1/2 games in the National League West. "It's frustrating," Miley said. "We've just got to keep going, keep grinding and push through this thing." The D-backs jumped on Reds ace Johnny Cueto for a run in the first inning when Gerardo Parra led off with a double and scored one out later on a sacrifice fly by Jason Kubel. Giving a lead to Miley is usually a recipe for success. The left-hander came into the game having allowed just one run in his last two starts, a span of 14 innings. The Reds, though, put Miley through the wringer in the second inning. They forced him to throw 33 pitches and took the lead for good. Following a leadoff single by Todd Frazier, Rolen drew his marathon walk. As the six-minute at-bat went on, catcher Miguel Montero looked up at Rolen and said, "Whatever happens, great at-bat." "I wasn't changing my approach," Rolen said. "I was staying pretty stubborn because I was in the at-bat. I felt like if I could battle through, that approach would get the ball into play instead of making an adjustment to change the at-bat. Then you end up getting beat with a ball. I just stayed where I was. I felt like I was on his changeup and fastball." Miley was frustrated because he could not get his changeup down in the zone and Rolen was able to foul off the ones he left up. Finally, he went to his slider and missed with it for ball four. "I tried to go slider, hooked it a little bit," Miley said. "If I make a good pitch there maybe it's a different result, but I didn't. It was a great at-bat." Yet, that was easier to take than what happened next. Miley thought he made a good pitch that Chris Heisey was able to bloop to right to load the bases. Miley then uncorked a wild pitch to score a run and move the other runners to second and third. Again, Miley thought he made a good pitch to Ryan Hanigan, but Hanigan hit a soft single to center to score two more runs as the Reds went ahead, 3-1. "Yeah, it's frustrating," Miley said. "You feel like you're making pretty good pitches and guys are getting hits. It's just good at-bats. That's what they're supposed to do; that's what they're trying to do up there. I've got to make better pitches." After throwing 54 pitches in the first two innings, it looked like it would be a short night for Miley (14-9). However, he settled in and was able to keep the Reds scoreless before departing after the seventh. The three runs were more than enough for Cueto, who held the D-backs to one hit over the next three innings before Parra doubled home John McDonald in the fifth to pull Arizona to within a run, 3-2. "He mixes his speeds pretty well and locates his fastball and keeps the ball down," Montero said of Cueto (17-6). "He's good, man, you've got to give him credit. He pretty much never gives in and he's a tough guy to face because when you go out there looking for something it's like he's reading your mind. It's like he never throws you what you're looking for and it kind of screws you up a little bit." The Reds were able to tack on a pair of insurance runs off reliever Matt Lindstrom in the eighth.