Self-linearly compact rings and dualities