Lines Matching refs:xvolinfo

61 	xswitch_vol_t xvolinfo;  in xswitch_vertex_init()  local
64 xvolinfo = snia_kmem_zalloc(sizeof(struct xswitch_vol_s)); in xswitch_vertex_init()
65 init_MUTEX(&xvolinfo->xswitch_volunteer_mutex); in xswitch_vertex_init()
68 (arbitrary_info_t)xvolinfo); in xswitch_vertex_init()
80 xswitch_vol_t xvolinfo; in xswitch_volunteer_delete() local
86 (arbitrary_info_t *)&xvolinfo); in xswitch_volunteer_delete()
87 snia_kmem_free(xvolinfo, sizeof(struct xswitch_vol_s)); in xswitch_volunteer_delete()
96 xswitch_vol_t xvolinfo = NULL; in volunteer_for_widgets() local
102 (arbitrary_info_t *)&xvolinfo); in volunteer_for_widgets()
103 if (xvolinfo == NULL) { in volunteer_for_widgets()
111 down(&xvolinfo->xswitch_volunteer_mutex); in volunteer_for_widgets()
112 ASSERT(xvolinfo->xswitch_volunteer_count < NUM_XSWITCH_VOLUNTEER); in volunteer_for_widgets()
113 xvolinfo->xswitch_volunteer[xvolinfo->xswitch_volunteer_count] = master; in volunteer_for_widgets()
114 xvolinfo->xswitch_volunteer_count++; in volunteer_for_widgets()
120 if (xvolinfo->xswitch_volunteer_count == NUM_XSWITCH_VOLUNTEER) { in volunteer_for_widgets()
121 hubv = xvolinfo->xswitch_volunteer[0]; in volunteer_for_widgets()
124 xvolinfo->xswitch_volunteer[0] = in volunteer_for_widgets()
125 xvolinfo->xswitch_volunteer[1]; in volunteer_for_widgets()
126 xvolinfo->xswitch_volunteer[1] = hubv; in volunteer_for_widgets()
129 up(&xvolinfo->xswitch_volunteer_mutex); in volunteer_for_widgets()
143 xswitch_vol_t xvolinfo = NULL; in assign_widgets_to_volunteers() local
159 (arbitrary_info_t *)&xvolinfo); in assign_widgets_to_volunteers()
160 if (xvolinfo == NULL) { in assign_widgets_to_volunteers()
169 num_volunteer = xvolinfo->xswitch_volunteer_count; in assign_widgets_to_volunteers()
174 hubv = xvolinfo->xswitch_volunteer[0]; in assign_widgets_to_volunteers()
198 hubv = xvolinfo->xswitch_volunteer[i]; in assign_widgets_to_volunteers()
227 hubv = xvolinfo->xswitch_volunteer[i]; in assign_widgets_to_volunteers()