Lines Matching refs:portid
143 #define SG_PORTID_TO_NODEID(portid) (((portid) >> SG_PORTID_NODE_SHIFT) & \ argument
151 #define SG_PORTID_TO_SAFARI_ID(portid) ((portid) & SG_SAFARI_ID_MASK) argument
160 #define SG_PORTID_TO_BOARD_NUM(portid) \ argument
161 ((SG_PORTID_IS_CPU_TYPE(portid)) ? \
162 (SG_CPU_BD_PORTID_TO_BD_NUM(portid)) : \
163 ((SG_PORTID_IS_IO_TYPE(portid)) ? \
164 SG_IO_BD_PORTID_TO_BD_NUM(portid) : (-1)))
191 #define SG_PORTID_IS_CPU_TYPE(portid) \ argument
192 (((((portid) & SG_SAFARI_ID_MASK) >= SG_MIN_CPU_SAFARI_ID) && \
193 (((portid) & SG_SAFARI_ID_MASK) <= SG_MAX_CPU_SAFARI_ID)) ? TRUE: FALSE)
201 #define SG_PORTID_IS_IO_TYPE(portid) \ argument
202 (((((portid) & SG_SAFARI_ID_MASK) >= SG_MIN_IO_SAFARI_ID) && \
203 (((portid) & SG_SAFARI_ID_MASK) <= SG_MAX_IO_SAFARI_ID)) ? TRUE: FALSE)
211 #define SG_CPU_BD_PORTID_TO_BD_NUM(portid) \ argument
212 ((SG_PORTID_IS_CPU_TYPE(portid)) ? \
213 (((portid) & SG_SAFARI_ID_MASK) / 4) : (-1))
221 #define SG_IO_BD_PORTID_TO_BD_NUM(portid) \ argument
222 (SG_PORTID_IS_IO_TYPE(portid) ? \
223 (((((portid) & SG_SAFARI_ID_MASK) - 24) / 2) + 6) : (-1))
231 #define SG_PORTID_TO_CPU_POSN(portid) \ argument
232 ((SG_PORTID_IS_CPU_TYPE(portid)) ? \
233 (((portid) & SG_SAFARI_ID_MASK) % 4) : (-1))