The impingement of CuO-water nanofluid flows upon a cylinder subject to a uniform magnetic field with constant surface temperature and embedded in porous media is investigated for the first time in literature. The surface of the cylinder can feature uniform or non-uniform mass transpiration and is hotter than the incoming nanofluid flow. The gravitational effects are taken into account and the three-dimensional governing equations of mixed convection in curved porous media, under magnetohydrodynamic effects, are reduced to those solvable by a finite difference scheme. Through varying a mixed convection parameter, the situations dominated by forced, mixed and free convection are examined systematically. The numerical solutions of these equations reveal the flow velocity and temperature fields as well as the Nusselt number and induced shear stress. These are then used to calculate the rate of entropy generation within the system by viscous and heat transfer irreversibilities. The results show that Nusselt number increases with increasing the concentration of nanoparticles, while it slightly deceases through intensifying the magnetic parameter. Non-uniform transpiration is shown to strongly affect the average rate of heat transfer. Importantly, it is demonstrated that the specific mode of heat convection can majorly influence the intensity of entropy generation and that the irreversibilities are much larger under natural convection compared to those in mixed and forced convection. Calculation of Bejan number shows that this is due to more pronounced relative contribution of viscous irreversibilities when free convection effects dominate the mixed convection process.