Dynamics of rigid and flexible polymer chains in confined geometries. part I: steady simple shear flow