ESP32 custom pin initialization

It would help me immensely if you showed me where in the Arduino esp library the SPI is initialized.
There is some struct object needed for attaching pin numbers. Can you help with that?
Thanks