It seems there are 2 things that you ask:
1. How to stretch a texture?
Basically, you need to draw a textured quad. For each vertex of the quad, you can specify the texture coordinate. To stretch the texture, you need to map the whole texture into the quad, i.e. the texture coordinate must range from 0 - 1
To setup the quad, you need to setup the vertices. This is done in CPU
2. How to repeat the texture?
To repeat the texture, you need to setup the quad such that the texture coordinates are greater than 1 or less than 0 (just like what jwatte) said. This setting up of texture coords is done in CPU.
In addition of setting up of texture coordinate, you need to set the texture addressing mode. Setting up the texture address mode can be done through shader.