what may have happenend is just that when you sleep, your foreskin peels up, leaving your head exposed. This, combined with rubbing against pants can cause irritation (red spots) and dehydration of the penile head (shrivilled up). The white bits, i cant really tell what they are, probably nothing though