We observe properties of some mappings related to the Davis--Choi--Jensen inequality for Hilbert space operators. Using these results, we observe properties of some mappings related to Levinson's operator inequality. Consequently, we obtain several refinements for each of these inequalities.