Lines Matching refs:nasid

30 unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget,  in hub_pio_map()  argument
37 return NODE_SWIN_BASE(nasid, widget) + (xtalk_addr % SWIN_SIZE); in hub_pio_map()
42 nasid, widget, xtalk_addr, size); in hub_pio_map()
48 if (test_and_set_bit(i, hub_data(nasid)->h_bigwin_used)) in hub_pio_map()
66 IIO_ITTE_PUT(nasid, i, HUB_PIO_MAP_TO_MEM, widget, xtalk_addr); in hub_pio_map()
67 __raw_readq(IIO_ITTE_GET(nasid, i)); in hub_pio_map()
69 return NODE_BWIN_BASE(nasid, widget) + (xtalk_addr % BWIN_SIZE); in hub_pio_map()
74 nasid, widget, xtalk_addr); in hub_pio_map()
85 static void hub_setup_prb(nasid_t nasid, int prbnum, int credits) in hub_setup_prb() argument
94 prb.iprb_regval = REMOTE_HUB_L(nasid, prb_offset); in hub_setup_prb()
116 REMOTE_HUB_S(nasid, prb_offset, prb.iprb_regval); in hub_setup_prb()
137 static void hub_set_piomode(nasid_t nasid) in hub_set_piomode() argument
143 ii_iowa = REMOTE_HUB_L(nasid, IIO_OUTWIDGET_ACCESS); in hub_set_piomode()
144 REMOTE_HUB_S(nasid, IIO_OUTWIDGET_ACCESS, 0); in hub_set_piomode()
146 ii_wcr.wcr_reg_value = REMOTE_HUB_L(nasid, IIO_WCR); in hub_set_piomode()
152 hub_setup_prb(nasid, 0, 3); in hub_set_piomode()
157 hub_setup_prb(nasid, 0, 1); in hub_set_piomode()
165 hub_setup_prb(nasid, i, 3); in hub_set_piomode()
167 REMOTE_HUB_S(nasid, IIO_OUTWIDGET_ACCESS, ii_iowa); in hub_set_piomode()
175 void hub_pio_init(nasid_t nasid) in hub_pio_init() argument
180 bitmap_zero(hub_data(nasid)->h_bigwin_used, HUB_NUM_BIG_WINDOW); in hub_pio_init()
182 IIO_ITTE_DISABLE(nasid, i); in hub_pio_init()
184 hub_set_piomode(nasid); in hub_pio_init()