Lines Matching refs:i
396 int i; in print_col() local
404 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
407 ippTagString(ippGetValueTag(attr)), ippGetInteger(attr, i)); in print_col()
411 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
412 if (ippGetBoolean(attr, i)) { in print_col()
428 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
430 lower = ippGetRange(attr, i, &upper); in print_col()
437 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
440 xres = ippGetResolution(attr, i, &yres, &units); in print_col()
455 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
458 ippTagString(ippGetValueTag(attr)), ippGetString(attr, i, NULL)); in print_col()
463 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
466 text = ippGetString(attr, i, &charset); in print_col()
473 for (i = 0; i < ippGetCount(attr); i++) { in print_col()
474 print_col(ippGetCollection(attr, i)); in print_col()
485 int i; in print_attr() local
494 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
496 ippTagString(ippGetValueTag(attr)), ippGetInteger(attr, i)); in print_attr()
500 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
501 if (ippGetBoolean(attr, i)) { in print_attr()
517 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
519 lower = ippGetRange(attr, i, &upper); in print_attr()
525 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
528 xres = ippGetResolution(attr, i, &yres, &units); in print_attr()
543 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
546 ippTagString(ippGetValueTag(attr)), ippGetString(attr, i, NULL)); in print_attr()
551 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
554 text = ippGetString(attr, i, &charset); in print_attr()
562 for (i = 0; i < ippGetCount(attr); i++) { in print_attr()
565 print_col(ippGetCollection(attr, i)); in print_attr()
577 int i; in parse_IPPVersions() local
589 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_IPPVersions()
590 if (strcmp(ipp10, ippGetString(attrptr, i, NULL)) == 0) { in parse_IPPVersions()
592 } else if (strcmp(ipp11, ippGetString(attrptr, i, NULL)) == 0) { in parse_IPPVersions()
594 } else if (strcmp(ipp20, ippGetString(attrptr, i, NULL)) == 0) { in parse_IPPVersions()
597 LOGD("found another ipp version. %s", ippGetString(attrptr, i, NULL)); in parse_IPPVersions()
605 int i; in mapDFMediaToIPPKeyword() local
606 for (i = 0; i < SUPPORTED_MEDIA_SIZE_COUNT; i++) { in mapDFMediaToIPPKeyword()
607 if (SupportedMediaSizes[i].media_size == (media_size_t) media_size) { in mapDFMediaToIPPKeyword()
608 return (SupportedMediaSizes[i].PWGName); in mapDFMediaToIPPKeyword()
615 int i; in ipp_find_media_size() local
617 for (i = 0; i < SUPPORTED_MEDIA_SIZE_COUNT; i++) { in ipp_find_media_size()
618 if (strcmp(SupportedMediaSizes[i].PWGName, ipp_media_keyword) == 0) { in ipp_find_media_size()
620 SupportedMediaSizes[i].PWGName, SupportedMediaSizes[i].media_size); in ipp_find_media_size()
624 if (i < SUPPORTED_MEDIA_SIZE_COUNT) { in ipp_find_media_size()
625 *media_size = SupportedMediaSizes[i].media_size; in ipp_find_media_size()
626 return i; in ipp_find_media_size()
634 int i; in parse_getMediaSupported() local
644 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_getMediaSupported()
645 idx = ipp_find_media_size(ippGetString(attrptr, i, NULL), &media_sizeTemp); in parse_getMediaSupported()
663 int i; in get_supportedPrinterResolutions() local
664 for (i = 0; i < ippGetCount(attrptr); i++) { in get_supportedPrinterResolutions()
667 xres = ippGetResolution(attrptr, i, &yres, &units); in get_supportedPrinterResolutions()
705 int i, j; in parse_printerAttributes() local
711 for (i = 0; i <= PAGE_STATUS_MAX - 1; i++) { in parse_printerAttributes()
712 media_supported.media_size[i] = 0; in parse_printerAttributes()
721 for (i = 0; i <= PAGE_STATUS_MAX - 1; i++) { in parse_printerAttributes()
722 if (media_supported.media_size[i] != 0) { in parse_printerAttributes()
724 media_supported.media_size[i]; in parse_printerAttributes()
725 idx = media_supported.idxKeywordTranTable[i]; in parse_printerAttributes()
726 LOGD(" i %d, \tPT_Size: %d \tidx %d \tKeyword: %s", i, media_supported.media_size[i], in parse_printerAttributes()
772 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
773 ippGetRange(attrptr, i, &upper); in parse_printerAttributes()
781 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
782 if (strcmp("color", ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
789 for (i = 0; i < ippGetCount(attrptr) && capabilities->numSupportedQuality in parse_printerAttributes()
790 < MAX_QUALITY_SUPPORTED; i++) { in parse_printerAttributes()
791 LOGD("print-quality-supported: %d", ippGetInteger(attrptr, i)); in parse_printerAttributes()
793 ippGetInteger(attrptr, i); in parse_printerAttributes()
804 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
805 if (strcmp(imagePDF, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
807 } else if (strcmp(applicationPDF, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
809 } else if (strcmp(imagePCLm, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
811 } else if (strcmp(applicationPDF, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
813 } else if (strcmp(imagePWG, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
820 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
821 if (strcmp(IPP_SIDES_TWO_SIDED_SHORT_EDGE, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
823 } else if (strcmp(IPP_SIDES_TWO_SIDED_LONG_EDGE, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
834 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
835 if (strcasestr(ippGetString(attrptr, i, NULL), "photographic-glossy")) { in parse_printerAttributes()
837 } else if (strcasestr(ippGetString(attrptr, i, NULL), "photo")) { in parse_printerAttributes()
839 } else if (strcasestr(ippGetString(attrptr, i, NULL), "stationery")) { in parse_printerAttributes()
873 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
874 if (strcmp(ipp10, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
876 } else if (strcmp(ipp11, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
878 } else if (strcmp(ipp20, ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
881 LOGD("found another ipp version. %s", ippGetString(attrptr, i, NULL)); in parse_printerAttributes()
902 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
903 LOGD("setting epcl_ipp_version (KEYWORD) %s", ippGetString(attrptr, i, NULL)); in parse_printerAttributes()
906 if (strstr(ippGetString(attrptr, i, NULL), epcl10) != NULL) { in parse_printerAttributes()
914 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
915 LOGD("setting epcl_ipp_verion (TEXT) %s", ippGetString(attrptr, i, NULL)); in parse_printerAttributes()
918 if (strstr(ippGetString(attrptr, i, NULL), epcl10) != NULL) { in parse_printerAttributes()
927 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
930 ipp_t *collection = ippGetCollection(attrptr, i); in parse_printerAttributes()
993 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
994 if (ippGetInteger(attrptr, i) == 0) { in parse_printerAttributes()
1003 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1004 if (ippGetInteger(attrptr, i) == 0) { in parse_printerAttributes()
1013 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1014 if (ippGetInteger(attrptr, i) == 0) { in parse_printerAttributes()
1023 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1024 if (ippGetInteger(attrptr, i) == 0) { in parse_printerAttributes()
1058 for (i = 0; i < ippGetCount(attrptr); i++) { in parse_printerAttributes()
1059 if (strcmp("document-source-application-name", ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1062 strcmp("document-source-application-version", ippGetString(attrptr, i, NULL)) == in parse_printerAttributes()
1065 } else if (strcmp("document-source-os-name", ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1067 } else if (strcmp("document-source-os-version", ippGetString(attrptr, i, NULL)) == 0) { in parse_printerAttributes()
1084 int i; in parse_printerUris() local
1088 for (i = 0; i < MIN(ippGetCount(attrptr), MAX_URIS); i++) { in parse_printerUris()
1089 uris[i].uri = ippGetString(attrptr, i, NULL); in parse_printerUris()
1090 uris[i].valid = true; in parse_printerUris()
1097 for (i = 0; i < MIN(ippGetCount(attrptr), MAX_URIS); i++) { in parse_printerUris()
1099 if (strcmp("none", ippGetString(attrptr, i, NULL)) != 0 && in parse_printerUris()
1100 strcmp("requesting-user-name", ippGetString(attrptr, i, NULL)) != 0) { in parse_printerUris()
1101 LOGD("parse_printerUris %s invalid because auth=%s", uris[i].uri, in parse_printerUris()
1102 ippGetString(attrptr, i, NULL)); in parse_printerUris()
1103 uris[i].valid = false; in parse_printerUris()
1109 for (i = 0; i < MAX_URIS; i++) { in parse_printerUris()
1111 if (uris[i].valid && strncmp(capabilities->printerUri, "ipps://", 7) != 0) { in parse_printerUris()
1112 LOGD("parse_printerUris found %s", uris[i].uri); in parse_printerUris()
1113 strlcpy(capabilities->printerUri, uris[i].uri, sizeof(capabilities->printerUri)); in parse_printerUris()