continue;
/* deallocate URBs */
- if (rcb->pUrb) {
- usb_kill_urb(rcb->pUrb);
- usb_free_urb(rcb->pUrb);
+ if (rcb->urb) {
+ usb_kill_urb(rcb->urb);
+ usb_free_urb(rcb->urb);
}
/* deallocate skb */
rcb = priv->apRCB[ii];
- rcb->pDevice = priv;
+ rcb->priv = priv;
/* allocate URBs */
- rcb->pUrb = usb_alloc_urb(0, GFP_ATOMIC);
- if (rcb->pUrb == NULL) {
+ rcb->urb = usb_alloc_urb(0, GFP_ATOMIC);
+ if (rcb->urb == NULL) {
dev_err(&priv->usb->dev, "Failed to alloc rx urb\n");
goto free_rx_tx;
}
goto free_rx_tx;
}
- rcb->bBoolInUse = false;
+ rcb->in_use = false;
/* submit rx urb */
if (vnt_submit_rx_urb(priv, rcb))
int status = 0;
struct urb *urb;
- urb = rcb->pUrb;
+ urb = rcb->urb;
if (rcb->skb == NULL) {
dev_dbg(&priv->usb->dev, "rcb->skb is null\n");
return status;
return STATUS_FAILURE ;
}
- rcb->bBoolInUse = true;
+ rcb->in_use = true;
return status;
}
static void vnt_submit_rx_urb_complete(struct urb *urb)
{
struct vnt_rcb *rcb = urb->context;
- struct vnt_private *priv = rcb->pDevice;
+ struct vnt_private *priv = rcb->priv;
unsigned long flags;
switch (urb->status) {
dev_dbg(&priv->usb->dev,
"Failed to re-alloc rx skb\n");
- rcb->bBoolInUse = false;
+ rcb->in_use = false;
spin_unlock_irqrestore(&priv->lock, flags);
return;
}
if (usb_submit_urb(urb, GFP_ATOMIC)) {
dev_dbg(&priv->usb->dev, "Failed to re submit rx skb\n");
- rcb->bBoolInUse = false;
+ rcb->in_use = false;
}
return;