Lines Matching refs:iphone
112 static int ipheth_alloc_urbs(struct ipheth_device *iphone)
127 tx_buf = usb_alloc_coherent(iphone->udev, IPHETH_TX_BUF_SIZE,
132 rx_buf = usb_alloc_coherent(iphone->udev, iphone->rx_buf_len,
138 iphone->tx_urb = tx_urb;
139 iphone->rx_urb = rx_urb;
140 iphone->tx_buf = tx_buf;
141 iphone->rx_buf = rx_buf;
145 usb_free_coherent(iphone->udev, IPHETH_TX_BUF_SIZE, tx_buf,
155 static void ipheth_free_urbs(struct ipheth_device *iphone)
157 usb_free_coherent(iphone->udev, iphone->rx_buf_len, iphone->rx_buf,
158 iphone->rx_urb->transfer_dma);
159 usb_free_coherent(iphone->udev, IPHETH_TX_BUF_SIZE, iphone->tx_buf,
160 iphone->tx_urb->transfer_dma);
161 usb_free_urb(iphone->rx_urb);
162 usb_free_urb(iphone->tx_urb);