Home
last modified time | relevance | path

Searched refs:alt_max_pkt_size (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/drivers/media/usb/stk1160/
Dstk1160-core.c162 kfree(dev->alt_max_pkt_size); in stk1160_release()
269 unsigned int *alt_max_pkt_size; /* array of wMaxPacketSize */ in stk1160_probe() local
283 alt_max_pkt_size = kmalloc_array(interface->num_altsetting, in stk1160_probe()
284 sizeof(alt_max_pkt_size[0]), in stk1160_probe()
286 if (alt_max_pkt_size == NULL) in stk1160_probe()
293 rc = stk1160_scan_usb(interface, udev, alt_max_pkt_size); in stk1160_probe()
295 kfree(alt_max_pkt_size); in stk1160_probe()
301 kfree(alt_max_pkt_size); in stk1160_probe()
305 dev->alt_max_pkt_size = alt_max_pkt_size; in stk1160_probe()
383 kfree(alt_max_pkt_size); in stk1160_probe()
Dstk1160-v4l.c175 if (dev->alt_max_pkt_size[i] >= min_pkt_size) { in stk1160_set_alternate()
182 } else if (dev->alt_max_pkt_size[i] > in stk1160_set_alternate()
183 dev->alt_max_pkt_size[dev->alt]) in stk1160_set_alternate()
193 dev->alt, dev->alt_max_pkt_size[dev->alt]); in stk1160_set_alternate()
197 new_pkt_size = dev->max_pkt_size != dev->alt_max_pkt_size[dev->alt]; in stk1160_set_alternate()
198 dev->max_pkt_size = dev->alt_max_pkt_size[dev->alt]; in stk1160_set_alternate()
Dstk1160.h129 unsigned int *alt_max_pkt_size; member
/kernel/linux/linux-5.10/drivers/media/usb/cx231xx/
Dcx231xx-cards.c1578 …dev->video_mode.alt_max_pkt_size = devm_kmalloc_array(&udev->dev, 32, dev->video_mode.num_alt, GFP… in cx231xx_init_v4l2()
1579 if (dev->video_mode.alt_max_pkt_size == NULL) in cx231xx_init_v4l2()
1589 dev->video_mode.alt_max_pkt_size[i] = (tmp & 0x07ff) * (((tmp & 0x1800) >> 11) + 1); in cx231xx_init_v4l2()
1592 dev->video_mode.alt_max_pkt_size[i]); in cx231xx_init_v4l2()
1619 …dev->vbi_mode.alt_max_pkt_size = devm_kmalloc_array(&udev->dev, 32, dev->vbi_mode.num_alt, GFP_KER… in cx231xx_init_v4l2()
1620 if (dev->vbi_mode.alt_max_pkt_size == NULL) in cx231xx_init_v4l2()
1631 dev->vbi_mode.alt_max_pkt_size[i] = in cx231xx_init_v4l2()
1635 dev->vbi_mode.alt_max_pkt_size[i]); in cx231xx_init_v4l2()
1661 …dev->sliced_cc_mode.alt_max_pkt_size = devm_kmalloc_array(&udev->dev, 32, dev->sliced_cc_mode.num_… in cx231xx_init_v4l2()
1662 if (dev->sliced_cc_mode.alt_max_pkt_size == NULL) in cx231xx_init_v4l2()
[all …]
Dcx231xx-audio.c627 adev->alt_max_pkt_size = kmalloc_array(32, adev->num_alt, GFP_KERNEL); in cx231xx_audio_init()
628 if (!adev->alt_max_pkt_size) { in cx231xx_audio_init()
643 adev->alt_max_pkt_size[i] = in cx231xx_audio_init()
647 adev->alt_max_pkt_size[i]); in cx231xx_audio_init()
653 kfree(adev->alt_max_pkt_size); in cx231xx_audio_init()
674 kfree(dev->adev.alt_max_pkt_size); in cx231xx_audio_fini()
Dcx231xx-core.c495 if (dev->video_mode.alt_max_pkt_size != NULL) in cx231xx_set_video_alternate()
497 dev->video_mode.alt_max_pkt_size[dev->video_mode.alt]; in cx231xx_set_video_alternate()
526 if (dev->ts1_mode.alt_max_pkt_size != NULL) in cx231xx_set_alt_setting()
528 dev->ts1_mode.alt_max_pkt_size[dev->ts1_mode.alt]; in cx231xx_set_alt_setting()
540 if (dev->adev.alt_max_pkt_size != NULL) in cx231xx_set_alt_setting()
542 dev->adev.alt_max_pkt_size[dev->adev.alt]; in cx231xx_set_alt_setting()
549 if (dev->video_mode.alt_max_pkt_size != NULL) in cx231xx_set_alt_setting()
551 dev->video_mode.alt_max_pkt_size[dev->video_mode. in cx231xx_set_alt_setting()
561 if (dev->vbi_mode.alt_max_pkt_size != NULL) in cx231xx_set_alt_setting()
563 dev->vbi_mode.alt_max_pkt_size[dev->vbi_mode.alt]; in cx231xx_set_alt_setting()
[all …]
Dcx231xx.h424 unsigned int *alt_max_pkt_size; /* array of wMaxPacketSize */ member
508 unsigned int *alt_max_pkt_size; /* array of wMaxPacketSize */ member
Dcx231xx-vbi.c226 dev->vbi_mode.alt_max_pkt_size[0], in vbi_start_streaming()
/kernel/linux/linux-5.10/drivers/media/usb/au0828/
Dau0828.h255 unsigned int *alt_max_pkt_size; /* array of wMaxPacketSize */ member