Lines Matching refs:device

39 ASIXDevice::ASIXDevice(usb_device device, DeviceInfo& deviceInfo)
41 fDevice(device),
172 TRACE_ALWAYS("Error of receiving %d bytes from removed device.\n",
229 // the device pushes packets 16bit aligned
256 TRACE_ALWAYS("Error of writing %d bytes to removed device.\n",
394 // this might be the same device that was replugged - read the MAC
397 TRACE_ALWAYS("Cannot replace device with MAC address:"
412 ASIXDevice::CompareAndReattach(usb_device device)
415 = gUSBModule->get_device_descriptor(device);
418 TRACE_ALWAYS("Error of getting USB device descriptor.\n");
424 // this certainly isn't the same device
428 // this is the same device that was replugged - clear the removed state,
429 // re-setup the endpoints and transfers and open the device if it was
431 fDevice = device;
439 // we need to setup hardware on device replug
461 TRACE_ALWAYS("Error of getting USB device configuration.\n");
466 TRACE_ALWAYS("Error:no interfaces found in USB device configuration\n");
473 "USB device configuration\n");
711 ASIXDevice *device = (ASIXDevice *)cookie;
712 device->fActualLengthRead = actualLength;
713 device->fStatusRead = status;
714 release_sem_etc(device->fNotifyReadSem, 1, B_DO_NOT_RESCHEDULE);
723 ASIXDevice *device = (ASIXDevice *)cookie;
724 device->fActualLengthWrite = actualLength;
725 device->fStatusWrite = status;
726 release_sem_etc(device->fNotifyWriteSem, 1, B_DO_NOT_RESCHEDULE);
734 ASIXDevice *device = (ASIXDevice *)cookie;
735 atomic_add(&device->fInsideNotify, 1);
736 if (status == B_CANCELED || device->fRemoved) {
737 atomic_add(&device->fInsideNotify, -1);
743 status_t result = gUSBModule->clear_feature(device->fNotifyEndpoint,
751 device->OnNotify(actualLength);
754 gUSBModule->queue_interrupt(device->fNotifyEndpoint, device->fNotifyBuffer,
755 device->fNotifyBufferLength, _NotifyCallback, device);
756 atomic_add(&device->fInsideNotify, -1);