Lines Matching refs:cmap_grab

25  * cmap_grab.c - the client side code for DGA colormap grabber
187 #include "cmap_grab.h"
219 _Dga_cmap cmap_grab ;
239 for(cmap_grab = grabbed_list; cmap_grab != NULL;
240 cmap_grab = cmap_grab->cm_next) {
241 if (cmap_grab->cm_token == filesuffix) {
242 ++cmap_grab->cm_grab_count;
246 return cmap_grab;
250 if((cmap_grab = (_Dga_cmap)calloc(1,sizeof(struct dga_cmap))) == NULL ) {
257 cmap_grab->cm_infofd =
258 cmap_grab->cm_devfd =
259 cmap_grab->cm_lockfd =
260 cmap_grab->cm_sunwindows_def_fd =
261 cmap_grab->cm_sunwindows_inst_fd = -1 ;
262 cmap_grab->cm_grab_count = 1 ;
263 cmap_grab->cm_next = grabbed_list ;
264 grabbed_list = cmap_grab ;
271 cleanup_lockpages(cmap_grab,0,0,0) ;
279 cleanup_lockpages(cmap_grab,0,0,0) ;
287 cleanup_lockpages(cmap_grab,0,0,0) ;
312 cmap_grab->cm_infofd = -1 ;
315 cleanup_lockpages(cmap_grab,0,filelen,0) ;
321 cmap_grab->cm_info = (void *) infop ;
333 cleanup_lockpages(cmap_grab,0,filelen,0) ;
343 cmap_grab->cm_devfd = devfd ;
361 cleanup_lockpages(cmap_grab,cflag,filelen,locktype) ;
370 cmap_grab->cm_lockfd = lockfd ;
380 cleanup_lockpages(cmap_grab,cflag,filelen,0) ;
386 cmap_grab->cm_lockp = (u_int *) lock ;
396 cleanup_lockpages(cmap_grab,cflag,filelen,0) ;
402 cmap_grab->cm_unlockp = (u_int *) unlock ;
406 cleanup_lockpages(cmap_grab,cflag,filelen,locktype) ;
412 cmap_grab->cm_lockp = (u_int *) lock ;
413 cmap_grab->cm_unlockp = (u_int *) unlock ;
426 cmap_grab->cm_sunwindows_def_fd = sunwindows_def_fd ;
432 cmap_grab->cm_sunwindows_inst_fd = sunwindows_inst_fd ;
435 cleanup_lockpages(cmap_grab,cflag,filelen,locktype) ;
442 cmap_grab->cm_token = filesuffix;
443 cmap_grab->cm_client = NULL ;
444 cmap_grab->c_chngcnt = -1 ; /* flag all changes as not seen */
445 cmap_grab->s_chngcnt_p = (u_int *) &(infop->cm_count);
446 cmap_grab->cm_lockcnt = 0 ;
447 cmap_grab->cm_use_new_ioctl = 1 ; /* try to use new ioctl */
452 return((Dga_cmap)cmap_grab);