Lines Matching refs:ctx
529 struct smb3_fs_context *ctx;
547 * Setup a ctx with mostly the same info as the existing
553 * We only need the ctx here, so we can reuse memory from
557 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
558 if (!ctx) {
564 ctx->nosharesock = true;
567 ctx->domainauto = ses->domainAuto;
568 ctx->domainname = ses->domainName;
571 ctx->server_hostname = "";
573 ctx->username = ses->user_name;
574 ctx->password = ses->password;
575 ctx->sectype = ses->sectype;
576 ctx->sign = ses->sign;
581 ctx->UNC = kzalloc(len, GFP_KERNEL);
582 if (!ctx->UNC) {
586 scnprintf(ctx->UNC, len, unc_fmt, ses->ip_addr);
587 ctx->prepath = "";
590 ctx->vals = ses->server->vals;
591 ctx->ops = ses->server->ops;
593 ctx->noblocksnd = ses->server->noblocksnd;
594 ctx->noautotune = ses->server->noautotune;
595 ctx->sockopt_tcp_nodelay = ses->server->tcp_nodelay;
596 ctx->echo_interval = ses->server->echo_interval / HZ;
597 ctx->max_credits = ses->server->max_credits;
603 ctx->local_nls = ses->local_nls;
606 ctx->rdma = iface->rdma_capable;
607 memcpy(&ctx->dstaddr, &iface->sockaddr, sizeof(ctx->dstaddr));
610 memcpy(&ctx->client_guid, ses->server->client_guid,
611 sizeof(ctx->client_guid));
612 ctx->use_client_guid = true;
614 chan_server = cifs_get_tcp_session(ctx, ses->server);
670 kfree(ctx->UNC);
672 kfree(ctx);