The STM32 firmware lib is organized in 2 directories, ./inc and ./src with in each directory one file per peripheral: the .h file in the ./inc directory and the corresponding .c source file in the ./src directory.
So for the GPIO the source code is in the stm32f10x_gpio.c file
Domi