Lines Matching defs:nent
225 unsigned int i, nent = PRD_ENTRIES_NUM;
249 config->sgls[i] = sgl_alloc(buf_sz, GFP_KERNEL, &nent);
250 if (!config->sgls[i] || nent > PRD_ENTRIES_NUM) {
251 dev_err_once(dev->dev, "sgl_alloc (%uth) failed, nent %u\n",
252 i, nent);
255 count = dma_map_sg(dev->dev, config->sgls[i], nent, dir);
448 size_t mes_len, u8 *nent)
450 *nent = DIV_ROUND_UP(mes_len, THC_MIN_BYTES_PER_SG_LIST_ENTRY);
451 if (*nent > PRD_ENTRIES_NUM)
457 static size_t calc_message_len(struct thc_prd_table *prd_tbl, u8 *nent)
468 *nent = j + 1;
569 u8 nent;
577 mes_len = calc_message_len(prd_tbl, &nent);
586 ret = sg_copy_to_buffer(sg, nent, read_buff, mes_len);
870 u8 nent;
876 if (calc_prd_entries_num(prd_tbl, buf_len, &nent) < 0) {
882 ret = sg_copy_from_buffer(sg, nent, buffer, buf_len);