Lines Matching refs:nbytes
486 u32 *idx, u32 *offset, u32 *nbytes) in crypto4xx_fill_one_page() argument
497 *nbytes -= dev->scatter_buffer_size; in crypto4xx_fill_one_page()
513 *nbytes -= *length; in crypto4xx_fill_one_page()
516 *nbytes -= *length; in crypto4xx_fill_one_page()
522 len = (*nbytes <= dev->scatter_buffer_size) ? in crypto4xx_fill_one_page()
523 (*nbytes) : dev->scatter_buffer_size; in crypto4xx_fill_one_page()
529 *nbytes -= len; in crypto4xx_fill_one_page()
543 u32 nbytes, in crypto4xx_copy_pkt_to_dst() argument
558 while (nbytes) { in crypto4xx_copy_pkt_to_dst()
565 len = (nbytes <= sg->length) ? nbytes : sg->length; in crypto4xx_copy_pkt_to_dst()
567 &this_sd, &offset, &nbytes)) in crypto4xx_copy_pkt_to_dst()
569 if (!nbytes) in crypto4xx_copy_pkt_to_dst()
573 len = (nbytes <= (dev->scatter_buffer_size - offset)) ? in crypto4xx_copy_pkt_to_dst()
574 nbytes : (dev->scatter_buffer_size - offset); in crypto4xx_copy_pkt_to_dst()
577 &this_sd, &offset, &nbytes)) in crypto4xx_copy_pkt_to_dst()
579 if (!nbytes) in crypto4xx_copy_pkt_to_dst()
585 &sg_len, &this_sd, &offset, &nbytes)) in crypto4xx_copy_pkt_to_dst()
640 crypto4xx_copy_pkt_to_dst(dev, pd, pd_uinfo, ablk_req->nbytes, in crypto4xx_ablkcipher_done()
779 unsigned int nbytes = datalen, idx; in crypto4xx_build_pd() local
882 while (nbytes) { in crypto4xx_build_pd()
890 if (sg->length >= nbytes) in crypto4xx_build_pd()
892 nbytes -= sg->length; in crypto4xx_build_pd()
930 nbytes = datalen; in crypto4xx_build_pd()
943 if (nbytes >= PPC4XX_SD_BUFFER_SIZE) in crypto4xx_build_pd()
944 nbytes -= PPC4XX_SD_BUFFER_SIZE; in crypto4xx_build_pd()
946 nbytes = 0; in crypto4xx_build_pd()
947 while (nbytes) { in crypto4xx_build_pd()
953 if (nbytes >= PPC4XX_SD_BUFFER_SIZE) in crypto4xx_build_pd()
954 nbytes -= PPC4XX_SD_BUFFER_SIZE; in crypto4xx_build_pd()
960 nbytes = 0; in crypto4xx_build_pd()