Lines Matching refs:psIntfAdapter

3 INT InterfaceRDM(PS_INTERFACE_ADAPTER psIntfAdapter,
11 if (psIntfAdapter == NULL) {
12 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_PRINTK, 0, 0, "Interface Adapter is NULL");
16 if (psIntfAdapter->psAdapter->device_removed == TRUE) {
17 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_PRINTK, 0, 0, "Device got removed");
21 if ((psIntfAdapter->psAdapter->StopAllXaction == TRUE) && (psIntfAdapter->psAdapter->chip_id >= T3LPB)) {
22 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, RDM, DBG_LVL_ALL, "Currently Xaction is not allowed on the bus");
26 if (psIntfAdapter->bSuspended == TRUE || psIntfAdapter->bPreparingForBusSuspend == TRUE) {
27 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, RDM, DBG_LVL_ALL, "Bus is in suspended states hence RDM not allowed..");
30 psIntfAdapter->psAdapter->DeviceAccess = TRUE;
33 bytes = usb_control_msg(psIntfAdapter->udev,
34 usb_rcvctrlpipe(psIntfAdapter->udev, 0),
45 psIntfAdapter->psAdapter->device_removed = TRUE;
52 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, RDM, DBG_LVL_ALL, "RDM failed status :%d, retires :%d", bytes, usRetries);
54 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, RDM, DBG_LVL_ALL, "RDM sent %d", bytes);
56 psIntfAdapter->psAdapter->DeviceAccess = FALSE;
60 INT InterfaceWRM(PS_INTERFACE_ADAPTER psIntfAdapter,
68 if (psIntfAdapter == NULL) {
69 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_PRINTK, 0, 0, "Interface Adapter is NULL");
73 if (psIntfAdapter->psAdapter->device_removed == TRUE) {
74 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_PRINTK, 0, 0, "Device got removed");
78 if ((psIntfAdapter->psAdapter->StopAllXaction == TRUE) && (psIntfAdapter->psAdapter->chip_id >= T3LPB)) {
79 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, WRM, DBG_LVL_ALL, "Currently Xaction is not allowed on the bus...");
83 if (psIntfAdapter->bSuspended == TRUE || psIntfAdapter->bPreparingForBusSuspend == TRUE) {
84 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, WRM, DBG_LVL_ALL, "Bus is in suspended states hence RDM not allowed..");
88 psIntfAdapter->psAdapter->DeviceAccess = TRUE;
91 retval = usb_control_msg(psIntfAdapter->udev,
92 usb_sndctrlpipe(psIntfAdapter->udev, 0),
103 psIntfAdapter->psAdapter->device_removed = TRUE;
110 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, WRM, DBG_LVL_ALL, "WRM failed status :%d, retires :%d", retval, usRetries);
111 psIntfAdapter->psAdapter->DeviceAccess = FALSE;
114 psIntfAdapter->psAdapter->DeviceAccess = FALSE;
115 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, WRM, DBG_LVL_ALL, "WRM sent %d", retval);
138 PS_INTERFACE_ADAPTER psIntfAdapter = (PS_INTERFACE_ADAPTER)(Adapter->pvInterfaceAdapter);
157 Bcm_kill_all_URBs(psIntfAdapter);
160 status = usb_clear_halt(psIntfAdapter->udev, psIntfAdapter->sIntrIn.int_in_pipe);
164 status = usb_clear_halt(psIntfAdapter->udev, psIntfAdapter->sBulkIn.bulk_in_pipe);
168 status = usb_clear_halt(psIntfAdapter->udev, psIntfAdapter->sBulkOut.bulk_out_pipe);
175 VOID Bcm_kill_all_URBs(PS_INTERFACE_ADAPTER psIntfAdapter)
196 if (psIntfAdapter->psInterruptUrb != NULL) {
197 if (psIntfAdapter->psInterruptUrb->status == -EINPROGRESS)
198 usb_kill_urb(psIntfAdapter->psInterruptUrb);
203 tempUrb = psIntfAdapter->asUsbTcb[i].urb;
211 tempUrb = psIntfAdapter->asUsbRcb[i].urb;
218 atomic_set(&psIntfAdapter->uNumTcbUsed, 0);
219 atomic_set(&psIntfAdapter->uCurrTcb, 0);
221 atomic_set(&psIntfAdapter->uNumRcbUsed, 0);
222 atomic_set(&psIntfAdapter->uCurrRcb, 0);
227 PS_INTERFACE_ADAPTER psIntfAdapter = NULL;
229 psIntfAdapter = container_of(work, S_INTERFACE_ADAPTER, usbSuspendWork);
230 intf = psIntfAdapter->interface;
232 if (psIntfAdapter->bSuspended == FALSE)