Lines Matching refs:in_i
190 unsigned int in_i = 0; in sun4i_hash() local
275 in_i = 0; in sun4i_hash()
283 if (op->len || (mi.length - in_i) < 4) { in sun4i_hash()
292 in_r = min_t(size_t, mi.length - in_i, in_r); in sun4i_hash()
293 memcpy(op->buf + op->len, mi.addr + in_i, in_r); in sun4i_hash()
296 in_i += in_r; in sun4i_hash()
297 if (in_i == mi.length) { in sun4i_hash()
299 in_i = 0; in sun4i_hash()
310 if (mi.length - in_i > 3 && i < end) { in sun4i_hash()
312 in_r = min_t(size_t, mi.length - in_i, areq->nbytes - i); in sun4i_hash()
313 in_r = min_t(size_t, ((mi.length - in_i) / 4) * 4, in_r); in sun4i_hash()
316 writesl(ss->base + SS_RXFIFO, mi.addr + in_i, todo); in sun4i_hash()
319 in_i += todo * 4; in sun4i_hash()
325 if (in_i == mi.length) { in sun4i_hash()
327 in_i = 0; in sun4i_hash()
337 while (i < areq->nbytes && in_i < mi.length && op->len < 64) { in sun4i_hash()
340 in_r = min_t(size_t, mi.length - in_i, in_r); in sun4i_hash()
341 memcpy(op->buf + op->len, mi.addr + in_i, in_r); in sun4i_hash()
344 in_i += in_r; in sun4i_hash()
345 if (in_i == mi.length) { in sun4i_hash()
347 in_i = 0; in sun4i_hash()