Lines Matching defs:wep
70 struct wsemulentry *wep;
81 LIST_FOREACH(wep, &wsemuls, next)
82 if (!strcmp(name, wep->ops->name)) {
83 wep->usecnt++;
84 return wep->ops;
97 struct wsemulentry *wep;
99 LIST_FOREACH(wep, &wsemuls, next)
100 if (ops == wep->ops) {
101 wep->usecnt--;
109 struct wsemulentry *wep;
111 wep = malloc(sizeof (struct wsemulentry), M_DEVBUF, M_WAITOK);
112 wep->ops = ops;
113 wep->usecnt = 0;
114 LIST_INSERT_HEAD(&wsemuls, wep, next);
121 struct wsemulentry *wep;
123 LIST_FOREACH(wep, &wsemuls, next) {
124 if (ops == wep->ops) {
125 if (wep->usecnt)
127 LIST_REMOVE(wep, next);