Home
last modified time | relevance | path

Searched refs:new_wr_idx (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/drivers/net/wwan/t7xx/
Dt7xx_hif_dpmaif_rx.c121 unsigned int old_rl_idx, new_wr_idx, old_wr_idx; in t7xx_dpmaif_update_bat_wr_idx() local
130 new_wr_idx = old_wr_idx + bat_cnt; in t7xx_dpmaif_update_bat_wr_idx()
132 if (old_rl_idx > old_wr_idx && new_wr_idx >= old_rl_idx) in t7xx_dpmaif_update_bat_wr_idx()
135 if (new_wr_idx >= bat_req->bat_size_cnt) { in t7xx_dpmaif_update_bat_wr_idx()
136 new_wr_idx -= bat_req->bat_size_cnt; in t7xx_dpmaif_update_bat_wr_idx()
137 if (new_wr_idx >= old_rl_idx) in t7xx_dpmaif_update_bat_wr_idx()
141 bat_req->bat_wr_idx = new_wr_idx; in t7xx_dpmaif_update_bat_wr_idx()
/Linux-v6.1/drivers/media/platform/qcom/venus/
Dhfi_venus.c168 u32 dwords, new_wr_idx; in venus_write_queue() local
207 new_wr_idx = wr_idx + dwords; in venus_write_queue()
209 if (new_wr_idx < qsize) { in venus_write_queue()
214 new_wr_idx -= qsize; in venus_write_queue()
215 len = (dwords - new_wr_idx) << 2; in venus_write_queue()
217 memcpy(queue->qmem.kva, packet + len, new_wr_idx << 2); in venus_write_queue()
223 qhdr->write_idx = new_wr_idx; in venus_write_queue()