be missing some of (one's) buttons
To be mentally deficient, incompetent, or deranged; to be of unsound mind. My poor grandmother is missing some of her buttons after her stroke. I've been so sleep deprived lately that it feels like I'm missing some of my buttons!