Lines Matching refs:wov_wp
61 uint32_t wov_rp, wov_wp; member
462 return ((priv->wov_wp + 1) % sizeof(priv->wov_buf)) == priv->wov_rp; in wov_queue_full()
467 if (priv->wov_wp >= priv->wov_rp) in wov_queue_size()
468 return priv->wov_wp - priv->wov_rp; in wov_queue_size()
470 return sizeof(priv->wov_buf) - priv->wov_rp + priv->wov_wp; in wov_queue_size()
480 if (priv->wov_wp >= priv->wov_rp) in wov_queue_dequeue()
481 req = min(req, (size_t)priv->wov_wp - priv->wov_rp); in wov_queue_dequeue()
527 if (priv->wov_wp >= priv->wov_rp) in wov_queue_enqueue()
528 req = sizeof(priv->wov_buf) - priv->wov_wp; in wov_queue_enqueue()
531 req = priv->wov_rp - priv->wov_wp - 1; in wov_queue_enqueue()
535 memcpy_fromio(priv->wov_buf + priv->wov_wp, in wov_queue_enqueue()
538 memcpy(priv->wov_buf + priv->wov_wp, addr, req); in wov_queue_enqueue()
540 priv->wov_wp += req; in wov_queue_enqueue()
541 if (priv->wov_wp == sizeof(priv->wov_buf)) in wov_queue_enqueue()
542 priv->wov_wp = 0; in wov_queue_enqueue()
900 priv->wov_rp = priv->wov_wp = 0; in wov_pcm_hw_params()