TSX up, New York stock markets end mixed as investors digest corporate earnings