Lines Matching defs:pos
555 char *pos;
571 pos = strpbrk(devname + 2, delims);
572 if (!pos)
577 ctx->server_hostname = kstrndup(devname + 2, pos - devname - 2, GFP_KERNEL);
582 ++pos;
585 len = strcspn(pos, delims);
589 /* move "pos" up to delimiter or NULL */
590 pos += len;
592 ctx->UNC = kstrndup(devname, pos - devname, GFP_KERNEL);
599 if (*pos == '/' || *pos == '\\')
600 pos++;
605 /* If pos is NULL then no prepath */
606 if (!*pos)
609 ctx->prepath = cifs_sanitize_prepath(pos, GFP_KERNEL);