Lines Matching refs:addr
76 #define WIDGETID_GET(addr) ((unsigned char)((addr >> SWIN_SIZE_BITS) & 0xff))
92 * 'addr' can be physical or virtual address, but will be converted
95 #define SWIN_WIDGETADDR(addr) ((addr) & SWIN_SIZEMASK)
96 #define SWIN_WIDGETNUM(addr) (((addr) >> SWIN_SIZE_BITS) & SWIN_WIDGET_MASK)
98 * Verify if addr belongs to small window address on node with "nasid"
101 * NOTE: "addr" is expected to be XKPHYS address, and NOT physical
106 #define NODE_SWIN_ADDR(nasid, addr) \
107 (((addr) >= NODE_SWIN_BASE(nasid, 0)) && \
108 ((addr) < (NODE_SWIN_BASE(nasid, HUB_NUM_WIDGET) + SWIN_SIZE)\