| /f-stack/freebsd/net/ |
| H A D | if_media.c | 92 LIST_INIT(&ifm->ifm_list); in ifmedia_init() 93 ifm->ifm_cur = NULL; in ifmedia_init() 94 ifm->ifm_media = 0; in ifmedia_init() 109 ifm->ifm_cur = NULL; in ifmedia_removeall() 123 if (ifm == NULL) { in ifmedia_add() 169 match = ifmedia_match(ifm, target, ifm->ifm_mask); in ifmedia_set() 176 ifm->ifm_cur = match; in ifmedia_set() 227 match = ifmedia_match(ifm, newmedia, ifm->ifm_mask); in ifmedia_ioctl() 246 newmedia == ifm->ifm_media && match == ifm->ifm_cur) in ifmedia_ioctl() 261 oldentry = ifm->ifm_cur; in ifmedia_ioctl() [all …]
|
| H A D | rtsock.c | 1813 struct if_msghdr *ifm; in rt_ifmsg() local 1824 ifm->ifm_index = ifp->if_index; in rt_ifmsg() 1827 ifm->ifm_addrs = 0; in rt_ifmsg() 2201 struct if_msghdrl *ifm; in sysctl_iflist_ifml() local 2225 ifm->_ifm_spare1 = 0; in sysctl_iflist_ifml() 2226 ifm->ifm_len = sizeof(*ifm); in sysctl_iflist_ifml() 2228 ifm->_ifm_spare2 = 0; in sysctl_iflist_ifml() 2229 ifd = &ifm->ifm_data; in sysctl_iflist_ifml() 2241 struct if_msghdr *ifm; in sysctl_iflist_ifm() local 2262 ifm->_ifm_spare1 = 0; in sysctl_iflist_ifm() [all …]
|
| H A D | if_media.h | 91 void ifmedia_init(struct ifmedia *ifm, int dontcare_mask, 95 void ifmedia_removeall( struct ifmedia *ifm); 98 void ifmedia_add(struct ifmedia *ifm, int mword, int data, void *aux); 105 void ifmedia_set(struct ifmedia *ifm, int mword); 109 struct ifmedia *ifm, u_long cmd);
|
| /f-stack/freebsd/contrib/device-tree/Bindings/misc/ |
| H A D | ifm-csi.txt | 4 - compatible: "ifm,o2d-csi" 10 - ifm,csi-clk-handle: the phandle to a node in the DT describing the sensor 12 - ifm,csi-addr-bus-width: address bus width (valid values are 16, 24, 25) 13 - ifm,csi-data-bus-width: data bus width (valid values are 8 and 16) 14 - ifm,csi-wait-cycles: sensor bus wait cycles 17 - ifm,csi-byte-swap: if this property is present, the byte swapping on 23 compatible = "ifm,o2d-csi"; 27 ifm,csi-clk-handle = <&timer7>; 32 ifm,csi-addr-bus-width = <24>; 33 ifm,csi-data-bus-width = <8>; [all …]
|
| /f-stack/tools/compat/ |
| H A D | getifaddrs.c | 95 struct if_msghdrl *ifm; in getifaddrs() local 145 ifm = (struct if_msghdrl *)(void *)rtm; in getifaddrs() 146 if (ifm->ifm_addrs & RTA_IFP) { in getifaddrs() 147 idx = ifm->ifm_index; in getifaddrs() 149 if_data = IF_MSGHDRL_IFM_DATA(ifm); in getifaddrs() 228 ifm = (struct if_msghdrl *)(void *)rtm; in getifaddrs() 229 if ((ifm->ifm_addrs & RTA_IFP) == 0) { in getifaddrs() 234 idx = ifm->ifm_index; in getifaddrs() 235 dl = (struct sockaddr_dl *)IF_MSGHDRL_RTA(ifm); in getifaddrs() 239 ift->ifa_flags = (int)ifm->ifm_flags; in getifaddrs() [all …]
|
| /f-stack/freebsd/contrib/device-tree/src/powerpc/ |
| H A D | o2d.dtsi | 19 model = "ifm,o2d"; 20 compatible = "ifm,o2d"; 104 compatible = "ifm,o2d-csi"; 106 ifm,csi-clk-handle = <&gpt7>; 113 ifm,csi-addr-bus-width = <24>; 114 ifm,csi-data-bus-width = <8>; 115 ifm,csi-wait-cycles = <0>;
|
| H A D | o2i.dts | 12 model = "ifm,o2i"; 13 compatible = "ifm,o2d";
|
| H A D | o2mnt.dts | 12 model = "ifm,o2mnt"; 13 compatible = "ifm,o2d";
|
| H A D | o3dnt.dts | 12 model = "ifm,o3dnt"; 13 compatible = "ifm,o2d";
|
| H A D | o2dnt2.dts | 12 model = "ifm,o2dnt2"; 13 compatible = "ifm,o2d";
|
| H A D | o2d.dts | 12 model = "ifm,o2d"; 13 compatible = "ifm,o2d";
|
| H A D | o2d300.dts | 12 model = "ifm,o2d300"; 13 compatible = "ifm,o2d";
|
| H A D | ac14xx.dts | 13 compatible = "ifm,ac14xx", "fsl,mpc5121"; 85 compatible = "ifm,ac14xx-fram", "linux,uio-pdrv-genirq"; 95 compatible = "ifm,ac14xx-asi-fpga"; 118 compatible = "ifm,netx"; 126 compatible = "ifm,safety";
|
| H A D | pdm360ng.dts | 16 compatible = "ifm,pdm360ng", "fsl,mpc5121";
|
| /f-stack/freebsd/mips/cavium/octe/ |
| H A D | octe.c | 354 ifm->ifm_active = mii->mii_media_active; in octe_mii_medstat() 355 ifm->ifm_status = mii->mii_media_status; in octe_mii_medstat() 372 ifm->ifm_status = IFM_AVALID; in octe_medstat() 373 ifm->ifm_active = IFT_ETHER; in octe_medstat() 384 ifm->ifm_status |= IFM_ACTIVE; in octe_medstat() 388 ifm->ifm_active |= IFM_10_T; in octe_medstat() 391 ifm->ifm_active |= IFM_100_TX; in octe_medstat() 394 ifm->ifm_active |= IFM_1000_T; in octe_medstat() 397 ifm->ifm_active |= IFM_10G_T; in octe_medstat() 402 ifm->ifm_active |= IFM_FDX; in octe_medstat() [all …]
|
| /f-stack/freebsd/mips/cavium/ |
| H A D | if_octm.c | 379 octm_medstat(struct ifnet *ifp, struct ifmediareq *ifm) in octm_medstat() argument 386 ifm->ifm_status = IFM_AVALID; in octm_medstat() 387 ifm->ifm_active = IFT_ETHER; in octm_medstat() 393 ifm->ifm_status |= IFM_ACTIVE; in octm_medstat() 397 ifm->ifm_active |= IFM_10_T; in octm_medstat() 400 ifm->ifm_active |= IFM_100_TX; in octm_medstat() 403 ifm->ifm_active |= IFM_1000_T; in octm_medstat() 406 ifm->ifm_active |= IFM_10G_T; in octm_medstat() 411 ifm->ifm_active |= IFM_FDX; in octm_medstat() 413 ifm->ifm_active |= IFM_HDX; in octm_medstat()
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_eiface.c | 346 struct ifmedia *ifm = &priv->media; in ng_eiface_mediachange() local 348 if (IFM_TYPE(ifm->ifm_media) != IFM_ETHER) in ng_eiface_mediachange() 350 if (IFM_SUBTYPE(ifm->ifm_media) == IFM_AUTO) in ng_eiface_mediachange() 353 ifp->if_baudrate = ifmedia_baudrate(ifm->ifm_media); in ng_eiface_mediachange() 362 struct ifmedia *ifm = &priv->media; in ng_eiface_mediastatus() local 364 if (ifm->ifm_cur->ifm_media == (IFM_ETHER | IFM_AUTO) && in ng_eiface_mediastatus() 368 ifmr->ifm_active = ifm->ifm_cur->ifm_media; in ng_eiface_mediastatus()
|
| /f-stack/dpdk/drivers/common/mlx5/linux/ |
| H A D | mlx5_nl.c | 467 struct ifinfomsg ifm; in mlx5_nl_mac_addr_list() member 474 .ifm = { in mlx5_nl_mac_addr_list() 597 struct ifinfomsg ifm; in mlx5_nl_vf_mac_addr_modify() member 608 .ifm = { in mlx5_nl_vf_mac_addr_modify() 1366 struct ifinfomsg *ifm; in mlx5_nl_vlan_vmwa_create() local 1389 ifm = (struct ifinfomsg *)nl_msg_tail(nlh); in mlx5_nl_vlan_vmwa_create() 1391 ifm->ifi_family = AF_UNSPEC; in mlx5_nl_vlan_vmwa_create() 1392 ifm->ifi_type = 0; in mlx5_nl_vlan_vmwa_create() 1393 ifm->ifi_index = 0; in mlx5_nl_vlan_vmwa_create() 1394 ifm->ifi_flags = IFF_UP; in mlx5_nl_vlan_vmwa_create() [all …]
|
| /f-stack/tools/ipfw/ |
| H A D | nat.c | 93 struct if_msghdr *ifm; in set_addr_dynamic() local 123 ifm = (struct if_msghdr *)next; in set_addr_dynamic() 124 next += ifm->ifm_msglen; in set_addr_dynamic() 125 if (ifm->ifm_version != RTM_VERSION) { in set_addr_dynamic() 128 "not understood", ifm->ifm_version); in set_addr_dynamic() 131 if (ifm->ifm_type == RTM_IFINFO) { in set_addr_dynamic() 132 sdl = (struct sockaddr_dl *)(ifm + 1); in set_addr_dynamic() 135 ifIndex = ifm->ifm_index; in set_addr_dynamic()
|
| /f-stack/tools/route/ |
| H A D | route.c | 1709 struct if_msghdr *ifm; local 1740 ifm = (struct if_msghdr *)rtm; 1741 (void)printf("if# %d, ", ifm->ifm_index); 1742 switch (ifm->ifm_data.ifi_link_state) { 1754 printb(ifm->ifm_flags, ifnetflags); 1755 pmsg_addrs((char *)(ifm + 1), ifm->ifm_addrs, msglen);
|
| /f-stack/dpdk/drivers/net/pcap/ |
| H A D | rte_eth_pcap.c | 1215 struct if_msghdr *ifm; in eth_pcap_update_mac() 1242 ifm = (struct if_msghdr *)buf; in eth_pcap_update_mac() 1243 sdl = (struct sockaddr_dl *)(ifm + 1); in eth_pcap_update_mac()
|
| /f-stack/freebsd/mips/atheros/ |
| H A D | if_arge.c | 2713 struct ifmedia *ifm = &sc->arge_ifmedia; in arge_multiphy_mediachange() local 2714 struct ifmedia_entry *ife = ifm->ifm_cur; in arge_multiphy_mediachange() 2716 if (IFM_TYPE(ifm->ifm_media) != IFM_ETHER) in arge_multiphy_mediachange()
|
| /f-stack/freebsd/arm/ti/cpsw/ |
| H A D | if_cpsw.c | 2862 struct ifmedia *ifm; in cpsw_setport() local 2890 ifm = &psc->mii->mii_media; in cpsw_setport() 2892 return (ifmedia_ioctl(psc->ifp, &p->es_ifr, ifm, SIOCSIFMEDIA)); in cpsw_setport()
|