• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sbin/etherswitchcfg/

Lines Matching refs:desc

404 		struct ifmedia_description *desc;
408 struct ifmedia_description *desc;
412 struct ifmedia_description *desc;
480 struct ifmedia_description *desc;
485 for (desc = ifm_type_descriptions, ttos = ifmedia_types_to_subtypes;
486 desc->ifmt_string != NULL; desc++, ttos++)
487 if (type == desc->ifmt_word)
489 if (desc->ifmt_string == NULL)
492 for (i = 0; ttos->subtypes[i].desc != NULL; i++) {
493 rval = lookup_media_word(ttos->subtypes[i].desc, val);
504 struct ifmedia_description *desc;
509 for (desc = ifm_type_descriptions, ttos = ifmedia_types_to_subtypes;
510 desc->ifmt_string != NULL; desc++, ttos++)
511 if (type == desc->ifmt_word)
513 if (desc->ifmt_string == NULL)
516 for (i = 0; ttos->modes[i].desc != NULL; i++) {
517 rval = lookup_media_word(ttos->modes[i].desc, val);
527 struct ifmedia_description *desc;
538 for (desc = ifm_type_descriptions, ttos = ifmedia_types_to_subtypes;
539 desc->ifmt_string != NULL; desc++, ttos++)
540 if (type == desc->ifmt_word)
542 if (desc->ifmt_string == NULL)
551 for (i = 0; ttos->options[i].desc != NULL; i++) {
552 option = lookup_media_word(ttos->options[i].desc, optptr);
566 lookup_media_word(struct ifmedia_description *desc, const char *val)
569 for (; desc->ifmt_string != NULL; desc++)
570 if (strcasecmp(desc->ifmt_string, val) == 0)
571 return (desc->ifmt_word);
578 struct ifmedia_description *desc;
580 for (desc = ifm_type_descriptions; desc->ifmt_string != NULL; desc++)
581 if (IFM_TYPE(ifmw) == desc->ifmt_word)
584 return desc;
589 struct ifmedia_description *desc;
592 for (desc = ifm_type_descriptions, ttos = ifmedia_types_to_subtypes;
593 desc->ifmt_string != NULL; desc++, ttos++)
594 if (IFM_TYPE(ifmw) == desc->ifmt_word)
604 struct ifmedia_description *desc;
606 for (i = 0; ttos->subtypes[i].desc != NULL; i++) {
609 for (desc = ttos->subtypes[i].desc;
610 desc->ifmt_string != NULL; desc++) {
611 if (IFM_SUBTYPE(ifmw) == desc->ifmt_word)
612 return desc;
623 struct ifmedia_description *desc;
625 for (i = 0; ttos->modes[i].desc != NULL; i++) {
628 for (desc = ttos->modes[i].desc;
629 desc->ifmt_string != NULL; desc++) {
630 if (IFM_MODE(ifmw) == desc->ifmt_word)
631 return desc;
641 struct ifmedia_description *desc;
646 desc = get_toptype_desc(ifmw);
648 if (desc->ifmt_string == NULL) {
652 printf("%s", desc->ifmt_string);
661 desc = get_subtype_desc(ifmw, ttos);
662 if (desc == NULL) {
670 printf("%s", desc->ifmt_string);
673 desc = get_mode_desc(ifmw, ttos);
674 if (desc != NULL && strcasecmp("autoselect", desc->ifmt_string))
675 printf(" mode %s", desc->ifmt_string);
679 for (i = 0; ttos->options[i].desc != NULL; i++) {
682 for (desc = ttos->options[i].desc;
683 desc->ifmt_string != NULL; desc++) {
684 if (ifmw & desc->ifmt_word) {
688 desc->ifmt_string);
701 struct ifmedia_description *desc;
706 desc = get_toptype_desc(ifmw);
708 if (desc->ifmt_string == NULL) {
719 desc = get_subtype_desc(ifmw, ttos);
720 if (desc == NULL) {
725 printf("media %s", desc->ifmt_string);
727 desc = get_mode_desc(ifmw, ttos);
728 if (desc != NULL)
729 printf(" mode %s", desc->ifmt_string);
732 for (i = 0; ttos->options[i].desc != NULL; i++) {
735 for (desc = ttos->options[i].desc;
736 desc->ifmt_string != NULL; desc++) {
737 if (ifmw & desc->ifmt_word) {
741 desc->ifmt_string);