Lines Matching defs:pos
521 char *pos;
537 pos = strpbrk(devname + 2, delims);
538 if (!pos)
543 ctx->server_hostname = kstrndup(devname + 2, pos - devname - 2, GFP_KERNEL);
548 ++pos;
551 len = strcspn(pos, delims);
555 /* move "pos" up to delimiter or NULL */
556 pos += len;
558 ctx->UNC = kstrndup(devname, pos - devname, GFP_KERNEL);
565 if (*pos == '/' || *pos == '\\')
566 pos++;
571 /* If pos is NULL then no prepath */
572 if (!*pos)
575 ctx->prepath = cifs_sanitize_prepath(pos, GFP_KERNEL);