Lines Matching refs:handlep
386 struct pcap_usb_linux *handlep = handle->priv; in usb_mmap() local
391 handlep->mmapbuflen = len; in usb_mmap()
392 handlep->mmapbuf = mmap(0, handlep->mmapbuflen, PROT_READ, in usb_mmap()
394 return handlep->mmapbuf != MAP_FAILED; in usb_mmap()
515 struct pcap_usb_linux *handlep = handle->priv; in usb_activate() local
542 if (sscanf(handle->opt.device, USB_IFACE"%d", &handlep->bus_index) != 1) in usb_activate()
555 pcap_snprintf(full_path, USB_LINE_LEN, LINUX_USB_MON_DEV"%d", handlep->bus_index); in usb_activate()
612 probe_devices(handlep->bus_index); in usb_activate()
627 probe_devices(handlep->bus_index); in usb_activate()
635 pcap_snprintf(full_path, USB_LINE_LEN, USB_TEXT_DIR"/%dt", handlep->bus_index); in usb_activate()
645 pcap_snprintf(full_path, USB_LINE_LEN, USB_TEXT_DIR_OLD"/%dt", handlep->bus_index); in usb_activate()
733 struct pcap_usb_linux *handlep = handle->priv; in usb_read_linux() local
778 uhdr->bus_id = handlep->bus_index; in usb_read_linux()
916 handlep->packets_read++; in usb_read_linux()
934 struct pcap_usb_linux *handlep = handle->priv; in usb_stats_linux() local
941 pcap_snprintf(string, USB_LINE_LEN, USB_TEXT_DIR"/%ds", handlep->bus_index); in usb_stats_linux()
951 pcap_snprintf(string, USB_LINE_LEN, USB_TEXT_DIR_OLD"/%ds", handlep->bus_index); in usb_stats_linux()
1002 stats->ps_recv = handlep->packets_read; in usb_stats_linux()
1018 struct pcap_usb_linux *handlep = handle->priv; in usb_stats_linux_bin() local
1029 stats->ps_recv = handlep->packets_read + st.queued; in usb_stats_linux_bin()
1042 struct pcap_usb_linux *handlep = handle->priv; in usb_read_linux_bin() local
1085 handlep->packets_read++; in usb_read_linux_bin()
1101 struct pcap_usb_linux *handlep = handle->priv; in usb_read_linux_mmap() local
1148 hdr = (pcap_usb_header*) &handlep->mmapbuf[vec[i]]; in usb_read_linux_mmap()
1167 handlep->packets_read++; in usb_read_linux_mmap()
1190 struct pcap_usb_linux *handlep = handle->priv; in usb_cleanup_linux_mmap() local
1193 if (handlep->mmapbuf != NULL) { in usb_cleanup_linux_mmap()
1194 munmap(handlep->mmapbuf, handlep->mmapbuflen); in usb_cleanup_linux_mmap()
1195 handlep->mmapbuf = NULL; in usb_cleanup_linux_mmap()