Lines Matching refs:mo
36 struct sg_mapping_iter mi, mo; in sun4i_ss_opti_poll() local
111 sg_miter_start(&mo, areq->dst, sg_nents(areq->dst), in sun4i_ss_opti_poll()
114 sg_miter_skip(&mo, po); in sun4i_ss_opti_poll()
115 miter_err = sg_miter_next(&mo); in sun4i_ss_opti_poll()
116 if (!miter_err || !mo.addr) { in sun4i_ss_opti_poll()
122 todo = min_t(size_t, todo, (mo.length - oo) / 4); in sun4i_ss_opti_poll()
125 readsl(ss->base + SS_TXFIFO, mo.addr + oo, todo); in sun4i_ss_opti_poll()
128 if (oo == mo.length) { in sun4i_ss_opti_poll()
130 po += mo.length; in sun4i_ss_opti_poll()
132 sg_miter_stop(&mo); in sun4i_ss_opti_poll()
203 struct sg_mapping_iter mi, mo; in sun4i_ss_cipher_poll() local
332 sg_miter_start(&mo, areq->dst, sg_nents(areq->dst), in sun4i_ss_cipher_poll()
335 sg_miter_skip(&mo, po); in sun4i_ss_cipher_poll()
336 miter_err = sg_miter_next(&mo); in sun4i_ss_cipher_poll()
337 if (!miter_err || !mo.addr) { in sun4i_ss_cipher_poll()
344 todo = min_t(size_t, todo, (mo.length - oo) / 4); in sun4i_ss_cipher_poll()
347 readsl(ss->base + SS_TXFIFO, mo.addr + oo, todo); in sun4i_ss_cipher_poll()
350 if (oo == mo.length) { in sun4i_ss_cipher_poll()
351 po += mo.length; in sun4i_ss_cipher_poll()
370 mo.length - oo, obl - obo); in sun4i_ss_cipher_poll()
371 memcpy(mo.addr + oo, ss->bufo + obo, todo); in sun4i_ss_cipher_poll()
375 if (oo == mo.length) { in sun4i_ss_cipher_poll()
376 po += mo.length; in sun4i_ss_cipher_poll()
377 sg_miter_next(&mo); in sun4i_ss_cipher_poll()
383 sg_miter_stop(&mo); in sun4i_ss_cipher_poll()