Home
last modified time | relevance | path

Searched refs:ifm (Results 1 – 25 of 75) sorted by relevance

123

/freebsd/sys/net/
H A Dif_media.c91 LIST_INIT(&ifm->ifm_list); in ifmedia_init()
92 ifm->ifm_cur = NULL; in ifmedia_init()
93 ifm->ifm_media = 0; in ifmedia_init()
108 ifm->ifm_cur = NULL; in ifmedia_removeall()
122 if (ifm == NULL) { in ifmedia_add()
168 match = ifmedia_match(ifm, target, ifm->ifm_mask); in ifmedia_set()
175 ifm->ifm_cur = match; in ifmedia_set()
226 match = ifmedia_match(ifm, newmedia, ifm->ifm_mask); in ifmedia_ioctl()
245 newmedia == ifm->ifm_media && match == ifm->ifm_cur) in ifmedia_ioctl()
260 oldentry = ifm->ifm_cur; in ifmedia_ioctl()
[all …]
H A Drtsock.c1938 struct if_msghdr *ifm; in rtsock_ifmsg() local
1949 ifm->ifm_index = ifp->if_index; in rtsock_ifmsg()
1952 ifm->ifm_addrs = 0; in rtsock_ifmsg()
2295 struct if_msghdrl *ifm; in sysctl_iflist_ifml() local
2319 ifm->_ifm_spare1 = 0; in sysctl_iflist_ifml()
2320 ifm->ifm_len = sizeof(*ifm); in sysctl_iflist_ifml()
2322 ifm->_ifm_spare2 = 0; in sysctl_iflist_ifml()
2323 ifd = &ifm->ifm_data; in sysctl_iflist_ifml()
2335 struct if_msghdr *ifm; in sysctl_iflist_ifm() local
2356 ifm->_ifm_spare1 = 0; in sysctl_iflist_ifm()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/misc/
H A Difm-csi.txt4 - 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 …]
/freebsd/usr.sbin/rtadvd/
H A Dif.c413 struct if_msghdr *ifm; in update_ifinfo() local
461 ifm != NULL && ifm < (struct if_msghdr *)lim; in update_ifinfo()
462 ifm = get_next_msghdr(ifm,(struct if_msghdr *)lim)) { in update_ifinfo()
466 __func__, ifm, lim, (char *)lim - (char *)ifm); in update_ifinfo()
473 if (ifm->ifm_msglen == 0) { in update_ifinfo()
492 ifindex != ifm->ifm_index) in update_ifinfo()
499 __func__, ifm->ifm_index); in update_ifinfo()
514 __func__, ifm->ifm_index); in update_ifinfo()
589 ifi->ifi_type = ifm->ifm_type; in update_ifinfo()
594 RTM_IFINFO, ifm->ifm_type, ifm->ifm_msglen); in update_ifinfo()
[all …]
/freebsd/lib/libc/net/
H A Dgetifaddrs.c90 struct if_msghdrl *ifm; in getifaddrs() local
140 ifm = (struct if_msghdrl *)(void *)rtm; in getifaddrs()
141 if (ifm->ifm_addrs & RTA_IFP) { in getifaddrs()
142 idx = ifm->ifm_index; in getifaddrs()
144 if_data = IF_MSGHDRL_IFM_DATA(ifm); in getifaddrs()
223 ifm = (struct if_msghdrl *)(void *)rtm; in getifaddrs()
224 if ((ifm->ifm_addrs & RTA_IFP) == 0) { in getifaddrs()
229 idx = ifm->ifm_index; in getifaddrs()
230 dl = (struct sockaddr_dl *)IF_MSGHDRL_RTA(ifm); in getifaddrs()
234 ift->ifa_flags = (int)ifm->ifm_flags; in getifaddrs()
[all …]
/freebsd/sys/contrib/device-tree/src/powerpc/
H A Do2d.dtsi19 model = "ifm,o2d";
20 compatible = "ifm,o2d";
98 compatible = "ifm,o2d-csi";
100 ifm,csi-clk-handle = <&gpt7>;
107 ifm,csi-addr-bus-width = <24>;
108 ifm,csi-data-bus-width = <8>;
109 ifm,csi-wait-cycles = <0>;
H A Do2i.dts12 model = "ifm,o2i";
13 compatible = "ifm,o2d";
H A Do2mnt.dts12 model = "ifm,o2mnt";
13 compatible = "ifm,o2d";
H A Do2d.dts12 model = "ifm,o2d";
13 compatible = "ifm,o2d";
H A Do2dnt2.dts12 model = "ifm,o2dnt2";
13 compatible = "ifm,o2d";
H A Do3dnt.dts12 model = "ifm,o3dnt";
13 compatible = "ifm,o2d";
H A Do2d300.dts12 model = "ifm,o2d300";
13 compatible = "ifm,o2d";
H A Dac14xx.dts13 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";
/freebsd/usr.sbin/ifmcstat/
H A Difmcstat.c411 struct ifmultiaddr ifm, *ifmp = 0; in ll_addrlist() local
419 if (ifm.ifma_addr == NULL) in ll_addrlist()
430 addrbuf, ifm.ifma_refcount); in ll_addrlist()
490 if (ifm.ifma_addr == NULL) in if6_addrlist()
496 ifm.ifma_protospec); in if6_addrlist()
497 if (ifm.ifma_lladdr == 0) in if6_addrlist()
502 ifm.ifma_refcount); in if6_addrlist()
573 if (ifm.ifma_addr == NULL) in if_addrlist()
579 ifm.ifma_protospec); in if_addrlist()
580 if (ifm.ifma_lladdr == 0) in if_addrlist()
[all …]
/freebsd/usr.sbin/ppp/
H A Darp.c234 struct if_msghdr *ifm; in arp_EtherAddr() local
263 ifm = (struct if_msghdr *)ptr; /* On if_msghdr */ in arp_EtherAddr()
264 if (ifm->ifm_type != RTM_IFINFO) in arp_EtherAddr()
266 dl = (struct sockaddr_dl *)(ifm + 1); /* Single _dl at end */ in arp_EtherAddr()
267 skip = (ifm->ifm_flags & (IFF_UP | IFF_BROADCAST | IFF_POINTOPOINT | in arp_EtherAddr()
269 ptr += ifm->ifm_msglen; /* First ifa_msghdr */ in arp_EtherAddr()
280 ptr == (char *)ifm + ifm->ifm_msglen + ifam->ifam_msglen) in arp_EtherAddr()
H A Droute.c215 struct if_msghdr *ifm; in Index2Nam() local
246 ifm = (struct if_msghdr *)ptr; in Index2Nam()
247 if (ifm->ifm_type != RTM_IFINFO) in Index2Nam()
249 dl = (struct sockaddr_dl *)(ifm + 1); in Index2Nam()
250 if (ifm->ifm_index > 0) { in Index2Nam()
251 if (ifm->ifm_index > have) { in Index2Nam()
255 have = ifm->ifm_index + 5; in Index2Nam()
277 ifm->ifm_index); in Index2Nam()
281 if (route_nifs < ifm->ifm_index) in Index2Nam()
282 route_nifs = ifm->ifm_index; in Index2Nam()
[all …]
/freebsd/tools/tools/net80211/wlanwatch/
H A Dwlanwatch.c291 struct if_msghdr *ifm; in print_rtmsg() local
305 ifm = (struct if_msghdr *)rtm; in print_rtmsg()
307 cnow, ifm->ifm_index); in print_rtmsg()
308 switch (ifm->ifm_data.ifi_link_state) { in print_rtmsg()
317 ifm->ifm_data.ifi_link_state); in print_rtmsg()
320 bprintf(stdout, ifm->ifm_flags, ifnetflags); in print_rtmsg()
321 pmsg_addrs((char *)(ifm + 1), ifm->ifm_addrs); in print_rtmsg()
/freebsd/usr.sbin/rtsold/
H A Dif.c297 struct if_msghdr *ifm; in if_nametosdl() local
311 for (next = buf; next < lim; next += ifm->ifm_msglen) { in if_nametosdl()
312 ifm = (struct if_msghdr *)(void *)next; in if_nametosdl()
313 if (ifm->ifm_type == RTM_IFINFO) { in if_nametosdl()
314 sa = (struct sockaddr *)(ifm + 1); in if_nametosdl()
315 get_rtaddrs(ifm->ifm_addrs, sa, rti_info); in if_nametosdl()
/freebsd/sys/dev/le/
H A Dif_le_pci.c201 struct ifmedia *ifm = &sc->sc_media; in le_pci_mediachange() local
204 if (IFM_TYPE(ifm->ifm_media) != IFM_ETHER) in le_pci_mediachange()
207 if (IFM_SUBTYPE(ifm->ifm_media) == IFM_HPNA_1) in le_pci_mediachange()
210 else if (IFM_SUBTYPE(ifm->ifm_media) == IFM_AUTO) in le_pci_mediachange()
219 if (IFM_SUBTYPE(ifm->ifm_media) == IFM_10_T) in le_pci_mediachange()
227 if (IFM_OPTIONS(ifm->ifm_media) & IFM_FDX) { in le_pci_mediachange()
233 if (IFM_SUBTYPE(ifm->ifm_media) == IFM_10_5) in le_pci_mediachange()
/freebsd/contrib/wpa/src/l2_packet/
H A Dl2_packet_freebsd.c201 struct if_msghdr *ifm; in eth_get()
215 for (p = buf; p < buf + len; p += ifm->ifm_msglen) { in eth_get()
216 ifm = (struct if_msghdr *)p; in eth_get()
217 sdl = (struct sockaddr_dl *)(ifm + 1); in eth_get()
218 if (ifm->ifm_type != RTM_IFINFO || in eth_get()
219 (ifm->ifm_addrs & RTA_IFP) == 0) in eth_get()
/freebsd/sys/netgraph/
H A Dng_eiface.c347 struct ifmedia *ifm = &priv->media; in ng_eiface_mediachange() local
349 if (IFM_TYPE(ifm->ifm_media) != IFM_ETHER) in ng_eiface_mediachange()
351 if (IFM_SUBTYPE(ifm->ifm_media) == IFM_AUTO) in ng_eiface_mediachange()
354 ifp->if_baudrate = ifmedia_baudrate(ifm->ifm_media); in ng_eiface_mediachange()
363 struct ifmedia *ifm = &priv->media; in ng_eiface_mediastatus() local
365 if (ifm->ifm_cur->ifm_media == (IFM_ETHER | IFM_AUTO) && in ng_eiface_mediastatus()
369 ifmr->ifm_active = ifm->ifm_cur->ifm_media; in ng_eiface_mediastatus()
/freebsd/usr.sbin/rwhod/
H A Drwhod.c578 struct if_msghdr *ifm; in configure() local
629 for (next = buf; next < lim; next += ifm->ifm_msglen) { in configure()
630 ifm = (struct if_msghdr *)next; in configure()
631 if (ifm->ifm_type == RTM_IFINFO) { in configure()
632 sdl = (struct sockaddr_dl *)(ifm + 1); in configure()
633 flags = ifm->ifm_flags; in configure()
643 if (ifm->ifm_type != RTM_NEWADDR) in configure()
645 ifam = (struct ifa_msghdr *)ifm; in configure()
/freebsd/sys/dev/my/
H A Dif_my.c391 struct ifmedia *ifm; in my_autoneg_mii() local
395 ifm = &sc->ifmedia; in my_autoneg_mii()
398 ifm->ifm_media = IFM_ETHER | IFM_AUTO; in my_autoneg_mii()
480 ifm->ifm_media = in my_autoneg_mii()
493 ifm->ifm_media = IFM_ETHER | IFM_100_TX; in my_autoneg_mii()
501 ifm->ifm_media = IFM_ETHER | IFM_100_T4; in my_autoneg_mii()
1563 struct ifmedia *ifm; in my_ifmedia_upd() local
1567 ifm = &sc->ifmedia; in my_ifmedia_upd()
1568 if (IFM_TYPE(ifm->ifm_media) != IFM_ETHER) { in my_ifmedia_upd()
1572 if (IFM_SUBTYPE(ifm->ifm_media) == IFM_AUTO) in my_ifmedia_upd()
[all …]
/freebsd/contrib/ntp/libparse/
H A Dparsestreams.c223 struct fmodsw *ifm = (struct fmodsw *)0; in xxxinit() local
242 if ((ifm == (struct fmodsw *)0) && in xxxinit()
249 ifm = fm; in xxxinit()
255 if (ifm == (struct fmodsw *)0) in xxxinit()
267 Strncpy(ifm->f_name, mname, FMNAMESZ); in xxxinit()
268 ifm->f_name[FMNAMESZ] = '\0'; in xxxinit()
269 ifm->f_str = &parseinfo; in xxxinit()
/freebsd/sbin/ipfw/
H A Dnat.c86 struct if_msghdr *ifm; in set_addr_dynamic() local
116 ifm = (struct if_msghdr *)next; in set_addr_dynamic()
117 next += ifm->ifm_msglen; in set_addr_dynamic()
118 if (ifm->ifm_version != RTM_VERSION) { in set_addr_dynamic()
121 "not understood", ifm->ifm_version); in set_addr_dynamic()
124 if (ifm->ifm_type == RTM_IFINFO) { in set_addr_dynamic()
125 sdl = (struct sockaddr_dl *)(ifm + 1); in set_addr_dynamic()
128 ifIndex = ifm->ifm_index; in set_addr_dynamic()

123