Home
last modified time | relevance | path

Searched refs:ifp (Results 1 – 22 of 22) sorted by relevance

/third_party/python/Lib/
Dbinhex.py258 with io.open(inp, 'rb') as ifp:
261 d = ifp.read(128000)
266 ifp = openrsrc(inp, 'rb')
268 d = ifp.read(128000)
272 ifp.close()
277 def __init__(self, ifp): argument
278 self.ifp = ifp
291 data = self.ifp.read(wtd)
304 newdata = self.ifp.read(1)
315 self.ifp.close()
[all …]
/third_party/libusb/libusb/
Ddescriptor.c172 struct libusb_interface_descriptor *ifp = in clear_interface() local
176 free((void *)ifp->extra); in clear_interface()
177 if (ifp->endpoint) { in clear_interface()
180 for (j = 0; j < ifp->bNumEndpoints; j++) in clear_interface()
182 ifp->endpoint + j); in clear_interface()
184 free((void *)ifp->endpoint); in clear_interface()
200 struct libusb_interface_descriptor *ifp; in parse_interface() local
214 ifp = altsetting + usb_interface->num_altsetting; in parse_interface()
215 parse_descriptor(buffer, "bbbbbbbbb", ifp); in parse_interface()
216 if (ifp->bDescriptorType != LIBUSB_DT_INTERFACE) { in parse_interface()
[all …]
/third_party/toybox/toys/posix/
Duudecode.c29 FILE *ifp = stdin; local
35 if (toys.optc) ifp = xfopen(*toys.optargs, "r");
38 if ((n = getline(&line, &allocated_length, ifp)) == -1)
56 if (m == 2 || (n = getline(&line, &allocated_length, ifp)) == -1) break;
109 if (ifp != stdin) fclose(ifp);
/third_party/FreeBSD/sys/dev/usb/net/
Dif_axge.c248 struct los_eth_driver *ifp = ue->ue_drv_sc; in axge_setmulti() local
252 if (ifp->ac_if.flags & (IFF_ALLMULTI | IFF_PROMISC)) { in axge_setmulti()
266 struct los_eth_driver *ifp = ue->ue_drv_sc; in axge_setpromisc() local
271 if (ifp->ac_if.flags & IFF_PROMISC) in axge_setpromisc()
402 struct los_eth_driver *ifp = ue->ue_drv_sc; in axge_miibus_statchg() local
436 ifp->ac_if.flags |= NETIF_FLAG_LINK_UP; in axge_miibus_statchg()
438 (void)netifapi_netif_set_up(&ifp->ac_if); in axge_miibus_statchg()
442 ifp->ac_if.flags &= ~NETIF_FLAG_LINK_UP; in axge_miibus_statchg()
484 struct los_eth_driver *ifp = ue->ue_drv_sc; in axge_rxeof() local
514 driverif_input(&ifp->ac_if, m); in axge_rxeof()
[all …]
Dif_axe.c537 struct los_eth_driver *ifp = ue->ue_drv_sc; in axe_ax88772b_init() local
554 ifp->ac_if.hwaddr_len = NETIF_MAX_HWADDR_LEN; in axe_ax88772b_init()
555 tmp = (uint8_t *) ifp->ac_if.hwaddr; in axe_ax88772b_init()
573 ifp = ue->ue_drv_sc; in axe_ax88772b_init()
574 ifp->ac_if.flags |= NETIF_FLAG_UP | NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET; in axe_ax88772b_init()
575 ifp->ac_if.flags &= ~NETIF_FLAG_LINK_UP; in axe_ax88772b_init()
660 struct los_eth_driver *ifp = ue->ue_drv_sc; in axe_miibus_statchg() local
661 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in axe_miibus_statchg()
675 ifp->ac_if.flags |= NETIF_FLAG_LINK_UP; in axe_miibus_statchg()
676 (void)netifapi_netif_set_up(&ifp->ac_if); in axe_miibus_statchg()
[all …]
Dif_urndis.c346 struct los_eth_driver *ifp = ue->ue_drv_sc; in urndis_init() local
347 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in urndis_init()
364 struct los_eth_driver *ifp = ue->ue_drv_sc; in urndis_stop() local
365 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in urndis_stop()
800 struct los_eth_driver *ifp = ue->ue_drv_sc; in urndis_bulk_read() local
831 driverif_input(&ifp->ac_if, m); in urndis_bulk_read()
Dif_cdce.c783 struct los_eth_driver *ifp = ue->ue_drv_sc; in cdce_init() local
784 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in cdce_init()
813 struct los_eth_driver *ifp = ue->ue_drv_sc; in cdce_stop() local
814 struct eth_drv_sc *drv_sc = (struct eth_drv_sc *)ifp->driver_context; in cdce_stop()
/third_party/musl/porting/liteos_a/user/src/network/
Dgetifaddrs.c50 void freeifaddrs(struct ifaddrs *ifp) in freeifaddrs() argument
53 while (ifp) { in freeifaddrs()
54 if (!ifp->ifa_name) in freeifaddrs()
55 free(ifp); in freeifaddrs()
56 if (!ifp->ifa_addr) in freeifaddrs()
57 free(ifp->ifa_addr); in freeifaddrs()
58 if (!ifp->ifa_netmask) in freeifaddrs()
59 free(ifp->ifa_netmask); in freeifaddrs()
60 tmp = ifp->ifa_next; in freeifaddrs()
61 free(ifp); in freeifaddrs()
[all …]
/third_party/lwip/src/core/ipv4/
Digmp.c99 static struct igmp_group *igmp_lookup_group(struct netif *ifp, const ip4_addr_t *addr);
218 igmp_lookfor_group(struct netif *ifp, const ip4_addr_t *addr) in igmp_lookfor_group() argument
220 struct igmp_group *group = netif_igmp_data(ifp); in igmp_lookfor_group()
244 igmp_lookup_group(struct netif *ifp, const ip4_addr_t *addr) in igmp_lookup_group() argument
247 struct igmp_group *list_head = netif_igmp_data(ifp); in igmp_lookup_group()
250 group = igmp_lookfor_group(ifp, addr); in igmp_lookup_group()
271 netif_set_client_data(ifp, LWIP_NETIF_CLIENT_DATA_INDEX_IGMP, group); in igmp_lookup_group()
283 LWIP_DEBUGF(IGMP_DEBUG, (" on if %p\n", (void *)ifp)); in igmp_lookup_group()
/third_party/lwip/src/core/ipv6/
Dmld6.c84 static struct mld_group *mld6_new_group(struct netif *ifp, const ip6_addr_t *addr);
144 mld6_lookfor_group(struct netif *ifp, const ip6_addr_t *addr) in mld6_lookfor_group() argument
146 struct mld_group *group = netif_mld6_data(ifp); in mld6_lookfor_group()
168 mld6_new_group(struct netif *ifp, const ip6_addr_t *addr) in mld6_new_group() argument
179 group->next = netif_mld6_data(ifp); in mld6_new_group()
181 netif_set_client_data(ifp, LWIP_NETIF_CLIENT_DATA_INDEX_MLD6, group); in mld6_new_group()
/third_party/musl/src/network/
Dgetifaddrs.c47 void freeifaddrs(struct ifaddrs *ifp) in freeifaddrs() argument
50 while (ifp) { in freeifaddrs()
51 n = ifp->ifa_next; in freeifaddrs()
52 free(ifp); in freeifaddrs()
53 ifp = n; in freeifaddrs()
/third_party/libwebsockets/lib/misc/
Dgetifaddrs.c212 freeifaddrs(struct ifaddrs *ifp) in freeifaddrs() argument
216 for (p = ifp; p; ) { in freeifaddrs()
/third_party/lwip/src/include/lwip/
Dmld6.h78 struct mld_group *mld6_lookfor_group(struct netif *ifp, const ip6_addr_t *addr);
Digmp.h94 struct igmp_group *igmp_lookfor_group(struct netif *ifp, const ip4_addr_t *addr);
/third_party/FreeBSD/sys/dev/usb/
Dusb_bus.h104 struct ifnet *ifp; /* only for USB Packet Filter */ member
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_os_userspace.h1043 #define SCTP_IP6_OUTPUT(result, o_pak, ro, ifp, stcb, vrf_id) sctp_userspace_ip6_output(&result, o_… argument
1049 #define SCTP_IP6_OUTPUT(result, o_pak, ro, ifp, stcb, vrf_id) \
1054 (ro), 0, 0, ifp, NULL); \
1056 result = ip6_output(o_pak, NULL, (ro), 0, 0, ifp, NULL); \
Dsctp_output.c4527 struct ifnet *ifp; local
4845 ifp = SCTP_GET_IFN_VOID_FROM_ROUTE(ro);
4915 SCTP_IP6_OUTPUT(ret, o_pak, (struct route_in6 *)ro, &ifp, stcb, vrf_id);
4995 else if (ifp) {
4997 #define ND_IFINFO(ifp) (ifp) argument
5000 if (ND_IFINFO(ifp)->linkmtu &&
5001 (stcb->asoc.smallest_mtu > ND_IFINFO(ifp)->linkmtu)) {
5004 ND_IFINFO(ifp)->linkmtu);
Dsctp_usrreq.c363 sctp_ctlinput(int cmd, struct sockaddr *sa, void *vip, struct ifnet *ifp SCTP_UNUSED)
/third_party/lwip/src/netif/ppp/
Dpppoe.c1159 pppoe_ifattach_hook(void *arg, struct pbuf **mp, struct netif *ifp, int dir)
1169 if (sc->sc_ethif != ifp) {
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dwpa_supplicant.c6137 struct if_nameindex *ifi, *ifp; local
6141 ifp = if_nameindex();
6142 if (!ifp) {
6147 for (ifi = ifp; ifi->if_name; ifi++) {
6160 if_freenameindex(ifp);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dwpa_supplicant.c7083 struct if_nameindex *ifi, *ifp; local
7087 ifp = if_nameindex();
7088 if (!ifp) {
7093 for (ifi = ifp; ifi->if_name; ifi++) {
7104 if_freenameindex(ifp);
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet6/
Dsctp6_usrreq.c406 sctp6_ctlinput(int cmd, struct sockaddr *pktdst, void *d, struct ifnet *ifp SCTP_UNUSED)