Lines Matching refs:hal_devs
177 if(hal->hal_devs[id] != NULL){
182 hal->hal_devs[id] = (struct wtap_softc *)malloc(
184 bzero(hal->hal_devs[id], sizeof(struct wtap_softc));
185 hal->hal_devs[id]->sc_md = hal->hal_md;
186 hal->hal_devs[id]->id = id;
187 snprintf(hal->hal_devs[id]->name, sizeof(hal->hal_devs[id]->name),
189 mtx_init(&hal->hal_devs[id]->sc_mtx, "wtap_softc mtx", NULL,
192 if(wtap_attach(hal->hal_devs[id], macaddr)){
205 if(hal->hal_devs[id] == NULL){
210 if(wtap_detach(hal->hal_devs[id]))
212 mtx_destroy(&hal->hal_devs[id]->sc_mtx);
213 free(hal->hal_devs[id], M_WTAP);
214 hal->hal_devs[id] = NULL;