Lines Matching refs:media_attr
1510 *media_attr, /* media-xxx */ in cups_create_media_db() local
1529 media_attr = ippFindAttribute(dinfo->ready_attrs, "media-ready", in cups_create_media_db()
1542 media_attr = ippFindAttribute(dinfo->attrs, "media-supported", in cups_create_media_db()
1556 if ((media_attr = ippFindAttribute(val->collection, "media-size", in cups_create_media_db()
1559 ipp_t *media_size = media_attr->values[0].collection; in cups_create_media_db()
1616 if ((media_attr = ippFindAttribute(val->collection, "media-color", in cups_create_media_db()
1618 (media_attr->value_tag == IPP_TAG_NAME || in cups_create_media_db()
1619 media_attr->value_tag == IPP_TAG_NAMELANG || in cups_create_media_db()
1620 media_attr->value_tag == IPP_TAG_KEYWORD)) in cups_create_media_db()
1621 mdb.color = media_attr->values[0].string.text; in cups_create_media_db()
1623 if ((media_attr = ippFindAttribute(val->collection, "media-info", in cups_create_media_db()
1625 mdb.info = media_attr->values[0].string.text; in cups_create_media_db()
1627 if ((media_attr = ippFindAttribute(val->collection, "media-key", in cups_create_media_db()
1629 (media_attr->value_tag == IPP_TAG_NAME || in cups_create_media_db()
1630 media_attr->value_tag == IPP_TAG_NAMELANG || in cups_create_media_db()
1631 media_attr->value_tag == IPP_TAG_KEYWORD)) in cups_create_media_db()
1632 mdb.key = media_attr->values[0].string.text; in cups_create_media_db()
1634 if ((media_attr = ippFindAttribute(val->collection, "media-size-name", in cups_create_media_db()
1636 (media_attr->value_tag == IPP_TAG_NAME || in cups_create_media_db()
1637 media_attr->value_tag == IPP_TAG_NAMELANG || in cups_create_media_db()
1638 media_attr->value_tag == IPP_TAG_KEYWORD)) in cups_create_media_db()
1639 mdb.size_name = media_attr->values[0].string.text; in cups_create_media_db()
1641 if ((media_attr = ippFindAttribute(val->collection, "media-source", in cups_create_media_db()
1643 (media_attr->value_tag == IPP_TAG_NAME || in cups_create_media_db()
1644 media_attr->value_tag == IPP_TAG_NAMELANG || in cups_create_media_db()
1645 media_attr->value_tag == IPP_TAG_KEYWORD)) in cups_create_media_db()
1646 mdb.source = media_attr->values[0].string.text; in cups_create_media_db()
1648 if ((media_attr = ippFindAttribute(val->collection, "media-type", in cups_create_media_db()
1650 (media_attr->value_tag == IPP_TAG_NAME || in cups_create_media_db()
1651 media_attr->value_tag == IPP_TAG_NAMELANG || in cups_create_media_db()
1652 media_attr->value_tag == IPP_TAG_KEYWORD)) in cups_create_media_db()
1653 mdb.type = media_attr->values[0].string.text; in cups_create_media_db()
1655 if ((media_attr = ippFindAttribute(val->collection, "media-bottom-margin", in cups_create_media_db()
1657 mdb.bottom = media_attr->values[0].integer; in cups_create_media_db()
1659 if ((media_attr = ippFindAttribute(val->collection, "media-left-margin", in cups_create_media_db()
1661 mdb.left = media_attr->values[0].integer; in cups_create_media_db()
1663 if ((media_attr = ippFindAttribute(val->collection, "media-right-margin", in cups_create_media_db()
1665 mdb.right = media_attr->values[0].integer; in cups_create_media_db()
1667 if ((media_attr = ippFindAttribute(val->collection, "media-top-margin", in cups_create_media_db()
1669 mdb.top = media_attr->values[0].integer; in cups_create_media_db()
1676 if ((media_attr = ippFindAttribute(custom->collection, in cups_create_media_db()
1681 dinfo->max_size.top = media_attr->values[0].integer; in cups_create_media_db()
1684 if ((media_attr = ippFindAttribute(custom->collection, in cups_create_media_db()
1689 dinfo->max_size.left = media_attr->values[0].integer; in cups_create_media_db()
1692 if ((media_attr = ippFindAttribute(custom->collection, in cups_create_media_db()
1697 dinfo->max_size.right = media_attr->values[0].integer; in cups_create_media_db()
1700 if ((media_attr = ippFindAttribute(custom->collection, in cups_create_media_db()
1705 dinfo->max_size.top = media_attr->values[0].integer; in cups_create_media_db()
1709 else if (media_attr && in cups_create_media_db()
1710 (media_attr->value_tag == IPP_TAG_NAME || in cups_create_media_db()
1711 media_attr->value_tag == IPP_TAG_NAMELANG || in cups_create_media_db()
1712 media_attr->value_tag == IPP_TAG_KEYWORD)) in cups_create_media_db()
1721 for (i = media_attr->num_values, val = media_attr->values; in cups_create_media_db()