Lines Matching refs:handlep
217 struct pcap_usb_linux *handlep = handle->priv;
222 handlep->mmapbuflen = len;
223 handlep->mmapbuf = mmap(0, handlep->mmapbuflen, PROT_READ,
225 return handlep->mmapbuf != MAP_FAILED;
343 struct pcap_usb_linux *handlep = handle->priv;
359 if (sscanf(handle->opt.source, USB_IFACE"%d", &handlep->bus_index) != 1)
367 snprintf(full_path, USB_LINE_LEN, LINUX_USB_MON_DEV"%d", handlep->bus_index);
385 probe_devices(handlep->bus_index);
398 probe_devices(handlep->bus_index);
402 snprintf(full_path, USB_LINE_LEN, USB_TEXT_DIR"/%dt", handlep->bus_index);
412 snprintf(full_path, USB_LINE_LEN, USB_TEXT_DIR_OLD"/%dt", handlep->bus_index);
471 struct pcap_usb_linux *handlep = handle->priv;
516 uhdr->bus_id = handlep->bus_index;
655 handlep->packets_read++;
673 struct pcap_usb_linux *handlep = handle->priv;
680 snprintf(string, USB_LINE_LEN, USB_TEXT_DIR"/%ds", handlep->bus_index);
690 snprintf(string, USB_LINE_LEN, USB_TEXT_DIR_OLD"/%ds", handlep->bus_index);
741 stats->ps_recv = handlep->packets_read;
757 struct pcap_usb_linux *handlep = handle->priv;
768 stats->ps_recv = handlep->packets_read + st.queued;
781 struct pcap_usb_linux *handlep = handle->priv;
824 handlep->packets_read++;
840 struct pcap_usb_linux *handlep = handle->priv;
886 hdr = (pcap_usb_header*) &handlep->mmapbuf[vec[i]];
905 handlep->packets_read++;
924 struct pcap_usb_linux *handlep = handle->priv;
927 if (handlep->mmapbuf != NULL) {
928 munmap(handlep->mmapbuf, handlep->mmapbuflen);
929 handlep->mmapbuf = NULL;