If you are otherwise well the likeliest source for small white slightly gritty bits that you cough up is from the tonsils. Have a look at the back of your throat and see if there are white spots on your tonsils. These are deposits in the tonsilar crypts and can be dislodged and therfore expectorated when coughing.