Searched refs:wpt (Results 1 – 2 of 2) sorted by relevance
145 unsigned int wpt, vff_sz; in mtk_uart_apdma_start_tx() local168 wpt = mtk_uart_apdma_read(c, VFF_WPT); in mtk_uart_apdma_start_tx()170 wpt += c->desc->avail_len; in mtk_uart_apdma_start_tx()171 if ((wpt & VFF_RING_SIZE) == vff_sz) in mtk_uart_apdma_start_tx()172 wpt = (wpt & VFF_RING_WRAP) ^ VFF_RING_WRAP; in mtk_uart_apdma_start_tx()175 mtk_uart_apdma_write(c, VFF_WPT, wpt); in mtk_uart_apdma_start_tx()
1906 u32 inuse, wpt, wptp; in transfer_surpluses() local1934 wpt = DIV64_U64_ROUND_UP( in transfer_surpluses()1941 iocg->child_adjusted_sum = sf + DIV64_U64_ROUND_UP(st * wptp, wpt); in transfer_surpluses()