Lines Matching refs:nbytes
226 unsigned int nbytes) in read_low_bytes() argument
229 jcopy(&pbuf->carry.val8[0], from, nbytes); in read_low_bytes()
230 pbuf->carry_bytes = nbytes; in read_low_bytes()
242 const void *from, unsigned int nbytes) in read_extra_bytes() argument
244 jcopy(&pbuf->carry.val8[pbuf->carry_bytes], from, nbytes); in read_extra_bytes()
245 pbuf->carry_bytes += nbytes; in read_extra_bytes()
305 const void *from, size_t nbytes) in seg_pio_copy_start() argument
315 dend = dest + ((nbytes >> 3) * sizeof(u64)); in seg_pio_copy_start()
380 read_low_bytes(pbuf, from, nbytes & 0x7); in seg_pio_copy_start()
382 pbuf->qw_written = 1 /*PBC*/ + (nbytes >> 3); in seg_pio_copy_start()
397 static void mid_copy_mix(struct pio_buf *pbuf, const void *from, size_t nbytes) in mid_copy_mix() argument
401 unsigned long qw_to_write = nbytes >> 3; in mid_copy_mix()
402 unsigned long bytes_left = nbytes & 0x7; in mid_copy_mix()
525 const void *from, size_t nbytes) in mid_copy_straight() argument
531 dend = dest + ((nbytes >> 3) * sizeof(u64)); in mid_copy_straight()
599 read_low_bytes(pbuf, from, nbytes & 0x7); in mid_copy_straight()
601 pbuf->qw_written += nbytes >> 3; in mid_copy_straight()
613 void seg_pio_copy_mid(struct pio_buf *pbuf, const void *from, size_t nbytes) in seg_pio_copy_mid() argument
617 if (pbuf->carry_bytes + nbytes < 8) { in seg_pio_copy_mid()
619 read_extra_bytes(pbuf, from, nbytes); in seg_pio_copy_mid()
640 nbytes -= to_align; in seg_pio_copy_mid()
651 nbytes -= to_fill; in seg_pio_copy_mid()
653 if (extra > nbytes) in seg_pio_copy_mid()
654 extra = nbytes; in seg_pio_copy_mid()
681 nbytes -= extra; in seg_pio_copy_mid()
689 if (nbytes == 0) in seg_pio_copy_mid()
697 mid_copy_mix(pbuf, from, nbytes); in seg_pio_copy_mid()
699 mid_copy_straight(pbuf, from, nbytes); in seg_pio_copy_mid()