Lines Matching refs:todo

32 	unsigned int todo;  in sun4i_ss_opti_poll()  local
75 todo = min3(rx_cnt, ileft, (mi.length - oi) / 4); in sun4i_ss_opti_poll()
76 if (todo) { in sun4i_ss_opti_poll()
77 ileft -= todo; in sun4i_ss_opti_poll()
78 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll()
79 oi += todo * 4; in sun4i_ss_opti_poll()
90 todo = min3(tx_cnt, oleft, (mo.length - oo) / 4); in sun4i_ss_opti_poll()
91 if (todo) { in sun4i_ss_opti_poll()
92 oleft -= todo; in sun4i_ss_opti_poll()
93 readsl(ss->base + SS_TXFIFO, mo.addr + oo, todo); in sun4i_ss_opti_poll()
94 oo += todo * 4; in sun4i_ss_opti_poll()
163 unsigned int todo; in sun4i_ss_cipher_poll() local
242 todo = min3(rx_cnt, ileft / 4, (mi.length - oi) / 4); in sun4i_ss_cipher_poll()
243 if (todo && !ob) { in sun4i_ss_cipher_poll()
245 todo); in sun4i_ss_cipher_poll()
246 ileft -= todo * 4; in sun4i_ss_cipher_poll()
247 oi += todo * 4; in sun4i_ss_cipher_poll()
256 todo = min3(rx_cnt * 4 - ob, ileft, in sun4i_ss_cipher_poll()
258 memcpy(buf + ob, mi.addr + oi, todo); in sun4i_ss_cipher_poll()
259 ileft -= todo; in sun4i_ss_cipher_poll()
260 oi += todo; in sun4i_ss_cipher_poll()
261 ob += todo; in sun4i_ss_cipher_poll()
285 todo = min3(tx_cnt, oleft / 4, (mo.length - oo) / 4); in sun4i_ss_cipher_poll()
286 if (todo) { in sun4i_ss_cipher_poll()
287 readsl(ss->base + SS_TXFIFO, mo.addr + oo, todo); in sun4i_ss_cipher_poll()
288 oleft -= todo * 4; in sun4i_ss_cipher_poll()
289 oo += todo * 4; in sun4i_ss_cipher_poll()
311 todo = min(mo.length - oo, obl - obo); in sun4i_ss_cipher_poll()
312 memcpy(mo.addr + oo, bufo + obo, todo); in sun4i_ss_cipher_poll()
313 oleft -= todo; in sun4i_ss_cipher_poll()
314 obo += todo; in sun4i_ss_cipher_poll()
315 oo += todo; in sun4i_ss_cipher_poll()