Solution by NO_SQUARES.
The answer is f≡0 and x↦x.
P(x,1) gives f(x+f(x))=2f(x).
P(0,0) gives f(f(0))=f(0). But f(f(0))=f(0+f(0))=2f(0), so 2f(0)=f(0), therefore, f(0)=0.
Case 1. Suppose that there exists s=0 such that f(s)=0. P(x,xs) gives for all x=0 the equality f(x)=f(x)+xs⋅f(x), so f(x)=0 for all x=0. With equality f(0)=0 we obtain f≡0.
Case 2. f(s)=0 implies s=0. Then P(−x,−1) gives f(−x+f(x))=0, so f(x)−x=0 and so x↦fx.