Sarma phase in relativistic and non-relativistic systems