Home
last modified time | relevance | path

Searched refs:sk (Results 1 – 4 of 4) sorted by relevance

/sound/usb/usx2y/
Dusb_stream.c14 static unsigned usb_stream_next_packet_size(struct usb_stream_kernel *sk) in usb_stream_next_packet_size() argument
16 struct usb_stream *s = sk->s; in usb_stream_next_packet_size()
17 sk->out_phase_peeked = (sk->out_phase & 0xffff) + sk->freqn; in usb_stream_next_packet_size()
18 return (sk->out_phase_peeked >> 16) * s->cfg.frame_size; in usb_stream_next_packet_size()
21 static void playback_prep_freqn(struct usb_stream_kernel *sk, struct urb *urb) in playback_prep_freqn() argument
23 struct usb_stream *s = sk->s; in playback_prep_freqn()
26 for (pack = 0; pack < sk->n_o_ps; pack++) { in playback_prep_freqn()
27 int l = usb_stream_next_packet_size(sk); in playback_prep_freqn()
31 sk->out_phase = sk->out_phase_peeked; in playback_prep_freqn()
46 static int init_pipe_urbs(struct usb_stream_kernel *sk, unsigned use_packsize, in init_pipe_urbs() argument
[all …]
Dus122l.c111 s = us122l->sk.s; in usb_stream_hwdep_vm_fault()
123 vaddr = us122l->sk.write_page + offset; in usb_stream_hwdep_vm_fault()
207 s = us122l->sk.s; in usb_stream_hwdep_mmap()
241 poll_wait(file, &us122l->sk.sleep, wait); in usb_stream_hwdep_poll()
245 struct usb_stream *s = us122l->sk.s; in usb_stream_hwdep_poll()
268 usb_stream_stop(&us122l->sk); in us122l_stop()
269 usb_stream_free(&us122l->sk); in us122l_stop()
316 if (!usb_stream_new(&us122l->sk, us122l->dev, 1, 2, in us122l_start()
326 err = usb_stream_start(&us122l->sk); in us122l_start()
385 s = us122l->sk.s; in usb_stream_hwdep_ioctl()
[all …]
Dus122l.h10 struct usb_stream_kernel sk; member
Dusb_stream.h34 struct usb_stream *usb_stream_new(struct usb_stream_kernel *sk,