If penis is not erected. White coating on head. If erected small small white pimples on head and white pimples on ring of head. What is it?

Some ideas. Are you describing smegma that rubs off the glans? Are you describing pearly penile papules on the corona around the glans? Look these up online and if you need more help, your personal physician is the one to see.