Home
last modified time | relevance | path

Searched refs:netdev_sock (Results 1 – 15 of 15) sorted by relevance

/netbsd/src/sys/arch/sparc/stand/ofwboot/
Dnet.c76 static int netdev_sock = -1; variable
93 if ((netdev_sock = netif_open(op)) < 0) { in net_open()
100 if (netdev_sock >= 0 && open_count == 0) { in net_open()
101 netif_close(netdev_sock); in net_open()
102 netdev_sock = -1; in net_open()
116 netif_close(netdev_sock); in net_close()
117 netdev_sock = -1; in net_close()
141 if (rarp_getipaddress(netdev_sock) == -1) in net_mountroot_bootparams()
144 if (bp_whoami(netdev_sock)) in net_mountroot_bootparams()
147 if (bp_getfile(netdev_sock, "root", &rootip, rootpath)) in net_mountroot_bootparams()
[all …]
/netbsd/src/sys/arch/i386/stand/pxeboot/
Ddev_net.c58 static int netdev_sock = -1; variable
81 if (netdev_sock < 0) { in net_open()
82 netdev_sock = pxe_netif_open(); in net_open()
83 if (netdev_sock < 0) { in net_open()
92 error = net_getparams(netdev_sock); in net_open()
95 pxe_netif_close(netdev_sock); in net_open()
96 netdev_sock = -1; in net_open()
102 f->f_devdata = &netdev_sock; in net_open()
125 if (netdev_sock >= 0) { in net_close()
128 pxe_netif_close(netdev_sock); in net_close()
[all …]
/netbsd/src/sys/arch/ia64/stand/common/
Ddev_net.c71 static int netdev_sock = -1; variable
95 if (netdev_sock < 0) { in net_open()
96 netdev_sock = netif_open(devname); in net_open()
97 if (netdev_sock < 0) { in net_open()
106 error = net_getparams(netdev_sock); in net_open()
109 netif_close(netdev_sock); in net_open()
110 netdev_sock = -1; in net_open()
120 error = nfs_mount(netdev_sock, rootip, rootpath); in net_open()
122 netif_close(netdev_sock); in net_open()
123 netdev_sock = -1; in net_open()
[all …]
/netbsd/src/sys/arch/alpha/stand/netboot/
Ddev_net.c72 static int netdev_sock = -1; variable
101 if (netdev_sock < 0) { in net_open()
102 netdev_sock = netif_open(devname); in net_open()
103 if (netdev_sock < 0) { in net_open()
112 error = net_getparams(netdev_sock); in net_open()
118 error = nfs_mount(netdev_sock, rootip, rootpath); in net_open()
124 netif_close(netdev_sock); in net_open()
125 netdev_sock = -1; in net_open()
156 if (netdev_sock >= 0) { in net_close()
159 netif_close(netdev_sock); in net_close()
[all …]
/netbsd/src/sys/arch/shark/stand/ofwboot/
Dnet.c71 static int netdev_sock = -1; variable
88 if ((netdev_sock = netif_of_open(op)) < 0) { in net_open()
97 if (netdev_sock >= 0 && open_count == 0) { in net_open()
98 netif_of_close(netdev_sock); in net_open()
99 netdev_sock = -1; in net_open()
112 netif_of_close(netdev_sock); in net_close()
113 netdev_sock = -1; in net_close()
133 bootp(netdev_sock); in net_mountroot()
153 if (nfs_mount(netdev_sock, rootip, rootpath) < 0) in net_mountroot()
/netbsd/src/sys/arch/ofppc/stand/ofwboot/
Dnet.c72 static int netdev_sock = -1; variable
91 if ((netdev_sock = netif_of_open(op)) < 0) { in net_open()
100 if (netdev_sock >= 0 && open_count == 0) { in net_open()
101 netif_of_close(netdev_sock); in net_open()
102 netdev_sock = -1; in net_open()
115 netif_of_close(netdev_sock); in net_close()
116 netdev_sock = -1; in net_close()
137 bootp(netdev_sock); in net_mountroot()
157 if (nfs_mount(netdev_sock, rootip, rootpath) < 0) in net_mountroot()
/netbsd/src/sys/arch/macppc/stand/ofwboot/
Dnet.c72 static int netdev_sock = -1; variable
91 if ((netdev_sock = netif_of_open(op)) < 0) { in net_open()
100 if (netdev_sock >= 0 && open_count == 0) { in net_open()
101 netif_of_close(netdev_sock); in net_open()
102 netdev_sock = -1; in net_open()
115 netif_of_close(netdev_sock); in net_close()
116 netdev_sock = -1; in net_close()
136 bootp(netdev_sock); in net_mountroot()
156 if (nfs_mount(netdev_sock, rootip, rootpath) < 0) in net_mountroot()
/netbsd/src/sys/lib/libsa/
Ddev_net.c70 static int netdev_sock = -1; variable
99 if (netdev_sock < 0) { in net_open()
100 netdev_sock = netif_open(devname); in net_open()
101 if (netdev_sock < 0) { in net_open()
112 error = net_getparams(netdev_sock); in net_open()
118 error = nfs_mount(netdev_sock, rootip, rootpath); in net_open()
123 netif_close(netdev_sock); in net_open()
124 netdev_sock = -1; in net_open()
157 if (netdev_sock >= 0) { in net_close()
162 netif_close(netdev_sock); in net_close()
[all …]
/netbsd/src/sys/arch/sandpoint/stand/altboot/
Ddev_net.c47 static int netdev_sock = -1; variable
67 if ((netdev_sock = netif_open(NULL)) < 0) in net_open()
71 bootp(netdev_sock); /* send DHCP request */ in net_open()
83 && (error = nfs_mount(netdev_sock, rootip, rootpath)) != 0) in net_open()
87 f->f_devdata = &netdev_sock; in net_open()
91 netif_close(netdev_sock); in net_open()
92 netdev_sock = -1; in net_open()
103 netif_close(netdev_sock); in net_close()
104 netdev_sock = -1; in net_close()
/netbsd/src/sys/arch/newsmips/stand/boot/
Dnet.c64 int netdev_sock = -1; variable
79 if ((netdev_sock = netif_news_open(pd)) < 0) { in net_open()
99 netif_news_close(netdev_sock); in net_close()
123 if (rarp_getipaddress(netdev_sock) == -1) in net_mountroot()
129 if (bp_whoami(netdev_sock)) in net_mountroot()
135 if (bp_getfile(netdev_sock, "root", &rootip, rootpath)) in net_mountroot()
141 bootp(netdev_sock); in net_mountroot()
157 if (nfs_mount(netdev_sock, rootip, rootpath) != 0) in net_mountroot()
/netbsd/src/sys/arch/sparc/stand/common/
Dnet.c63 int netdev_sock = -1; variable
81 if ((netdev_sock = netif_open(pd)) < 0) { in net_open()
101 return (netif_close(netdev_sock)); in net_close()
112 if (rarp_getipaddress(netdev_sock) == -1) in net_mountroot_bootparams()
118 if (bp_whoami(netdev_sock)) in net_mountroot_bootparams()
124 if (bp_getfile(netdev_sock, "root", &rootip, rootpath)) in net_mountroot_bootparams()
135 bootp(netdev_sock); in net_mountroot_bootp()
180 if (nfs_mount(netdev_sock, rootip, rootpath) != 0) in net_mountroot()
/netbsd/src/sys/arch/hp300/stand/common/
Dnetio.c96 static int netdev_sock = -1; variable
123 if ((netdev_sock = netif_open(devname)) < 0) in netopen()
139 netif_close(netdev_sock); in netclose()
211 if ((d = socktodesc(netdev_sock)) == NULL) in netmountroot()
230 if (rarp_getipaddress(netdev_sock) == -1) in netmountroot()
236 if (bp_whoami(netdev_sock)) in netmountroot()
242 if (bp_getfile(netdev_sock, "root", &rootip, rootpath)) in netmountroot()
248 bootp(netdev_sock); in netmountroot()
258 if (nfs_mount(netdev_sock, rootip, rootpath)) in netmountroot()
/netbsd/src/sys/arch/hpcmips/stand/lcboot/
Ddev_net.c43 static int netdev_sock = -1; variable
65 f->f_devdata = &netdev_sock; in net_open()
66 netdev_sock = netif_open(NULL); in net_open()
70 s = socktodesc(netdev_sock); in net_open()
71 bootp(netdev_sock); in net_open()
75 s = socktodesc(netdev_sock); in net_open()
84 netif_close(netdev_sock); in net_open()
/netbsd/src/sys/arch/evbarm/stand/boot2440/
Ddev_net.c47 static int netdev_sock = -1; variable
65 if ((netdev_sock = netif_open(path)) < 0) { in net_open()
71 bootp(netdev_sock); in net_open()
115 && (nfs_mount(netdev_sock, rootip, rootpath) != 0)) { in net_open()
120 f->f_devdata = &netdev_sock; in net_open()
/netbsd/src/sys/arch/next68k/stand/boot/
Den.c437 if ((netdev_sock = netif_open(NULL)) < 0)
439 if ((error = mountroot(netdev_sock)) != 0) {
441 netif_close(netdev_sock);
455 netif_close(netdev_sock);