First photo: 1930s, Pamir (Uzbekistan), 35th Mugrab frontier detachment of the NKVD troops. Soldier with a M1921 submachine gun.
In 1924, for the needs of the USSR Border Guard, through Mexico, an unknown number of these machine gun pistols were purchased in the USA to cover the shortage of light automatic weapons. Manual machine guns in the USSR during this period were not produced, and machine pistols were quite enough for the needs of the border guard.
Budennovka was canceled in the Red Army only in 1940, after the Soviet-Finnish war, as a headdress with which it is inconvenient to use a steel helmet. But during the Second World War, budenovka from warehouses continued to be used until they were exhausted, especially for supplying military units that were far from the front. By 1943, they almost ceased to be used.
The second photo: Made around the same period.
This is really a Maxim-Tokarev machine gun.
The machine gun was made, according to various sources, in an amount from 2.5 to 4 thousand units. He was in service in the Red Army, but was replaced by the manual pudemet Degtyarev DP-27. Delivered in small quantities to Mongolia and China. The bulk of these machine guns was sent to Spain. It was also issued in small quantities from warehouses to the formed units of the Red Army during 1941.