The "diffusing capacity" or "diffusion capacity" is part of PFT or pulmonary Function Tests performed to see the efficiency of Respiratory system.
Thus blood quality and quantity in the human blood vessels, the heart function and the lung function all effect the diffusion of oxygen and carbon monoxide gases.
Nitrogen and inert gases are unaffected.
usually asthma and heart failure do not effect the diffusion capacity where as fibrosis, emphysema and blood clots in the lung effect and lower diffusion capacity.