Lines Matching refs:hubinfo

59 	hubinfo_t hubinfo;  in hub_pio_init()  local
64 hubinfo_get(hubv, &hubinfo); in hub_pio_init()
65 nasid = hubinfo->h_nasid; in hub_pio_init()
69 hub_piomap = hubinfo_swin_piomap_get(hubinfo, (int)widget); in hub_pio_init()
80 hub_piomap = hubinfo_bwin_piomap_get(hubinfo, bigwin); in hub_pio_init()
89 spin_lock_init(&hubinfo->h_bwlock); in hub_pio_init()
94 sv_init(&hubinfo->h_bwwait, &hubinfo->h_bwlock, SV_ORDER_FIFO | SV_MON_SPIN); in hub_pio_init()
121 hubinfo_t hubinfo; in hub_piomap_alloc() local
135 hubinfo_get(hubv, &hubinfo); in hub_piomap_alloc()
143 piomap = hubinfo_swin_piomap_get(hubinfo, (int)widget); in hub_piomap_alloc()
173 spin_lock(&hubinfo->h_bwlock); in hub_piomap_alloc()
175 bw_piomap = hubinfo_bwin_piomap_get(hubinfo, bigwin); in hub_piomap_alloc()
193 spin_unlock(&hubinfo->h_bwlock); in hub_piomap_alloc()
205 if (hubinfo->h_num_big_window_fixed < HUB_NUM_BIG_WINDOW-1) { in hub_piomap_alloc()
207 hubinfo->h_num_big_window_fixed++; in hub_piomap_alloc()
219 sv_wait(&hubinfo->h_bwwait, 0, 0); in hub_piomap_alloc()
241 nasid = hubinfo->h_nasid; in hub_piomap_alloc()
245 bw_piomap = hubinfo_bwin_piomap_get(hubinfo, free_bw_index); in hub_piomap_alloc()
267 spin_unlock(&hubinfo->h_bwlock); in hub_piomap_alloc()
285 hubinfo_t hubinfo; in hub_piomap_free() local
299 hubinfo_get(hubv, &hubinfo); in hub_piomap_free()
300 nasid = hubinfo->h_nasid; in hub_piomap_free()
302 spin_lock(&hubinfo->h_bwlock); in hub_piomap_free()
312 hubinfo->h_num_big_window_fixed--; in hub_piomap_free()
313 ASSERT(hubinfo->h_num_big_window_fixed >= 0); in hub_piomap_free()
317 (void)sv_signal(&hubinfo->h_bwwait); in hub_piomap_free()
320 spin_unlock(&hubinfo->h_bwlock); in hub_piomap_free()
376 hubinfo_t hubinfo; in hub_piotrans_addr() local
379 hubinfo_get(hubv, &hubinfo); in hub_piotrans_addr()
382 hub_piomap = hubinfo_swin_piomap_get(hubinfo, (int)widget); in hub_piotrans_addr()