Lines Matching full:best
2288 *best = NULL, /* Best matching entry */ in cups_get_media_db() local
2320 * Found an exact match, let's figure out the best margins for the flags in cups_get_media_db()
2324 best = mdb; in cups_get_media_db()
2332 if (best->left != 0 || best->right != 0 || best->top != 0 || best->bottom != 0) in cups_get_media_db()
2338 if (mdb->left <= best->left && mdb->right <= best->right && in cups_get_media_db()
2339 mdb->top <= best->top && mdb->bottom <= best->bottom) in cups_get_media_db()
2341 best = mdb; in cups_get_media_db()
2355 (best->left || best->right || best->top || best->bottom)) in cups_get_media_db()
2368 if (mdb->left >= best->left && mdb->right >= best->right && in cups_get_media_db()
2369 mdb->top >= best->top && mdb->bottom >= best->bottom && in cups_get_media_db()
2370 …(mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top !… in cups_get_media_db()
2371 best = mdb; in cups_get_media_db()
2384 if (((mdb->left > 0 && mdb->left <= best->left) || best->left == 0) && in cups_get_media_db()
2385 ((mdb->right > 0 && mdb->right <= best->right) || best->right == 0) && in cups_get_media_db()
2386 ((mdb->top > 0 && mdb->top <= best->top) || best->top == 0) && in cups_get_media_db()
2387 ((mdb->bottom > 0 && mdb->bottom <= best->bottom) || best->bottom == 0) && in cups_get_media_db()
2388 …(mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top !… in cups_get_media_db()
2389 best = mdb; in cups_get_media_db()
2416 best = &key; in cups_get_media_db()
2433 best = &key; in cups_get_media_db()
2450 best = mdb; in cups_get_media_db()
2458 if (best->left != 0 || best->right != 0 || best->top != 0 || in cups_get_media_db()
2459 best->bottom != 0) in cups_get_media_db()
2465 if (mdb->left <= best->left && mdb->right <= best->right && in cups_get_media_db()
2466 mdb->top <= best->top && mdb->bottom <= best->bottom && in cups_get_media_db()
2467 …(mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top !… in cups_get_media_db()
2469 best = mdb; in cups_get_media_db()
2487 if (mdb->left >= best->left && mdb->right >= best->right && in cups_get_media_db()
2488 mdb->top >= best->top && mdb->bottom >= best->bottom && in cups_get_media_db()
2489 …(mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top !… in cups_get_media_db()
2490 best = mdb; in cups_get_media_db()
2503 if (((mdb->left > 0 && mdb->left <= best->left) || best->left == 0) && in cups_get_media_db()
2504 ((mdb->right > 0 && mdb->right <= best->right) || in cups_get_media_db()
2505 best->right == 0) && in cups_get_media_db()
2506 ((mdb->top > 0 && mdb->top <= best->top) || best->top == 0) && in cups_get_media_db()
2507 ((mdb->bottom > 0 && mdb->bottom <= best->bottom) || in cups_get_media_db()
2508 best->bottom == 0) && in cups_get_media_db()
2509 …(mdb->bottom != best->bottom || mdb->left != best->left || mdb->right != best->right || mdb->top !… in cups_get_media_db()
2510 best = mdb; in cups_get_media_db()
2515 if (best) in cups_get_media_db()
2521 if (best->key) in cups_get_media_db()
2522 strlcpy(size->media, best->key, sizeof(size->media)); in cups_get_media_db()
2523 else if (best->size_name) in cups_get_media_db()
2524 strlcpy(size->media, best->size_name, sizeof(size->media)); in cups_get_media_db()
2530 size->width = best->width; in cups_get_media_db()
2531 size->length = best->length; in cups_get_media_db()
2532 size->bottom = best->bottom; in cups_get_media_db()
2533 size->left = best->left; in cups_get_media_db()
2534 size->right = best->right; in cups_get_media_db()
2535 size->top = best->top; in cups_get_media_db()