Home
last modified time | relevance | path

Searched refs:packets (Results 1 – 12 of 12) sorted by relevance

/sound/firewire/
Dpackets-buffer.c30 b->packets = kmalloc(count * sizeof(*b->packets), GFP_KERNEL); in iso_packets_buffer_init()
31 if (!b->packets) { in iso_packets_buffer_init()
53 b->packets[i].buffer = p + offset_in_page; in iso_packets_buffer_init()
54 b->packets[i].offset = page_index * PAGE_SIZE + offset_in_page; in iso_packets_buffer_init()
60 kfree(b->packets); in iso_packets_buffer_init()
75 kfree(b->packets); in iso_packets_buffer_destroy()
Damdtp.c559 s->buffer.packets[s->packet_index].offset); in queue_packet()
599 buffer = s->buffer.packets[s->packet_index].buffer; in handle_out_packet()
738 unsigned int i, syt, packets = header_length / 4; in out_stream_callback() local
745 cycle += QUEUE_LENGTH - packets; in out_stream_callback()
747 for (i = 0; i < packets; ++i) { in out_stream_callback()
759 unsigned int p, syt, packets, payload_quadlets; in in_stream_callback() local
763 packets = header_length / IN_PACKET_HEADER_SIZE; in in_stream_callback()
765 for (p = 0; p < packets; p++) { in in_stream_callback()
769 buffer = s->buffer.packets[s->packet_index].buffer; in in_stream_callback()
Dpackets-buffer.h17 } *packets; member
DMakefile1 snd-firewire-lib-objs := lib.o iso-resources.o packets-buffer.o \
Disight.c182 payload = isight->buffer.packets[index].buffer; in isight_packet()
204 isight->buffer.packets[index].offset); in isight_packet()
387 isight->buffer.packets[i].offset); in isight_start_streaming()
/sound/usb/6fire/
Dpcm.c168 packet = &rt->in_urbs[i].packets[k]; in usb6fire_pcm_stream_start()
214 if (urb->packets[i].actual_length > 4) in usb6fire_pcm_capture()
215 frame_count = (urb->packets[i].actual_length - 4) in usb6fire_pcm_capture()
227 total_length += urb->packets[i].length; in usb6fire_pcm_capture()
270 if (urb->packets[i].length > 4) in usb6fire_pcm_playback()
271 frame_count = (urb->packets[i].length - 4) in usb6fire_pcm_playback()
307 if (in_urb->packets[i].status) { in usb6fire_pcm_in_urb_handler()
334 out_urb->packets[i].offset = total_length; in usb6fire_pcm_in_urb_handler()
335 out_urb->packets[i].length = (in_urb->packets[i].actual_length in usb6fire_pcm_in_urb_handler()
338 out_urb->packets[i].status = 0; in usb6fire_pcm_in_urb_handler()
[all …]
Dpcm.h33 struct usb_iso_packet_descriptor packets[PCM_N_PACKETS_PER_URB]; member
/sound/usb/
Dendpoint.c205 for (i = 0; i < ctx->packets; ++i) { in prepare_outbound_urb()
218 urb->number_of_packets = ctx->packets; in prepare_outbound_urb()
267 for (i = 0; i < urb_ctx->packets; i++) { in prepare_inbound_urb()
274 urb->number_of_packets = urb_ctx->packets; in prepare_inbound_urb()
328 for (i = 0; i < packet->packets; i++) in queue_pending_output_urbs()
705 u->packets = urb_packs; in data_ep_set_params()
706 u->buffer_size = maxsize * u->packets; in data_ep_set_params()
709 u->packets++; /* for transfer delimiter */ in data_ep_set_params()
710 u->urb = usb_alloc_urb(u->packets, GFP_KERNEL); in data_ep_set_params()
750 u->packets = 1; in sync_ep_set_params()
[all …]
Dcard.h45 int packets; /* number of packets per urb */ member
71 int packets; member
Dpcm.c1378 for (i = 0; i < ctx->packets; i++) { in prepare_playback_urb()
1405 if (i < ctx->packets) { in prepare_playback_urb()
/sound/usb/usx2y/
Dusb_stream.c158 int packets, max_packsize; in usb_stream_new() local
177 packets = period_frames * usb_frames / sample_rate + 1; in usb_stream_new()
180 packets = (packets + 7) & ~7; in usb_stream_new()
182 read_size += packets * USB_STREAM_URBDEPTH * in usb_stream_new()
186 write_size = max_packsize * packets * USB_STREAM_URBDEPTH; in usb_stream_new()
206 sk->n_o_ps = packets; in usb_stream_new()
207 sk->s->inpackets = packets * USB_STREAM_URBDEPTH; in usb_stream_new()
/sound/usb/misc/
Dua101.c1064 unsigned int remaining_packets, packets, packets_per_page, i; in alloc_stream_buffers() local
1082 packets = min(remaining_packets, packets_per_page); in alloc_stream_buffers()
1083 size = packets * stream->max_packet_bytes; in alloc_stream_buffers()
1090 remaining_packets -= packets; in alloc_stream_buffers()