Lines Matching defs:nio

107 	struct bug_netio nio;
109 nio.nc_clun = 0;
110 nio.nc_dlun = 0;
111 nio.nc_status = 0;
112 nio.nc_command = BUG_NETIO_CMD_GET_MAC;
113 nio.nc_buffer = desc->myea;
114 nio.nc_length = 6;
115 nio.nc_csr = 0;
117 if (bugsys_netio(&nio) != 0 || nio.nc_status != 0)
119 nio.nc_status);
121 nio.nc_clun = 0;
122 nio.nc_dlun = 0;
123 nio.nc_status = 0;
124 nio.nc_command = BUG_NETIO_CMD_FLUSH;
125 nio.nc_buffer = NULL;
126 nio.nc_length = 0;
127 nio.nc_csr = 0;
129 if (bugsys_netio(&nio) != 0 || nio.nc_status != 0)
131 nio.nc_status);
144 struct bug_netio nio;
146 nio.nc_clun = 0;
147 nio.nc_dlun = 0;
148 nio.nc_status = 0;
149 nio.nc_command = BUG_NETIO_CMD_RECEIVE;
150 nio.nc_buffer = sc->sc_rxbuf;
151 nio.nc_length = ETHER_MAX_LEN;
152 nio.nc_csr = 0;
154 if (bugsys_netio(&nio) != 0 || nio.nc_status != 0) {
156 nio.nc_status);
160 if (nio.nc_length) {
161 memcpy(pkt, sc->sc_rxbuf, MIN(len, nio.nc_length));
162 return (MIN(len, nio.nc_length));
173 struct bug_netio nio;
177 nio.nc_clun = 0;
178 nio.nc_dlun = 0;
179 nio.nc_status = 0;
180 nio.nc_command = BUG_NETIO_CMD_TRANSMIT;
181 nio.nc_buffer = sc->sc_txbuf;
182 nio.nc_length = MAX(len, ETHER_MIN_LEN);
183 nio.nc_csr = 0;
185 if (bugsys_netio(&nio) != 0 || nio.nc_status != 0) {
187 nio.nc_status);
197 struct bug_netio nio;
199 nio.nc_clun = 0;
200 nio.nc_dlun = 0;
201 nio.nc_status = 0;
202 nio.nc_command = BUG_NETIO_CMD_FLUSH;
203 nio.nc_buffer = NULL;
204 nio.nc_length = 0;
205 nio.nc_csr = 0;
207 if (bugsys_netio(&nio) != 0 || nio.nc_status != 0)
208 printf("bug_end: netio failed (code: 0x%x)\n", nio.nc_status);