Lines Matching refs:desc

467 		struct ifmedia_description *desc;
471 struct ifmedia_description *desc;
475 struct ifmedia_description *desc;
579 struct ifmedia_description *desc;
584 for (desc = ifm_type_descriptions, ttos = ifmedia_types_to_subtypes;
585 desc->ifmt_string != NULL; desc++, ttos++)
586 if (type == desc->ifmt_word)
588 if (desc->ifmt_string == NULL)
591 for (i = 0; ttos->subtypes[i].desc != NULL; i++) {
592 rval = lookup_media_word(ttos->subtypes[i].desc, val);
603 struct ifmedia_description *desc;
608 for (desc = ifm_type_descriptions, ttos = ifmedia_types_to_subtypes;
609 desc->ifmt_string != NULL; desc++, ttos++)
610 if (type == desc->ifmt_word)
612 if (desc->ifmt_string == NULL)
615 for (i = 0; ttos->modes[i].desc != NULL; i++) {
616 rval = lookup_media_word(ttos->modes[i].desc, val);
626 struct ifmedia_description *desc;
637 for (desc = ifm_type_descriptions, ttos = ifmedia_types_to_subtypes;
638 desc->ifmt_string != NULL; desc++, ttos++)
639 if (type == desc->ifmt_word)
641 if (desc->ifmt_string == NULL)
650 for (i = 0; ttos->options[i].desc != NULL; i++) {
651 option = lookup_media_word(ttos->options[i].desc, optptr);
665 lookup_media_word(struct ifmedia_description *desc, const char *val)
668 for (; desc->ifmt_string != NULL; desc++)
669 if (strcasecmp(desc->ifmt_string, val) == 0)
670 return (desc->ifmt_word);
677 struct ifmedia_description *desc;
679 for (desc = ifm_type_descriptions; desc->ifmt_string != NULL; desc++)
680 if (IFM_TYPE(ifmw) == desc->ifmt_word)
683 return desc;
688 struct ifmedia_description *desc;
691 for (desc = ifm_type_descriptions, ttos = ifmedia_types_to_subtypes;
692 desc->ifmt_string != NULL; desc++, ttos++)
693 if (IFM_TYPE(ifmw) == desc->ifmt_word)
703 struct ifmedia_description *desc;
705 for (i = 0; ttos->subtypes[i].desc != NULL; i++) {
708 for (desc = ttos->subtypes[i].desc;
709 desc->ifmt_string != NULL; desc++) {
710 if (IFM_SUBTYPE(ifmw) == desc->ifmt_word)
711 return desc;
722 struct ifmedia_description *desc;
724 for (i = 0; ttos->modes[i].desc != NULL; i++) {
727 for (desc = ttos->modes[i].desc;
728 desc->ifmt_string != NULL; desc++) {
729 if (IFM_MODE(ifmw) == desc->ifmt_word)
730 return desc;
740 struct ifmedia_description *desc;
745 desc = get_toptype_desc(ifmw);
747 if (desc->ifmt_string == NULL) {
751 printf("%s", desc->ifmt_string);
760 desc = get_subtype_desc(ifmw, ttos);
761 if (desc == NULL) {
769 printf("%s", desc->ifmt_string);
772 desc = get_mode_desc(ifmw, ttos);
773 if (desc != NULL && strcasecmp("autoselect", desc->ifmt_string))
774 printf(" mode %s", desc->ifmt_string);
778 for (i = 0; ttos->options[i].desc != NULL; i++) {
781 for (desc = ttos->options[i].desc;
782 desc->ifmt_string != NULL; desc++) {
783 if (ifmw & desc->ifmt_word) {
787 desc->ifmt_string);
800 struct ifmedia_description *desc;
805 desc = get_toptype_desc(ifmw);
807 if (desc->ifmt_string == NULL) {
818 desc = get_subtype_desc(ifmw, ttos);
819 if (desc == NULL) {
824 printf("media %s", desc->ifmt_string);
826 desc = get_mode_desc(ifmw, ttos);
827 if (desc != NULL)
828 printf(" mode %s", desc->ifmt_string);
831 for (i = 0; ttos->options[i].desc != NULL; i++) {
834 for (desc = ttos->options[i].desc;
835 desc->ifmt_string != NULL; desc++) {
836 if (ifmw & desc->ifmt_word) {
840 desc->ifmt_string);