Lines Matching full:shm

107 	struct snd_usx2y_hwdep_pcm_shm *shm = usx2y->hwdep_pcm_shm;  in usx2y_hwdep_urb_play_prepare()  local
110 if (shm->playback_iso_start < 0) { in usx2y_hwdep_urb_play_prepare()
111 shm->playback_iso_start = shm->captured_iso_head - in usx2y_hwdep_urb_play_prepare()
113 if (shm->playback_iso_start < 0) in usx2y_hwdep_urb_play_prepare()
114 shm->playback_iso_start += ARRAY_SIZE(shm->captured_iso); in usx2y_hwdep_urb_play_prepare()
115 shm->playback_iso_head = shm->playback_iso_start; in usx2y_hwdep_urb_play_prepare()
121 counts = shm->captured_iso[shm->playback_iso_head].length / usx2y->stride; in usx2y_hwdep_urb_play_prepare()
127 urb->iso_frame_desc[pack].offset = shm->captured_iso[shm->playback_iso_head].offset; in usx2y_hwdep_urb_play_prepare()
128 urb->iso_frame_desc[pack].length = shm->captured_iso[shm->playback_iso_head].length; in usx2y_hwdep_urb_play_prepare()
132 if (++shm->playback_iso_head >= ARRAY_SIZE(shm->captured_iso)) in usx2y_hwdep_urb_play_prepare()
133 shm->playback_iso_head = 0; in usx2y_hwdep_urb_play_prepare()
144 struct snd_usx2y_hwdep_pcm_shm *shm; in usx2y_usbpcm_urb_capt_iso_advance() local
150 shm = subs->usx2y->hwdep_pcm_shm; in usx2y_usbpcm_urb_capt_iso_advance()
151 head = shm->captured_iso_head + 1; in usx2y_usbpcm_urb_capt_iso_advance()
152 if (head >= ARRAY_SIZE(shm->captured_iso)) in usx2y_usbpcm_urb_capt_iso_advance()
154 shm->captured_iso[head].frame = urb->start_frame + pack; in usx2y_usbpcm_urb_capt_iso_advance()
155 shm->captured_iso[head].offset = desc->offset; in usx2y_usbpcm_urb_capt_iso_advance()
156 shm->captured_iso[head].length = desc->actual_length; in usx2y_usbpcm_urb_capt_iso_advance()
157 shm->captured_iso_head = head; in usx2y_usbpcm_urb_capt_iso_advance()
158 shm->captured_iso_frames++; in usx2y_usbpcm_urb_capt_iso_advance()