Home | History | Annotate | Download | only in cups

Lines Matching refs:best

1715 			*best = NULL,	/* Best matching entry */
1747 * Found an exact match, let's figure out the best margins for the flags
1751 best = mdb;
1759 if (best->left != 0 || best->right != 0 || best->top != 0 || best->bottom != 0)
1765 if (mdb->left <= best->left && mdb->right <= best->right &&
1766 mdb->top <= best->top && mdb->bottom <= best->bottom)
1768 best = mdb;
1782 (best->left || best->right || best->top || best->bottom))
1795 if (mdb->left >= best->left && mdb->right >= best->right &&
1796 mdb->top >= best->top && mdb->bottom >= best->bottom &&
1797 (mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top != best->top))
1798 best = mdb;
1811 if (((mdb->left > 0 && mdb->left <= best->left) || best->left == 0) &&
1812 ((mdb->right > 0 && mdb->right <= best->right) || best->right == 0) &&
1813 ((mdb->top > 0 && mdb->top <= best->top) || best->top == 0) &&
1814 ((mdb->bottom > 0 && mdb->bottom <= best->bottom) || best->bottom == 0) &&
1815 (mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top != best->top))
1816 best = mdb;
1843 best = &key;
1860 best = &key;
1877 best = mdb;
1885 if (best->left != 0 || best->right != 0 || best->top != 0 ||
1886 best->bottom != 0)
1892 if (mdb->left <= best->left && mdb->right <= best->right &&
1893 mdb->top <= best->top && mdb->bottom <= best->bottom &&
1894 (mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top != best->top))
1896 best = mdb;
1914 if (mdb->left >= best->left && mdb->right >= best->right &&
1915 mdb->top >= best->top && mdb->bottom >= best->bottom &&
1916 (mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top != best->top))
1917 best = mdb;
1930 if (((mdb->left > 0 && mdb->left <= best->left) || best->left == 0) &&
1931 ((mdb->right > 0 && mdb->right <= best->right) ||
1932 best->right == 0) &&
1933 ((mdb->top > 0 && mdb->top <= best->top) || best->top == 0) &&
1934 ((mdb->bottom > 0 && mdb->bottom <= best->bottom) ||
1935 best->bottom == 0) &&
1936 (mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top != best->top))
1937 best = mdb;
1942 if (best)
1948 if (best->size_name)
1949 strlcpy(size->media, best->size_name, sizeof(size->media));
1950 else if (best->key)
1951 strlcpy(size->media, best->key, sizeof(size->media));
1955 size->width = best->width;
1956 size->length = best->length;
1957 size->bottom = best->bottom;
1958 size->left = best->left;
1959 size->right = best->right;
1960 size->top = best->top;