flexcop-usb.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | flexcop-usb.c (f835f3ea6b1bcb51bc07f9074b71234a7a00d6e0) |
---|---|
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" --- 434 unchanged lines hidden (view full) --- 443 return -ENOMEM; 444 445 memset(fc_usb->iso_buffer, 0, bufsize); 446 fc_usb->buffer_size = bufsize; 447 448 /* creating iso urbs */ 449 for (i = 0; i < B2C2_USB_NUM_ISO_URB; i++) { 450 fc_usb->iso_urb[i] = usb_alloc_urb(B2C2_USB_FRAMES_PER_ISO, | 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" --- 434 unchanged lines hidden (view full) --- 443 return -ENOMEM; 444 445 memset(fc_usb->iso_buffer, 0, bufsize); 446 fc_usb->buffer_size = bufsize; 447 448 /* creating iso urbs */ 449 for (i = 0; i < B2C2_USB_NUM_ISO_URB; i++) { 450 fc_usb->iso_urb[i] = usb_alloc_urb(B2C2_USB_FRAMES_PER_ISO, |
451 GFP_ATOMIC); | 451 GFP_KERNEL); |
452 if (fc_usb->iso_urb[i] == NULL) { 453 ret = -ENOMEM; 454 goto urb_error; 455 } 456 } 457 458 /* initialising and submitting iso urbs */ 459 for (i = 0; i < B2C2_USB_NUM_ISO_URB; i++) { --- 16 unchanged lines hidden (view full) --- 476 for (j = 0; j < B2C2_USB_FRAMES_PER_ISO; j++) { 477 deb_ts("urb no: %d, frame: %d, frame_offset: %d\n", 478 i, j, frame_offset); 479 urb->iso_frame_desc[j].offset = frame_offset; 480 urb->iso_frame_desc[j].length = frame_size; 481 frame_offset += frame_size; 482 } 483 | 452 if (fc_usb->iso_urb[i] == NULL) { 453 ret = -ENOMEM; 454 goto urb_error; 455 } 456 } 457 458 /* initialising and submitting iso urbs */ 459 for (i = 0; i < B2C2_USB_NUM_ISO_URB; i++) { --- 16 unchanged lines hidden (view full) --- 476 for (j = 0; j < B2C2_USB_FRAMES_PER_ISO; j++) { 477 deb_ts("urb no: %d, frame: %d, frame_offset: %d\n", 478 i, j, frame_offset); 479 urb->iso_frame_desc[j].offset = frame_offset; 480 urb->iso_frame_desc[j].length = frame_size; 481 frame_offset += frame_size; 482 } 483 |
484 if ((ret = usb_submit_urb(fc_usb->iso_urb[i],GFP_ATOMIC))) { | 484 if ((ret = usb_submit_urb(fc_usb->iso_urb[i],GFP_KERNEL))) { |
485 err("submitting urb %d failed with %d.", i, ret); 486 goto urb_error; 487 } 488 deb_ts("submitted urb no. %d.\n", i); 489 } 490 491 /* SRAM */ 492 flexcop_sram_set_dest(fc_usb->fc_dev, FC_SRAM_DEST_MEDIA | --- 141 unchanged lines hidden --- | 485 err("submitting urb %d failed with %d.", i, ret); 486 goto urb_error; 487 } 488 deb_ts("submitted urb no. %d.\n", i); 489 } 490 491 /* SRAM */ 492 flexcop_sram_set_dest(fc_usb->fc_dev, FC_SRAM_DEST_MEDIA | --- 141 unchanged lines hidden --- |