qmk-firmware/drivers/flash
..
flash_spi.c
flash_spi.h