• Home
  • Raw
  • Download

Lines Matching refs:dpriv

258   struct darwin_device_priv *dpriv;  in darwin_devices_detached()  local
288 dpriv = (struct darwin_device_priv *)handle->dev->os_priv; in darwin_devices_detached()
291 if (dpriv->location == location && handle->os_priv) { in darwin_devices_detached()
792 struct darwin_device_priv *dpriv = (struct darwin_device_priv *)dev_handle->dev->os_priv; in darwin_open() local
796 if (0 == dpriv->open_count) { in darwin_open()
797 kresult = darwin_get_device (dpriv->location, &darwin_device); in darwin_open()
803 dpriv->device = darwin_device; in darwin_open()
806 kresult = (*(dpriv->device))->USBDeviceOpenSeize (dpriv->device); in darwin_open()
818 (*(dpriv->device))->Release (dpriv->device); in darwin_open()
819 dpriv->device = NULL; in darwin_open()
824 kresult = (*(dpriv->device))->CreateDeviceAsyncEventSource (dpriv->device, &priv->cfSource); in darwin_open()
828 (*(dpriv->device))->USBDeviceClose (dpriv->device); in darwin_open()
829 (*(dpriv->device))->Release (dpriv->device); in darwin_open()
831 dpriv->device = NULL; in darwin_open()
845 dpriv->open_count++; in darwin_open()
862 struct darwin_device_priv *dpriv = (struct darwin_device_priv *)dev_handle->dev->os_priv; in darwin_close() local
866 if (dpriv->open_count == 0) { in darwin_close()
872 dpriv->open_count--; in darwin_close()
879 if (0 == dpriv->open_count) { in darwin_close()
888 kresult = (*(dpriv->device))->USBDeviceClose(dpriv->device); in darwin_close()
896 kresult = (*(dpriv->device))->Release(dpriv->device); in darwin_close()
903 dpriv->device = NULL; in darwin_close()
915 struct darwin_device_priv *dpriv = (struct darwin_device_priv *)dev_handle->dev->os_priv; in darwin_get_configuration() local
917 *config = (int) dpriv->active_config; in darwin_get_configuration()
923 struct darwin_device_priv *dpriv = (struct darwin_device_priv *)dev_handle->dev->os_priv; in darwin_set_configuration() local
933 kresult = (*(dpriv->device))->SetConfiguration (dpriv->device, config); in darwin_set_configuration()
942 dpriv->active_config = config; in darwin_set_configuration()
1021 struct darwin_device_priv *dpriv = (struct darwin_device_priv *)dev_handle->dev->os_priv; in darwin_claim_interface() local
1031 kresult = darwin_get_interface (dpriv->device, iface, &usbInterface); in darwin_claim_interface()
1036 if (!usbInterface && dpriv->first_config != 0) { in darwin_claim_interface()
1037 …usbi_info (HANDLE_CTX (dev_handle), "no interface found; setting configuration: %d", dpriv->first_… in darwin_claim_interface()
1040 kresult = darwin_set_configuration (dev_handle, dpriv->first_config); in darwin_claim_interface()
1046 kresult = darwin_get_interface (dpriv->device, iface, &usbInterface); in darwin_claim_interface()
1212 struct darwin_device_priv *dpriv = (struct darwin_device_priv *)dev_handle->dev->os_priv; in darwin_reset_device() local
1215 kresult = (*(dpriv->device))->ResetDevice (dpriv->device); in darwin_reset_device()
1223 struct darwin_device_priv *dpriv = (struct darwin_device_priv *)dev_handle->dev->os_priv; in darwin_kernel_driver_active() local
1228 kresult = darwin_get_interface (dpriv->device, interface, &usbInterface); in darwin_kernel_driver_active()
1400 …struct darwin_device_priv *dpriv = (struct darwin_device_priv *)transfer->dev_handle->dev->os_priv; in submit_control_transfer() local
1439 …kresult = (*(dpriv->device))->DeviceRequestAsyncTO(dpriv->device, &(tpriv->req), darwin_async_io_c… in submit_control_transfer()
1466 …struct darwin_device_priv *dpriv = (struct darwin_device_priv *)transfer->dev_handle->dev->os_priv; in cancel_control_transfer() local
1471 if (!dpriv->device) in cancel_control_transfer()
1474 kresult = (*(dpriv->device))->USBDeviceAbortPipeZero (dpriv->device); in cancel_control_transfer()
1481 …struct darwin_device_priv *dpriv = (struct darwin_device_priv *)transfer->dev_handle->dev->os_priv; in darwin_abort_transfers() local
1495 if (!dpriv->device) in darwin_abort_transfers()