Lines Matching defs:sglen
141 * @sglen: max number of nx_sg entries we're allowed to write
147 unsigned int sglen,
159 while (len && (nx_sg - nx_dst) < sglen) {
162 nx_sg = nx_build_sg_list(nx_sg, walk.addr, &n, sglen - (nx_sg - nx_dst));
249 max_sg_len = min_t(u64, nx_ctx->ap->sglen,
366 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) {
367 dev_warn(dev, "bogus sglen/databytelen: "
368 "%u/%u (ignored)\n", trip->sglen,
378 props->ap[msc->fc][msc->mode][0].sglen =
379 trip->sglen;
384 props->ap[msc->fc][msc->mode][1].sglen =
385 trip->sglen;
391 props->ap[msc->fc][msc->mode][2].sglen =
392 trip->sglen;
397 props->ap[msc->fc][msc->mode][1].sglen =
398 trip->sglen;
408 props->ap[msc->fc][msc->mode][2].sglen =
409 trip->sglen;
469 if (!props->sglen || props->databytelen < NX_PAGE_SIZE) {
471 dev_warn(dev, "bogus sglen/databytelen for %u/%u/%u: "
473 props->sglen, props->databytelen);