Lines Matching refs:cginfo
54 * dga_cm_ungrab(cginfo,cflag)
55 * Dga_cmap cginfo ;
71 * dga_cm_get(cginfo,index,count, red,green,blue)
72 * Dga_cmap cginfo ;
80 * dga_cm_put(cginfo,index,count, red,green,blue)
81 * Dga_cmap cginfo ;
91 * dga_cm_write(cginfo,index,count, red,green,blue, putfunc)
92 * Dga_cmap cginfo ;
101 * dga_cm_read(cginfo,index,count, red,green,blue)
102 * Dga_cmap cginfo ;
110 * dga_cm_get_devfd(cginfo)
111 * Dga_cmap cginfo;
113 * Return the fd of the device associated with cginfo
116 * dga_cm_get_devinfo(cginfo)
117 * Dga_cmap cginfo;
120 * cginfo. Used to communicate info bet server and client
123 * dga_cm_set_client_infop(cginfo, client_info_ptr)
124 * Dga_cmap cginfo;
127 * Sets pointer to client specificr-data associated with cginfo.
130 * dga_cm_get_client_infop(cginfo)
131 * Dga_cmap cginfo;
133 * Returns the client specific data pointer associated with cginfo
457 cleanup_lockpages(cginfo,cflag,filelen,locktype)
458 _Dga_cmap cginfo ;
464 if (cginfo->cm_sunwindows_def_fd >= 0)
465 sunwindows_close(cginfo->cm_sunwindows_def_fd);
466 if (cginfo->cm_sunwindows_inst_fd >= 0)
467 sunwindows_close(cginfo->cm_sunwindows_inst_fd);
470 if( cginfo->cm_unlockp != NULL )
471 error |= munmap((char *)cginfo->cm_unlockp,CM_PAGESZ) < 0 ;
472 if( cginfo->cm_lockp != NULL )
473 error |= munmap((char *)cginfo->cm_lockp,CM_PAGESZ) < 0 ;
474 if( cginfo->cm_lockfd != -1 &&
475 cginfo->cm_lockfd != cginfo->cm_devfd )
476 error |= close(cginfo->cm_lockfd) ;
479 error |= _dga_winlockdt(cginfo->cm_lockp, cginfo->cm_unlockp) < 0 ;
482 if( cginfo->cm_info != NULL )
483 error |= munmap(cginfo->cm_info, filelen) < 0 ;
484 if( cginfo->cm_infofd != -1 )
485 error |= close(cginfo->cm_infofd) < 0 ;
487 error |= close(cginfo->cm_devfd) < 0 ;
489 for( p1 = grabbed_list, p2 = NULL ; p1 != NULL && p1 != cginfo;
499 free(cginfo);
508 _Dga_cmap cginfo = (struct dga_cmap *)cginfoi;
509 Grabbedcmap *infop = (Grabbedcmap *) cginfo->cm_info ;
516 if( --cginfo->cm_grab_count > 0 ) {
526 cleanup_lockpages(cginfo,cflag,filelen,
559 _Dga_cmap cginfo = (struct dga_cmap *)cginfoi;
560 Grabbedcmap *infop = (Grabbedcmap *) cginfo->cm_info ;
565 wx_cm_lock(cginfo) ;
569 * it. We compare infop->cm_count against cginfo->c_chngcnt and
571 * we'd copy infop->cm_count to cginfo->c_chngcnt.
593 wx_cm_unlock(cginfo) ;
600 dga_cm_read(cginfo,index,count, red,green,blue)
601 Dga_cmap cginfo;
605 dga_cm_get(cginfo,index,count, red,green,blue);
617 _Dga_cmap cginfo = (struct dga_cmap *)cginfoi;
618 Grabbedcmap *infop = (Grabbedcmap *) cginfo->cm_info ;
628 wx_cm_lock(cginfo) ;
686 if( cginfo->cm_sunwindows_def_fd >= 0 ) {
713 ioctl(cginfo->cm_sunwindows_def_fd, WINSETCMS, &cmschange);
716 if( cginfo->cm_sunwindows_inst_fd >= 0 )
742 ioctl(cginfo->cm_sunwindows_inst_fd,WINSETCMS,&cmschange);
755 if( cginfo->cm_use_new_ioctl) {
766 if( ioctl(cginfo->cm_devfd, FBIOPUTCMAPI, &cmap) == 0 )
771 if( cginfo->cm_use_new_ioctl ) {
782 if( ioctl(cginfo->cm_devfd, FB_CLUTPOST, &cmap) == 0 )
785 cginfo->cm_use_new_ioctl = 0;
788 if (cginfo->cm_use_new_ioctl == 0) {
796 ioctl(cginfo->cm_devfd, FBIOPUTCMAP, &cmap);
805 cginfo->c_chngcnt = ++infop->cm_count ;
807 wx_cm_unlock(cginfo) ;
821 _Dga_cmap cginfo = (struct dga_cmap *)cginfoi;
822 Grabbedcmap *infop = (Grabbedcmap *) cginfo->cm_info ;
832 wx_cm_lock(cginfo) ;
883 (*putfunc)( cginfo, index, count, red, green, blue);
890 cginfo->c_chngcnt = ++infop->cm_count ;
892 wx_cm_unlock(cginfo) ;
912 _Dga_cmap cginfo = (struct dga_cmap *)cginfoi;
913 return ((void *)(((char *)cginfo->cm_info)
914 + CM_INFOP(cginfo)->device_offset));
924 _Dga_cmap cginfo = (struct dga_cmap *)cginfoi;
926 cginfo->cm_client = client_info_ptr;
933 _Dga_cmap cginfo = (struct dga_cmap *)cginfoi;
935 return ((void *)cginfo->cm_client);