US stocks end mixed as investors digest latest earnings and inflation data