Lines Matching refs:nbytes
485 u32 *idx, u32 *offset, u32 *nbytes) in crypto4xx_fill_one_page() argument
496 *nbytes -= dev->scatter_buffer_size; in crypto4xx_fill_one_page()
512 *nbytes -= *length; in crypto4xx_fill_one_page()
515 *nbytes -= *length; in crypto4xx_fill_one_page()
521 len = (*nbytes <= dev->scatter_buffer_size) ? in crypto4xx_fill_one_page()
522 (*nbytes) : dev->scatter_buffer_size; in crypto4xx_fill_one_page()
528 *nbytes -= len; in crypto4xx_fill_one_page()
542 u32 nbytes, in crypto4xx_copy_pkt_to_dst() argument
557 while (nbytes) { in crypto4xx_copy_pkt_to_dst()
564 len = (nbytes <= sg->length) ? nbytes : sg->length; in crypto4xx_copy_pkt_to_dst()
566 &this_sd, &offset, &nbytes)) in crypto4xx_copy_pkt_to_dst()
568 if (!nbytes) in crypto4xx_copy_pkt_to_dst()
572 len = (nbytes <= (dev->scatter_buffer_size - offset)) ? in crypto4xx_copy_pkt_to_dst()
573 nbytes : (dev->scatter_buffer_size - offset); in crypto4xx_copy_pkt_to_dst()
576 &this_sd, &offset, &nbytes)) in crypto4xx_copy_pkt_to_dst()
578 if (!nbytes) in crypto4xx_copy_pkt_to_dst()
584 &sg_len, &this_sd, &offset, &nbytes)) in crypto4xx_copy_pkt_to_dst()
639 crypto4xx_copy_pkt_to_dst(dev, pd, pd_uinfo, ablk_req->nbytes, in crypto4xx_ablkcipher_done()
778 unsigned int nbytes = datalen, idx; in crypto4xx_build_pd() local
877 while (nbytes) { in crypto4xx_build_pd()
885 if (sg->length >= nbytes) in crypto4xx_build_pd()
887 nbytes -= sg->length; in crypto4xx_build_pd()
925 nbytes = datalen; in crypto4xx_build_pd()
938 if (nbytes >= PPC4XX_SD_BUFFER_SIZE) in crypto4xx_build_pd()
939 nbytes -= PPC4XX_SD_BUFFER_SIZE; in crypto4xx_build_pd()
941 nbytes = 0; in crypto4xx_build_pd()
942 while (nbytes) { in crypto4xx_build_pd()
948 if (nbytes >= PPC4XX_SD_BUFFER_SIZE) in crypto4xx_build_pd()
949 nbytes -= PPC4XX_SD_BUFFER_SIZE; in crypto4xx_build_pd()
955 nbytes = 0; in crypto4xx_build_pd()