Lines Matching refs:iphone
104 static int ipheth_alloc_urbs(struct ipheth_device *iphone)
119 tx_buf = usb_alloc_coherent(iphone->udev, IPHETH_BUF_SIZE,
124 rx_buf = usb_alloc_coherent(iphone->udev, IPHETH_BUF_SIZE + IPHETH_IP_ALIGN,
130 iphone->tx_urb = tx_urb;
131 iphone->rx_urb = rx_urb;
132 iphone->tx_buf = tx_buf;
133 iphone->rx_buf = rx_buf;
137 usb_free_coherent(iphone->udev, IPHETH_BUF_SIZE, tx_buf,
147 static void ipheth_free_urbs(struct ipheth_device *iphone)
149 usb_free_coherent(iphone->udev, IPHETH_BUF_SIZE + IPHETH_IP_ALIGN, iphone->rx_buf,
150 iphone->rx_urb->transfer_dma);
151 usb_free_coherent(iphone->udev, IPHETH_BUF_SIZE, iphone->tx_buf,
152 iphone->tx_urb->transfer_dma);
153 usb_free_urb(iphone->rx_urb);
154 usb_free_urb(iphone->tx_urb);