| 657 | } |
| 658 | |
| 659 | static struct ifmedia_description *get_mode_desc(int ifmw, |
| 660 | struct ifmedia_type_to_subtype *ttos) |
| 661 | { |
| 662 | int i; |
| 663 | struct ifmedia_description *desc; |
| 664 | |
| 665 | for (i = 0; ttos->modes[i].desc != NULL; i++) { |
| 666 | if (ttos->modes[i].alias) |
| 667 | continue; |
| 668 | for (desc = ttos->modes[i].desc; |
| 669 | desc->ifmt_string != NULL; desc++) { |
| 670 | if (IFM_MODE(ifmw) == desc->ifmt_word) |
| 671 | return desc; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | return NULL; |
| 676 | } |
| 677 | |
| 678 | static void |
| 679 | print_media_word(int ifmw, int print_toptype) |
no outgoing calls
no test coverage detected