flexcop-usb.c (d725d20e81c2adc2d3c956ad8aa420b7705532a8) | flexcop-usb.c (cf580e11fb6c94bc995dddc55489c65d0499cdd9) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III 4 * flexcop-usb.c - covers the USB part 5 * see flexcop.c for copyright information 6 */ 7#define FC_LOG_PREFIX "flexcop_usb" 8#include "flexcop-usb.h" --- 405 unchanged lines hidden (view full) --- 414 int i; 415 for (i = 0; i < B2C2_USB_NUM_ISO_URB; i++) 416 if (fc_usb->iso_urb[i] != NULL) { 417 deb_ts("unlinking/killing urb no. %d\n",i); 418 usb_kill_urb(fc_usb->iso_urb[i]); 419 usb_free_urb(fc_usb->iso_urb[i]); 420 } 421 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III 4 * flexcop-usb.c - covers the USB part 5 * see flexcop.c for copyright information 6 */ 7#define FC_LOG_PREFIX "flexcop_usb" 8#include "flexcop-usb.h" --- 405 unchanged lines hidden (view full) --- 414 int i; 415 for (i = 0; i < B2C2_USB_NUM_ISO_URB; i++) 416 if (fc_usb->iso_urb[i] != NULL) { 417 deb_ts("unlinking/killing urb no. %d\n",i); 418 usb_kill_urb(fc_usb->iso_urb[i]); 419 usb_free_urb(fc_usb->iso_urb[i]); 420 } 421 |
422 if (fc_usb->iso_buffer != NULL) 423 usb_free_coherent(fc_usb->udev, 424 fc_usb->buffer_size, fc_usb->iso_buffer, 425 fc_usb->dma_addr); | 422 usb_free_coherent(fc_usb->udev, fc_usb->buffer_size, 423 fc_usb->iso_buffer, fc_usb->dma_addr); 424 |
426} 427 428static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb) 429{ 430 u16 frame_size = le16_to_cpu( 431 fc_usb->uintf->cur_altsetting->endpoint[0].desc.wMaxPacketSize); 432 int bufsize = B2C2_USB_NUM_ISO_URB * B2C2_USB_FRAMES_PER_ISO * 433 frame_size, i, j, ret; --- 196 unchanged lines hidden --- | 425} 426 427static int flexcop_usb_transfer_init(struct flexcop_usb *fc_usb) 428{ 429 u16 frame_size = le16_to_cpu( 430 fc_usb->uintf->cur_altsetting->endpoint[0].desc.wMaxPacketSize); 431 int bufsize = B2C2_USB_NUM_ISO_URB * B2C2_USB_FRAMES_PER_ISO * 432 frame_size, i, j, ret; --- 196 unchanged lines hidden --- |