Lines Matching defs:wg_clientp
82 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
83 WXINFO *infop = wx_infop(wg_clientp) ;
87 if (wg_clientp->db_enabled)
92 cpage = dga_vrt_access(wg_clientp->w_devfd);
96 wg_clientp->db_enabled = 1;
97 wg_clientp->db_vrtcntrp = cpage;
98 wg_clientp->db_lastvrtcntr = *cpage;
99 wg_clientp->db_swapint = 1;
100 wg_clientp->vrt_func = _dga_db_vrtfunc_internal ;
121 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
123 if (wg_clientp->db_vrtcntrp)
124 dga_vrt_release(wg_clientp->db_vrtcntrp);
125 wg_clientp->db_enabled = 0;
145 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
147 DGA_WIN_LOCK_NOMODIF(wg_clientp);
150 wx_infop(wg_clientp)->wx_dbuf.write_buffer = buffer;
151 DGA_WIN_UNLOCK_NOMODIF(wg_clientp);
169 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
171 DGA_WIN_LOCK_NOMODIF(wg_clientp);
172 wx_infop(wg_clientp)->wx_dbuf.read_buffer = buffer;
175 DGA_WIN_UNLOCK_NOMODIF(wg_clientp);
194 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
200 if (wg_clientp->db_vrtcntrp)
201 wg_clientp->db_lastvrtcntr = *wg_clientp->db_vrtcntrp;
202 wx_infop(wg_clientp)->wx_dbuf.display_buffer = buffer;
212 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
214 ref_rate = wx_infop(wg_clientp)->w_refresh_period;
222 wg_clientp->db_swapint = rr * ((float)interval* 0.001);
224 if (wg_clientp->db_swapint == 0)
225 wg_clientp->db_swapint = 1;
233 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
234 u_int *counter = wg_clientp->db_vrtcntrp;
238 if (!wg_clientp->vrt_func || !wg_clientp->db_vrtcntrp) return;
240 while (((u_int) (*counter - wg_clientp->db_lastvrtcntr))
241 < wg_clientp->db_swapint)
243 if ((*(wg_clientp->vrt_func))(wg_clientpi) < 0) return ;;
252 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
253 u_int *counter = wg_clientp->db_vrtcntrp;
255 if ((wg_clientp->db_vrtcntrp) &&
256 ((u_int) (*counter - wg_clientp->db_lastvrtcntr))
257 < wg_clientp->db_swapint)
267 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
268 return(wx_infop(wg_clientp)->wx_dbuf.write_buffer);
275 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
277 return(wx_infop(wg_clientp)->wx_dbuf.read_buffer);
284 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
285 return(wx_infop(wg_clientp)->wx_dbuf.display_buffer);
294 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
295 if (wg_clientp->db_vrtcntrp &&
296 (wg_clientp->db_lastvrtcntr != *(wg_clientp->db_vrtcntrp)))
300 if (ioctl(wg_clientp->w_devfd,FBIOVERTICAL,0) < 0)
400 _Dga_window wg_clientp = (struct dga_window *)wg_clientpi;
413 vrt_func = wg_clientp->vrt_func;
563 _dga_db_vrtfunc_internal(wg_clientp)
564 Dga_window wg_clientp;
566 ( ioctl(((_Dga_window)wg_clientp)->w_devfd,FBIOVERTICAL,0));