iprtd 46 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd = iprtd 48 sound/soc/fsl/imx-pcm-fiq.c struct snd_pcm_substream *substream = iprtd->substream; iprtd 51 sound/soc/fsl/imx-pcm-fiq.c if (!atomic_read(&iprtd->playing) && !atomic_read(&iprtd->capturing)) iprtd 57 sound/soc/fsl/imx-pcm-fiq.c iprtd->offset = regs.ARM_r8 & 0xffff; iprtd 59 sound/soc/fsl/imx-pcm-fiq.c iprtd->offset = regs.ARM_r9 & 0xffff; iprtd 63 sound/soc/fsl/imx-pcm-fiq.c hrtimer_forward_now(hrt, ns_to_ktime(iprtd->poll_time_ns)); iprtd 76 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd = runtime->private_data; iprtd 78 sound/soc/fsl/imx-pcm-fiq.c iprtd->periods = params_periods(params); iprtd 79 sound/soc/fsl/imx-pcm-fiq.c iprtd->period = params_period_bytes(params); iprtd 80 sound/soc/fsl/imx-pcm-fiq.c iprtd->offset = 0; iprtd 81 sound/soc/fsl/imx-pcm-fiq.c iprtd->poll_time_ns = 1000000000 / params_rate(params) * iprtd 91 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd = runtime->private_data; iprtd 96 sound/soc/fsl/imx-pcm-fiq.c regs.ARM_r8 = (iprtd->period * iprtd->periods - 1) << 16; iprtd 98 sound/soc/fsl/imx-pcm-fiq.c regs.ARM_r9 = (iprtd->period * iprtd->periods - 1) << 16; iprtd 110 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd = runtime->private_data; iprtd 117 sound/soc/fsl/imx-pcm-fiq.c atomic_set(&iprtd->playing, 1); iprtd 119 sound/soc/fsl/imx-pcm-fiq.c atomic_set(&iprtd->capturing, 1); iprtd 120 sound/soc/fsl/imx-pcm-fiq.c hrtimer_start(&iprtd->hrt, ns_to_ktime(iprtd->poll_time_ns), iprtd 129 sound/soc/fsl/imx-pcm-fiq.c atomic_set(&iprtd->playing, 0); iprtd 131 sound/soc/fsl/imx-pcm-fiq.c atomic_set(&iprtd->capturing, 0); iprtd 132 sound/soc/fsl/imx-pcm-fiq.c if (!atomic_read(&iprtd->playing) && iprtd 133 sound/soc/fsl/imx-pcm-fiq.c !atomic_read(&iprtd->capturing)) iprtd 147 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd = runtime->private_data; iprtd 149 sound/soc/fsl/imx-pcm-fiq.c return bytes_to_frames(substream->runtime, iprtd->offset); iprtd 171 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd; iprtd 174 sound/soc/fsl/imx-pcm-fiq.c iprtd = kzalloc(sizeof(*iprtd), GFP_KERNEL); iprtd 175 sound/soc/fsl/imx-pcm-fiq.c if (iprtd == NULL) iprtd 177 sound/soc/fsl/imx-pcm-fiq.c runtime->private_data = iprtd; iprtd 179 sound/soc/fsl/imx-pcm-fiq.c iprtd->substream = substream; iprtd 181 sound/soc/fsl/imx-pcm-fiq.c atomic_set(&iprtd->playing, 0); iprtd 182 sound/soc/fsl/imx-pcm-fiq.c atomic_set(&iprtd->capturing, 0); iprtd 183 sound/soc/fsl/imx-pcm-fiq.c hrtimer_init(&iprtd->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); iprtd 184 sound/soc/fsl/imx-pcm-fiq.c iprtd->hrt.function = snd_hrtimer_callback; iprtd 189 sound/soc/fsl/imx-pcm-fiq.c kfree(iprtd); iprtd 200 sound/soc/fsl/imx-pcm-fiq.c struct imx_pcm_runtime_data *iprtd = runtime->private_data; iprtd 202 sound/soc/fsl/imx-pcm-fiq.c hrtimer_cancel(&iprtd->hrt); iprtd 204 sound/soc/fsl/imx-pcm-fiq.c kfree(iprtd);