iwlagn: move IO functions out of line