Lines Matching refs:nbytes
225 unsigned int nbytes) in read_low_bytes() argument
228 jcopy(&pbuf->carry.val8[0], from, nbytes); in read_low_bytes()
229 pbuf->carry_bytes = nbytes; in read_low_bytes()
241 const void *from, unsigned int nbytes) in read_extra_bytes() argument
243 jcopy(&pbuf->carry.val8[pbuf->carry_bytes], from, nbytes); in read_extra_bytes()
244 pbuf->carry_bytes += nbytes; in read_extra_bytes()
304 const void *from, size_t nbytes) in seg_pio_copy_start() argument
314 dend = dest + ((nbytes >> 3) * sizeof(u64)); in seg_pio_copy_start()
379 read_low_bytes(pbuf, from, nbytes & 0x7); in seg_pio_copy_start()
381 pbuf->qw_written = 1 /*PBC*/ + (nbytes >> 3); in seg_pio_copy_start()
396 static void mid_copy_mix(struct pio_buf *pbuf, const void *from, size_t nbytes) in mid_copy_mix() argument
400 unsigned long qw_to_write = nbytes >> 3; in mid_copy_mix()
401 unsigned long bytes_left = nbytes & 0x7; in mid_copy_mix()
524 const void *from, size_t nbytes) in mid_copy_straight() argument
530 dend = dest + ((nbytes >> 3) * sizeof(u64)); in mid_copy_straight()
598 read_low_bytes(pbuf, from, nbytes & 0x7); in mid_copy_straight()
600 pbuf->qw_written += nbytes >> 3; in mid_copy_straight()
612 void seg_pio_copy_mid(struct pio_buf *pbuf, const void *from, size_t nbytes) in seg_pio_copy_mid() argument
616 if (pbuf->carry_bytes + nbytes < 8) { in seg_pio_copy_mid()
618 read_extra_bytes(pbuf, from, nbytes); in seg_pio_copy_mid()
639 nbytes -= to_align; in seg_pio_copy_mid()
650 nbytes -= to_fill; in seg_pio_copy_mid()
652 if (extra > nbytes) in seg_pio_copy_mid()
653 extra = nbytes; in seg_pio_copy_mid()
680 nbytes -= extra; in seg_pio_copy_mid()
688 if (nbytes == 0) in seg_pio_copy_mid()
696 mid_copy_mix(pbuf, from, nbytes); in seg_pio_copy_mid()
698 mid_copy_straight(pbuf, from, nbytes); in seg_pio_copy_mid()