Lines Matching refs:ctrl
206 q->desc[i].ctrl = cpu_to_le32(MT_DMA_CTL_DMA_DONE); in mt76_dma_queue_reset()
220 u32 buf1 = 0, ctrl; in mt76_dma_add_rx_buf() local
224 ctrl = FIELD_PREP(MT_DMA_CTL_SD_LEN0, buf[0].len); in mt76_dma_add_rx_buf()
238 ctrl |= MT_DMA_CTL_TO_HOST; in mt76_dma_add_rx_buf()
243 WRITE_ONCE(desc->ctrl, cpu_to_le32(ctrl)); in mt76_dma_add_rx_buf()
266 u32 ctrl, next; in mt76_dma_add_buf() local
289 ctrl = FIELD_PREP(MT_DMA_CTL_SD_LEN0, buf[0].len); in mt76_dma_add_buf()
294 ctrl |= FIELD_PREP(MT_DMA_CTL_SD_LEN1, buf[1].len); in mt76_dma_add_buf()
300 ctrl |= MT_DMA_CTL_LAST_SEC0; in mt76_dma_add_buf()
302 ctrl |= MT_DMA_CTL_LAST_SEC1; in mt76_dma_add_buf()
307 WRITE_ONCE(desc->ctrl, cpu_to_le32(ctrl)); in mt76_dma_add_buf()
400 u32 ctrl = le32_to_cpu(READ_ONCE(desc->ctrl)); in mt76_dma_get_buf() local
401 *len = FIELD_GET(MT_DMA_CTL_SD_LEN0, ctrl); in mt76_dma_get_buf()
402 *more = !(ctrl & MT_DMA_CTL_LAST_SEC0); in mt76_dma_get_buf()
427 u32 ctrl = le32_to_cpu(READ_ONCE(desc->ctrl)); in mt76_dma_get_buf() local
429 *drop = !!(ctrl & (MT_DMA_CTL_TO_HOST_A | in mt76_dma_get_buf()
456 q->desc[idx].ctrl |= cpu_to_le32(MT_DMA_CTL_DMA_DONE); in mt76_dma_dequeue()
457 else if (!(q->desc[idx].ctrl & cpu_to_le32(MT_DMA_CTL_DMA_DONE))) in mt76_dma_dequeue()
776 q->desc[i].ctrl = cpu_to_le32(MT_DMA_CTL_DMA_DONE); in mt76_dma_rx_reset()