Lines Matching refs:s
147 struct usb_stream *s; in usb_stream_hwdep_vm_fault() local
150 s = us122l->sk.s; in usb_stream_hwdep_vm_fault()
151 if (!s) in usb_stream_hwdep_vm_fault()
155 if (offset < PAGE_ALIGN(s->read_size)) in usb_stream_hwdep_vm_fault()
156 vaddr = (char *)s + offset; in usb_stream_hwdep_vm_fault()
158 offset -= PAGE_ALIGN(s->read_size); in usb_stream_hwdep_vm_fault()
159 if (offset >= PAGE_ALIGN(s->write_size)) in usb_stream_hwdep_vm_fault()
242 struct usb_stream *s; in usb_stream_hwdep_mmap() local
248 s = us122l->sk.s; in usb_stream_hwdep_mmap()
249 read = offset < s->read_size; in usb_stream_hwdep_mmap()
255 read ? s->read_size : s->write_size); in usb_stream_hwdep_mmap()
257 if (size > PAGE_ALIGN(read ? s->read_size : s->write_size)) { in usb_stream_hwdep_mmap()
259 read ? s->read_size : s->write_size); in usb_stream_hwdep_mmap()
286 struct usb_stream *s = us122l->sk.s; in usb_stream_hwdep_poll() local
287 if (s && s->state == usb_stream_ready) { in usb_stream_hwdep_poll()
289 polled = &s->periods_polled; in usb_stream_hwdep_poll()
292 if (*polled != s->periods_done) { in usb_stream_hwdep_poll()
293 *polled = s->periods_done; in usb_stream_hwdep_poll()
384 struct usb_stream *s; in usb_stream_hwdep_ioctl() local
430 s = us122l->sk.s; in usb_stream_hwdep_ioctl()
434 if (!s || memcmp(cfg, &s->cfg, sizeof(*cfg))) { in usb_stream_hwdep_ioctl()
440 if (!s || memcmp(cfg, &s->cfg, sizeof(*cfg)) || in usb_stream_hwdep_ioctl()
441 s->state == usb_stream_xrun) { in usb_stream_hwdep_ioctl()
725 us122l->sk.s->cfg.sample_rate); in snd_us122l_resume()