• Home
  • Raw
  • Download

Lines Matching refs:cg

569   _cups_globals_t *cg = _cupsGlobals();	/* Global data */  in pwgMediaForLegacy()  local
583 if (!cg->leg_size_lut) in pwgMediaForLegacy()
588 cg->leg_size_lut = cupsArrayNew((cups_array_func_t)pwg_compare_legacy, in pwgMediaForLegacy()
596 cupsArrayAdd(cg->leg_size_lut, size); in pwgMediaForLegacy()
604 return ((pwg_media_t *)cupsArrayFind(cg->leg_size_lut, &key)); in pwgMediaForLegacy()
628 _cups_globals_t *cg = _cupsGlobals(); /* Global data */ in pwgMediaForPPD() local
642 if (!cg->ppd_size_lut) in pwgMediaForPPD()
646 cg->ppd_size_lut = cupsArrayNew((cups_array_func_t)pwg_compare_ppd, NULL); in pwgMediaForPPD()
653 cupsArrayAdd(cg->ppd_size_lut, size); in pwgMediaForPPD()
661 if ((size = (pwg_media_t *)cupsArrayFind(cg->ppd_size_lut, &key)) == NULL) in pwgMediaForPPD()
764 size = &(cg->pwg_media); in pwgMediaForPPD()
767 size->pwg = cg->pwg_name; in pwgMediaForPPD()
769 pwgFormatSizeName(cg->pwg_name, sizeof(cg->pwg_name), in pwgMediaForPPD()
774 …snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%s", pwg_format_inches(wstr, sizeof(wstr), w), pw… in pwgMediaForPPD()
776 …snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%smm", pwg_format_millimeters(wstr, sizeof(wstr),… in pwgMediaForPPD()
777 size->ppd = cg->ppd_name; in pwgMediaForPPD()
805 _cups_globals_t *cg = _cupsGlobals(); /* Global data */ in pwgMediaForPWG() local
819 if (!cg->pwg_size_lut) in pwgMediaForPWG()
823 cg->pwg_size_lut = cupsArrayNew((cups_array_func_t)pwg_compare_pwg, NULL); in pwgMediaForPWG()
829 cupsArrayAdd(cg->pwg_size_lut, size); in pwgMediaForPWG()
837 if ((size = (pwg_media_t *)cupsArrayFind(cg->pwg_size_lut, &key)) == NULL && in pwgMediaForPWG()
877 size = &(cg->pwg_media); in pwgMediaForPWG()
881 strlcpy(cg->pwg_name, pwg, sizeof(cg->pwg_name)); in pwgMediaForPWG()
882 size->pwg = cg->pwg_name; in pwgMediaForPWG()
885 …snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%smm", pwg_format_millimeters(wstr, sizeof(wstr),… in pwgMediaForPWG()
887 …snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%s", pwg_format_inches(wstr, sizeof(wstr), w), pw… in pwgMediaForPWG()
888 size->ppd = cg->ppd_name; in pwgMediaForPWG()
940 _cups_globals_t *cg = _cupsGlobals(); /* Global data */ in _pwgMediaNearSize() local
985 pwgFormatSizeName(cg->pwg_name, sizeof(cg->pwg_name), "custom", NULL, width, in _pwgMediaNearSize()
988 cg->pwg_media.pwg = cg->pwg_name; in _pwgMediaNearSize()
989 cg->pwg_media.width = width; in _pwgMediaNearSize()
990 cg->pwg_media.length = length; in _pwgMediaNearSize()
993 …snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%s", pwg_format_inches(wstr, sizeof(wstr), width)… in _pwgMediaNearSize()
995 …snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%smm", pwg_format_millimeters(wstr, sizeof(wstr),… in _pwgMediaNearSize()
996 cg->pwg_media.ppd = cg->ppd_name; in _pwgMediaNearSize()
998 return (&(cg->pwg_media)); in _pwgMediaNearSize()