Lines Matching defs:pwg
47 pwg_media_t *pwg, unsigned flags,
120 pwg_media_t *pwg; /* Current PWG media size info */
138 (pwg = pwgMediaForPWG(attrval->string.text)) != NULL)
140 min_width = pwg->width;
141 min_length = pwg->length;
144 (pwg = pwgMediaForPWG(attrval->string.text)) != NULL)
146 max_width = pwg->width;
147 max_length = pwg->length;
156 (pwg = pwgMediaForPWG(value)) != NULL &&
157 pwg->width >= min_width && pwg->width <= max_width &&
158 pwg->length >= min_length && pwg->length <= max_length)
851 pwg_media_t *pwg; /* PWG media name for size */
891 else if ((pwg = pwgMediaForSize(nsize->width, nsize->length)) != NULL)
892 strlcpy(size->media, pwg->pwg, sizeof(size->media));
913 * The "media" string is a PWG media name. "Flags" provides some matching
939 pwg_media_t *pwg; /* PWG media info */
959 if ((pwg = pwgMediaForPWG(media)) == NULL)
960 if ((pwg = pwgMediaForLegacy(media)) == NULL)
971 return (cups_get_media_db(http, dinfo, pwg, flags, size));
1007 pwg_media_t *pwg; /* PWG media info */
1027 if ((pwg = pwgMediaForSize(width, length)) == NULL)
1039 return (cups_get_media_db(http, dinfo, pwg, flags, size));
1431 pwg_media_t *pwg; /* PWG media info */
1643 if ((pwg = pwgMediaForPWG(val->string.text)) == NULL)
1644 if ((pwg = pwgMediaForLegacy(val->string.text)) == NULL)
1651 mdb.width = pwg->width;
1652 mdb.length = pwg->length;
1709 pwg_media_t *pwg, /* I - PWG media info */
1741 key.width = pwg->width;
1742 key.length = pwg->length;
1826 if (pwg->width < dinfo->min_size.width ||
1827 pwg->width > dinfo->max_size.width ||
1828 pwg->length < dinfo->min_size.length ||
1829 pwg->length > dinfo->max_size.length)
1837 key.size_name = (char *)pwg->pwg;
1845 else if (pwg->width >= dinfo->min_size.width &&
1846 pwg->width <= dinfo->max_size.width &&
1847 pwg->length >= dinfo->min_size.length &&
1848 pwg->length <= dinfo->max_size.length)
1854 key.size_name = (char *)pwg->pwg;
1953 strlcpy(size->media, pwg->pwg, sizeof(size->media));