Home
last modified time | relevance | path

Searched refs:tpriv (Results 1 – 3 of 3) sorted by relevance

/external/libusb/libusb/os/
Dlinux_usbfs.c1321 static void free_iso_urbs(struct linux_transfer_priv *tpriv) in free_iso_urbs() argument
1324 for (i = 0; i < tpriv->num_urbs; i++) { in free_iso_urbs()
1325 struct usbfs_urb *urb = tpriv->iso_urbs[i]; in free_iso_urbs()
1331 free(tpriv->iso_urbs); in free_iso_urbs()
1332 tpriv->iso_urbs = NULL; in free_iso_urbs()
1340 struct linux_transfer_priv *tpriv = usbi_transfer_get_os_priv(itransfer); in submit_bulk_transfer() local
1350 if (tpriv->urbs) in submit_bulk_transfer()
1373 tpriv->urbs = urbs; in submit_bulk_transfer()
1374 tpriv->num_urbs = num_urbs; in submit_bulk_transfer()
1375 tpriv->num_retired = 0; in submit_bulk_transfer()
[all …]
Ddarwin_usb.c1128 struct darwin_transfer_priv *tpriv = usbi_transfer_get_os_priv(itransfer); in submit_iso_transfer() local
1144tpriv->isoc_framelist = (IOUSBIsocFrame*) calloc (transfer->num_iso_packets, sizeof(IOUSBIsocFrame… in submit_iso_transfer()
1145 if (!tpriv->isoc_framelist) in submit_iso_transfer()
1150 tpriv->isoc_framelist[i].frReqCount = transfer->iso_packet_desc[i].length; in submit_iso_transfer()
1165 free(tpriv->isoc_framelist); in submit_iso_transfer()
1166 tpriv->isoc_framelist = NULL; in submit_iso_transfer()
1177 transfer->num_iso_packets, tpriv->isoc_framelist, darwin_async_io_callback, in submit_iso_transfer()
1181 transfer->num_iso_packets, tpriv->isoc_framelist, darwin_async_io_callback, in submit_iso_transfer()
1187 free (tpriv->isoc_framelist); in submit_iso_transfer()
1188 tpriv->isoc_framelist = NULL; in submit_iso_transfer()
[all …]
/external/libusb/
DChangeLog567 This ensures that tpriv->urbs and tpriv->iso_urbs are always set to NULL
841 We cannot dereference tpriv after calling