Lines Matching refs:pwg
47 pwg_media_t *pwg, unsigned flags,
130 pwg_media_t *pwg; /* Current PWG media size info */ in cupsCheckDestSupported() local
148 (pwg = pwgMediaForPWG(attrval->string.text)) != NULL) in cupsCheckDestSupported()
150 min_width = pwg->width; in cupsCheckDestSupported()
151 min_length = pwg->length; in cupsCheckDestSupported()
154 (pwg = pwgMediaForPWG(attrval->string.text)) != NULL) in cupsCheckDestSupported()
156 max_width = pwg->width; in cupsCheckDestSupported()
157 max_length = pwg->length; in cupsCheckDestSupported()
166 (pwg = pwgMediaForPWG(value)) != NULL && in cupsCheckDestSupported()
167 pwg->width >= min_width && pwg->width <= max_width && in cupsCheckDestSupported()
168 pwg->length >= min_length && pwg->length <= max_length) in cupsCheckDestSupported()
898 pwg_media_t *pwg; /* PWG media name for size */ in cupsGetDestMediaByIndex() local
945 else if ((pwg = pwgMediaForSize(nsize->width, nsize->length)) != NULL) in cupsGetDestMediaByIndex()
946 strlcpy(size->media, pwg->pwg, sizeof(size->media)); in cupsGetDestMediaByIndex()
993 pwg_media_t *pwg; /* PWG media info */ in cupsGetDestMediaByName() local
1020 if ((pwg = pwgMediaForPWG(media)) == NULL) in cupsGetDestMediaByName()
1021 if ((pwg = pwgMediaForLegacy(media)) == NULL) in cupsGetDestMediaByName()
1032 return (cups_get_media_db(http, dinfo, pwg, flags, size)); in cupsGetDestMediaByName()
1068 pwg_media_t *pwg; /* PWG media info */ in cupsGetDestMediaBySize() local
1095 if ((pwg = pwgMediaForSize(width, length)) == NULL) in cupsGetDestMediaBySize()
1107 return (cups_get_media_db(http, dinfo, pwg, flags, size)); in cupsGetDestMediaBySize()
1513 pwg_media_t *pwg; /* PWG media info */ in cups_create_media_db() local
1725 if ((pwg = pwgMediaForPWG(val->string.text)) == NULL) in cups_create_media_db()
1726 if ((pwg = pwgMediaForLegacy(val->string.text)) == NULL) in cups_create_media_db()
1733 mdb.width = pwg->width; in cups_create_media_db()
1734 mdb.length = pwg->length; in cups_create_media_db()
1791 pwg_media_t *pwg, /* I - PWG media info */ in cups_get_media_db() argument
1823 key.width = pwg->width; in cups_get_media_db()
1824 key.length = pwg->length; in cups_get_media_db()
1908 if (pwg->width < dinfo->min_size.width || in cups_get_media_db()
1909 pwg->width > dinfo->max_size.width || in cups_get_media_db()
1910 pwg->length < dinfo->min_size.length || in cups_get_media_db()
1911 pwg->length > dinfo->max_size.length) in cups_get_media_db()
1919 key.size_name = (char *)pwg->pwg; in cups_get_media_db()
1927 else if (pwg->width >= dinfo->min_size.width && in cups_get_media_db()
1928 pwg->width <= dinfo->max_size.width && in cups_get_media_db()
1929 pwg->length >= dinfo->min_size.length && in cups_get_media_db()
1930 pwg->length <= dinfo->max_size.length) in cups_get_media_db()
1936 key.size_name = (char *)pwg->pwg; in cups_get_media_db()
2035 strlcpy(size->media, pwg->pwg, sizeof(size->media)); in cups_get_media_db()