Lines Matching refs:desc_cnt
118 uint8_t desc_cnt; member
206 ch_priv->desc_cnt = 0; in bcm6348_iudma_disable()
208 ch_priv->desc_cnt = ch_priv->dma_ring_size; in bcm6348_iudma_disable()
221 for (i = 0; i < ch_priv->desc_cnt; i++) { in bcm6348_iudma_enable()
231 if (i == ch_priv->desc_cnt - 1) in bcm6348_iudma_enable()
242 sizeof(*dma_desc) * ch_priv->desc_cnt); in bcm6348_iudma_enable()
260 val = ch_priv->desc_cnt / 3; in bcm6348_iudma_enable()
263 val = (ch_priv->desc_cnt * 2) / 3; in bcm6348_iudma_enable()
270 writel_be(ch_priv->desc_cnt, in bcm6348_iudma_enable()
315 ch_priv->desc_cnt = 0; in bcm6348_iudma_request()
318 ch_priv->desc_cnt = ch_priv->dma_ring_size; in bcm6348_iudma_request()
319 ch_priv->busy_desc = calloc(ch_priv->desc_cnt, sizeof(bool)); in bcm6348_iudma_request()
368 ch_priv->desc_id = (ch_priv->desc_id + 1) % ch_priv->desc_cnt; in bcm6348_iudma_receive()
396 if (ch_priv->desc_id == ch_priv->desc_cnt - 1) in bcm6348_iudma_send()
420 ch_priv->desc_id = (ch_priv->desc_id + 1) % ch_priv->desc_cnt; in bcm6348_iudma_send()
435 for (i = 0; i < ch_priv->desc_cnt; i++) { in bcm6348_iudma_free_rcv_buf()
443 if (i == ch_priv->desc_cnt) { in bcm6348_iudma_free_rcv_buf()
450 sizeof(*dma_desc) * ch_priv->desc_cnt); in bcm6348_iudma_free_rcv_buf()
456 if (i == ch_priv->desc_cnt - 1) in bcm6348_iudma_free_rcv_buf()
467 sizeof(*dma_desc) * ch_priv->desc_cnt); in bcm6348_iudma_free_rcv_buf()
485 if (ch_priv->desc_cnt == ch_priv->dma_ring_size) { in bcm6348_iudma_add_rcv_buf()
491 dma_desc += ch_priv->desc_cnt; in bcm6348_iudma_add_rcv_buf()
502 ch_priv->desc_cnt++; in bcm6348_iudma_add_rcv_buf()