Lines Matching refs:nbytes

184 				  unsigned int nbytes)  in read_low_bytes()  argument
187 jcopy(&pbuf->carry.val8[0], from, nbytes); in read_low_bytes()
188 pbuf->carry_bytes = nbytes; in read_low_bytes()
200 const void *from, unsigned int nbytes) in read_extra_bytes() argument
202 jcopy(&pbuf->carry.val8[pbuf->carry_bytes], from, nbytes); in read_extra_bytes()
203 pbuf->carry_bytes += nbytes; in read_extra_bytes()
263 const void *from, size_t nbytes) in seg_pio_copy_start() argument
273 dend = dest + ((nbytes >> 3) * sizeof(u64)); in seg_pio_copy_start()
338 read_low_bytes(pbuf, from, nbytes & 0x7); in seg_pio_copy_start()
340 pbuf->qw_written = 1 /*PBC*/ + (nbytes >> 3); in seg_pio_copy_start()
355 static void mid_copy_mix(struct pio_buf *pbuf, const void *from, size_t nbytes) in mid_copy_mix() argument
359 unsigned long qw_to_write = nbytes >> 3; in mid_copy_mix()
360 unsigned long bytes_left = nbytes & 0x7; in mid_copy_mix()
483 const void *from, size_t nbytes) in mid_copy_straight() argument
489 dend = dest + ((nbytes >> 3) * sizeof(u64)); in mid_copy_straight()
557 read_low_bytes(pbuf, from, nbytes & 0x7); in mid_copy_straight()
559 pbuf->qw_written += nbytes >> 3; in mid_copy_straight()
571 void seg_pio_copy_mid(struct pio_buf *pbuf, const void *from, size_t nbytes) in seg_pio_copy_mid() argument
575 if (pbuf->carry_bytes + nbytes < 8) { in seg_pio_copy_mid()
577 read_extra_bytes(pbuf, from, nbytes); in seg_pio_copy_mid()
598 nbytes -= to_align; in seg_pio_copy_mid()
609 nbytes -= to_fill; in seg_pio_copy_mid()
611 if (extra > nbytes) in seg_pio_copy_mid()
612 extra = nbytes; in seg_pio_copy_mid()
639 nbytes -= extra; in seg_pio_copy_mid()
647 if (nbytes == 0) in seg_pio_copy_mid()
655 mid_copy_mix(pbuf, from, nbytes); in seg_pio_copy_mid()
657 mid_copy_straight(pbuf, from, nbytes); in seg_pio_copy_mid()