Lines Matching defs:drv
64 struct netif_driver *drv;
72 drv = netif_drivers[d];
73 for (i = 0; i < drv->netif_nifs; i++)
74 drv->netif_ifs[i].dif_used = 0;
83 struct netif_driver *drv = nif->nif_driver;
87 printf("%s%d: netif_match (%d)\n", drv->netif_bname,
90 return drv->netif_match(nif, machdep_hint);
98 struct netif_driver *drv;
109 drv = cur_if.nif_driver;
111 for (u = 0; u < drv->netif_nifs; u++) {
117 printf("\t%s%d:", drv->netif_bname,
121 for (s = 0; s < drv->netif_ifs[u].dif_nsel; s++) {
124 if (drv->netif_ifs[u].dif_used & (1 << s)) {
169 struct netif_driver *drv = nif->nif_driver;
173 printf("%s%d: netif_probe\n", drv->netif_bname, nif->nif_unit);
175 return drv->netif_probe(nif, machdep_hint);
184 struct netif_driver *drv = nif->nif_driver;
188 printf("%s%d: netif_attach\n", drv->netif_bname, nif->nif_unit);
192 if (drv->netif_init == NULL)
193 panic("%s%d: no netif_init support\n", drv->netif_bname,
196 drv->netif_init(desc, machdep_hint);
197 bzero(drv->netif_ifs[nif->nif_unit].dif_stats,
205 struct netif_driver *drv = nif->nif_driver;
209 printf("%s%d: netif_detach\n", drv->netif_bname, nif->nif_unit);
212 if (drv->netif_end == NULL)
213 panic("%s%d: no netif_end support\n", drv->netif_bname,
216 drv->netif_end(nif);
229 struct netif_driver *drv = desc->io_netif->nif_driver;
234 printf("%s%d: netif_get\n", drv->netif_bname, nif->nif_unit);
237 if (drv->netif_get == NULL)
238 panic("%s%d: no netif_get support\n", drv->netif_bname,
241 rv = drv->netif_get(desc, pkt, len, timo);
244 printf("%s%d: netif_get returning %d\n", drv->netif_bname,
259 struct netif_driver *drv = desc->io_netif->nif_driver;
264 printf("%s%d: netif_put\n", drv->netif_bname, nif->nif_unit);
267 if (drv->netif_put == NULL)
268 panic("%s%d: no netif_put support\n", drv->netif_bname,
271 rv = drv->netif_put(desc, pkt, len);
274 printf("%s%d: netif_put returning %d\n", drv->netif_bname,