Lines Matching defs:puf
175 struct usb_filt *puf;
177 puf = malloc(sizeof(struct usb_filt));
178 if (puf == NULL)
181 puf->unit = usb_filt_unit;
182 puf->endpoint = usb_filt_ep;
184 STAILQ_INSERT_TAIL(&usb_filt_head, puf, entry);
190 struct usb_filt *puf;
196 STAILQ_FOREACH(puf, &usb_filt_head, entry)
216 STAILQ_FOREACH(puf, &usb_filt_head, entry) {
220 if (puf->unit != -1) {
221 if (puf->endpoint != -1) {
226 BPF_JMP | BPF_JEQ | BPF_K, (uint8_t)puf->unit, 0, 3);
232 BPF_JMP | BPF_JEQ | BPF_K, htobe32(puf->endpoint), 0, 1);
239 BPF_JMP | BPF_JEQ | BPF_K, (uint8_t)puf->unit, 0, 1);
243 if (puf->endpoint != -1) {
248 BPF_JMP | BPF_JEQ | BPF_K, htobe32(puf->endpoint), 0, 1);
268 struct usb_filt *puf;
273 STAILQ_FOREACH(puf, &usb_filt_head, entry) {
274 if ((puf->unit == -1 || puf->unit == unit) &&
275 (puf->endpoint == -1 || puf->endpoint == endpoint))
284 struct usb_filt *puf;
286 while ((puf = STAILQ_FIRST(&usb_filt_head)) != NULL) {
288 free(puf);