Lines Matching full:mo
35 struct sg_mapping_iter mi, mo; in sun4i_ss_opti_poll() local
108 sg_miter_start(&mo, areq->dst, sg_nents(areq->dst), in sun4i_ss_opti_poll()
111 sg_miter_skip(&mo, po); in sun4i_ss_opti_poll()
112 miter_err = sg_miter_next(&mo); in sun4i_ss_opti_poll()
113 if (!miter_err || !mo.addr) { in sun4i_ss_opti_poll()
119 todo = min_t(size_t, todo, (mo.length - oo) / 4); in sun4i_ss_opti_poll()
122 readsl(ss->base + SS_TXFIFO, mo.addr + oo, todo); in sun4i_ss_opti_poll()
125 if (oo == mo.length) { in sun4i_ss_opti_poll()
127 po += mo.length; in sun4i_ss_opti_poll()
129 sg_miter_stop(&mo); in sun4i_ss_opti_poll()
199 struct sg_mapping_iter mi, mo; in sun4i_ss_cipher_poll() local
326 sg_miter_start(&mo, areq->dst, sg_nents(areq->dst), in sun4i_ss_cipher_poll()
329 sg_miter_skip(&mo, po); in sun4i_ss_cipher_poll()
330 miter_err = sg_miter_next(&mo); in sun4i_ss_cipher_poll()
331 if (!miter_err || !mo.addr) { in sun4i_ss_cipher_poll()
338 todo = min_t(size_t, todo, (mo.length - oo) / 4); in sun4i_ss_cipher_poll()
341 readsl(ss->base + SS_TXFIFO, mo.addr + oo, todo); in sun4i_ss_cipher_poll()
344 if (oo == mo.length) { in sun4i_ss_cipher_poll()
345 po += mo.length; in sun4i_ss_cipher_poll()
364 mo.length - oo, obl - obo); in sun4i_ss_cipher_poll()
365 memcpy(mo.addr + oo, ss->bufo + obo, todo); in sun4i_ss_cipher_poll()
369 if (oo == mo.length) { in sun4i_ss_cipher_poll()
370 po += mo.length; in sun4i_ss_cipher_poll()
371 sg_miter_next(&mo); in sun4i_ss_cipher_poll()
377 sg_miter_stop(&mo); in sun4i_ss_cipher_poll()