first pic,its a PCV, Positive crankcase ventilation....

2nd pic is EGR (exhaust gas recirculation) valve