Searched refs:wpt (Results 1 – 2 of 2) sorted by relevance
142 unsigned int wpt, vff_sz; in mtk_uart_apdma_start_tx() local165 wpt = mtk_uart_apdma_read(c, VFF_WPT); in mtk_uart_apdma_start_tx()167 wpt += c->desc->avail_len; in mtk_uart_apdma_start_tx()168 if ((wpt & VFF_RING_SIZE) == vff_sz) in mtk_uart_apdma_start_tx()169 wpt = (wpt & VFF_RING_WRAP) ^ VFF_RING_WRAP; in mtk_uart_apdma_start_tx()172 mtk_uart_apdma_write(c, VFF_WPT, wpt); in mtk_uart_apdma_start_tx()
1956 u32 inuse, wpt, wptp; in transfer_surpluses() local1984 wpt = DIV64_U64_ROUND_UP( in transfer_surpluses()1991 iocg->child_adjusted_sum = sf + DIV64_U64_ROUND_UP(st * wptp, wpt); in transfer_surpluses()