Lines Matching defs:nbytes
67 * @nbytes: [IN] Total SGL data bytes.
75 unsigned int nbytes, u32 *lbytes)
81 while (nbytes && sg_list) {
84 *lbytes = nbytes;
85 nbytes -= (sg_list->length > nbytes) ?
86 nbytes : sg_list->length;
256 unsigned int nbytes, int direction, u32 *nents,
261 if (!nbytes) {
268 *nents = cc_get_sgl_nents(dev, sg, nbytes, lbytes);
371 unsigned int ivsize, unsigned int nbytes,
405 rc = cc_map_sg(dev, src, nbytes, src_direction, &req_ctx->in_nents,
417 nbytes, 0, true,
422 rc = cc_map_sg(dev, dst, nbytes, DMA_FROM_DEVICE,
432 nbytes, 0, true,
435 nbytes, 0, true,
1142 struct scatterlist *src, unsigned int nbytes,
1155 dev_dbg(dev, "final params : curr_buff=%pK curr_buff_cnt=0x%X nbytes = 0x%X src=%pK curr_index=%u\n",
1156 curr_buff, *curr_buff_cnt, nbytes, src, areq_ctx->buff_index);
1163 if (nbytes == 0 && *curr_buff_cnt == 0) {
1176 if (src && nbytes > 0 && do_update) {
1177 rc = cc_map_sg(dev, src, nbytes, DMA_TO_DEVICE,
1186 areq_ctx->buff_sg->length = nbytes;
1198 cc_add_sg_entry(dev, &sg_data, areq_ctx->in_nents, src, nbytes,
1221 struct scatterlist *src, unsigned int nbytes,
1232 u32 total_in_len = nbytes + *curr_buff_cnt;
1239 dev_dbg(dev, " update params : curr_buff=%pK curr_buff_cnt=0x%X nbytes=0x%X src=%pK curr_index=%u\n",
1240 curr_buff, *curr_buff_cnt, nbytes, src, areq_ctx->buff_index);
1251 areq_ctx->in_nents = sg_nents_for_len(src, nbytes);
1253 &curr_buff[*curr_buff_cnt], nbytes);
1254 *curr_buff_cnt += nbytes;
1273 nbytes, CC_SG_TO_BUF);