Lines Matching refs:tpriv
1873 struct darwin_transfer_priv *tpriv = usbi_get_transfer_priv(itransfer); in submit_iso_transfer() local
1885 if (tpriv->num_iso_packets != transfer->num_iso_packets) { in submit_iso_transfer()
1886 free(tpriv->isoc_framelist); in submit_iso_transfer()
1887 tpriv->isoc_framelist = NULL; in submit_iso_transfer()
1890 if (!tpriv->isoc_framelist) { in submit_iso_transfer()
1891 tpriv->num_iso_packets = transfer->num_iso_packets; in submit_iso_transfer()
1892 …tpriv->isoc_framelist = (IOUSBIsocFrame*) calloc ((size_t)transfer->num_iso_packets, sizeof(IOUSBI… in submit_iso_transfer()
1893 if (!tpriv->isoc_framelist) in submit_iso_transfer()
1901 tpriv->isoc_framelist[i].frReqCount = (UInt16)length; in submit_iso_transfer()
1919 free(tpriv->isoc_framelist); in submit_iso_transfer()
1920 tpriv->isoc_framelist = NULL; in submit_iso_transfer()
1937 … (UInt32)transfer->num_iso_packets, tpriv->isoc_framelist, darwin_async_io_callback, in submit_iso_transfer()
1941 … (UInt32)transfer->num_iso_packets, tpriv->isoc_framelist, darwin_async_io_callback, in submit_iso_transfer()
1954 free (tpriv->isoc_framelist); in submit_iso_transfer()
1955 tpriv->isoc_framelist = NULL; in submit_iso_transfer()
1965 struct darwin_transfer_priv *tpriv = usbi_get_transfer_priv(itransfer); in submit_control_transfer() local
1969 memset(&tpriv->req, 0, sizeof(tpriv->req)); in submit_control_transfer()
1972 tpriv->req.bmRequestType = setup->bmRequestType; in submit_control_transfer()
1973 tpriv->req.bRequest = setup->bRequest; in submit_control_transfer()
1975 tpriv->req.wValue = OSSwapLittleToHostInt16 (setup->wValue); in submit_control_transfer()
1976 tpriv->req.wIndex = OSSwapLittleToHostInt16 (setup->wIndex); in submit_control_transfer()
1977 tpriv->req.wLength = OSSwapLittleToHostInt16 (setup->wLength); in submit_control_transfer()
1979 tpriv->req.pData = transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE; in submit_control_transfer()
1980 tpriv->req.completionTimeout = transfer->timeout; in submit_control_transfer()
1981 tpriv->req.noDataTimeout = transfer->timeout; in submit_control_transfer()
1997 …ce->interface))->ControlRequestAsyncTO (cInterface->interface, pipeRef, &(tpriv->req), darwin_asyn… in submit_control_transfer()
2000 …kresult = (*(dpriv->device))->DeviceRequestAsyncTO(dpriv->device, &(tpriv->req), darwin_async_io_c… in submit_control_transfer()
2100 struct darwin_transfer_priv *tpriv = usbi_get_transfer_priv(itransfer); in darwin_async_io_callback() local
2114 tpriv->result = result; in darwin_async_io_callback()
2115 tpriv->size = (UInt32) (uintptr_t) arg0; in darwin_async_io_callback()
2149 struct darwin_transfer_priv *tpriv = usbi_get_transfer_priv(itransfer); in darwin_handle_transfer_completion() local
2159 if (NULL == tpriv) { in darwin_handle_transfer_completion()
2164 …transfer completion type %s with kernel status %d", transfer_types[transfer->type], tpriv->result); in darwin_handle_transfer_completion()
2166 if (kIOReturnSuccess == tpriv->result || kIOReturnUnderrun == tpriv->result) { in darwin_handle_transfer_completion()
2167 if (is_isoc && tpriv->isoc_framelist) { in darwin_handle_transfer_completion()
2172 lib_desc->status = darwin_transfer_status (itransfer, tpriv->isoc_framelist[i].frStatus); in darwin_handle_transfer_completion()
2173 lib_desc->actual_length = tpriv->isoc_framelist[i].frActCount; in darwin_handle_transfer_completion()
2176 itransfer->transferred += tpriv->size; in darwin_handle_transfer_completion()
2181 …return usbi_handle_transfer_completion (itransfer, darwin_transfer_status (itransfer, tpriv->resul… in darwin_handle_transfer_completion()