• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/vt6656/

Lines Matching refs:pDevice

111      PSDevice     pDevice,
121 if (MP_TEST_FLAG(pDevice, fMP_DISCONNECTED))
125 if (MP_TEST_FLAG(pDevice, fMP_CONTROL_WRITES)) {
135 pDevice->usb,
136 usb_sndctrlpipe(pDevice->usb , 0),
156 PSDevice pDevice,
167 if (MP_TEST_FLAG(pDevice, fMP_DISCONNECTED))
170 if (MP_TEST_FLAG(pDevice, fMP_CONTROL_WRITES)) {
174 pDevice->sUsbCtlRequest.bRequestType = 0x40;
175 pDevice->sUsbCtlRequest.bRequest = byRequest;
176 pDevice->sUsbCtlRequest.wValue = cpu_to_le16p(&wValue);
177 pDevice->sUsbCtlRequest.wIndex = cpu_to_le16p(&wIndex);
178 pDevice->sUsbCtlRequest.wLength = cpu_to_le16p(&wLength);
179 pDevice->pControlURB->transfer_flags |= URB_ASYNC_UNLINK;
180 pDevice->pControlURB->actual_length = 0;
182 usb_fill_control_urb(pDevice->pControlURB, pDevice->usb,
183 usb_sndctrlpipe(pDevice->usb , 0), (char *) &pDevice->sUsbCtlRequest,
184 pbyBuffer, wLength, s_nsControlInUsbIoCompleteWrite, pDevice);
186 ntStatus = usb_submit_urb(pDevice->pControlURB, GFP_ATOMIC);
192 MP_SET_FLAG(pDevice, fMP_CONTROL_WRITES);
194 spin_unlock_irq(&pDevice->lock);
196 if (MP_TEST_FLAG(pDevice, fMP_CONTROL_WRITES))
202 spin_lock_irq(&pDevice->lock);
203 MP_CLEAR_FLAG(pDevice, fMP_CONTROL_WRITES);
207 spin_lock_irq(&pDevice->lock);
213 PSDevice pDevice,
224 if (MP_TEST_FLAG(pDevice, fMP_DISCONNECTED))
227 if (MP_TEST_FLAG(pDevice, fMP_CONTROL_READS)) {
230 pDevice->sUsbCtlRequest.bRequestType = 0xC0;
231 pDevice->sUsbCtlRequest.bRequest = byRequest;
232 pDevice->sUsbCtlRequest.wValue = cpu_to_le16p(&wValue);
233 pDevice->sUsbCtlRequest.wIndex = cpu_to_le16p(&wIndex);
234 pDevice->sUsbCtlRequest.wLength = cpu_to_le16p(&wLength);
235 pDevice->pControlURB->transfer_flags |= URB_ASYNC_UNLINK;
236 pDevice->pControlURB->actual_length = 0;
237 usb_fill_control_urb(pDevice->pControlURB, pDevice->usb,
238 usb_rcvctrlpipe(pDevice->usb , 0), (char *) &pDevice->sUsbCtlRequest,
239 pbyBuffer, wLength, s_nsControlInUsbIoCompleteRead, pDevice);
241 ntStatus = usb_submit_urb(pDevice->pControlURB, GFP_ATOMIC);
245 MP_SET_FLAG(pDevice, fMP_CONTROL_READS);
248 spin_unlock_irq(&pDevice->lock);
250 if (MP_TEST_FLAG(pDevice, fMP_CONTROL_READS))
257 spin_lock_irq(&pDevice->lock);
258 MP_CLEAR_FLAG(pDevice, fMP_CONTROL_READS);
262 spin_lock_irq(&pDevice->lock);
273 PSDevice pDevice;
275 pDevice = urb->context;
289 MP_CLEAR_FLAG(pDevice, fMP_CONTROL_WRITES);
300 * pDevice - Pointer to the adapter
314 PSDevice pDevice;
316 pDevice = urb->context;
330 MP_CLEAR_FLAG(pDevice, fMP_CONTROL_READS);
342 * pDevice - Pointer to the adapter
349 int PIPEnsInterruptRead(PSDevice pDevice)
355 if(pDevice->intBuf.bInUse == TRUE){
358 pDevice->intBuf.bInUse = TRUE;
359 // pDevice->bEventAvailable = FALSE;
360 pDevice->ulIntInPosted++;
366 pDevice->pInterruptURB->interval = pDevice->int_interval;
368 usb_fill_bulk_urb(pDevice->pInterruptURB,
369 pDevice->usb,
370 usb_rcvbulkpipe(pDevice->usb, 1),
371 (void *) pDevice->intBuf.pDataBuf,
374 pDevice);
376 ntStatus = usb_submit_urb(pDevice->pInterruptURB, GFP_ATOMIC);
392 * pDevice - Pointer to the adapter
407 PSDevice pDevice;
414 pDevice = (PSDevice)urb->context;
431 pDevice->ulBulkInError++;
432 pDevice->intBuf.bInUse = FALSE;
435 // pDevice->ulIntInContCRCError++;
440 pDevice->fKillEventPollingThread = TRUE;
444 pDevice->ulIntInBytesRead += (unsigned long) urb->actual_length;
445 pDevice->ulIntInContCRCError = 0;
446 pDevice->bEventAvailable = TRUE;
447 INTnsProcessData(pDevice);
450 STAvUpdateUSBCounter(&pDevice->scStatistic.USB_InterruptStat, ntStatus);
453 if (pDevice->fKillEventPollingThread != TRUE) {
454 usb_fill_bulk_urb(pDevice->pInterruptURB,
455 pDevice->usb,
456 usb_rcvbulkpipe(pDevice->usb, 1),
457 (void *) pDevice->intBuf.pDataBuf,
460 pDevice);
462 ntStatus = usb_submit_urb(pDevice->pInterruptURB, GFP_ATOMIC);
480 * pDevice - Pointer to the adapter
487 int PIPEnsBulkInUsbRead(PSDevice pDevice, PRCB pRCB)
495 if (MP_TEST_FLAG(pDevice, fMP_DISCONNECTED))
498 pDevice->ulBulkInPosted++;
512 pDevice->usb,
513 usb_rcvbulkpipe(pDevice->usb, 2),
539 * pDevice - Pointer to the adapter
555 PSDevice pDevice = (PSDevice)pRCB->pDevice;
566 pDevice->ulBulkInError++;
569 pDevice->scStatistic.RxFcsErrCnt ++;
572 // pDevice->ulBulkInContCRCError++;
576 // MP_SET_FLAG(pDevice, fMP_DISCONNECTED);
580 pDevice->ulBulkInContCRCError = 0;
581 pDevice->ulBulkInBytesRead += bytesRead;
583 pDevice->scStatistic.RxOkCnt ++;
587 STAvUpdateUSBCounter(&pDevice->scStatistic.USB_BulkInStat, status);
590 spin_lock(&pDevice->lock);
591 if (RXbBulkInProcessData(pDevice, pRCB, bytesRead) == TRUE)
593 spin_unlock(&pDevice->lock);
598 DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"RxvFreeNormal %d \n",pDevice->NumRecvFreeList);
599 spin_lock(&pDevice->lock);
601 spin_unlock(&pDevice->lock);
614 * pDevice - Pointer to the adapter
623 PSDevice pDevice,
632 pDevice->bPWBitOn = FALSE;
635 if (pDevice->pPendingBulkOutContext != NULL) {
636 pDevice->NumContextsQueued++;
637 EnqueueContext(pDevice->FirstTxContextQueue, pDevice->LastTxContextQueue, pContext);
646 if(MP_IS_READY(pDevice) && MP_TEST_FLAG(pDevice, fMP_POST_WRITES)) {
649 pDevice->ulBulkOutPosted++;
650 // pDevice->pPendingBulkOutContext = pContext;
653 pDevice->usb,
654 usb_sndbulkpipe(pDevice->usb, 3),
707 PSDevice pDevice;
721 pDevice = pContext->pDevice;
725 if (!netif_device_present(pDevice->dev))
734 STAvUpdateUSBCounter(&pDevice->scStatistic.USB_BulkOutStat, status);
738 pDevice->ulBulkOutBytesWrite += ulBufLen;
739 pDevice->ulBulkOutContCRCError = 0;
740 pDevice->nTxDataTimeCout = 0;
744 pDevice->ulBulkOutError++;
747 // pDevice->ulCheckForHangCount = 0;
748 // pDevice->pPendingBulkOutContext = NULL;
759 pDevice->dev->trans_start = jiffies;
763 pDevice->packetsSent++;
767 pDevice->packetsSentDropped++;
771 if (pDevice->bLinkPass == TRUE) {
772 if (netif_queue_stopped(pDevice->dev))
773 netif_wake_queue(pDevice->dev);