There is always a table showing any exceptions - the KL25Z has few exception but one much be careful because not all register bits are implemented on all ports. Sometimes interrupt and DMA are, for example, only possible on certain ports.
Specifically ee table 10-2 in KL25Z user's manual.
In the uTasker project macros are used as described here (makes port code compatible with all Kinetis and i.MX RT parts) - https://www.utasker.com/forum/index.php?topic=1875.0
Eg. to configure an input with pull-down
#define SWITCH_2 PORTA_BIT12
_CONFIG_PORT_INPUT(A, (SWITCH_2), PORT_PS_DOWN_ENABLE);
or outputs with certain drive strengths, open-drain and initial states
#define LED_GREEN PORTD_BIT3
#define LED_BLUE PORTD_BIT7
#define LED_RED PORTD_BIT23
_CONFIG_DRIVE_PORT_OUTPUT_VALUE(D, (LED_GREEN | LED_BLUE | LED_RED), (LED_GREEN), (PORT_ODE | PORT_SRE_SLOW | PORT_DSE_HIGH));
The macros handle also automatically configuring clock gating to ports (so that such potential mistakes are avoided) and configure multiple inputs/outputs on a single port with the same characteristics in one go.
Regards
Mark