Lines Matching defs:puf
173 struct usb_filt *puf;
175 puf = malloc(sizeof(struct usb_filt));
176 if (puf == NULL)
179 puf->unit = usb_filt_unit;
180 puf->endpoint = usb_filt_ep;
182 STAILQ_INSERT_TAIL(&usb_filt_head, puf, entry);
188 struct usb_filt *puf;
194 STAILQ_FOREACH(puf, &usb_filt_head, entry)
214 STAILQ_FOREACH(puf, &usb_filt_head, entry) {
218 if (puf->unit != -1) {
219 if (puf->endpoint != -1) {
224 BPF_JMP | BPF_JEQ | BPF_K, (uint8_t)puf->unit, 0, 3);
230 BPF_JMP | BPF_JEQ | BPF_K, htobe32(puf->endpoint), 0, 1);
237 BPF_JMP | BPF_JEQ | BPF_K, (uint8_t)puf->unit, 0, 1);
241 if (puf->endpoint != -1) {
246 BPF_JMP | BPF_JEQ | BPF_K, htobe32(puf->endpoint), 0, 1);
266 struct usb_filt *puf;
271 STAILQ_FOREACH(puf, &usb_filt_head, entry) {
272 if ((puf->unit == -1 || puf->unit == unit) &&
273 (puf->endpoint == -1 || puf->endpoint == endpoint))
282 struct usb_filt *puf;
284 while ((puf = STAILQ_FIRST(&usb_filt_head)) != NULL) {
286 free(puf);