server 239 arch/powerpc/include/asm/kvm_ppc.h extern int kvmppc_xics_set_xive(struct kvm *kvm, u32 irq, u32 server, server 241 arch/powerpc/include/asm/kvm_ppc.h extern int kvmppc_xics_get_xive(struct kvm *kvm, u32 irq, u32 *server, server 658 arch/powerpc/include/asm/kvm_ppc.h extern int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server, server 660 arch/powerpc/include/asm/kvm_ppc.h extern int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server, server 698 arch/powerpc/include/asm/kvm_ppc.h static inline int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server, server 700 arch/powerpc/include/asm/kvm_ppc.h static inline int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server, server 789 arch/powerpc/include/asm/kvm_ppc.h unsigned long kvmppc_rm_h_ipoll(struct kvm_vcpu *vcpu, unsigned long server); server 790 arch/powerpc/include/asm/kvm_ppc.h int kvmppc_rm_h_ipi(struct kvm_vcpu *vcpu, unsigned long server, server 80 arch/powerpc/include/asm/opal.h int64_t opal_set_xive(uint32_t isn, uint16_t server, uint8_t priority); server 81 arch/powerpc/include/asm/opal.h int64_t opal_get_xive(uint32_t isn, __be16 *server, uint8_t *priority); server 40 arch/powerpc/kvm/book3s_hv_builtin.c unsigned long (*__xive_vm_h_ipoll)(struct kvm_vcpu *vcpu, unsigned long server); server 41 arch/powerpc/kvm/book3s_hv_builtin.c int (*__xive_vm_h_ipi)(struct kvm_vcpu *vcpu, unsigned long server, server 602 arch/powerpc/kvm/book3s_hv_builtin.c unsigned long kvmppc_rm_h_ipoll(struct kvm_vcpu *vcpu, unsigned long server) server 608 arch/powerpc/kvm/book3s_hv_builtin.c return xive_rm_h_ipoll(vcpu, server); server 611 arch/powerpc/kvm/book3s_hv_builtin.c return __xive_vm_h_ipoll(vcpu, server); server 616 arch/powerpc/kvm/book3s_hv_builtin.c int kvmppc_rm_h_ipi(struct kvm_vcpu *vcpu, unsigned long server, server 623 arch/powerpc/kvm/book3s_hv_builtin.c return xive_rm_h_ipi(vcpu, server, mfrr); server 626 arch/powerpc/kvm/book3s_hv_builtin.c return __xive_vm_h_ipi(vcpu, server, mfrr); server 628 arch/powerpc/kvm/book3s_hv_builtin.c return xics_rm_h_ipi(vcpu, server, mfrr); server 321 arch/powerpc/kvm/book3s_hv_rm_xics.c if (!icp || state->server != icp->server_num) { server 322 arch/powerpc/kvm/book3s_hv_rm_xics.c icp = kvmppc_xics_find_server(xics->kvm, state->server); server 528 arch/powerpc/kvm/book3s_hv_rm_xics.c int xics_rm_h_ipi(struct kvm_vcpu *vcpu, unsigned long server, server 541 arch/powerpc/kvm/book3s_hv_rm_xics.c local = this_icp->server_num == server; server 545 arch/powerpc/kvm/book3s_hv_rm_xics.c icp = kvmppc_xics_find_server(vcpu->kvm, server); server 21 arch/powerpc/kvm/book3s_rtas.c u32 irq, server, priority; server 30 arch/powerpc/kvm/book3s_rtas.c server = be32_to_cpu(args->args[1]); server 34 arch/powerpc/kvm/book3s_rtas.c rc = kvmppc_xive_set_xive(vcpu->kvm, irq, server, priority); server 36 arch/powerpc/kvm/book3s_rtas.c rc = kvmppc_xics_set_xive(vcpu->kvm, irq, server, priority); server 45 arch/powerpc/kvm/book3s_rtas.c u32 irq, server, priority; server 55 arch/powerpc/kvm/book3s_rtas.c server = priority = 0; server 57 arch/powerpc/kvm/book3s_rtas.c rc = kvmppc_xive_get_xive(vcpu->kvm, irq, &server, &priority); server 59 arch/powerpc/kvm/book3s_rtas.c rc = kvmppc_xics_get_xive(vcpu->kvm, irq, &server, &priority); server 65 arch/powerpc/kvm/book3s_rtas.c args->rets[1] = cpu_to_be32(server); server 142 arch/powerpc/kvm/book3s_xics.c u32 server, u32 priority, u32 saved_priority) server 150 arch/powerpc/kvm/book3s_xics.c state->server = server; server 166 arch/powerpc/kvm/book3s_xics.c int kvmppc_xics_set_xive(struct kvm *kvm, u32 irq, u32 server, u32 priority) server 182 arch/powerpc/kvm/book3s_xics.c icp = kvmppc_xics_find_server(kvm, server); server 187 arch/powerpc/kvm/book3s_xics.c irq, server, priority, server 190 arch/powerpc/kvm/book3s_xics.c if (write_xive(xics, ics, state, server, priority, priority)) server 196 arch/powerpc/kvm/book3s_xics.c int kvmppc_xics_get_xive(struct kvm *kvm, u32 irq, u32 *server, u32 *priority) server 214 arch/powerpc/kvm/book3s_xics.c *server = state->server; server 238 arch/powerpc/kvm/book3s_xics.c icp = kvmppc_xics_find_server(kvm, state->server); server 242 arch/powerpc/kvm/book3s_xics.c if (write_xive(xics, ics, state, state->server, state->saved_priority, server 264 arch/powerpc/kvm/book3s_xics.c write_xive(xics, ics, state, state->server, MASKED, state->priority); server 415 arch/powerpc/kvm/book3s_xics.c if (!icp || state->server != icp->server_num) { server 416 arch/powerpc/kvm/book3s_xics.c icp = kvmppc_xics_find_server(xics->kvm, state->server); server 419 arch/powerpc/kvm/book3s_xics.c new_irq, state->server); server 619 arch/powerpc/kvm/book3s_xics.c static noinline int kvmppc_h_ipi(struct kvm_vcpu *vcpu, unsigned long server, server 630 arch/powerpc/kvm/book3s_xics.c vcpu->vcpu_id, server, mfrr); server 633 arch/powerpc/kvm/book3s_xics.c local = icp->server_num == server; server 635 arch/powerpc/kvm/book3s_xics.c icp = kvmppc_xics_find_server(vcpu->kvm, server); server 704 arch/powerpc/kvm/book3s_xics.c static int kvmppc_h_ipoll(struct kvm_vcpu *vcpu, unsigned long server) server 710 arch/powerpc/kvm/book3s_xics.c if (icp->server_num != server) { server 711 arch/powerpc/kvm/book3s_xics.c icp = kvmppc_xics_find_server(vcpu->kvm, server); server 1004 arch/powerpc/kvm/book3s_xics.c irq->number, irq->server, irq->priority, server 1204 arch/powerpc/kvm/book3s_xics.c val = irqp->server; server 1243 arch/powerpc/kvm/book3s_xics.c u32 server; server 1259 arch/powerpc/kvm/book3s_xics.c server = val & KVM_XICS_DESTINATION_MASK; server 1262 arch/powerpc/kvm/book3s_xics.c kvmppc_xics_find_server(xics->kvm, server) == NULL) server 1267 arch/powerpc/kvm/book3s_xics.c irqp->server = server; server 38 arch/powerpc/kvm/book3s_xics.h u32 server; server 146 arch/powerpc/kvm/book3s_xics.h extern int xics_rm_h_ipi(struct kvm_vcpu *vcpu, unsigned long server, server 313 arch/powerpc/kvm/book3s_xive.c static void xive_inc_q_pending(struct kvm *kvm, u32 server, u8 prio) server 320 arch/powerpc/kvm/book3s_xive.c vcpu = kvmppc_xive_find_server(kvm, server); server 322 arch/powerpc/kvm/book3s_xive.c pr_warn("%s: Can't find server %d\n", __func__, server); server 353 arch/powerpc/kvm/book3s_xive.c int kvmppc_xive_select_target(struct kvm *kvm, u32 *server, u8 prio) server 359 arch/powerpc/kvm/book3s_xive.c vcpu = kvmppc_xive_find_server(kvm, *server); server 361 arch/powerpc/kvm/book3s_xive.c pr_devel("Can't find server %d\n", *server); server 365 arch/powerpc/kvm/book3s_xive.c pr_devel("Finding irq target on 0x%x/%d...\n", *server, prio); server 380 arch/powerpc/kvm/book3s_xive.c *server = vcpu->arch.xive_vcpu->server_num; server 381 arch/powerpc/kvm/book3s_xive.c pr_devel(" found on 0x%x/%d\n", *server, prio); server 530 arch/powerpc/kvm/book3s_xive.c u32 server, u8 prio) server 541 arch/powerpc/kvm/book3s_xive.c rc = kvmppc_xive_select_target(kvm, &server, prio); server 563 arch/powerpc/kvm/book3s_xive.c state->act_server = server; server 569 arch/powerpc/kvm/book3s_xive.c kvmppc_xive_vp(xive, server), server 613 arch/powerpc/kvm/book3s_xive.c int kvmppc_xive_set_xive(struct kvm *kvm, u32 irq, u32 server, server 627 arch/powerpc/kvm/book3s_xive.c irq, server, priority); server 693 arch/powerpc/kvm/book3s_xive.c (state->act_server != server || server 695 arch/powerpc/kvm/book3s_xive.c rc = xive_target_interrupt(kvm, state, server, new_act_prio); server 714 arch/powerpc/kvm/book3s_xive.c int kvmppc_xive_get_xive(struct kvm *kvm, u32 irq, u32 *server, server 730 arch/powerpc/kvm/book3s_xive.c *server = state->act_server; server 1645 arch/powerpc/kvm/book3s_xive.c u32 server; server 1671 arch/powerpc/kvm/book3s_xive.c server = val & KVM_XICS_DESTINATION_MASK; server 1675 arch/powerpc/kvm/book3s_xive.c val, server, guest_prio); server 1729 arch/powerpc/kvm/book3s_xive.c server, act_prio); server 218 arch/powerpc/kvm/book3s_xive.h static inline u32 kvmppc_xive_vp(struct kvmppc_xive *xive, u32 server) server 220 arch/powerpc/kvm/book3s_xive.h return xive->vp_base + kvmppc_pack_vcpu_id(xive->kvm, server); server 272 arch/powerpc/kvm/book3s_xive.h extern unsigned long xive_rm_h_ipoll(struct kvm_vcpu *vcpu, unsigned long server); server 273 arch/powerpc/kvm/book3s_xive.h extern int xive_rm_h_ipi(struct kvm_vcpu *vcpu, unsigned long server, server 279 arch/powerpc/kvm/book3s_xive.h extern unsigned long (*__xive_vm_h_ipoll)(struct kvm_vcpu *vcpu, unsigned long server); server 280 arch/powerpc/kvm/book3s_xive.h extern int (*__xive_vm_h_ipi)(struct kvm_vcpu *vcpu, unsigned long server, server 293 arch/powerpc/kvm/book3s_xive.h int kvmppc_xive_select_target(struct kvm *kvm, u32 *server, u8 prio); server 411 arch/powerpc/kvm/book3s_xive_native.c u32 server, u8 priority, bool masked, server 420 arch/powerpc/kvm/book3s_xive_native.c if (state->act_server == server && state->act_priority == priority && server 425 arch/powerpc/kvm/book3s_xive_native.c priority, server, masked, state->act_server, server 431 arch/powerpc/kvm/book3s_xive_native.c rc = kvmppc_xive_select_target(kvm, &server, priority); server 436 arch/powerpc/kvm/book3s_xive_native.c state->act_server = server; server 440 arch/powerpc/kvm/book3s_xive_native.c kvmppc_xive_vp(xive, server), server 463 arch/powerpc/kvm/book3s_xive_native.c u32 server; server 484 arch/powerpc/kvm/book3s_xive_native.c server = (kvm_cfg & KVM_XIVE_SOURCE_SERVER_MASK) >> server 493 arch/powerpc/kvm/book3s_xive_native.c priority, server); server 497 arch/powerpc/kvm/book3s_xive_native.c return kvmppc_xive_native_update_source_config(xive, sb, state, server, server 558 arch/powerpc/kvm/book3s_xive_native.c u32 server; server 574 arch/powerpc/kvm/book3s_xive_native.c server = (eq_idx & KVM_XIVE_EQ_SERVER_MASK) >> server 580 arch/powerpc/kvm/book3s_xive_native.c vcpu = kvmppc_xive_find_server(kvm, server); server 582 arch/powerpc/kvm/book3s_xive_native.c pr_err("Can't find server %d\n", server); server 589 arch/powerpc/kvm/book3s_xive_native.c priority, server); server 595 arch/powerpc/kvm/book3s_xive_native.c __func__, server, priority, kvm_eq.flags, server 707 arch/powerpc/kvm/book3s_xive_native.c u32 server; server 722 arch/powerpc/kvm/book3s_xive_native.c server = (eq_idx & KVM_XIVE_EQ_SERVER_MASK) >> server 725 arch/powerpc/kvm/book3s_xive_native.c vcpu = kvmppc_xive_find_server(kvm, server); server 727 arch/powerpc/kvm/book3s_xive_native.c pr_err("Can't find server %d\n", server); server 734 arch/powerpc/kvm/book3s_xive_native.c priority, server); server 762 arch/powerpc/kvm/book3s_xive_native.c __func__, server, priority, kvm_eq.flags, server 320 arch/powerpc/kvm/book3s_xive_template.c X_STATIC unsigned long GLUE(X_PFX,h_ipoll)(struct kvm_vcpu *vcpu, unsigned long server) server 326 arch/powerpc/kvm/book3s_xive_template.c pr_devel("H_IPOLL(server=%ld)\n", server); server 331 arch/powerpc/kvm/book3s_xive_template.c if (xc->server_num != server) { server 332 arch/powerpc/kvm/book3s_xive_template.c vcpu = kvmppc_xive_find_server(vcpu->kvm, server); server 603 arch/powerpc/kvm/book3s_xive_template.c X_STATIC int GLUE(X_PFX,h_ipi)(struct kvm_vcpu *vcpu, unsigned long server, server 608 arch/powerpc/kvm/book3s_xive_template.c pr_devel("H_IPI(server=%08lx,mfrr=%ld)\n", server, mfrr); server 613 arch/powerpc/kvm/book3s_xive_template.c vcpu = kvmppc_xive_find_server(vcpu->kvm, server); server 30 arch/powerpc/sysdev/xics/ics-opal.c static int ics_opal_mangle_server(int server) server 33 arch/powerpc/sysdev/xics/ics-opal.c return server << 2; server 36 arch/powerpc/sysdev/xics/ics-opal.c static int ics_opal_unmangle_server(int server) server 39 arch/powerpc/sysdev/xics/ics-opal.c return server >> 2; server 46 arch/powerpc/sysdev/xics/ics-opal.c int server; server 53 arch/powerpc/sysdev/xics/ics-opal.c server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); server 54 arch/powerpc/sysdev/xics/ics-opal.c server = ics_opal_mangle_server(server); server 56 arch/powerpc/sysdev/xics/ics-opal.c rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); server 60 arch/powerpc/sysdev/xics/ics-opal.c __func__, d->irq, hw_irq, server, rc); server 82 arch/powerpc/sysdev/xics/ics-opal.c int server = ics_opal_mangle_server(xics_default_server); server 89 arch/powerpc/sysdev/xics/ics-opal.c rc = opal_set_xive(hw_irq, server, 0xff); server 112 arch/powerpc/sysdev/xics/ics-opal.c int16_t server; server 126 arch/powerpc/sysdev/xics/ics-opal.c server = be16_to_cpu(oserver); server 134 arch/powerpc/sysdev/xics/ics-opal.c server = ics_opal_mangle_server(wanted_server); server 137 arch/powerpc/sysdev/xics/ics-opal.c d->irq, hw_irq, wanted_server, server); server 139 arch/powerpc/sysdev/xics/ics-opal.c rc = opal_set_xive(hw_irq, server, priority); server 143 arch/powerpc/sysdev/xics/ics-opal.c __func__, d->irq, hw_irq, server, rc); server 181 arch/powerpc/sysdev/xics/ics-opal.c __be16 server; server 188 arch/powerpc/sysdev/xics/ics-opal.c rc = opal_get_xive(hw_irq, &server, &priority); server 201 arch/powerpc/sysdev/xics/ics-opal.c __be16 server; server 205 arch/powerpc/sysdev/xics/ics-opal.c rc = opal_get_xive(vec, &server, &priority); server 215 arch/powerpc/sysdev/xics/ics-opal.c __be16 server; server 219 arch/powerpc/sysdev/xics/ics-opal.c rc = opal_get_xive(vec, &server, &priority); server 222 arch/powerpc/sysdev/xics/ics-opal.c return ics_opal_unmangle_server(be16_to_cpu(server)); server 44 arch/powerpc/sysdev/xics/ics-rtas.c int server; server 51 arch/powerpc/sysdev/xics/ics-rtas.c server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); server 53 arch/powerpc/sysdev/xics/ics-rtas.c call_status = rtas_call(ibm_set_xive, 3, 1, NULL, hw_irq, server, server 58 arch/powerpc/sysdev/xics/ics-rtas.c __func__, hw_irq, server, call_status); server 199 arch/powerpc/sysdev/xics/xics-common.c long server; server 222 arch/powerpc/sysdev/xics/xics-common.c server = -1; server 225 arch/powerpc/sysdev/xics/xics-common.c server = ics->get_server(ics, irq); server 226 arch/powerpc/sysdev/xics/xics-common.c if (server < 0) { server 236 arch/powerpc/sysdev/xics/xics-common.c if (server != hw_cpu) server 286 arch/powerpc/sysdev/xics/xics-common.c int server = cpumask_first_and(cpu_online_mask, cpumask); server 288 arch/powerpc/sysdev/xics/xics-common.c if (server < nr_cpu_ids) server 289 arch/powerpc/sysdev/xics/xics-common.c return get_hard_smp_processor_id(server); server 40 drivers/char/tpm/eventlog/acpi.c } server; server 73 drivers/char/tpm/eventlog/acpi.c len = buff->server.log_max_len; server 74 drivers/char/tpm/eventlog/acpi.c start = buff->server.log_start_addr; server 56 drivers/s390/block/dasd_alias.c list_for_each_entry(pos, &aliastree.serverlist, server) { server 66 drivers/s390/block/dasd_alias.c static struct alias_lcu *_find_lcu(struct alias_server *server, server 70 drivers/s390/block/dasd_alias.c list_for_each_entry(pos, &server->lculist, lcu) { server 107 drivers/s390/block/dasd_alias.c struct alias_server *server; server 109 drivers/s390/block/dasd_alias.c server = kzalloc(sizeof(*server), GFP_KERNEL); server 110 drivers/s390/block/dasd_alias.c if (!server) server 112 drivers/s390/block/dasd_alias.c memcpy(server->uid.vendor, uid->vendor, sizeof(uid->vendor)); server 113 drivers/s390/block/dasd_alias.c memcpy(server->uid.serial, uid->serial, sizeof(uid->serial)); server 114 drivers/s390/block/dasd_alias.c INIT_LIST_HEAD(&server->server); server 115 drivers/s390/block/dasd_alias.c INIT_LIST_HEAD(&server->lculist); server 116 drivers/s390/block/dasd_alias.c return server; server 119 drivers/s390/block/dasd_alias.c static void _free_server(struct alias_server *server) server 121 drivers/s390/block/dasd_alias.c kfree(server); server 191 drivers/s390/block/dasd_alias.c struct alias_server *server, *newserver; server 197 drivers/s390/block/dasd_alias.c server = _find_server(&uid); server 198 drivers/s390/block/dasd_alias.c if (!server) { server 204 drivers/s390/block/dasd_alias.c server = _find_server(&uid); server 205 drivers/s390/block/dasd_alias.c if (!server) { server 206 drivers/s390/block/dasd_alias.c list_add(&newserver->server, &aliastree.serverlist); server 207 drivers/s390/block/dasd_alias.c server = newserver; server 214 drivers/s390/block/dasd_alias.c lcu = _find_lcu(server, &uid); server 221 drivers/s390/block/dasd_alias.c lcu = _find_lcu(server, &uid); server 223 drivers/s390/block/dasd_alias.c list_add(&newlcu->lcu, &server->lculist); server 249 drivers/s390/block/dasd_alias.c struct alias_server *server; server 298 drivers/s390/block/dasd_alias.c server = _find_server(&uid); server 299 drivers/s390/block/dasd_alias.c if (server && list_empty(&server->lculist)) { server 300 drivers/s390/block/dasd_alias.c list_del(&server->server); server 301 drivers/s390/block/dasd_alias.c _free_server(server); server 612 drivers/s390/block/dasd_eckd.h struct list_head server; server 246 drivers/scsi/iscsi_boot_sysfs.c iscsi_boot_rd_attr(ini_isns, isns-server, ISCSI_BOOT_INI_ISNS_SERVER); server 247 drivers/scsi/iscsi_boot_sysfs.c iscsi_boot_rd_attr(ini_slp, slp-server, ISCSI_BOOT_INI_SLP_SERVER); server 248 drivers/scsi/iscsi_boot_sysfs.c iscsi_boot_rd_attr(ini_primary_radius, pri-radius-server, server 250 drivers/scsi/iscsi_boot_sysfs.c iscsi_boot_rd_attr(ini_secondary_radius, sec-radius-server, server 146 drivers/soc/qcom/qmi_interface.c le32_to_cpu(pkt->server.service), server 147 drivers/soc/qcom/qmi_interface.c le32_to_cpu(pkt->server.instance), server 148 drivers/soc/qcom/qmi_interface.c le32_to_cpu(pkt->server.node), server 149 drivers/soc/qcom/qmi_interface.c le32_to_cpu(pkt->server.port)); server 153 drivers/soc/qcom/qmi_interface.c le32_to_cpu(pkt->server.node), server 154 drivers/soc/qcom/qmi_interface.c le32_to_cpu(pkt->server.port)); server 174 drivers/soc/qcom/qmi_interface.c pkt.server.service = cpu_to_le32(svc->service); server 175 drivers/soc/qcom/qmi_interface.c pkt.server.instance = cpu_to_le32(svc->version | svc->instance << 8); server 237 drivers/soc/qcom/qmi_interface.c pkt.server.service = cpu_to_le32(svc->service); server 238 drivers/soc/qcom/qmi_interface.c pkt.server.instance = cpu_to_le32(svc->version | svc->instance << 8); server 239 drivers/soc/qcom/qmi_interface.c pkt.server.node = cpu_to_le32(qmi->sq.sq_node); server 240 drivers/soc/qcom/qmi_interface.c pkt.server.port = cpu_to_le32(qmi->sq.sq_port); server 225 drivers/visorbus/controlvmchannel.h u32 server:1; server 125 fs/afs/addr_list.c vllist->servers[0].server = afs_alloc_vlserver("<dummy>", 7, AFS_VL_PORT); server 126 fs/afs/addr_list.c if (!vllist->servers[0].server) server 206 fs/afs/addr_list.c rcu_assign_pointer(vllist->servers[0].server->addresses, alist); server 26 fs/afs/callback.c static struct afs_cb_interest *afs_create_interest(struct afs_server *server, server 51 fs/afs/callback.c new->server = afs_get_server(server, afs_server_trace_get_new_cbi); server 54 fs/afs/callback.c write_lock(&server->cb_break_lock); server 56 fs/afs/callback.c for (pp = &server->cb_volumes.first; *pp; pp = &(*pp)->next) { server 78 fs/afs/callback.c write_unlock(&server->cb_break_lock); server 94 fs/afs/callback.c struct afs_server *server = entry->server; server 115 fs/afs/callback.c if (cbi && vcbi->server == cbi->server) { server 126 fs/afs/callback.c if (!cbi && vcbi->server == server) { server 141 fs/afs/callback.c new = afs_create_interest(server, vnode); server 167 fs/afs/callback.c vnode->cb_s_break = cbi->server->cb_s_break; server 185 fs/afs/callback.c write_lock(&cbi->server->cb_break_lock); server 195 fs/afs/callback.c write_unlock(&cbi->server->cb_break_lock); server 198 fs/afs/callback.c afs_put_server(net, cbi->server, afs_server_trace_put_cbi); server 207 fs/afs/callback.c void afs_init_callback_state(struct afs_server *server) server 209 fs/afs/callback.c server->cb_s_break++; server 246 fs/afs/callback.c static void afs_break_one_callback(struct afs_server *server, server 255 fs/afs/callback.c read_lock(&server->cb_break_lock); server 256 fs/afs/callback.c hlist_for_each_entry(vi, &server->cb_volumes, srv_link) { server 303 fs/afs/callback.c read_unlock(&server->cb_break_lock); server 309 fs/afs/callback.c void afs_break_callbacks(struct afs_server *server, size_t count, server 312 fs/afs/callback.c _enter("%p,%zu,", server, count); server 314 fs/afs/callback.c ASSERT(server != NULL); server 323 fs/afs/callback.c afs_break_one_callback(server, &callbacks->fid); server 155 fs/afs/cmservice.c static int afs_record_cm_probe(struct afs_call *call, struct afs_server *server) server 159 fs/afs/cmservice.c if (test_bit(AFS_SERVER_FL_HAVE_EPOCH, &server->flags) && server 160 fs/afs/cmservice.c !test_bit(AFS_SERVER_FL_PROBING, &server->flags)) { server 161 fs/afs/cmservice.c if (server->cm_epoch == call->epoch) server 164 fs/afs/cmservice.c if (!server->probe.said_rebooted) { server 165 fs/afs/cmservice.c pr_notice("kAFS: FS rebooted %pU\n", &server->uuid); server 166 fs/afs/cmservice.c server->probe.said_rebooted = true; server 170 fs/afs/cmservice.c spin_lock(&server->probe_lock); server 172 fs/afs/cmservice.c if (!test_and_set_bit(AFS_SERVER_FL_HAVE_EPOCH, &server->flags)) { server 173 fs/afs/cmservice.c server->cm_epoch = call->epoch; server 174 fs/afs/cmservice.c server->probe.cm_epoch = call->epoch; server 178 fs/afs/cmservice.c if (server->probe.cm_probed && server 179 fs/afs/cmservice.c call->epoch != server->probe.cm_epoch && server 180 fs/afs/cmservice.c !server->probe.said_inconsistent) { server 182 fs/afs/cmservice.c &server->uuid); server 183 fs/afs/cmservice.c server->probe.said_inconsistent = true; server 186 fs/afs/cmservice.c if (!server->probe.cm_probed || call->epoch == server->cm_epoch) server 187 fs/afs/cmservice.c server->probe.cm_epoch = server->cm_epoch; server 190 fs/afs/cmservice.c server->probe.cm_probed = true; server 191 fs/afs/cmservice.c spin_unlock(&server->probe_lock); server 202 fs/afs/cmservice.c struct afs_server *server; server 206 fs/afs/cmservice.c server = afs_find_server(call->net, &srx); server 207 fs/afs/cmservice.c if (!server) { server 212 fs/afs/cmservice.c call->server = server; server 213 fs/afs/cmservice.c return afs_record_cm_probe(call, server); server 223 fs/afs/cmservice.c struct afs_server *server; server 226 fs/afs/cmservice.c server = afs_find_server_by_uuid(call->net, call->request); server 228 fs/afs/cmservice.c if (!server) { server 233 fs/afs/cmservice.c call->server = server; server 234 fs/afs/cmservice.c return afs_record_cm_probe(call, server); server 270 fs/afs/cmservice.c if (call->server) { server 271 fs/afs/cmservice.c trace_afs_server(call->server, atomic_read(&call->server->usage), server 273 fs/afs/cmservice.c afs_break_callbacks(call->server, call->count, call->request); server 389 fs/afs/cmservice.c _enter("{%p}", call->server); server 391 fs/afs/cmservice.c if (call->server) server 392 fs/afs/cmservice.c afs_init_callback_state(call->server); server 647 fs/afs/dir.c struct afs_server *server; server 667 fs/afs/dir.c server = dcbi->server; server 668 fs/afs/dir.c if (server && server 669 fs/afs/dir.c test_bit(AFS_SERVER_FL_NO_IBULK, &server->flags)) server 739 fs/afs/dir.c &fc.cbi->server->flags)) { server 745 fs/afs/dir.c iget_data.cb_s_break = fc.cbi->server->cb_s_break; server 756 fs/afs/dir.c set_bit(AFS_SERVER_FL_NO_IBULK, &fc.cbi->server->flags); server 774 fs/afs/dir.c iget_data.cb_s_break = fc.cbi->server->cb_s_break; server 1251 fs/afs/dir.c iget_data->cb_s_break = fc->cbi->server->cb_s_break; server 1535 fs/afs/dir.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc.cbi->server->flags) && server 1536 fs/afs/dir.c !test_bit(AFS_SERVER_FL_NO_RM2, &fc.cbi->server->flags)) { server 1542 fs/afs/dir.c set_bit(AFS_SERVER_FL_NO_RM2, &fc.cbi->server->flags); server 165 fs/afs/dir_silly.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc.cbi->server->flags) && server 166 fs/afs/dir_silly.c !test_bit(AFS_SERVER_FL_NO_RM2, &fc.cbi->server->flags)) { server 172 fs/afs/dir_silly.c set_bit(AFS_SERVER_FL_NO_RM2, &fc.cbi->server->flags); server 14 fs/afs/fs_probe.c static bool afs_fs_probe_done(struct afs_server *server) server 16 fs/afs/fs_probe.c if (!atomic_dec_and_test(&server->probe_outstanding)) server 19 fs/afs/fs_probe.c wake_up_var(&server->probe_outstanding); server 20 fs/afs/fs_probe.c clear_bit_unlock(AFS_SERVER_FL_PROBING, &server->flags); server 21 fs/afs/fs_probe.c wake_up_bit(&server->flags, AFS_SERVER_FL_PROBING); server 32 fs/afs/fs_probe.c struct afs_server *server = call->server; server 39 fs/afs/fs_probe.c _enter("%pU,%u", &server->uuid, index); server 41 fs/afs/fs_probe.c spin_lock(&server->probe_lock); server 45 fs/afs/fs_probe.c server->probe.error = 0; server 48 fs/afs/fs_probe.c if (!server->probe.responded) { server 49 fs/afs/fs_probe.c server->probe.abort_code = call->abort_code; server 50 fs/afs/fs_probe.c server->probe.error = ret; server 55 fs/afs/fs_probe.c server->probe.local_failure = true; server 70 fs/afs/fs_probe.c if (!server->probe.responded && server 71 fs/afs/fs_probe.c (server->probe.error == 0 || server 72 fs/afs/fs_probe.c server->probe.error == -ETIMEDOUT || server 73 fs/afs/fs_probe.c server->probe.error == -ETIME)) server 74 fs/afs/fs_probe.c server->probe.error = ret; server 84 fs/afs/fs_probe.c server->probe.is_yfs = true; server 85 fs/afs/fs_probe.c set_bit(AFS_SERVER_FL_IS_YFS, &server->flags); server 88 fs/afs/fs_probe.c server->probe.not_yfs = true; server 89 fs/afs/fs_probe.c if (!server->probe.is_yfs) { server 90 fs/afs/fs_probe.c clear_bit(AFS_SERVER_FL_IS_YFS, &server->flags); server 96 fs/afs/fs_probe.c if (rtt_us < server->probe.rtt) { server 97 fs/afs/fs_probe.c server->probe.rtt = rtt_us; server 103 fs/afs/fs_probe.c server->probe.responded = true; server 104 fs/afs/fs_probe.c set_bit(AFS_SERVER_FL_PROBED, &server->flags); server 106 fs/afs/fs_probe.c spin_unlock(&server->probe_lock); server 111 fs/afs/fs_probe.c have_result |= afs_fs_probe_done(server); server 113 fs/afs/fs_probe.c server->probe.have_result = true; server 114 fs/afs/fs_probe.c wake_up_var(&server->probe.have_result); server 115 fs/afs/fs_probe.c wake_up_all(&server->probe_wq); server 124 fs/afs/fs_probe.c struct afs_server *server, server 135 fs/afs/fs_probe.c _enter("%pU", &server->uuid); server 137 fs/afs/fs_probe.c read_lock(&server->fs_lock); server 138 fs/afs/fs_probe.c ac.alist = rcu_dereference_protected(server->addresses, server 139 fs/afs/fs_probe.c lockdep_is_held(&server->fs_lock)); server 141 fs/afs/fs_probe.c read_unlock(&server->fs_lock); server 143 fs/afs/fs_probe.c atomic_set(&server->probe_outstanding, ac.alist->nr_addrs); server 144 fs/afs/fs_probe.c memset(&server->probe, 0, sizeof(server->probe)); server 145 fs/afs/fs_probe.c server->probe.rtt = UINT_MAX; server 148 fs/afs/fs_probe.c call = afs_fs_get_capabilities(net, server, &ac, key, server_index); server 158 fs/afs/fs_probe.c afs_fs_probe_done(server); server 169 fs/afs/fs_probe.c struct afs_server *server; server 177 fs/afs/fs_probe.c server = list->servers[i].server; server 178 fs/afs/fs_probe.c if (test_bit(AFS_SERVER_FL_PROBED, &server->flags)) server 181 fs/afs/fs_probe.c if (!test_and_set_bit_lock(AFS_SERVER_FL_PROBING, &server->flags) && server 182 fs/afs/fs_probe.c afs_do_probe_fileserver(net, server, key, i, &e)) server 195 fs/afs/fs_probe.c struct afs_server *server; server 205 fs/afs/fs_probe.c server = slist->servers[i].server; server 206 fs/afs/fs_probe.c if (!test_bit(AFS_SERVER_FL_PROBING, &server->flags)) server 208 fs/afs/fs_probe.c if (server->probe.responded) server 221 fs/afs/fs_probe.c server = slist->servers[i].server; server 223 fs/afs/fs_probe.c add_wait_queue(&server->probe_wq, &waits[i]); server 233 fs/afs/fs_probe.c server = slist->servers[i].server; server 234 fs/afs/fs_probe.c if (server->probe.responded) server 236 fs/afs/fs_probe.c if (test_bit(AFS_SERVER_FL_PROBING, &server->flags)) server 251 fs/afs/fs_probe.c server = slist->servers[i].server; server 252 fs/afs/fs_probe.c if (server->probe.responded && server 253 fs/afs/fs_probe.c server->probe.rtt < rtt) { server 255 fs/afs/fs_probe.c rtt = server->probe.rtt; server 258 fs/afs/fs_probe.c remove_wait_queue(&server->probe_wq, &waits[i]); server 288 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 531 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 628 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)){ server 734 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 825 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 921 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 1033 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 1208 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 1430 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 1614 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 1704 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 1742 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 1779 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 1828 fs/afs/fsclient.c struct afs_server *server, server 1914 fs/afs/fsclient.c struct afs_server *server, server 1929 fs/afs/fsclient.c call->server = afs_get_server(server, afs_server_trace_get_caps); server 1991 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 2158 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) server 595 fs/afs/inode.c struct afs_server *server; server 610 fs/afs/inode.c server = rcu_dereference(cbi->server); server 611 fs/afs/inode.c cb_s_break = READ_ONCE(server->cb_s_break); server 112 fs/afs/internal.h struct afs_server *server; /* The fileserver record if fs op (pins ref) */ server 443 fs/afs/internal.h struct afs_vlserver *server; server 567 fs/afs/internal.h struct afs_server *server; /* Server on which this interest resides */ server 580 fs/afs/internal.h struct afs_server *server; server 750 fs/afs/internal.h struct afs_vlserver *server; /* Server on which this resides */ server 301 fs/afs/proc.c vlserver = entry->server; server 375 fs/afs/proc.c struct afs_server *server; server 384 fs/afs/proc.c server = list_entry(v, struct afs_server, proc_link); server 385 fs/afs/proc.c alist = rcu_dereference(server->addresses); server 387 fs/afs/proc.c &server->uuid, server 388 fs/afs/proc.c atomic_read(&server->usage), server 143 fs/afs/rotate.c struct afs_server *server; server 378 fs/afs/rotate.c struct afs_server *s = fc->server_list->servers[i].server; server 400 fs/afs/rotate.c server = fc->server_list->servers[fc->index].server; server 402 fs/afs/rotate.c if (!afs_check_server_record(fc, server)) server 405 fs/afs/rotate.c _debug("USING SERVER: %pU", &server->uuid); server 421 fs/afs/rotate.c read_lock(&server->fs_lock); server 422 fs/afs/rotate.c alist = rcu_dereference_protected(server->addresses, server 423 fs/afs/rotate.c lockdep_is_held(&server->fs_lock)); server 425 fs/afs/rotate.c read_unlock(&server->fs_lock); server 464 fs/afs/rotate.c struct afs_server *s = fc->server_list->servers[i].server; server 508 fs/afs/rotate.c read_lock(&cbi->server->fs_lock); server 509 fs/afs/rotate.c alist = rcu_dereference_protected(cbi->server->addresses, server 510 fs/afs/rotate.c lockdep_is_held(&cbi->server->fs_lock)); server 512 fs/afs/rotate.c read_unlock(&cbi->server->fs_lock); server 589 fs/afs/rotate.c const struct afs_server *s = sl->servers[i].server; server 186 fs/afs/rxrpc.c afs_put_server(call->net, call->server, afs_server_trace_put_call); server 549 fs/afs/rxrpc.c &call->cbi->server->flags); server 36 fs/afs/server.c struct afs_server *server = NULL; server 43 fs/afs/server.c if (server) server 44 fs/afs/server.c afs_put_server(net, server, afs_server_trace_put_find_rsq); server 45 fs/afs/server.c server = NULL; server 50 fs/afs/server.c hlist_for_each_entry_rcu(server, &net->fs_addresses6, addr6_link) { server 51 fs/afs/server.c alist = rcu_dereference(server->addresses); server 66 fs/afs/server.c hlist_for_each_entry_rcu(server, &net->fs_addresses4, addr4_link) { server 67 fs/afs/server.c alist = rcu_dereference(server->addresses); server 81 fs/afs/server.c server = NULL; server 83 fs/afs/server.c if (server && !atomic_inc_not_zero(&server->usage)) server 84 fs/afs/server.c server = NULL; server 91 fs/afs/server.c return server; server 99 fs/afs/server.c struct afs_server *server = NULL; server 110 fs/afs/server.c if (server) server 111 fs/afs/server.c afs_put_server(net, server, afs_server_trace_put_uuid_rsq); server 112 fs/afs/server.c server = NULL; server 118 fs/afs/server.c server = rb_entry(p, struct afs_server, uuid_rb); server 120 fs/afs/server.c diff = memcmp(uuid, &server->uuid, sizeof(*uuid)); server 126 fs/afs/server.c afs_get_server(server, afs_server_trace_get_by_uuid); server 130 fs/afs/server.c server = NULL; server 136 fs/afs/server.c _leave(" = %p", server); server 137 fs/afs/server.c return server; server 147 fs/afs/server.c struct afs_server *server; server 161 fs/afs/server.c server = rb_entry(p, struct afs_server, uuid_rb); server 162 fs/afs/server.c diff = memcmp(&candidate->uuid, &server->uuid, sizeof(uuid_t)); server 171 fs/afs/server.c server = candidate; server 172 fs/afs/server.c rb_link_node(&server->uuid_rb, p, pp); server 173 fs/afs/server.c rb_insert_color(&server->uuid_rb, &net->fs_servers); server 174 fs/afs/server.c hlist_add_head_rcu(&server->proc_link, &net->fs_proc); server 177 fs/afs/server.c alist = rcu_dereference_protected(server->addresses, server 189 fs/afs/server.c hlist_add_head_rcu(&server->addr4_link, &net->fs_addresses4); server 191 fs/afs/server.c hlist_add_head_rcu(&server->addr6_link, &net->fs_addresses6); server 197 fs/afs/server.c afs_get_server(server, afs_server_trace_get_install); server 199 fs/afs/server.c return server; server 209 fs/afs/server.c struct afs_server *server; server 213 fs/afs/server.c server = kzalloc(sizeof(struct afs_server), GFP_KERNEL); server 214 fs/afs/server.c if (!server) server 217 fs/afs/server.c atomic_set(&server->usage, 1); server 218 fs/afs/server.c server->debug_id = atomic_inc_return(&afs_server_debug_id); server 219 fs/afs/server.c RCU_INIT_POINTER(server->addresses, alist); server 220 fs/afs/server.c server->addr_version = alist->version; server 221 fs/afs/server.c server->uuid = *uuid; server 222 fs/afs/server.c server->update_at = ktime_get_real_seconds() + afs_server_update_delay; server 223 fs/afs/server.c rwlock_init(&server->fs_lock); server 224 fs/afs/server.c INIT_HLIST_HEAD(&server->cb_volumes); server 225 fs/afs/server.c rwlock_init(&server->cb_break_lock); server 226 fs/afs/server.c init_waitqueue_head(&server->probe_wq); server 227 fs/afs/server.c spin_lock_init(&server->probe_lock); server 230 fs/afs/server.c trace_afs_server(server, 1, afs_server_trace_alloc); server 231 fs/afs/server.c _leave(" = %p", server); server 232 fs/afs/server.c return server; server 252 fs/afs/server.c if (test_bit(AFS_VLSERVER_FL_IS_YFS, &vc.server->flags)) server 271 fs/afs/server.c struct afs_server *server, *candidate; server 275 fs/afs/server.c server = afs_find_server_by_uuid(cell->net, uuid); server 276 fs/afs/server.c if (server) server 277 fs/afs/server.c return server; server 289 fs/afs/server.c server = afs_install_server(cell->net, candidate); server 290 fs/afs/server.c if (server != candidate) { server 295 fs/afs/server.c _leave(" = %p{%d}", server, atomic_read(&server->usage)); server 296 fs/afs/server.c return server; server 328 fs/afs/server.c struct afs_server *afs_get_server(struct afs_server *server, server 331 fs/afs/server.c unsigned int u = atomic_inc_return(&server->usage); server 333 fs/afs/server.c trace_afs_server(server, u, reason); server 334 fs/afs/server.c return server; server 340 fs/afs/server.c void afs_put_server(struct afs_net *net, struct afs_server *server, server 345 fs/afs/server.c if (!server) server 348 fs/afs/server.c server->put_time = ktime_get_real_seconds(); server 350 fs/afs/server.c usage = atomic_dec_return(&server->usage); server 352 fs/afs/server.c trace_afs_server(server, usage, reason); server 362 fs/afs/server.c struct afs_server *server = container_of(rcu, struct afs_server, rcu); server 364 fs/afs/server.c trace_afs_server(server, atomic_read(&server->usage), server 366 fs/afs/server.c afs_put_addrlist(rcu_access_pointer(server->addresses)); server 367 fs/afs/server.c kfree(server); server 373 fs/afs/server.c static void afs_destroy_server(struct afs_net *net, struct afs_server *server) server 375 fs/afs/server.c struct afs_addr_list *alist = rcu_access_pointer(server->addresses); server 382 fs/afs/server.c trace_afs_server(server, atomic_read(&server->usage), server 385 fs/afs/server.c if (test_bit(AFS_SERVER_FL_MAY_HAVE_CB, &server->flags)) server 386 fs/afs/server.c afs_fs_give_up_all_callbacks(net, server, &ac, NULL); server 388 fs/afs/server.c wait_var_event(&server->probe_outstanding, server 389 fs/afs/server.c atomic_read(&server->probe_outstanding) == 0); server 391 fs/afs/server.c trace_afs_server(server, atomic_read(&server->usage), server 393 fs/afs/server.c call_rcu(&server->rcu, afs_server_rcu); server 402 fs/afs/server.c struct afs_server *server; server 406 fs/afs/server.c while ((server = gc_list)) { server 407 fs/afs/server.c gc_list = server->gc_next; server 411 fs/afs/server.c deleted = atomic_try_cmpxchg(&server->usage, &usage, 0); server 412 fs/afs/server.c trace_afs_server(server, usage, afs_server_trace_gc); server 414 fs/afs/server.c rb_erase(&server->uuid_rb, &net->fs_servers); server 415 fs/afs/server.c hlist_del_rcu(&server->proc_link); server 421 fs/afs/server.c if (!hlist_unhashed(&server->addr4_link)) server 422 fs/afs/server.c hlist_del_rcu(&server->addr4_link); server 423 fs/afs/server.c if (!hlist_unhashed(&server->addr6_link)) server 424 fs/afs/server.c hlist_del_rcu(&server->addr6_link); server 426 fs/afs/server.c afs_destroy_server(net, server); server 454 fs/afs/server.c struct afs_server *server = server 456 fs/afs/server.c int usage = atomic_read(&server->usage); server 458 fs/afs/server.c _debug("manage %pU %u", &server->uuid, usage); server 464 fs/afs/server.c time64_t expire_at = server->put_time; server 466 fs/afs/server.c if (!test_bit(AFS_SERVER_FL_VL_FAIL, &server->flags) && server 467 fs/afs/server.c !test_bit(AFS_SERVER_FL_NOT_FOUND, &server->flags)) server 470 fs/afs/server.c server->gc_next = gc_list; server 471 fs/afs/server.c gc_list = server; server 529 fs/afs/server.c static noinline bool afs_update_server_record(struct afs_fs_cursor *fc, struct afs_server *server) server 535 fs/afs/server.c trace_afs_server(server, atomic_read(&server->usage), afs_server_trace_update); server 538 fs/afs/server.c &server->uuid); server 543 fs/afs/server.c server->addresses) { server 553 fs/afs/server.c if (server->addr_version != alist->version) { server 554 fs/afs/server.c write_lock(&server->fs_lock); server 555 fs/afs/server.c discard = rcu_dereference_protected(server->addresses, server 556 fs/afs/server.c lockdep_is_held(&server->fs_lock)); server 557 fs/afs/server.c rcu_assign_pointer(server->addresses, alist); server 558 fs/afs/server.c server->addr_version = alist->version; server 559 fs/afs/server.c write_unlock(&server->fs_lock); server 562 fs/afs/server.c server->update_at = ktime_get_real_seconds() + afs_server_update_delay; server 571 fs/afs/server.c bool afs_check_server_record(struct afs_fs_cursor *fc, struct afs_server *server) server 580 fs/afs/server.c ASSERT(server); server 583 fs/afs/server.c diff = READ_ONCE(server->update_at) - now; server 589 fs/afs/server.c if (!test_and_set_bit_lock(AFS_SERVER_FL_UPDATING, &server->flags)) { server 590 fs/afs/server.c success = afs_update_server_record(fc, server); server 591 fs/afs/server.c clear_bit_unlock(AFS_SERVER_FL_UPDATING, &server->flags); server 592 fs/afs/server.c wake_up_bit(&server->flags, AFS_SERVER_FL_UPDATING); server 597 fs/afs/server.c ret = wait_on_bit(&server->flags, AFS_SERVER_FL_UPDATING, server 19 fs/afs/server_list.c afs_put_server(net, slist->servers[i].server, server 35 fs/afs/server_list.c struct afs_server *server; server 54 fs/afs/server_list.c server = afs_lookup_server(cell, key, &vldb->fs_server[i]); server 55 fs/afs/server_list.c if (IS_ERR(server)) { server 56 fs/afs/server_list.c ret = PTR_ERR(server); server 65 fs/afs/server_list.c if (memcmp(&slist->servers[j].server->uuid, server 66 fs/afs/server_list.c &server->uuid, server 67 fs/afs/server_list.c sizeof(server->uuid)) >= 0) server 70 fs/afs/server_list.c if (slist->servers[j].server == server) { server 71 fs/afs/server_list.c afs_put_server(cell->net, server, server 81 fs/afs/server_list.c slist->servers[j].server = server; server 111 fs/afs/server_list.c if (old->servers[i].server != new->servers[i].server) server 118 fs/afs/server_list.c cur = old->servers[old->preferred].server; server 120 fs/afs/server_list.c if (new->servers[j].server == cur) { server 132 fs/afs/server_list.c if (new->servers[j].server == old->servers[i].server) { server 143 fs/afs/server_list.c if (new->servers[j].server < old->servers[i].server) { server 73 fs/afs/vl_list.c afs_put_vlserver(net, vllist->servers[i].server); server 164 fs/afs/vl_list.c struct afs_vlserver *server; server 232 fs/afs/vl_list.c server = NULL; server 234 fs/afs/vl_list.c struct afs_vlserver *p = previous->servers[i].server; server 239 fs/afs/vl_list.c server = afs_get_vlserver(p); server 244 fs/afs/vl_list.c if (!server) { server 246 fs/afs/vl_list.c server = afs_alloc_vlserver(b, bs.name_len, bs.port); server 247 fs/afs/vl_list.c if (!server) server 265 fs/afs/vl_list.c afs_put_vlserver(cell->net, server); server 274 fs/afs/vl_list.c if (!rcu_access_pointer(server->addresses)) { server 275 fs/afs/vl_list.c afs_put_vlserver(cell->net, server); server 281 fs/afs/vl_list.c write_lock(&server->lock); server 282 fs/afs/vl_list.c rcu_swap_protected(server->addresses, old, server 283 fs/afs/vl_list.c lockdep_is_held(&server->lock)); server 284 fs/afs/vl_list.c write_unlock(&server->lock); server 306 fs/afs/vl_list.c clear_bit(AFS_VLSERVER_FL_PROBED, &server->flags); server 310 fs/afs/vl_list.c vllist->servers[j].server = server; server 324 fs/afs/vl_list.c afs_put_vlserver(cell->net, server); server 14 fs/afs/vl_probe.c static bool afs_vl_probe_done(struct afs_vlserver *server) server 16 fs/afs/vl_probe.c if (!atomic_dec_and_test(&server->probe_outstanding)) server 19 fs/afs/vl_probe.c wake_up_var(&server->probe_outstanding); server 20 fs/afs/vl_probe.c clear_bit_unlock(AFS_VLSERVER_FL_PROBING, &server->flags); server 21 fs/afs/vl_probe.c wake_up_bit(&server->flags, AFS_VLSERVER_FL_PROBING); server 32 fs/afs/vl_probe.c struct afs_vlserver *server = call->vlserver; server 39 fs/afs/vl_probe.c _enter("%s,%u,%u,%d,%d", server->name, server_index, index, ret, call->abort_code); server 41 fs/afs/vl_probe.c spin_lock(&server->probe_lock); server 45 fs/afs/vl_probe.c server->probe.error = 0; server 48 fs/afs/vl_probe.c if (!server->probe.responded) { server 49 fs/afs/vl_probe.c server->probe.abort_code = call->abort_code; server 50 fs/afs/vl_probe.c server->probe.error = ret; server 55 fs/afs/vl_probe.c server->probe.local_failure = true; server 70 fs/afs/vl_probe.c if (!server->probe.responded && server 71 fs/afs/vl_probe.c (server->probe.error == 0 || server 72 fs/afs/vl_probe.c server->probe.error == -ETIMEDOUT || server 73 fs/afs/vl_probe.c server->probe.error == -ETIME)) server 74 fs/afs/vl_probe.c server->probe.error = ret; server 84 fs/afs/vl_probe.c server->probe.is_yfs = true; server 85 fs/afs/vl_probe.c set_bit(AFS_VLSERVER_FL_IS_YFS, &server->flags); server 88 fs/afs/vl_probe.c server->probe.not_yfs = true; server 89 fs/afs/vl_probe.c if (!server->probe.is_yfs) { server 90 fs/afs/vl_probe.c clear_bit(AFS_VLSERVER_FL_IS_YFS, &server->flags); server 96 fs/afs/vl_probe.c if (rtt_us < server->probe.rtt) { server 97 fs/afs/vl_probe.c server->probe.rtt = rtt_us; server 103 fs/afs/vl_probe.c server->probe.responded = true; server 104 fs/afs/vl_probe.c set_bit(AFS_VLSERVER_FL_PROBED, &server->flags); server 106 fs/afs/vl_probe.c spin_unlock(&server->probe_lock); server 111 fs/afs/vl_probe.c have_result |= afs_vl_probe_done(server); server 113 fs/afs/vl_probe.c server->probe.have_result = true; server 114 fs/afs/vl_probe.c wake_up_var(&server->probe.have_result); server 115 fs/afs/vl_probe.c wake_up_all(&server->probe_wq); server 124 fs/afs/vl_probe.c struct afs_vlserver *server, server 135 fs/afs/vl_probe.c _enter("%s", server->name); server 137 fs/afs/vl_probe.c read_lock(&server->lock); server 138 fs/afs/vl_probe.c ac.alist = rcu_dereference_protected(server->addresses, server 139 fs/afs/vl_probe.c lockdep_is_held(&server->lock)); server 140 fs/afs/vl_probe.c read_unlock(&server->lock); server 142 fs/afs/vl_probe.c atomic_set(&server->probe_outstanding, ac.alist->nr_addrs); server 143 fs/afs/vl_probe.c memset(&server->probe, 0, sizeof(server->probe)); server 144 fs/afs/vl_probe.c server->probe.rtt = UINT_MAX; server 147 fs/afs/vl_probe.c call = afs_vl_get_capabilities(net, &ac, key, server, server 158 fs/afs/vl_probe.c afs_vl_probe_done(server); server 168 fs/afs/vl_probe.c struct afs_vlserver *server; server 176 fs/afs/vl_probe.c server = vllist->servers[i].server; server 177 fs/afs/vl_probe.c if (test_bit(AFS_VLSERVER_FL_PROBED, &server->flags)) server 180 fs/afs/vl_probe.c if (!test_and_set_bit_lock(AFS_VLSERVER_FL_PROBING, &server->flags) && server 181 fs/afs/vl_probe.c afs_do_probe_vlserver(net, server, key, i, &e)) server 195 fs/afs/vl_probe.c struct afs_vlserver *server; server 205 fs/afs/vl_probe.c server = vllist->servers[i].server; server 206 fs/afs/vl_probe.c if (!test_bit(AFS_VLSERVER_FL_PROBING, &server->flags)) server 208 fs/afs/vl_probe.c if (server->probe.responded) server 221 fs/afs/vl_probe.c server = vllist->servers[i].server; server 223 fs/afs/vl_probe.c add_wait_queue(&server->probe_wq, &waits[i]); server 233 fs/afs/vl_probe.c server = vllist->servers[i].server; server 234 fs/afs/vl_probe.c if (server->probe.responded) server 236 fs/afs/vl_probe.c if (test_bit(AFS_VLSERVER_FL_PROBING, &server->flags)) server 251 fs/afs/vl_probe.c server = vllist->servers[i].server; server 252 fs/afs/vl_probe.c if (server->probe.responded && server 253 fs/afs/vl_probe.c server->probe.rtt < rtt) { server 255 fs/afs/vl_probe.c rtt = server->probe.rtt; server 258 fs/afs/vl_probe.c remove_wait_queue(&server->probe_wq, &waits[i]); server 189 fs/afs/vl_rotate.c struct afs_vlserver *s = vc->server_list->servers[i].server; server 211 fs/afs/vl_rotate.c vlserver = vc->server_list->servers[vc->index].server; server 212 fs/afs/vl_rotate.c vc->server = vlserver; server 259 fs/afs/vl_rotate.c struct afs_vlserver *s = vc->server_list->servers[i].server; server 296 fs/afs/vl_rotate.c const struct afs_vlserver *s = sl->servers[i].server; server 382 fs/afs/vlclient.c struct afs_vlserver *server, server 395 fs/afs/vlclient.c call->vlserver = afs_get_vlserver(server); server 484 fs/cifs/asn1.c struct TCP_Server_Info *server) server 588 fs/cifs/asn1.c server->sec_mskerberos = true; server 591 fs/cifs/asn1.c server->sec_kerberosu2u = true; server 594 fs/cifs/asn1.c server->sec_kerberos = true; server 597 fs/cifs/asn1.c server->sec_ntlmssp = true; server 35 fs/cifs/cifs_debug.c void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) server 44 fs/cifs/cifs_debug.c server->ops->calc_smb_size(smb, server)); server 48 fs/cifs/cifs_debug.c void cifs_dump_mids(struct TCP_Server_Info *server) server 54 fs/cifs/cifs_debug.c if (server == NULL) server 59 fs/cifs/cifs_debug.c list_for_each(tmp, &server->pending_mid_q) { server 77 fs/cifs/cifs_debug.c cifs_dump_detail(mid_entry->resp_buf, server); server 116 fs/cifs/cifs_debug.c if (tcon->ses->server->ops->dump_share_caps) server 117 fs/cifs/cifs_debug.c tcon->ses->server->ops->dump_share_caps(m, tcon); server 146 fs/cifs/cifs_debug.c struct TCP_Server_Info *server; server 161 fs/cifs/cifs_debug.c server = list_entry(stmp, struct TCP_Server_Info, server 163 fs/cifs/cifs_debug.c list_for_each(tmp, &server->smb_ses_list) { server 199 fs/cifs/cifs_debug.c struct TCP_Server_Info *server; server 252 fs/cifs/cifs_debug.c server = list_entry(tmp1, struct TCP_Server_Info, server 256 fs/cifs/cifs_debug.c if (!server->rdma) server 259 fs/cifs/cifs_debug.c if (!server->smbd_conn) { server 266 fs/cifs/cifs_debug.c server->smbd_conn->protocol, server 267 fs/cifs/cifs_debug.c server->smbd_conn->transport_status); server 270 fs/cifs/cifs_debug.c server->smbd_conn->receive_credit_max, server 271 fs/cifs/cifs_debug.c server->smbd_conn->send_credit_target, server 272 fs/cifs/cifs_debug.c server->smbd_conn->max_send_size); server 275 fs/cifs/cifs_debug.c server->smbd_conn->max_fragmented_recv_size, server 276 fs/cifs/cifs_debug.c server->smbd_conn->max_fragmented_send_size, server 277 fs/cifs/cifs_debug.c server->smbd_conn->max_receive_size); server 280 fs/cifs/cifs_debug.c server->smbd_conn->keep_alive_interval, server 281 fs/cifs/cifs_debug.c server->smbd_conn->max_readwrite_size, server 282 fs/cifs/cifs_debug.c server->smbd_conn->rdma_readwrite_threshold); server 285 fs/cifs/cifs_debug.c server->smbd_conn->count_get_receive_buffer, server 286 fs/cifs/cifs_debug.c server->smbd_conn->count_put_receive_buffer, server 287 fs/cifs/cifs_debug.c server->smbd_conn->count_send_empty); server 294 fs/cifs/cifs_debug.c server->smbd_conn->count_reassembly_queue, server 295 fs/cifs/cifs_debug.c server->smbd_conn->count_enqueue_reassembly_queue, server 296 fs/cifs/cifs_debug.c server->smbd_conn->count_dequeue_reassembly_queue, server 297 fs/cifs/cifs_debug.c server->smbd_conn->fragment_reassembly_remaining, server 298 fs/cifs/cifs_debug.c server->smbd_conn->reassembly_data_length, server 299 fs/cifs/cifs_debug.c server->smbd_conn->reassembly_queue_length); server 302 fs/cifs/cifs_debug.c atomic_read(&server->smbd_conn->send_credits), server 303 fs/cifs/cifs_debug.c atomic_read(&server->smbd_conn->receive_credits), server 304 fs/cifs/cifs_debug.c server->smbd_conn->receive_credit_target); server 307 fs/cifs/cifs_debug.c atomic_read(&server->smbd_conn->send_pending), server 308 fs/cifs/cifs_debug.c atomic_read(&server->smbd_conn->send_payload_pending)); server 311 fs/cifs/cifs_debug.c server->smbd_conn->count_receive_queue, server 312 fs/cifs/cifs_debug.c server->smbd_conn->count_empty_packet_queue); server 315 fs/cifs/cifs_debug.c server->smbd_conn->responder_resources, server 316 fs/cifs/cifs_debug.c server->smbd_conn->max_frmr_depth, server 317 fs/cifs/cifs_debug.c server->smbd_conn->mr_type); server 319 fs/cifs/cifs_debug.c atomic_read(&server->smbd_conn->mr_ready_count), server 320 fs/cifs/cifs_debug.c atomic_read(&server->smbd_conn->mr_used_count)); server 324 fs/cifs/cifs_debug.c server->credits, server->dialect); server 325 fs/cifs/cifs_debug.c if (server->compress_algorithm == SMB3_COMPRESS_LZNT1) server 327 fs/cifs/cifs_debug.c else if (server->compress_algorithm == SMB3_COMPRESS_LZ77) server 329 fs/cifs/cifs_debug.c else if (server->compress_algorithm == SMB3_COMPRESS_LZ77_HUFF) server 331 fs/cifs/cifs_debug.c if (server->sign) server 333 fs/cifs/cifs_debug.c if (server->posix_ext_supported) server 337 fs/cifs/cifs_debug.c list_for_each(tmp2, &server->smb_ses_list) { server 359 fs/cifs/cifs_debug.c if (server->rdma) server 363 fs/cifs/cifs_debug.c server->tcpStatus, server 364 fs/cifs/cifs_debug.c server->reconnect_instance, server 365 fs/cifs/cifs_debug.c server->srv_count, server 366 fs/cifs/cifs_debug.c server->sec_mode, in_flight(server)); server 370 fs/cifs/cifs_debug.c atomic_read(&server->in_send), server 371 fs/cifs/cifs_debug.c atomic_read(&server->num_waiters)); server 400 fs/cifs/cifs_debug.c list_for_each(tmp3, &server->pending_mid_q) { server 437 fs/cifs/cifs_debug.c struct TCP_Server_Info *server; server 458 fs/cifs/cifs_debug.c server = list_entry(tmp1, struct TCP_Server_Info, server 460 fs/cifs/cifs_debug.c server->max_in_flight = 0; server 463 fs/cifs/cifs_debug.c atomic_set(&server->num_cmds[i], 0); server 464 fs/cifs/cifs_debug.c atomic_set(&server->smb2slowcmd[i], 0); server 465 fs/cifs/cifs_debug.c server->time_per_cmd[i] = 0; server 466 fs/cifs/cifs_debug.c server->slowest_cmd[i] = 0; server 467 fs/cifs/cifs_debug.c server->fastest_cmd[0] = 0; server 470 fs/cifs/cifs_debug.c list_for_each(tmp2, &server->smb_ses_list) { server 482 fs/cifs/cifs_debug.c if (server->ops->clear_stats) server 483 fs/cifs/cifs_debug.c server->ops->clear_stats(tcon); server 502 fs/cifs/cifs_debug.c struct TCP_Server_Info *server; server 533 fs/cifs/cifs_debug.c server = list_entry(tmp1, struct TCP_Server_Info, server 535 fs/cifs/cifs_debug.c seq_printf(m, "\nMax requests in flight: %d", server->max_in_flight); server 543 fs/cifs/cifs_debug.c atomic_read(&server->num_cmds[j]), server 544 fs/cifs/cifs_debug.c server->time_per_cmd[j], server 545 fs/cifs/cifs_debug.c server->fastest_cmd[j], server 546 fs/cifs/cifs_debug.c server->slowest_cmd[j]); server 548 fs/cifs/cifs_debug.c if (atomic_read(&server->smb2slowcmd[j])) server 550 fs/cifs/cifs_debug.c atomic_read(&server->smb2slowcmd[j]), server 551 fs/cifs/cifs_debug.c server->hostname, j); server 553 fs/cifs/cifs_debug.c list_for_each(tmp2, &server->smb_ses_list) { server 566 fs/cifs/cifs_debug.c if (server->ops->print_stats) server 567 fs/cifs/cifs_debug.c server->ops->print_stats(m, tcon); server 86 fs/cifs/cifs_debug.h if (server && server->hostname) \ server 87 fs/cifs/cifs_debug.h sn = server->hostname; \ server 152 fs/cifs/cifs_debug.h server->hostname, ##__VA_ARGS__); \ server 101 fs/cifs/cifs_spnego.c struct TCP_Server_Info *server = sesInfo->server; server 102 fs/cifs/cifs_spnego.c struct sockaddr_in *sa = (struct sockaddr_in *) &server->dstaddr; server 103 fs/cifs/cifs_spnego.c struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *) &server->dstaddr; server 107 fs/cifs/cifs_spnego.c const char *hostname = server->hostname; server 136 fs/cifs/cifs_spnego.c if (server->dstaddr.ss_family == AF_INET) server 138 fs/cifs/cifs_spnego.c else if (server->dstaddr.ss_family == AF_INET6) server 146 fs/cifs/cifs_spnego.c if (server->sec_kerberos) server 148 fs/cifs/cifs_spnego.c else if (server->sec_mskerberos) server 1185 fs/cifs/cifsacl.c ops = tlink_tcon(tlink)->ses->server->ops; server 1232 fs/cifs/cifsacl.c ops = tlink_tcon(tlink)->ses->server->ops; server 41 fs/cifs/cifsencrypt.c struct TCP_Server_Info *server, char *signature, server 48 fs/cifs/cifsencrypt.c int is_smb2 = server->vals->header_preamble_size == 0; server 113 fs/cifs/cifsencrypt.c struct TCP_Server_Info *server, char *signature) server 117 fs/cifs/cifsencrypt.c if (!rqst->rq_iov || !signature || !server) server 120 fs/cifs/cifsencrypt.c rc = cifs_alloc_hash("md5", &server->secmech.md5, server 121 fs/cifs/cifsencrypt.c &server->secmech.sdescmd5); server 125 fs/cifs/cifsencrypt.c rc = crypto_shash_init(&server->secmech.sdescmd5->shash); server 131 fs/cifs/cifsencrypt.c rc = crypto_shash_update(&server->secmech.sdescmd5->shash, server 132 fs/cifs/cifsencrypt.c server->session_key.response, server->session_key.len); server 138 fs/cifs/cifsencrypt.c return __cifs_calc_signature(rqst, server, signature, server 139 fs/cifs/cifsencrypt.c &server->secmech.sdescmd5->shash); server 143 fs/cifs/cifsencrypt.c int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server, server 154 fs/cifs/cifsencrypt.c if ((cifs_pdu == NULL) || (server == NULL)) server 158 fs/cifs/cifsencrypt.c server->tcpStatus == CifsNeedNegotiate) server 161 fs/cifs/cifsencrypt.c if (!server->session_estab) { server 167 fs/cifs/cifsencrypt.c cpu_to_le32(server->sequence_number); server 170 fs/cifs/cifsencrypt.c *pexpected_response_sequence_number = ++server->sequence_number; server 171 fs/cifs/cifsencrypt.c ++server->sequence_number; server 173 fs/cifs/cifsencrypt.c rc = cifs_calc_signature(rqst, server, smb_signature); server 182 fs/cifs/cifsencrypt.c int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *server, server 188 fs/cifs/cifsencrypt.c return cifs_sign_rqst(&rqst, server, pexpected_response_sequence); server 192 fs/cifs/cifsencrypt.c int cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server, server 202 fs/cifs/cifsencrypt.c return cifs_sign_smbv(iov, 2, server, server 207 fs/cifs/cifsencrypt.c struct TCP_Server_Info *server, server 219 fs/cifs/cifsencrypt.c if (cifs_pdu == NULL || server == NULL) server 222 fs/cifs/cifsencrypt.c if (!server->session_estab) server 248 fs/cifs/cifsencrypt.c mutex_lock(&server->srv_mutex); server 249 fs/cifs/cifsencrypt.c rc = cifs_calc_signature(rqst, server, what_we_think_sig_should_be); server 250 fs/cifs/cifsencrypt.c mutex_unlock(&server->srv_mutex); server 281 fs/cifs/cifsencrypt.c rc = SMBNTencrypt(ses->password, ses->server->cryptkey, server 504 fs/cifs/cifsencrypt.c wchar_t *server; server 506 fs/cifs/cifsencrypt.c if (!ses->server->secmech.sdeschmacmd5) { server 514 fs/cifs/cifsencrypt.c rc = crypto_shash_setkey(ses->server->secmech.hmacmd5, nt_hash, server 521 fs/cifs/cifsencrypt.c rc = crypto_shash_init(&ses->server->secmech.sdeschmacmd5->shash); server 542 fs/cifs/cifsencrypt.c rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, server 562 fs/cifs/cifsencrypt.c crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, server 574 fs/cifs/cifsencrypt.c server = kmalloc(2 + (len * 2), GFP_KERNEL); server 575 fs/cifs/cifsencrypt.c if (server == NULL) { server 579 fs/cifs/cifsencrypt.c len = cifs_strtoUTF16((__le16 *)server, ses->serverName, len, server 582 fs/cifs/cifsencrypt.c crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, server 583 fs/cifs/cifsencrypt.c (char *)server, 2 * len); server 584 fs/cifs/cifsencrypt.c kfree(server); server 592 fs/cifs/cifsencrypt.c rc = crypto_shash_final(&ses->server->secmech.sdeschmacmd5->shash, server 612 fs/cifs/cifsencrypt.c if (!ses->server->secmech.sdeschmacmd5) { server 617 fs/cifs/cifsencrypt.c rc = crypto_shash_setkey(ses->server->secmech.hmacmd5, server 625 fs/cifs/cifsencrypt.c rc = crypto_shash_init(&ses->server->secmech.sdeschmacmd5->shash); server 631 fs/cifs/cifsencrypt.c if (ses->server->negflavor == CIFS_NEGFLAVOR_EXTENDED) server 636 fs/cifs/cifsencrypt.c ses->server->cryptkey, CIFS_SERVER_CHALLENGE_SIZE); server 637 fs/cifs/cifsencrypt.c rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, server 645 fs/cifs/cifsencrypt.c rc = crypto_shash_final(&ses->server->secmech.sdeschmacmd5->shash, server 664 fs/cifs/cifsencrypt.c if (ses->server->negflavor == CIFS_NEGFLAVOR_EXTENDED) { server 714 fs/cifs/cifsencrypt.c mutex_lock(&ses->server->srv_mutex); server 717 fs/cifs/cifsencrypt.c &ses->server->secmech.hmacmd5, server 718 fs/cifs/cifsencrypt.c &ses->server->secmech.sdeschmacmd5); server 738 fs/cifs/cifsencrypt.c rc = crypto_shash_setkey(ses->server->secmech.hmacmd5, server 746 fs/cifs/cifsencrypt.c rc = crypto_shash_init(&ses->server->secmech.sdeschmacmd5->shash); server 752 fs/cifs/cifsencrypt.c rc = crypto_shash_update(&ses->server->secmech.sdeschmacmd5->shash, server 760 fs/cifs/cifsencrypt.c rc = crypto_shash_final(&ses->server->secmech.sdeschmacmd5->shash, server 766 fs/cifs/cifsencrypt.c mutex_unlock(&ses->server->srv_mutex); server 805 fs/cifs/cifsencrypt.c cifs_crypto_secmech_release(struct TCP_Server_Info *server) server 807 fs/cifs/cifsencrypt.c if (server->secmech.cmacaes) { server 808 fs/cifs/cifsencrypt.c crypto_free_shash(server->secmech.cmacaes); server 809 fs/cifs/cifsencrypt.c server->secmech.cmacaes = NULL; server 812 fs/cifs/cifsencrypt.c if (server->secmech.hmacsha256) { server 813 fs/cifs/cifsencrypt.c crypto_free_shash(server->secmech.hmacsha256); server 814 fs/cifs/cifsencrypt.c server->secmech.hmacsha256 = NULL; server 817 fs/cifs/cifsencrypt.c if (server->secmech.md5) { server 818 fs/cifs/cifsencrypt.c crypto_free_shash(server->secmech.md5); server 819 fs/cifs/cifsencrypt.c server->secmech.md5 = NULL; server 822 fs/cifs/cifsencrypt.c if (server->secmech.sha512) { server 823 fs/cifs/cifsencrypt.c crypto_free_shash(server->secmech.sha512); server 824 fs/cifs/cifsencrypt.c server->secmech.sha512 = NULL; server 827 fs/cifs/cifsencrypt.c if (server->secmech.hmacmd5) { server 828 fs/cifs/cifsencrypt.c crypto_free_shash(server->secmech.hmacmd5); server 829 fs/cifs/cifsencrypt.c server->secmech.hmacmd5 = NULL; server 832 fs/cifs/cifsencrypt.c if (server->secmech.ccmaesencrypt) { server 833 fs/cifs/cifsencrypt.c crypto_free_aead(server->secmech.ccmaesencrypt); server 834 fs/cifs/cifsencrypt.c server->secmech.ccmaesencrypt = NULL; server 837 fs/cifs/cifsencrypt.c if (server->secmech.ccmaesdecrypt) { server 838 fs/cifs/cifsencrypt.c crypto_free_aead(server->secmech.ccmaesdecrypt); server 839 fs/cifs/cifsencrypt.c server->secmech.ccmaesdecrypt = NULL; server 842 fs/cifs/cifsencrypt.c kfree(server->secmech.sdesccmacaes); server 843 fs/cifs/cifsencrypt.c server->secmech.sdesccmacaes = NULL; server 844 fs/cifs/cifsencrypt.c kfree(server->secmech.sdeschmacsha256); server 845 fs/cifs/cifsencrypt.c server->secmech.sdeschmacsha256 = NULL; server 846 fs/cifs/cifsencrypt.c kfree(server->secmech.sdeschmacmd5); server 847 fs/cifs/cifsencrypt.c server->secmech.sdeschmacmd5 = NULL; server 848 fs/cifs/cifsencrypt.c kfree(server->secmech.sdescmd5); server 849 fs/cifs/cifsencrypt.c server->secmech.sdescmd5 = NULL; server 850 fs/cifs/cifsencrypt.c kfree(server->secmech.sdescsha512); server 851 fs/cifs/cifsencrypt.c server->secmech.sdescsha512 = NULL; server 135 fs/cifs/cifsfs.c struct cifs_sb_info *server = CIFS_SB(sb); server 137 fs/cifs/cifsfs.c if (atomic_inc_return(&server->active) == 1) server 144 fs/cifs/cifsfs.c struct cifs_sb_info *server = CIFS_SB(sb); server 146 fs/cifs/cifsfs.c if (atomic_dec_and_test(&server->active)) server 168 fs/cifs/cifsfs.c if (tcon->ses->capabilities & tcon->ses->server->vals->cap_large_files) server 180 fs/cifs/cifsfs.c if ((tcon->ses->server->vals->protocol_id == SMB10_PROT_ID) && server 182 fs/cifs/cifsfs.c tcon->ses->server->vals->cap_nt_find) == 0) && server 258 fs/cifs/cifsfs.c struct TCP_Server_Info *server = tcon->ses->server; server 277 fs/cifs/cifsfs.c if (server->ops->queryfs) server 278 fs/cifs/cifsfs.c rc = server->ops->queryfs(xid, tcon, buf); server 288 fs/cifs/cifsfs.c struct TCP_Server_Info *server = tcon->ses->server; server 290 fs/cifs/cifsfs.c if (server->ops->fallocate) server 291 fs/cifs/cifsfs.c return server->ops->fallocate(file, tcon, mode, off, len); server 372 fs/cifs/cifsfs.c cifs_show_address(struct seq_file *s, struct TCP_Server_Info *server) server 374 fs/cifs/cifsfs.c struct sockaddr_in *sa = (struct sockaddr_in *) &server->dstaddr; server 375 fs/cifs/cifsfs.c struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *) &server->dstaddr; server 379 fs/cifs/cifsfs.c switch (server->dstaddr.ss_family) { server 391 fs/cifs/cifsfs.c if (server->rdma) server 476 fs/cifs/cifsfs.c srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr; server 478 fs/cifs/cifsfs.c seq_show_option(s, "vers", tcon->ses->server->vals->version_string); server 522 fs/cifs/cifsfs.c cifs_show_address(s, tcon->ses->server); server 533 fs/cifs/cifsfs.c else if (tcon->ses->server->ignore_signature) server 607 fs/cifs/cifsfs.c if (tcon->ses->server->min_offload) server 608 fs/cifs/cifsfs.c seq_printf(s, ",esize=%u", tcon->ses->server->min_offload); server 610 fs/cifs/cifsfs.c tcon->ses->server->echo_interval / HZ); server 613 fs/cifs/cifsfs.c if (tcon->ses->server->max_credits != SMB2_MAX_CREDITS_AVAILABLE) server 614 fs/cifs/cifsfs.c seq_printf(s, ",max_credits=%u", tcon->ses->server->max_credits); server 649 fs/cifs/cifsfs.c if (tcon->ses && tcon->ses->server) { server 651 fs/cifs/cifsfs.c wake_up_all(&tcon->ses->server->request_q); server 652 fs/cifs/cifsfs.c wake_up_all(&tcon->ses->server->response_q); server 655 fs/cifs/cifsfs.c wake_up_all(&tcon->ses->server->response_q); server 977 fs/cifs/cifsfs.c if (tcon->ses->server->ops->llseek) server 978 fs/cifs/cifsfs.c return tcon->ses->server->ops->llseek(file, tcon, server 1110 fs/cifs/cifsfs.c if (target_tcon->ses->server->ops->duplicate_extents) server 1111 fs/cifs/cifsfs.c rc = target_tcon->ses->server->ops->duplicate_extents(xid, server 1160 fs/cifs/cifsfs.c if (!target_tcon->ses->server->ops->copychunk_range) server 1176 fs/cifs/cifsfs.c rc = target_tcon->ses->server->ops->copychunk_range(xid, server 240 fs/cifs/cifsglob.h void (*add_credits)(struct TCP_Server_Info *server, server 247 fs/cifs/cifsglob.h void (*revert_current_mid)(struct TCP_Server_Info *server, server 399 fs/cifs/cifsglob.h bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server); server 469 fs/cifs/cifsglob.h int (*adjust_credits)(struct TCP_Server_Info *server, server 526 fs/cifs/cifsglob.h #define HEADER_SIZE(server) (server->vals->header_size) server 527 fs/cifs/cifsglob.h #define MAX_HEADER_SIZE(server) (server->vals->max_header_size) server 778 fs/cifs/cifsglob.h in_flight(struct TCP_Server_Info *server) server 781 fs/cifs/cifsglob.h spin_lock(&server->req_lock); server 782 fs/cifs/cifsglob.h num = server->in_flight; server 783 fs/cifs/cifsglob.h spin_unlock(&server->req_lock); server 788 fs/cifs/cifsglob.h has_credits(struct TCP_Server_Info *server, int *credits, int num_credits) server 791 fs/cifs/cifsglob.h spin_lock(&server->req_lock); server 793 fs/cifs/cifsglob.h spin_unlock(&server->req_lock); server 798 fs/cifs/cifsglob.h add_credits(struct TCP_Server_Info *server, const struct cifs_credits *credits, server 801 fs/cifs/cifsglob.h server->ops->add_credits(server, credits, optype); server 805 fs/cifs/cifsglob.h add_credits_and_wake_if(struct TCP_Server_Info *server, server 809 fs/cifs/cifsglob.h server->ops->add_credits(server, credits, optype); server 810 fs/cifs/cifsglob.h wake_up(&server->request_q); server 815 fs/cifs/cifsglob.h set_credits(struct TCP_Server_Info *server, const int val) server 817 fs/cifs/cifsglob.h server->ops->set_credits(server, val); server 821 fs/cifs/cifsglob.h adjust_credits(struct TCP_Server_Info *server, struct cifs_credits *credits, server 824 fs/cifs/cifsglob.h return server->ops->adjust_credits ? server 825 fs/cifs/cifsglob.h server->ops->adjust_credits(server, credits, payload_size) : 0; server 829 fs/cifs/cifsglob.h get_next_mid64(struct TCP_Server_Info *server) server 831 fs/cifs/cifsglob.h return cpu_to_le64(server->ops->get_next_mid(server)); server 835 fs/cifs/cifsglob.h get_next_mid(struct TCP_Server_Info *server) server 837 fs/cifs/cifsglob.h __u16 mid = server->ops->get_next_mid(server); server 846 fs/cifs/cifsglob.h revert_current_mid(struct TCP_Server_Info *server, const unsigned int val) server 848 fs/cifs/cifsglob.h if (server->ops->revert_current_mid) server 849 fs/cifs/cifsglob.h server->ops->revert_current_mid(server, val); server 853 fs/cifs/cifsglob.h revert_current_mid_from_hdr(struct TCP_Server_Info *server, server 858 fs/cifs/cifsglob.h return revert_current_mid(server, num > 0 ? num : 1); server 964 fs/cifs/cifsglob.h struct TCP_Server_Info *server; /* pointer to server info */ server 1010 fs/cifs/cifsglob.h return ses->server->vals->cap_unix & ses->capabilities; server 1320 fs/cifs/cifsglob.h int (*read_into_pages)(struct TCP_Server_Info *server, server 1323 fs/cifs/cifsglob.h int (*copy_into_pages)(struct TCP_Server_Info *server, server 1503 fs/cifs/cifsglob.h typedef int (mid_receive_t)(struct TCP_Server_Info *server, server 1520 fs/cifs/cifsglob.h typedef int (mid_handle_t)(struct TCP_Server_Info *server, server 1527 fs/cifs/cifsglob.h struct TCP_Server_Info *server; /* server corresponding to this mid */ server 1565 fs/cifs/cifsglob.h static inline void cifs_in_send_inc(struct TCP_Server_Info *server) server 1567 fs/cifs/cifsglob.h atomic_inc(&server->in_send); server 1570 fs/cifs/cifsglob.h static inline void cifs_in_send_dec(struct TCP_Server_Info *server) server 1572 fs/cifs/cifsglob.h atomic_dec(&server->in_send); server 1575 fs/cifs/cifsglob.h static inline void cifs_num_waiters_inc(struct TCP_Server_Info *server) server 1577 fs/cifs/cifsglob.h atomic_inc(&server->num_waiters); server 1580 fs/cifs/cifsglob.h static inline void cifs_num_waiters_dec(struct TCP_Server_Info *server) server 1582 fs/cifs/cifsglob.h atomic_dec(&server->num_waiters); server 1590 fs/cifs/cifsglob.h static inline void cifs_in_send_inc(struct TCP_Server_Info *server) server 1593 fs/cifs/cifsglob.h static inline void cifs_in_send_dec(struct TCP_Server_Info *server) server 1597 fs/cifs/cifsglob.h static inline void cifs_num_waiters_inc(struct TCP_Server_Info *server) server 1601 fs/cifs/cifsglob.h static inline void cifs_num_waiters_dec(struct TCP_Server_Info *server) server 85 fs/cifs/cifsproto.h struct TCP_Server_Info *server); server 90 fs/cifs/cifsproto.h extern int cifs_handle_standard(struct TCP_Server_Info *server, server 92 fs/cifs/cifsproto.h extern int cifs_discard_remaining_data(struct TCP_Server_Info *server); server 93 fs/cifs/cifsproto.h extern int cifs_call_async(struct TCP_Server_Info *server, server 116 fs/cifs/cifsproto.h struct TCP_Server_Info *server, bool log_error); server 117 fs/cifs/cifsproto.h extern int cifs_wait_mtu_credits(struct TCP_Server_Info *server, server 129 fs/cifs/cifsproto.h extern int cifs_reconnect(struct TCP_Server_Info *server); server 146 fs/cifs/cifsproto.h extern unsigned int smbCalcSize(void *buf, struct TCP_Server_Info *server); server 148 fs/cifs/cifsproto.h struct TCP_Server_Info *server); server 158 fs/cifs/cifsproto.h extern enum securityEnum select_sectype(struct TCP_Server_Info *server, server 218 fs/cifs/cifsproto.h extern int cifs_read_from_socket(struct TCP_Server_Info *server, char *buf, server 220 fs/cifs/cifsproto.h extern int cifs_read_page_from_socket(struct TCP_Server_Info *server, server 246 fs/cifs/cifsproto.h extern void cifs_put_tcp_session(struct TCP_Server_Info *server, server 267 fs/cifs/cifsproto.h extern int cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required); server 461 fs/cifs/cifsproto.h extern int CIFSSMBEcho(struct TCP_Server_Info *server); server 469 fs/cifs/cifsproto.h extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server, server 475 fs/cifs/cifsproto.h struct TCP_Server_Info *server, server 481 fs/cifs/cifsproto.h extern void cifs_crypto_secmech_release(struct TCP_Server_Info *server); server 550 fs/cifs/cifsproto.h cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb_vol *volume_info); server 554 fs/cifs/cifsproto.h int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid); server 573 fs/cifs/cifsproto.h struct TCP_Server_Info *server, char *signature, server 143 fs/cifs/cifssmb.c tcon->ses->server->hostname); server 157 fs/cifs/cifssmb.c extract_unc_hostname(tcon->ses->server->hostname, &tcp_host, server 210 fs/cifs/cifssmb.c struct TCP_Server_Info *server; server 223 fs/cifs/cifssmb.c server = ses->server; server 239 fs/cifs/cifssmb.c retries = server->nr_targets; server 246 fs/cifs/cifssmb.c while (server->tcpStatus == CifsNeedReconnect) { server 247 fs/cifs/cifssmb.c rc = wait_event_interruptible_timeout(server->response_q, server 248 fs/cifs/cifssmb.c (server->tcpStatus != CifsNeedReconnect), server 257 fs/cifs/cifssmb.c if (server->tcpStatus != CifsNeedReconnect) server 272 fs/cifs/cifssmb.c retries = server->nr_targets; server 291 fs/cifs/cifssmb.c if (server->tcpStatus == CifsNeedReconnect) { server 388 fs/cifs/cifssmb.c buffer->Mid = get_next_mid(ses->server); server 490 fs/cifs/cifssmb.c struct TCP_Server_Info *server = ses->server; server 497 fs/cifs/cifssmb.c if (server->srv_count > 1) { server 499 fs/cifs/cifssmb.c if (memcmp(server->server_GUID, guid, SMB1_CLIENT_GUID_SIZE) != 0) { server 501 fs/cifs/cifssmb.c memcpy(server->server_GUID, guid, SMB1_CLIENT_GUID_SIZE); server 505 fs/cifs/cifssmb.c memcpy(server->server_GUID, guid, SMB1_CLIENT_GUID_SIZE); server 509 fs/cifs/cifssmb.c server->sec_ntlmssp = true; server 513 fs/cifs/cifssmb.c pSMBr->u.extended_response.SecurityBlob, count, server); server 522 fs/cifs/cifssmb.c cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required) server 524 fs/cifs/cifssmb.c bool srv_sign_required = server->sec_mode & server->vals->signing_required; server 525 fs/cifs/cifssmb.c bool srv_sign_enabled = server->sec_mode & server->vals->signing_enabled; server 549 fs/cifs/cifssmb.c server->sign = true; server 558 fs/cifs/cifssmb.c server->sign = true; server 561 fs/cifs/cifssmb.c if (cifs_rdma_enabled(server) && server->sign) server 569 fs/cifs/cifssmb.c decode_lanman_negprot_rsp(struct TCP_Server_Info *server, NEGOTIATE_RSP *pSMBr) server 574 fs/cifs/cifssmb.c if (server->dialect != LANMAN_PROT && server->dialect != LANMAN2_PROT) server 577 fs/cifs/cifssmb.c server->sec_mode = le16_to_cpu(rsp->SecurityMode); server 578 fs/cifs/cifssmb.c server->maxReq = min_t(unsigned int, server 581 fs/cifs/cifssmb.c set_credits(server, server->maxReq); server 582 fs/cifs/cifssmb.c server->maxBuf = le16_to_cpu(rsp->MaxBufSize); server 586 fs/cifs/cifssmb.c server->max_rw = 0xFF00; server 587 fs/cifs/cifssmb.c server->capabilities = CAP_MPX_MODE | CAP_RAW_MODE; server 589 fs/cifs/cifssmb.c server->max_rw = 0;/* do not need to use raw anyway */ server 590 fs/cifs/cifssmb.c server->capabilities = CAP_MPX_MODE; server 617 fs/cifs/cifssmb.c server->timeAdj = result; server 619 fs/cifs/cifssmb.c server->timeAdj = (int)tmp; server 620 fs/cifs/cifssmb.c server->timeAdj *= 60; /* also in seconds */ server 622 fs/cifs/cifssmb.c cifs_dbg(FYI, "server->timeAdj: %d seconds\n", server->timeAdj); server 630 fs/cifs/cifssmb.c memcpy(server->cryptkey, rsp->EncryptionKey, server 632 fs/cifs/cifssmb.c } else if (server->sec_mode & SECMODE_PW_ENCRYPT) { server 641 fs/cifs/cifssmb.c decode_lanman_negprot_rsp(struct TCP_Server_Info *server, NEGOTIATE_RSP *pSMBr) server 673 fs/cifs/cifssmb.c struct TCP_Server_Info *server = ses->server; server 676 fs/cifs/cifssmb.c if (!server) { server 686 fs/cifs/cifssmb.c pSMB->hdr.Mid = get_next_mid(server); server 713 fs/cifs/cifssmb.c server->dialect = le16_to_cpu(pSMBr->DialectIndex); server 714 fs/cifs/cifssmb.c cifs_dbg(FYI, "Dialect: %d\n", server->dialect); server 716 fs/cifs/cifssmb.c if ((pSMBr->hdr.WordCount < 13) || (server->dialect == BAD_PROT)) { server 723 fs/cifs/cifssmb.c server->negflavor = CIFS_NEGFLAVOR_LANMAN; server 724 fs/cifs/cifssmb.c rc = decode_lanman_negprot_rsp(server, pSMBr); server 733 fs/cifs/cifssmb.c server->sec_mode = pSMBr->SecurityMode; server 734 fs/cifs/cifssmb.c if ((server->sec_mode & SECMODE_USER) == 0) server 739 fs/cifs/cifssmb.c server->maxReq = min_t(unsigned int, le16_to_cpu(pSMBr->MaxMpxCount), server 741 fs/cifs/cifssmb.c set_credits(server, server->maxReq); server 743 fs/cifs/cifssmb.c server->maxBuf = le32_to_cpu(pSMBr->MaxBufferSize); server 744 fs/cifs/cifssmb.c server->max_rw = le32_to_cpu(pSMBr->MaxRawSize); server 745 fs/cifs/cifssmb.c cifs_dbg(NOISY, "Max buf = %d\n", ses->server->maxBuf); server 746 fs/cifs/cifssmb.c server->capabilities = le32_to_cpu(pSMBr->Capabilities); server 747 fs/cifs/cifssmb.c server->timeAdj = (int)(__s16)le16_to_cpu(pSMBr->ServerTimeZone); server 748 fs/cifs/cifssmb.c server->timeAdj *= 60; server 751 fs/cifs/cifssmb.c server->negflavor = CIFS_NEGFLAVOR_UNENCAP; server 752 fs/cifs/cifssmb.c memcpy(ses->server->cryptkey, pSMBr->u.EncryptionKey, server 755 fs/cifs/cifssmb.c server->capabilities & CAP_EXTENDED_SECURITY) { server 756 fs/cifs/cifssmb.c server->negflavor = CIFS_NEGFLAVOR_EXTENDED; server 758 fs/cifs/cifssmb.c } else if (server->sec_mode & SECMODE_PW_ENCRYPT) { server 761 fs/cifs/cifssmb.c server->negflavor = CIFS_NEGFLAVOR_UNENCAP; server 762 fs/cifs/cifssmb.c server->capabilities &= ~CAP_EXTENDED_SECURITY; server 767 fs/cifs/cifssmb.c rc = cifs_enable_signing(server, ses->sign); server 784 fs/cifs/cifssmb.c if ((tcon->ses == NULL) || (tcon->ses->server == NULL)) server 824 fs/cifs/cifssmb.c struct TCP_Server_Info *server = mid->callback_data; server 828 fs/cifs/cifssmb.c add_credits(server, &credits, CIFS_ECHO_OP); server 832 fs/cifs/cifssmb.c CIFSSMBEcho(struct TCP_Server_Info *server) server 846 fs/cifs/cifssmb.c if (server->capabilities & CAP_UNICODE) server 862 fs/cifs/cifssmb.c rc = cifs_call_async(server, &rqst, NULL, cifs_echo_callback, NULL, server 863 fs/cifs/cifssmb.c server, CIFS_NON_BLOCKING | CIFS_ECHO_OP, NULL); server 885 fs/cifs/cifssmb.c if (!ses || !ses->server) server 898 fs/cifs/cifssmb.c pSMB->hdr.Mid = get_next_mid(ses->server); server 900 fs/cifs/cifssmb.c if (ses->server->sign) server 1518 fs/cifs/cifssmb.c cifs_discard_remaining_data(struct TCP_Server_Info *server) server 1520 fs/cifs/cifssmb.c unsigned int rfclen = server->pdu_size; server 1521 fs/cifs/cifssmb.c int remaining = rfclen + server->vals->header_preamble_size - server 1522 fs/cifs/cifssmb.c server->total_read; server 1527 fs/cifs/cifssmb.c length = cifs_read_from_socket(server, server->bigbuf, server 1529 fs/cifs/cifssmb.c CIFSMaxBufSize + MAX_HEADER_SIZE(server))); server 1532 fs/cifs/cifssmb.c server->total_read += length; server 1540 fs/cifs/cifssmb.c __cifs_readv_discard(struct TCP_Server_Info *server, struct mid_q_entry *mid, server 1545 fs/cifs/cifssmb.c length = cifs_discard_remaining_data(server); server 1547 fs/cifs/cifssmb.c mid->resp_buf = server->smallbuf; server 1548 fs/cifs/cifssmb.c server->smallbuf = NULL; server 1553 fs/cifs/cifssmb.c cifs_readv_discard(struct TCP_Server_Info *server, struct mid_q_entry *mid) server 1557 fs/cifs/cifssmb.c return __cifs_readv_discard(server, mid, rdata->result); server 1561 fs/cifs/cifssmb.c cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid) server 1566 fs/cifs/cifssmb.c char *buf = server->smallbuf; server 1567 fs/cifs/cifssmb.c unsigned int buflen = server->pdu_size + server 1568 fs/cifs/cifssmb.c server->vals->header_preamble_size; server 1579 fs/cifs/cifssmb.c len = min_t(unsigned int, buflen, server->vals->read_rsp_size) - server 1580 fs/cifs/cifssmb.c HEADER_SIZE(server) + 1; server 1582 fs/cifs/cifssmb.c length = cifs_read_from_socket(server, server 1583 fs/cifs/cifssmb.c buf + HEADER_SIZE(server) - 1, len); server 1586 fs/cifs/cifssmb.c server->total_read += length; server 1588 fs/cifs/cifssmb.c if (server->ops->is_session_expired && server 1589 fs/cifs/cifssmb.c server->ops->is_session_expired(buf)) { server 1590 fs/cifs/cifssmb.c cifs_reconnect(server); server 1591 fs/cifs/cifssmb.c wake_up(&server->response_q); server 1595 fs/cifs/cifssmb.c if (server->ops->is_status_pending && server 1596 fs/cifs/cifssmb.c server->ops->is_status_pending(buf, server)) { server 1597 fs/cifs/cifssmb.c cifs_discard_remaining_data(server); server 1603 fs/cifs/cifssmb.c rdata->iov[0].iov_len = server->vals->header_preamble_size; server 1604 fs/cifs/cifssmb.c rdata->iov[1].iov_base = buf + server->vals->header_preamble_size; server 1606 fs/cifs/cifssmb.c server->total_read - server->vals->header_preamble_size; server 1613 fs/cifs/cifssmb.c rdata->result = server->ops->map_error(buf, false); server 1618 fs/cifs/cifssmb.c return __cifs_readv_discard(server, mid, false); server 1622 fs/cifs/cifssmb.c if (server->total_read < server->vals->read_rsp_size) { server 1624 fs/cifs/cifssmb.c __func__, server->total_read, server 1625 fs/cifs/cifssmb.c server->vals->read_rsp_size); server 1627 fs/cifs/cifssmb.c return cifs_readv_discard(server, mid); server 1630 fs/cifs/cifssmb.c data_offset = server->ops->read_data_offset(buf) + server 1631 fs/cifs/cifssmb.c server->vals->header_preamble_size; server 1632 fs/cifs/cifssmb.c if (data_offset < server->total_read) { server 1640 fs/cifs/cifssmb.c data_offset = server->total_read; server 1646 fs/cifs/cifssmb.c return cifs_readv_discard(server, mid); server 1650 fs/cifs/cifssmb.c __func__, server->total_read, data_offset); server 1652 fs/cifs/cifssmb.c len = data_offset - server->total_read; server 1655 fs/cifs/cifssmb.c length = cifs_read_from_socket(server, server 1656 fs/cifs/cifssmb.c buf + server->total_read, len); server 1659 fs/cifs/cifssmb.c server->total_read += length; server 1666 fs/cifs/cifssmb.c data_len = server->ops->read_data_length(buf, use_rdma_mr); server 1670 fs/cifs/cifssmb.c return cifs_readv_discard(server, mid); server 1673 fs/cifs/cifssmb.c length = rdata->read_into_pages(server, rdata, data_len); server 1677 fs/cifs/cifssmb.c server->total_read += length; server 1680 fs/cifs/cifssmb.c server->total_read, buflen, data_len); server 1683 fs/cifs/cifssmb.c if (server->total_read < buflen) server 1684 fs/cifs/cifssmb.c return cifs_readv_discard(server, mid); server 1687 fs/cifs/cifssmb.c mid->resp_buf = server->smallbuf; server 1688 fs/cifs/cifssmb.c server->smallbuf = NULL; server 1697 fs/cifs/cifssmb.c struct TCP_Server_Info *server = tcon->ses->server; server 1714 fs/cifs/cifssmb.c if (server->sign) { server 1717 fs/cifs/cifssmb.c rc = cifs_verify_signature(&rqst, server, server 1730 fs/cifs/cifssmb.c if (server->sign && rdata->got_bytes) server 1743 fs/cifs/cifssmb.c add_credits(server, &credits, 0); server 1801 fs/cifs/cifssmb.c rc = cifs_call_async(tcon->ses->server, &rqst, cifs_readv_receive, server 1851 fs/cifs/cifssmb.c if (tcon->ses->server == NULL) server 1964 fs/cifs/cifssmb.c if (tcon->ses->server == NULL) server 1984 fs/cifs/cifssmb.c bytes_sent = (tcon->ses->server->maxBuf - MAX_CIFS_HDR_SIZE) server 2072 fs/cifs/cifssmb.c struct TCP_Server_Info *server; server 2075 fs/cifs/cifssmb.c server = tlink_tcon(wdata->cfile->tlink)->ses->server; server 2082 fs/cifs/cifssmb.c wsize = server->ops->wp_retry_size(inode); server 2125 fs/cifs/cifssmb.c rc = server->ops->async_writev(wdata2, server 2235 fs/cifs/cifssmb.c wdata->result = cifs_check_receive(mid, tcon->ses->server, 0); server 2267 fs/cifs/cifssmb.c add_credits(tcon->ses->server, &credits, 0); server 2344 fs/cifs/cifssmb.c rc = cifs_call_async(tcon->ses->server, &rqst, NULL, server 2394 fs/cifs/cifssmb.c if (tcon->ses->server == NULL) server 4943 fs/cifs/cifssmb.c pSMB->hdr.Mid = get_next_mid(ses->server); server 4963 fs/cifs/cifssmb.c if (ses->server->sign) server 334 fs/cifs/connect.c static int ip_connect(struct TCP_Server_Info *server); server 335 fs/cifs/connect.c static int generic_ip_connect(struct TCP_Server_Info *server); server 347 fs/cifs/connect.c static int reconn_set_ipaddr(struct TCP_Server_Info *server) server 353 fs/cifs/connect.c if (!server->hostname) server 356 fs/cifs/connect.c len = strlen(server->hostname) + 3; server 363 fs/cifs/connect.c scnprintf(unc, len, "\\\\%s", server->hostname); server 370 fs/cifs/connect.c __func__, server->hostname, rc); server 375 fs/cifs/connect.c rc = cifs_convert_address((struct sockaddr *)&server->dstaddr, ipaddr, server 383 fs/cifs/connect.c static inline int reconn_set_ipaddr(struct TCP_Server_Info *server) server 391 fs/cifs/connect.c struct TCP_Server_Info *server; server 408 fs/cifs/connect.c if (tcon->ses->server == d->server) server 412 fs/cifs/connect.c static struct super_block *get_tcp_super(struct TCP_Server_Info *server) server 415 fs/cifs/connect.c .server = server, server 438 fs/cifs/connect.c static void reconn_inval_dfs_target(struct TCP_Server_Info *server, server 446 fs/cifs/connect.c !server->nr_targets) server 461 fs/cifs/connect.c kfree(server->hostname); server 463 fs/cifs/connect.c server->hostname = extract_hostname(name); server 464 fs/cifs/connect.c if (IS_ERR(server->hostname)) { server 467 fs/cifs/connect.c __func__, PTR_ERR(server->hostname)); server 490 fs/cifs/connect.c cifs_reconnect(struct TCP_Server_Info *server) server 506 fs/cifs/connect.c server->nr_targets = 1; server 509 fs/cifs/connect.c sb = get_tcp_super(server); server 523 fs/cifs/connect.c server->nr_targets = dfs_cache_get_nr_tgts(&tgt_list); server 527 fs/cifs/connect.c server->nr_targets); server 530 fs/cifs/connect.c if (server->tcpStatus == CifsExiting) { server 540 fs/cifs/connect.c server->tcpStatus = CifsNeedReconnect; server 542 fs/cifs/connect.c server->maxBuf = 0; server 543 fs/cifs/connect.c server->max_read = 0; server 546 fs/cifs/connect.c trace_smb3_reconnect(server->CurrentMid, server->hostname); server 553 fs/cifs/connect.c list_for_each(tmp, &server->smb_ses_list) { server 567 fs/cifs/connect.c mutex_lock(&server->srv_mutex); server 568 fs/cifs/connect.c if (server->ssocket) { server 570 fs/cifs/connect.c server->ssocket->state, server->ssocket->flags); server 571 fs/cifs/connect.c kernel_sock_shutdown(server->ssocket, SHUT_WR); server 573 fs/cifs/connect.c server->ssocket->state, server->ssocket->flags); server 574 fs/cifs/connect.c sock_release(server->ssocket); server 575 fs/cifs/connect.c server->ssocket = NULL; server 577 fs/cifs/connect.c server->sequence_number = 0; server 578 fs/cifs/connect.c server->session_estab = false; server 579 fs/cifs/connect.c kfree(server->session_key.response); server 580 fs/cifs/connect.c server->session_key.response = NULL; server 581 fs/cifs/connect.c server->session_key.len = 0; server 582 fs/cifs/connect.c server->lstrp = jiffies; server 588 fs/cifs/connect.c list_for_each_safe(tmp, tmp2, &server->pending_mid_q) { server 597 fs/cifs/connect.c mutex_unlock(&server->srv_mutex); server 607 fs/cifs/connect.c if (cifs_rdma_enabled(server)) { server 608 fs/cifs/connect.c mutex_lock(&server->srv_mutex); server 609 fs/cifs/connect.c smbd_destroy(server); server 610 fs/cifs/connect.c mutex_unlock(&server->srv_mutex); server 616 fs/cifs/connect.c mutex_lock(&server->srv_mutex); server 622 fs/cifs/connect.c if (cifs_rdma_enabled(server)) server 623 fs/cifs/connect.c rc = smbd_reconnect(server); server 625 fs/cifs/connect.c rc = generic_ip_connect(server); server 629 fs/cifs/connect.c reconn_inval_dfs_target(server, cifs_sb, &tgt_list, server 632 fs/cifs/connect.c rc = reconn_set_ipaddr(server); server 637 fs/cifs/connect.c mutex_unlock(&server->srv_mutex); server 641 fs/cifs/connect.c set_credits(server, 1); server 643 fs/cifs/connect.c if (server->tcpStatus != CifsExiting) server 644 fs/cifs/connect.c server->tcpStatus = CifsNeedNegotiate; server 646 fs/cifs/connect.c mutex_unlock(&server->srv_mutex); server 648 fs/cifs/connect.c } while (server->tcpStatus == CifsNeedReconnect); server 658 fs/cifs/connect.c rc = dfs_cache_update_vol(cifs_sb->origin_fullpath, server); server 669 fs/cifs/connect.c if (server->tcpStatus == CifsNeedNegotiate) server 670 fs/cifs/connect.c mod_delayed_work(cifsiod_wq, &server->echo, 0); server 679 fs/cifs/connect.c struct TCP_Server_Info *server = container_of(work, server 687 fs/cifs/connect.c if (server->tcpStatus == CifsNeedNegotiate) server 690 fs/cifs/connect.c echo_interval = server->echo_interval; server 697 fs/cifs/connect.c if (server->tcpStatus == CifsNeedReconnect || server 698 fs/cifs/connect.c server->tcpStatus == CifsExiting || server 699 fs/cifs/connect.c server->tcpStatus == CifsNew || server 700 fs/cifs/connect.c (server->ops->can_echo && !server->ops->can_echo(server)) || server 701 fs/cifs/connect.c time_before(jiffies, server->lstrp + echo_interval - HZ)) server 704 fs/cifs/connect.c rc = server->ops->echo ? server->ops->echo(server) : -ENOSYS; server 707 fs/cifs/connect.c server->hostname); server 710 fs/cifs/connect.c queue_delayed_work(cifsiod_wq, &server->echo, server->echo_interval); server 714 fs/cifs/connect.c allocate_buffers(struct TCP_Server_Info *server) server 716 fs/cifs/connect.c if (!server->bigbuf) { server 717 fs/cifs/connect.c server->bigbuf = (char *)cifs_buf_get(); server 718 fs/cifs/connect.c if (!server->bigbuf) { server 724 fs/cifs/connect.c } else if (server->large_buf) { server 726 fs/cifs/connect.c memset(server->bigbuf, 0, HEADER_SIZE(server)); server 729 fs/cifs/connect.c if (!server->smallbuf) { server 730 fs/cifs/connect.c server->smallbuf = (char *)cifs_small_buf_get(); server 731 fs/cifs/connect.c if (!server->smallbuf) { server 740 fs/cifs/connect.c memset(server->smallbuf, 0, HEADER_SIZE(server)); server 747 fs/cifs/connect.c server_unresponsive(struct TCP_Server_Info *server) server 760 fs/cifs/connect.c if ((server->tcpStatus == CifsGood || server 761 fs/cifs/connect.c server->tcpStatus == CifsNeedNegotiate) && server 762 fs/cifs/connect.c time_after(jiffies, server->lstrp + 3 * server->echo_interval)) { server 764 fs/cifs/connect.c (3 * server->echo_interval) / HZ); server 765 fs/cifs/connect.c cifs_reconnect(server); server 766 fs/cifs/connect.c wake_up(&server->response_q); server 774 fs/cifs/connect.c zero_credits(struct TCP_Server_Info *server) server 778 fs/cifs/connect.c spin_lock(&server->req_lock); server 779 fs/cifs/connect.c val = server->credits + server->echo_credits + server->oplock_credits; server 780 fs/cifs/connect.c if (server->in_flight == 0 && val == 0) { server 781 fs/cifs/connect.c spin_unlock(&server->req_lock); server 784 fs/cifs/connect.c spin_unlock(&server->req_lock); server 789 fs/cifs/connect.c cifs_readv_from_socket(struct TCP_Server_Info *server, struct msghdr *smb_msg) server 801 fs/cifs/connect.c if (zero_credits(server)) { server 802 fs/cifs/connect.c cifs_reconnect(server); server 806 fs/cifs/connect.c if (server_unresponsive(server)) server 808 fs/cifs/connect.c if (cifs_rdma_enabled(server) && server->smbd_conn) server 809 fs/cifs/connect.c length = smbd_recv(server->smbd_conn, smb_msg); server 811 fs/cifs/connect.c length = sock_recvmsg(server->ssocket, smb_msg, 0); server 813 fs/cifs/connect.c if (server->tcpStatus == CifsExiting) server 816 fs/cifs/connect.c if (server->tcpStatus == CifsNeedReconnect) { server 817 fs/cifs/connect.c cifs_reconnect(server); server 836 fs/cifs/connect.c cifs_reconnect(server); server 844 fs/cifs/connect.c cifs_read_from_socket(struct TCP_Server_Info *server, char *buf, server 851 fs/cifs/connect.c return cifs_readv_from_socket(server, &smb_msg); server 855 fs/cifs/connect.c cifs_read_page_from_socket(struct TCP_Server_Info *server, struct page *page, server 862 fs/cifs/connect.c return cifs_readv_from_socket(server, &smb_msg); server 866 fs/cifs/connect.c is_smb_response(struct TCP_Server_Info *server, unsigned char type) server 897 fs/cifs/connect.c cifs_set_port((struct sockaddr *)&server->dstaddr, CIFS_PORT); server 898 fs/cifs/connect.c cifs_reconnect(server); server 899 fs/cifs/connect.c wake_up(&server->response_q); server 903 fs/cifs/connect.c cifs_reconnect(server); server 935 fs/cifs/connect.c smb2_get_credits_from_hdr(char *buffer, struct TCP_Server_Info *server) server 942 fs/cifs/connect.c if (server->vals->header_preamble_size) server 949 fs/cifs/connect.c handle_mid(struct mid_q_entry *mid, struct TCP_Server_Info *server, server 952 fs/cifs/connect.c if (server->ops->check_trans2 && server 953 fs/cifs/connect.c server->ops->check_trans2(mid, server, buf, malformed)) server 955 fs/cifs/connect.c mid->credits_received = smb2_get_credits_from_hdr(buf, server); server 957 fs/cifs/connect.c mid->large_buf = server->large_buf; server 961 fs/cifs/connect.c if (server->large_buf) server 962 fs/cifs/connect.c server->bigbuf = NULL; server 964 fs/cifs/connect.c server->smallbuf = NULL; server 969 fs/cifs/connect.c static void clean_demultiplex_info(struct TCP_Server_Info *server) server 975 fs/cifs/connect.c list_del_init(&server->tcp_ses_list); server 979 fs/cifs/connect.c server->tcpStatus = CifsExiting; server 981 fs/cifs/connect.c wake_up_all(&server->response_q); server 984 fs/cifs/connect.c spin_lock(&server->req_lock); server 985 fs/cifs/connect.c if (server->credits <= 0) server 986 fs/cifs/connect.c server->credits = 1; server 987 fs/cifs/connect.c spin_unlock(&server->req_lock); server 995 fs/cifs/connect.c wake_up_all(&server->request_q); server 998 fs/cifs/connect.c if (cifs_rdma_enabled(server)) server 999 fs/cifs/connect.c smbd_destroy(server); server 1000 fs/cifs/connect.c if (server->ssocket) { server 1001 fs/cifs/connect.c sock_release(server->ssocket); server 1002 fs/cifs/connect.c server->ssocket = NULL; server 1005 fs/cifs/connect.c if (!list_empty(&server->pending_mid_q)) { server 1012 fs/cifs/connect.c list_for_each_safe(tmp, tmp2, &server->pending_mid_q) { server 1034 fs/cifs/connect.c if (!list_empty(&server->pending_mid_q)) { server 1051 fs/cifs/connect.c kfree(server->hostname); server 1052 fs/cifs/connect.c kfree(server); server 1060 fs/cifs/connect.c standard_receive3(struct TCP_Server_Info *server, struct mid_q_entry *mid) server 1063 fs/cifs/connect.c char *buf = server->smallbuf; server 1064 fs/cifs/connect.c unsigned int pdu_length = server->pdu_size; server 1067 fs/cifs/connect.c if (pdu_length > CIFSMaxBufSize + MAX_HEADER_SIZE(server) - server 1068 fs/cifs/connect.c server->vals->header_preamble_size) { server 1070 fs/cifs/connect.c cifs_reconnect(server); server 1071 fs/cifs/connect.c wake_up(&server->response_q); server 1077 fs/cifs/connect.c server->large_buf = true; server 1078 fs/cifs/connect.c memcpy(server->bigbuf, buf, server->total_read); server 1079 fs/cifs/connect.c buf = server->bigbuf; server 1083 fs/cifs/connect.c length = cifs_read_from_socket(server, buf + HEADER_SIZE(server) - 1, server 1084 fs/cifs/connect.c pdu_length - HEADER_SIZE(server) + 1 server 1085 fs/cifs/connect.c + server->vals->header_preamble_size); server 1089 fs/cifs/connect.c server->total_read += length; server 1091 fs/cifs/connect.c dump_smb(buf, server->total_read); server 1093 fs/cifs/connect.c return cifs_handle_standard(server, mid); server 1097 fs/cifs/connect.c cifs_handle_standard(struct TCP_Server_Info *server, struct mid_q_entry *mid) server 1099 fs/cifs/connect.c char *buf = server->large_buf ? server->bigbuf : server->smallbuf; server 1111 fs/cifs/connect.c length = server->ops->check_message(buf, server->total_read, server); server 1114 fs/cifs/connect.c min_t(unsigned int, server->total_read, 48)); server 1116 fs/cifs/connect.c if (server->ops->is_session_expired && server 1117 fs/cifs/connect.c server->ops->is_session_expired(buf)) { server 1118 fs/cifs/connect.c cifs_reconnect(server); server 1119 fs/cifs/connect.c wake_up(&server->response_q); server 1123 fs/cifs/connect.c if (server->ops->is_status_pending && server 1124 fs/cifs/connect.c server->ops->is_status_pending(buf, server)) server 1130 fs/cifs/connect.c handle_mid(mid, server, buf, length); server 1135 fs/cifs/connect.c smb2_add_credits_from_hdr(char *buffer, struct TCP_Server_Info *server) server 1142 fs/cifs/connect.c if (server->vals->header_preamble_size) server 1146 fs/cifs/connect.c spin_lock(&server->req_lock); server 1147 fs/cifs/connect.c server->credits += le16_to_cpu(shdr->CreditRequest); server 1148 fs/cifs/connect.c spin_unlock(&server->req_lock); server 1149 fs/cifs/connect.c wake_up(&server->request_q); server 1158 fs/cifs/connect.c struct TCP_Server_Info *server = p; server 1175 fs/cifs/connect.c while (server->tcpStatus != CifsExiting) { server 1179 fs/cifs/connect.c if (!allocate_buffers(server)) server 1182 fs/cifs/connect.c server->large_buf = false; server 1183 fs/cifs/connect.c buf = server->smallbuf; server 1186 fs/cifs/connect.c length = cifs_read_from_socket(server, buf, pdu_length); server 1190 fs/cifs/connect.c if (server->vals->header_preamble_size == 0) server 1191 fs/cifs/connect.c server->total_read = 0; server 1193 fs/cifs/connect.c server->total_read = length; server 1202 fs/cifs/connect.c if (!is_smb_response(server, buf[0])) server 1205 fs/cifs/connect.c server->pdu_size = pdu_length; server 1208 fs/cifs/connect.c if (server->pdu_size < HEADER_SIZE(server) - 1 - server 1209 fs/cifs/connect.c server->vals->header_preamble_size) { server 1211 fs/cifs/connect.c server->pdu_size); server 1212 fs/cifs/connect.c cifs_reconnect(server); server 1213 fs/cifs/connect.c wake_up(&server->response_q); server 1218 fs/cifs/connect.c length = cifs_read_from_socket(server, server 1219 fs/cifs/connect.c buf + server->vals->header_preamble_size, server 1220 fs/cifs/connect.c HEADER_SIZE(server) - 1 server 1221 fs/cifs/connect.c - server->vals->header_preamble_size); server 1224 fs/cifs/connect.c server->total_read += length; server 1226 fs/cifs/connect.c if (server->ops->next_header) { server 1227 fs/cifs/connect.c next_offset = server->ops->next_header(buf); server 1229 fs/cifs/connect.c server->pdu_size = next_offset; server 1236 fs/cifs/connect.c if (server->ops->is_transform_hdr && server 1237 fs/cifs/connect.c server->ops->receive_transform && server 1238 fs/cifs/connect.c server->ops->is_transform_hdr(buf)) { server 1239 fs/cifs/connect.c length = server->ops->receive_transform(server, server 1244 fs/cifs/connect.c mids[0] = server->ops->find_mid(server, buf); server 1249 fs/cifs/connect.c length = standard_receive3(server, mids[0]); server 1251 fs/cifs/connect.c length = mids[0]->receive(server, mids[0]); server 1261 fs/cifs/connect.c server->lstrp = jiffies; server 1265 fs/cifs/connect.c mids[i]->resp_buf_size = server->pdu_size; server 1271 fs/cifs/connect.c } else if (server->ops->is_oplock_break && server 1272 fs/cifs/connect.c server->ops->is_oplock_break(bufs[i], server 1273 fs/cifs/connect.c server)) { server 1274 fs/cifs/connect.c smb2_add_credits_from_hdr(bufs[i], server); server 1281 fs/cifs/connect.c HEADER_SIZE(server)); server 1282 fs/cifs/connect.c smb2_add_credits_from_hdr(bufs[i], server); server 1284 fs/cifs/connect.c if (server->ops->dump_detail) server 1285 fs/cifs/connect.c server->ops->dump_detail(bufs[i], server 1286 fs/cifs/connect.c server); server 1287 fs/cifs/connect.c cifs_dump_mids(server); server 1292 fs/cifs/connect.c if (pdu_length > server->pdu_size) { server 1293 fs/cifs/connect.c if (!allocate_buffers(server)) server 1295 fs/cifs/connect.c pdu_length -= server->pdu_size; server 1296 fs/cifs/connect.c server->total_read = 0; server 1297 fs/cifs/connect.c server->large_buf = false; server 1298 fs/cifs/connect.c buf = server->smallbuf; server 1304 fs/cifs/connect.c cifs_buf_release(server->bigbuf); server 1305 fs/cifs/connect.c if (server->smallbuf) /* no sense logging a debug message if NULL */ server 1306 fs/cifs/connect.c cifs_small_buf_release(server->smallbuf); server 1308 fs/cifs/connect.c task_to_wake = xchg(&server->tsk, NULL); server 1309 fs/cifs/connect.c clean_demultiplex_info(server); server 2548 fs/cifs/connect.c match_port(struct TCP_Server_Info *server, struct sockaddr *addr) server 2553 fs/cifs/connect.c if (server->rdma) server 2558 fs/cifs/connect.c sport = &((struct sockaddr_in *) &server->dstaddr)->sin_port; server 2562 fs/cifs/connect.c sport = &((struct sockaddr_in6 *) &server->dstaddr)->sin6_port; server 2582 fs/cifs/connect.c match_address(struct TCP_Server_Info *server, struct sockaddr *addr, server 2589 fs/cifs/connect.c (struct sockaddr_in *)&server->dstaddr; server 2598 fs/cifs/connect.c (struct sockaddr_in6 *)&server->dstaddr; server 2612 fs/cifs/connect.c if (!srcip_matches(srcaddr, (struct sockaddr *)&server->srcaddr)) server 2619 fs/cifs/connect.c match_security(struct TCP_Server_Info *server, struct smb_vol *vol) server 2626 fs/cifs/connect.c if (server->ops->select_sectype(server, vol->sectype) server 2635 fs/cifs/connect.c if (vol->sign && !server->sign) server 2641 fs/cifs/connect.c static int match_server(struct TCP_Server_Info *server, struct smb_vol *vol) server 2650 fs/cifs/connect.c if (server->vals->protocol_id < SMB30_PROT_ID) server 2654 fs/cifs/connect.c if (server->vals->protocol_id < SMB21_PROT_ID) server 2656 fs/cifs/connect.c } else if ((server->vals != vol->vals) || (server->ops != vol->ops)) server 2659 fs/cifs/connect.c if (!net_eq(cifs_net_ns(server), current->nsproxy->net_ns)) server 2662 fs/cifs/connect.c if (!match_address(server, addr, server 2666 fs/cifs/connect.c if (!match_port(server, addr)) server 2669 fs/cifs/connect.c if (!match_security(server, vol)) server 2672 fs/cifs/connect.c if (server->echo_interval != vol->echo_interval * HZ) server 2675 fs/cifs/connect.c if (server->rdma != vol->rdma) server 2678 fs/cifs/connect.c if (server->ignore_signature != vol->ignore_signature) server 2681 fs/cifs/connect.c if (server->min_offload != vol->min_offload) server 2690 fs/cifs/connect.c struct TCP_Server_Info *server; server 2693 fs/cifs/connect.c list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) { server 2694 fs/cifs/connect.c if (!match_server(server, vol)) server 2697 fs/cifs/connect.c ++server->srv_count; server 2700 fs/cifs/connect.c return server; server 2707 fs/cifs/connect.c cifs_put_tcp_session(struct TCP_Server_Info *server, int from_reconnect) server 2712 fs/cifs/connect.c if (--server->srv_count > 0) { server 2717 fs/cifs/connect.c put_net(cifs_net_ns(server)); server 2719 fs/cifs/connect.c list_del_init(&server->tcp_ses_list); server 2722 fs/cifs/connect.c cancel_delayed_work_sync(&server->echo); server 2731 fs/cifs/connect.c cancel_delayed_work(&server->reconnect); server 2733 fs/cifs/connect.c cancel_delayed_work_sync(&server->reconnect); server 2736 fs/cifs/connect.c server->tcpStatus = CifsExiting; server 2739 fs/cifs/connect.c cifs_crypto_secmech_release(server); server 2740 fs/cifs/connect.c cifs_fscache_release_client_cookie(server); server 2742 fs/cifs/connect.c kfree(server->session_key.response); server 2743 fs/cifs/connect.c server->session_key.response = NULL; server 2744 fs/cifs/connect.c server->session_key.len = 0; server 2746 fs/cifs/connect.c task = xchg(&server->tsk, NULL); server 2941 fs/cifs/connect.c struct TCP_Server_Info *server = ses->server; server 2948 fs/cifs/connect.c if (server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION) server 2961 fs/cifs/connect.c scnprintf(unc, sizeof(unc), "\\\\%s\\IPC$", server->hostname); server 2970 fs/cifs/connect.c rc = server->ops->tree_connect(xid, ses, unc, tcon, nls_codepage); server 3001 fs/cifs/connect.c if (ses->server->ops->tree_disconnect) { server 3003 fs/cifs/connect.c rc = ses->server->ops->tree_disconnect(xid, tcon); server 3016 fs/cifs/connect.c cifs_find_smb_ses(struct TCP_Server_Info *server, struct smb_vol *vol) server 3021 fs/cifs/connect.c list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { server 3037 fs/cifs/connect.c struct TCP_Server_Info *server = ses->server; server 3056 fs/cifs/connect.c if (ses->status == CifsExiting && server->ops->logoff) { server 3058 fs/cifs/connect.c rc = server->ops->logoff(xid, ses); server 3070 fs/cifs/connect.c cifs_put_tcp_session(server, 0); server 3088 fs/cifs/connect.c struct TCP_Server_Info *server = ses->server; server 3098 fs/cifs/connect.c switch (server->dstaddr.ss_family) { server 3100 fs/cifs/connect.c sa = (struct sockaddr_in *)&server->dstaddr; server 3104 fs/cifs/connect.c sa6 = (struct sockaddr_in6 *)&server->dstaddr; server 3109 fs/cifs/connect.c server->dstaddr.ss_family); server 3234 fs/cifs/connect.c cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb_vol *volume_info) server 3239 fs/cifs/connect.c struct sockaddr_in *addr = (struct sockaddr_in *)&server->dstaddr; server 3240 fs/cifs/connect.c struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&server->dstaddr; server 3244 fs/cifs/connect.c ses = cifs_find_smb_ses(server, volume_info); server 3273 fs/cifs/connect.c cifs_put_tcp_session(server, 0); server 3284 fs/cifs/connect.c ses->server = server; server 3285 fs/cifs/connect.c if (server->dstaddr.ss_family == AF_INET6) server 3324 fs/cifs/connect.c list_add(&ses->smb_ses_list, &server->smb_ses_list); server 3404 fs/cifs/connect.c if (ses->server->ops->tree_disconnect) server 3405 fs/cifs/connect.c ses->server->ops->tree_disconnect(xid, tcon); server 3450 fs/cifs/connect.c if (!ses->server->ops->tree_connect) { server 3462 fs/cifs/connect.c if (ses->server->vals->protocol_id == 0) { server 3472 fs/cifs/connect.c if (ses->server->vals->protocol_id == 0) { server 3491 fs/cifs/connect.c if (ses->server->vals->protocol_id == 0) { server 3496 fs/cifs/connect.c } else if (tcon->ses->server->capabilities & server 3507 fs/cifs/connect.c if (ses->server->posix_ext_supported) { server 3523 fs/cifs/connect.c rc = ses->server->ops->tree_connect(xid, ses, volume_info->UNC, tcon, server 3533 fs/cifs/connect.c if (ses->server->vals->protocol_id == 0) { server 3538 fs/cifs/connect.c } else if (ses->server->capabilities & server 3548 fs/cifs/connect.c && (ses->server->capabilities & SMB2_GLOBAL_CAP_PERSISTENT_HANDLES) server 3553 fs/cifs/connect.c if (ses->server->vals->protocol_id == 0) { server 3695 fs/cifs/connect.c tcp_srv = ses->server; server 3762 fs/cifs/connect.c bind_socket(struct TCP_Server_Info *server) server 3765 fs/cifs/connect.c if (server->srcaddr.ss_family != AF_UNSPEC) { server 3767 fs/cifs/connect.c struct socket *socket = server->ssocket; server 3769 fs/cifs/connect.c (struct sockaddr *) &server->srcaddr, server 3770 fs/cifs/connect.c sizeof(server->srcaddr)); server 3774 fs/cifs/connect.c saddr4 = (struct sockaddr_in *)&server->srcaddr; server 3775 fs/cifs/connect.c saddr6 = (struct sockaddr_in6 *)&server->srcaddr; server 3788 fs/cifs/connect.c ip_rfc1001_connect(struct TCP_Server_Info *server) server 3803 fs/cifs/connect.c if (server->server_RFC1001_name[0] != 0) server 3806 fs/cifs/connect.c server->server_RFC1001_name, server 3820 fs/cifs/connect.c if (server->workstation_RFC1001_name[0] != 0) server 3823 fs/cifs/connect.c server->workstation_RFC1001_name, server 3837 fs/cifs/connect.c rc = smb_send(server, smb_buf, 0x44); server 3860 fs/cifs/connect.c generic_ip_connect(struct TCP_Server_Info *server) server 3865 fs/cifs/connect.c struct socket *socket = server->ssocket; server 3868 fs/cifs/connect.c saddr = (struct sockaddr *) &server->dstaddr; server 3870 fs/cifs/connect.c if (server->dstaddr.ss_family == AF_INET6) { server 3881 fs/cifs/connect.c rc = __sock_create(cifs_net_ns(server), sfamily, SOCK_STREAM, server 3885 fs/cifs/connect.c server->ssocket = NULL; server 3891 fs/cifs/connect.c server->ssocket = socket; server 3899 fs/cifs/connect.c rc = bind_socket(server); server 3912 fs/cifs/connect.c if (server->noautotune) { server 3919 fs/cifs/connect.c if (server->tcp_nodelay) { server 3933 fs/cifs/connect.c server->noblockcnt ? O_NONBLOCK : 0); server 3939 fs/cifs/connect.c if (server->noblockcnt && rc == -EINPROGRESS) server 3944 fs/cifs/connect.c server->ssocket = NULL; server 3949 fs/cifs/connect.c rc = ip_rfc1001_connect(server); server 3955 fs/cifs/connect.c ip_connect(struct TCP_Server_Info *server) server 3958 fs/cifs/connect.c struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&server->dstaddr; server 3959 fs/cifs/connect.c struct sockaddr_in *addr = (struct sockaddr_in *)&server->dstaddr; server 3961 fs/cifs/connect.c if (server->dstaddr.ss_family == AF_INET6) server 3972 fs/cifs/connect.c rc = generic_ip_connect(server); server 3980 fs/cifs/connect.c return generic_ip_connect(server); server 4227 fs/cifs/connect.c struct TCP_Server_Info *server, server 4236 fs/cifs/connect.c else if (server) server 4237 fs/cifs/connect.c cifs_put_tcp_session(server, 0); server 4249 fs/cifs/connect.c struct TCP_Server_Info *server; server 4260 fs/cifs/connect.c server = cifs_get_tcp_session(vol); server 4261 fs/cifs/connect.c if (IS_ERR(server)) { server 4262 fs/cifs/connect.c rc = PTR_ERR(server); server 4266 fs/cifs/connect.c *nserver = server; server 4269 fs/cifs/connect.c server->max_credits = SMB2_MAX_CREDITS_AVAILABLE; server 4271 fs/cifs/connect.c server->max_credits = vol->max_credits; server 4274 fs/cifs/connect.c ses = cifs_get_smb_ses(server, vol); server 4282 fs/cifs/connect.c if ((vol->persistent == true) && (!(ses->server->capabilities & server 4308 fs/cifs/connect.c if ((tcon->ses->server->tcpStatus == CifsNeedReconnect) && server 4316 fs/cifs/connect.c if (!tcon->pipe && server->ops->qfs_tcon) { server 4317 fs/cifs/connect.c server->ops->qfs_tcon(*xid, tcon); server 4329 fs/cifs/connect.c cifs_sb->wsize = server->ops->negotiate_wsize(tcon, vol); server 4330 fs/cifs/connect.c cifs_sb->rsize = server->ops->negotiate_rsize(tcon, vol); server 4494 fs/cifs/connect.c struct TCP_Server_Info **server, server 4530 fs/cifs/connect.c mount_put_conns(cifs_sb, *xid, *server, *ses, *tcon); server 4531 fs/cifs/connect.c rc = mount_get_conns(&fake_vol, cifs_sb, xid, server, ses, server 4550 fs/cifs/connect.c struct TCP_Server_Info **server, server 4571 fs/cifs/connect.c rc = setup_dfs_tgt_conn(path, tgt_it, cifs_sb, vol, xid, server, server 4650 fs/cifs/connect.c cifs_are_all_path_components_accessible(struct TCP_Server_Info *server, server 4665 fs/cifs/connect.c rc = server->ops->is_path_accessible(xid, tcon, cifs_sb, ""); server 4689 fs/cifs/connect.c rc = server->ops->is_path_accessible(xid, tcon, cifs_sb, server 4702 fs/cifs/connect.c struct TCP_Server_Info *server, server 4708 fs/cifs/connect.c if (!server->ops->is_path_accessible) server 4721 fs/cifs/connect.c rc = server->ops->is_path_accessible(xid, tcon, cifs_sb, server 4729 fs/cifs/connect.c rc = cifs_are_all_path_components_accessible(server, xid, tcon, server 4762 fs/cifs/connect.c struct TCP_Server_Info *server; server 4767 fs/cifs/connect.c rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon); server 4774 fs/cifs/connect.c rc = is_path_remote(cifs_sb, vol, xid, server, tcon); server 4833 fs/cifs/connect.c mount_put_conns(cifs_sb, xid, server, ses, tcon); server 4834 fs/cifs/connect.c rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon); server 4841 fs/cifs/connect.c &xid, &server, &ses, &tcon); server 4863 fs/cifs/connect.c rc = is_path_remote(cifs_sb, vol, xid, server, tcon); server 4893 fs/cifs/connect.c mount_put_conns(cifs_sb, xid, server, ses, tcon); server 4894 fs/cifs/connect.c rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, server 4912 fs/cifs/connect.c &server, &ses, &tcon); server 4913 fs/cifs/connect.c if (rc == -EACCES || rc == -EOPNOTSUPP || !server || server 4959 fs/cifs/connect.c mount_put_conns(cifs_sb, xid, server, ses, tcon); server 4969 fs/cifs/connect.c struct TCP_Server_Info *server; server 4971 fs/cifs/connect.c rc = mount_get_conns(vol, cifs_sb, &xid, &server, &ses, &tcon); server 4976 fs/cifs/connect.c rc = is_path_remote(cifs_sb, vol, xid, server, tcon); server 4988 fs/cifs/connect.c mount_put_conns(cifs_sb, xid, server, ses, tcon); server 5022 fs/cifs/connect.c smb_buffer->Mid = get_next_mid(ses->server); server 5030 fs/cifs/connect.c if (tcon->pipe || (ses->server->sec_mode & SECMODE_USER)) { server 5046 fs/cifs/connect.c calc_lanman_hash(tcon->password, ses->server->cryptkey, server 5047 fs/cifs/connect.c ses->server->sec_mode & server 5052 fs/cifs/connect.c rc = SMBNTencrypt(tcon->password, ses->server->cryptkey, server 5069 fs/cifs/connect.c if (ses->server->sign) server 5198 fs/cifs/connect.c struct TCP_Server_Info *server = ses->server; server 5200 fs/cifs/connect.c if (!server->ops->need_neg || !server->ops->negotiate) server 5204 fs/cifs/connect.c if (!server->ops->need_neg(server)) server 5207 fs/cifs/connect.c rc = server->ops->negotiate(xid, ses); server 5210 fs/cifs/connect.c if (server->tcpStatus == CifsNeedNegotiate) server 5211 fs/cifs/connect.c server->tcpStatus = CifsGood; server 5225 fs/cifs/connect.c struct TCP_Server_Info *server = ses->server; server 5227 fs/cifs/connect.c ses->capabilities = server->capabilities; server 5229 fs/cifs/connect.c ses->capabilities &= (~server->vals->cap_unix); server 5232 fs/cifs/connect.c server->sec_mode, server->capabilities, server->timeAdj); server 5242 fs/cifs/connect.c if (server->ops->sess_setup) server 5243 fs/cifs/connect.c rc = server->ops->sess_setup(xid, ses, nls_info); server 5296 fs/cifs/connect.c ++master_tcon->ses->server->srv_count; server 5299 fs/cifs/connect.c ses = cifs_get_smb_ses(master_tcon->ses->server, vol_info); server 5302 fs/cifs/connect.c cifs_put_tcp_session(master_tcon->ses->server, 0); server 610 fs/cifs/dfs_cache.c if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) server 617 fs/cifs/dfs_cache.c rc = ses->server->ops->get_dfs_refer(xid, ses, path, &refs, &numrefs, server 666 fs/cifs/dfs_cache.c if (!ses || !ses->server || !ses->server->ops->get_dfs_refer) { server 681 fs/cifs/dfs_cache.c rc = ses->server->ops->get_dfs_refer(xid, ses, path, &nrefs, server 1209 fs/cifs/dfs_cache.c int dfs_cache_update_vol(const char *fullpath, struct TCP_Server_Info *server) server 1214 fs/cifs/dfs_cache.c if (!fullpath || !server) server 1228 fs/cifs/dfs_cache.c memcpy(&vi->vi_vol.dstaddr, &server->dstaddr, server 1259 fs/cifs/dfs_cache.c static void get_tcons(struct TCP_Server_Info *server, struct list_head *head) server 1267 fs/cifs/dfs_cache.c list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { server 1320 fs/cifs/dfs_cache.c struct TCP_Server_Info *server; server 1354 fs/cifs/dfs_cache.c server = cifs_find_tcp_session(&vol); server 1355 fs/cifs/dfs_cache.c if (IS_ERR_OR_NULL(server)) { server 1359 fs/cifs/dfs_cache.c if (server->tcpStatus != CifsGood) { server 1360 fs/cifs/dfs_cache.c cifs_put_tcp_session(server, 0); server 1365 fs/cifs/dfs_cache.c ses = cifs_get_smb_ses(server, &vol); server 1420 fs/cifs/dfs_cache.c if (unlikely(!ses->server->ops->get_dfs_refer)) { server 1423 fs/cifs/dfs_cache.c rc = ses->server->ops->get_dfs_refer(xid, ses, path, &refs, server 1454 fs/cifs/dfs_cache.c struct TCP_Server_Info *server; server 1461 fs/cifs/dfs_cache.c server = cifs_find_tcp_session(&vi->vi_vol); server 1462 fs/cifs/dfs_cache.c if (IS_ERR_OR_NULL(server)) server 1464 fs/cifs/dfs_cache.c if (server->tcpStatus != CifsGood) server 1466 fs/cifs/dfs_cache.c get_tcons(server, &list); server 1473 fs/cifs/dfs_cache.c cifs_put_tcp_session(server, 0); server 49 fs/cifs/dfs_cache.h struct TCP_Server_Info *server); server 239 fs/cifs/dir.c struct TCP_Server_Info *server = tcon->ses->server; server 243 fs/cifs/dir.c if (tcon->ses->server->oplocks) server 342 fs/cifs/dir.c if (!server->ops->open) { server 372 fs/cifs/dir.c rc = server->ops->open(xid, &oparms, oplock, buf); server 422 fs/cifs/dir.c if (server->ops->set_lease_key) server 423 fs/cifs/dir.c server->ops->set_lease_key(newinode, fid); server 458 fs/cifs/dir.c if (server->ops->close) server 459 fs/cifs/dir.c server->ops->close(xid, tcon, fid); server 473 fs/cifs/dir.c struct TCP_Server_Info *server; server 524 fs/cifs/dir.c server = tcon->ses->server; server 526 fs/cifs/dir.c if (server->ops->new_lease_key) server 527 fs/cifs/dir.c server->ops->new_lease_key(&fid); server 544 fs/cifs/dir.c if (server->ops->close) server 545 fs/cifs/dir.c server->ops->close(xid, tcon, &fid); server 560 fs/cifs/dir.c if (server->ops->close) server 561 fs/cifs/dir.c server->ops->close(xid, tcon, &fid); server 588 fs/cifs/dir.c struct TCP_Server_Info *server; server 601 fs/cifs/dir.c server = tcon->ses->server; server 603 fs/cifs/dir.c if (server->ops->new_lease_key) server 604 fs/cifs/dir.c server->ops->new_lease_key(&fid); server 608 fs/cifs/dir.c if (!rc && server->ops->close) server 609 fs/cifs/dir.c server->ops->close(xid, tcon, &fid); server 645 fs/cifs/dir.c rc = tcon->ses->server->ops->make_node(xid, inode, direntry, tcon, server 185 fs/cifs/file.c struct TCP_Server_Info *server = tcon->ses->server; server 188 fs/cifs/file.c if (!server->ops->open) server 244 fs/cifs/file.c rc = server->ops->open(xid, &oparms, oplock, buf); server 257 fs/cifs/file.c server->ops->close(xid, tcon, fid); server 303 fs/cifs/file.c struct TCP_Server_Info *server = tcon->ses->server; server 337 fs/cifs/file.c if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { server 352 fs/cifs/file.c server->ops->set_fid(cfile, fid, oplock); server 445 fs/cifs/file.c struct TCP_Server_Info *server = tcon->ses->server; server 464 fs/cifs/file.c if (server->ops->get_lease_key) server 465 fs/cifs/file.c server->ops->get_lease_key(inode, &fid); server 495 fs/cifs/file.c struct TCP_Server_Info *server = tcon->ses->server; server 499 fs/cifs/file.c if (server->ops->close) server 500 fs/cifs/file.c server->ops->close(xid, tcon, &cifs_file->fid); server 522 fs/cifs/file.c struct TCP_Server_Info *server; server 540 fs/cifs/file.c server = tcon->ses->server; server 559 fs/cifs/file.c if (server->oplocks) server 589 fs/cifs/file.c if (server->ops->get_lease_key) server 590 fs/cifs/file.c server->ops->get_lease_key(inode, &fid); server 595 fs/cifs/file.c if (server->ops->get_lease_key) server 596 fs/cifs/file.c server->ops->get_lease_key(inode, &fid); server 608 fs/cifs/file.c if (server->ops->close) server 609 fs/cifs/file.c server->ops->close(xid, tcon, &fid); server 668 fs/cifs/file.c rc = tcon->ses->server->ops->push_mand_locks(cfile); server 682 fs/cifs/file.c struct TCP_Server_Info *server; server 703 fs/cifs/file.c server = tcon->ses->server; server 722 fs/cifs/file.c if (tcon->ses->server->oplocks) server 763 fs/cifs/file.c if (server->ops->get_lease_key) server 764 fs/cifs/file.c server->ops->get_lease_key(inode, &cfile->fid); server 782 fs/cifs/file.c rc = server->ops->open(xid, &oparms, &oplock, NULL); server 785 fs/cifs/file.c rc = server->ops->open(xid, &oparms, &oplock, NULL); server 825 fs/cifs/file.c if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { server 830 fs/cifs/file.c server->ops->set_fid(cfile, &cfile->fid, oplock); server 893 fs/cifs/file.c struct TCP_Server_Info *server; server 903 fs/cifs/file.c server = tcon->ses->server; server 907 fs/cifs/file.c if (server->ops->dir_needs_close(cfile)) { server 910 fs/cifs/file.c if (server->ops->close_dir) server 911 fs/cifs/file.c rc = server->ops->close_dir(xid, tcon, &cfile->fid); server 978 fs/cifs/file.c struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; server 985 fs/cifs/file.c server->ops->compare_fids(cfile, cur_cfile)) { server 987 fs/cifs/file.c if (!(li->type & server->vals->shared_lock_type) || server 991 fs/cifs/file.c if ((type & server->vals->shared_lock_type) && server 992 fs/cifs/file.c ((server->ops->compare_fids(cfile, cur_cfile) && server 997 fs/cifs/file.c server->ops->compare_fids(cfile, cur_cfile)) server 1040 fs/cifs/file.c struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; server 1052 fs/cifs/file.c if (conf_lock->type & server->vals->shared_lock_type) server 1207 fs/cifs/file.c max_buf = tcon->ses->server->maxBuf; server 1385 fs/cifs/file.c rc = tcon->ses->server->ops->push_mand_locks(cfile); server 1394 fs/cifs/file.c bool *wait_flag, struct TCP_Server_Info *server) server 1413 fs/cifs/file.c *type = server->vals->large_lock_type; server 1416 fs/cifs/file.c *type |= server->vals->exclusive_lock_type; server 1420 fs/cifs/file.c *type |= server->vals->unlock_lock_type; server 1425 fs/cifs/file.c *type |= server->vals->shared_lock_type; server 1429 fs/cifs/file.c *type |= server->vals->exclusive_lock_type; server 1433 fs/cifs/file.c *type |= server->vals->shared_lock_type; server 1447 fs/cifs/file.c struct TCP_Server_Info *server = tcon->ses->server; server 1457 fs/cifs/file.c if (type & server->vals->shared_lock_type) server 1473 fs/cifs/file.c rc = server->ops->mand_lock(xid, cfile, flock->fl_start, length, type, server 1476 fs/cifs/file.c rc = server->ops->mand_lock(xid, cfile, flock->fl_start, length, server 1485 fs/cifs/file.c if (type & server->vals->shared_lock_type) { server 1490 fs/cifs/file.c type &= ~server->vals->exclusive_lock_type; server 1492 fs/cifs/file.c rc = server->ops->mand_lock(xid, cfile, flock->fl_start, length, server 1493 fs/cifs/file.c type | server->vals->shared_lock_type, server 1496 fs/cifs/file.c rc = server->ops->mand_lock(xid, cfile, flock->fl_start, length, server 1497 fs/cifs/file.c type | server->vals->shared_lock_type, 0, 1, false); server 1551 fs/cifs/file.c max_buf = tcon->ses->server->maxBuf; server 1649 fs/cifs/file.c struct TCP_Server_Info *server = tcon->ses->server; server 1659 fs/cifs/file.c if (type & server->vals->shared_lock_type) server 1705 fs/cifs/file.c rc = server->ops->mand_lock(xid, cfile, flock->fl_start, length, server 1714 fs/cifs/file.c rc = server->ops->mand_unlock_range(cfile, flock, xid); server 1756 fs/cifs/file.c tcon->ses->server); server 1810 fs/cifs/file.c struct TCP_Server_Info *server; server 1820 fs/cifs/file.c server = tcon->ses->server; server 1822 fs/cifs/file.c if (!server->ops->sync_write) server 1844 fs/cifs/file.c len = min(server->ops->wp_retry_size(d_inode(dentry)), server 1853 fs/cifs/file.c rc = server->ops->sync_write(xid, &open_file->fid, server 2253 fs/cifs/file.c struct TCP_Server_Info *server = server 2254 fs/cifs/file.c tlink_tcon(wdata->cfile->tlink)->ses->server; server 2266 fs/cifs/file.c rc = adjust_credits(server, &wdata->credits, wdata->bytes); server 2273 fs/cifs/file.c rc = server->ops->async_writev(wdata, cifs_writedata_release); server 2283 fs/cifs/file.c struct TCP_Server_Info *server; server 2310 fs/cifs/file.c server = cifs_sb_master_tcon(cifs_sb)->ses->server; server 2328 fs/cifs/file.c rc = server->ops->wait_mtu_credits(server, cifs_sb->wsize, server 2342 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 2348 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 2358 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 2381 fs/cifs/file.c add_credits_and_wake_if(server, &wdata->credits, 0); server 2554 fs/cifs/file.c struct TCP_Server_Info *server; server 2578 fs/cifs/file.c server = tcon->ses->server; server 2579 fs/cifs/file.c if (server->ops->flush) server 2580 fs/cifs/file.c rc = server->ops->flush(xid, tcon, &smbfile->fid); server 2594 fs/cifs/file.c struct TCP_Server_Info *server; server 2609 fs/cifs/file.c server = tcon->ses->server; server 2610 fs/cifs/file.c if (server->ops->flush) server 2611 fs/cifs/file.c rc = server->ops->flush(xid, tcon, &smbfile->fid); server 2762 fs/cifs/file.c struct TCP_Server_Info *server = server 2763 fs/cifs/file.c tlink_tcon(wdata->cfile->tlink)->ses->server; server 2781 fs/cifs/file.c rc = server->ops->wait_mtu_credits(server, wdata->bytes, server 2787 fs/cifs/file.c add_credits_and_wake_if(server, &credits, 0); server 2793 fs/cifs/file.c rc = adjust_credits(server, &wdata->credits, wdata->bytes); server 2799 fs/cifs/file.c rc = server->ops->async_writev(wdata, server 2810 fs/cifs/file.c add_credits_and_wake_if(server, &wdata->credits, 0); server 2831 fs/cifs/file.c struct TCP_Server_Info *server; server 2841 fs/cifs/file.c server = tlink_tcon(open_file->tlink)->ses->server; server 2857 fs/cifs/file.c rc = server->ops->wait_mtu_credits(server, cifs_sb->wsize, server 2879 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 2892 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 2909 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 2917 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 2929 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 2954 fs/cifs/file.c rc = adjust_credits(server, &wdata->credits, wdata->bytes); server 2960 fs/cifs/file.c rc = server->ops->async_writev(wdata, server 2965 fs/cifs/file.c add_credits_and_wake_if(server, &wdata->credits, 0); server 3098 fs/cifs/file.c if (!tcon->ses->server->ops->async_writev) server 3188 fs/cifs/file.c struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; server 3203 fs/cifs/file.c server->vals->exclusive_lock_type, 0, server 3408 fs/cifs/file.c uncached_fill_pages(struct TCP_Server_Info *server, server 3455 fs/cifs/file.c server, page, page_offset, n); server 3467 fs/cifs/file.c cifs_uncached_read_into_pages(struct TCP_Server_Info *server, server 3470 fs/cifs/file.c return uncached_fill_pages(server, rdata, NULL, len); server 3474 fs/cifs/file.c cifs_uncached_copy_into_pages(struct TCP_Server_Info *server, server 3478 fs/cifs/file.c return uncached_fill_pages(server, rdata, iter, iter->count); server 3488 fs/cifs/file.c struct TCP_Server_Info *server = server 3489 fs/cifs/file.c tlink_tcon(rdata->cfile->tlink)->ses->server; server 3506 fs/cifs/file.c rc = server->ops->wait_mtu_credits(server, rdata->bytes, server 3513 fs/cifs/file.c add_credits_and_wake_if(server, &credits, 0); server 3519 fs/cifs/file.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); server 3524 fs/cifs/file.c rc = server->ops->async_readv(rdata); server 3535 fs/cifs/file.c add_credits_and_wake_if(server, &rdata->credits, 0); server 3555 fs/cifs/file.c struct TCP_Server_Info *server; server 3560 fs/cifs/file.c server = tlink_tcon(open_file->tlink)->ses->server; server 3579 fs/cifs/file.c rc = server->ops->wait_mtu_credits(server, cifs_sb->rsize, server 3603 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 3612 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 3630 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 3639 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 3658 fs/cifs/file.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); server 3664 fs/cifs/file.c rc = server->ops->async_readv(rdata); server 3668 fs/cifs/file.c add_credits_and_wake_if(server, &rdata->credits, 0); server 3821 fs/cifs/file.c if (!tcon->ses->server->ops->async_readv) server 3937 fs/cifs/file.c tcon->ses->server->vals->shared_lock_type, server 3954 fs/cifs/file.c struct TCP_Server_Info *server; server 3975 fs/cifs/file.c server = tcon->ses->server; server 3977 fs/cifs/file.c if (!server->ops->sync_read) { server 4001 fs/cifs/file.c tcon->ses->server->vals->cap_large_files)) { server 4014 fs/cifs/file.c rc = server->ops->sync_read(xid, &open_file->fid, &io_parms, server 4125 fs/cifs/file.c readpages_fill_pages(struct TCP_Server_Info *server, server 4199 fs/cifs/file.c server, page, page_offset, n); server 4211 fs/cifs/file.c cifs_readpages_read_into_pages(struct TCP_Server_Info *server, server 4214 fs/cifs/file.c return readpages_fill_pages(server, rdata, NULL, len); server 4218 fs/cifs/file.c cifs_readpages_copy_into_pages(struct TCP_Server_Info *server, server 4222 fs/cifs/file.c return readpages_fill_pages(server, rdata, iter, iter->count); server 4291 fs/cifs/file.c struct TCP_Server_Info *server; server 4316 fs/cifs/file.c server = tlink_tcon(open_file->tlink)->ses->server; server 4348 fs/cifs/file.c rc = server->ops->wait_mtu_credits(server, cifs_sb->rsize, server 4360 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 4368 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 4382 fs/cifs/file.c add_credits_and_wake_if(server, credits, 0); server 4402 fs/cifs/file.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); server 4408 fs/cifs/file.c rc = server->ops->async_readv(rdata); server 4412 fs/cifs/file.c add_credits_and_wake_if(server, &rdata->credits, 0); server 4676 fs/cifs/file.c struct TCP_Server_Info *server = tcon->ses->server; server 4682 fs/cifs/file.c server->ops->downgrade_oplock(server, cinode, server 4717 fs/cifs/file.c rc = tcon->ses->server->ops->oplock_response(tcon, &cfile->fid, server 43 fs/cifs/fscache.c void cifs_fscache_get_client_cookie(struct TCP_Server_Info *server) server 45 fs/cifs/fscache.c const struct sockaddr *sa = (struct sockaddr *) &server->dstaddr; server 73 fs/cifs/fscache.c server->fscache = NULL; server 77 fs/cifs/fscache.c server->fscache = server 82 fs/cifs/fscache.c server, 0, true); server 84 fs/cifs/fscache.c __func__, server, server->fscache); server 87 fs/cifs/fscache.c void cifs_fscache_release_client_cookie(struct TCP_Server_Info *server) server 90 fs/cifs/fscache.c __func__, server, server->fscache); server 91 fs/cifs/fscache.c fscache_relinquish_cookie(server->fscache, NULL, false); server 92 fs/cifs/fscache.c server->fscache = NULL; server 97 fs/cifs/fscache.c struct TCP_Server_Info *server = tcon->ses->server; server 108 fs/cifs/fscache.c fscache_acquire_cookie(server->fscache, server 115 fs/cifs/fscache.c __func__, server->fscache, tcon->fscache); server 122 fs/cifs/fscache.h cifs_fscache_get_client_cookie(struct TCP_Server_Info *server) {} server 124 fs/cifs/fscache.h cifs_fscache_release_client_cookie(struct TCP_Server_Info *server) {} server 64 fs/cifs/inode.c if (cifs_sb_master_tcon(cifs_sb)->ses->server->maxBuf < server 483 fs/cifs/inode.c if (tcon->ses->server->oplocks) server 487 fs/cifs/inode.c rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); server 501 fs/cifs/inode.c rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms, server 543 fs/cifs/inode.c tcon->ses->server->ops->close(xid, tcon, &fid); server 570 fs/cifs/inode.c if (tcon->ses->server->ops->query_all_EAs == NULL) { server 575 fs/cifs/inode.c rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path, server 621 fs/cifs/inode.c fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj; server 622 fs/cifs/inode.c fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj; server 677 fs/cifs/inode.c struct TCP_Server_Info *server = tcon->ses->server; server 679 fs/cifs/inode.c if (!server->ops->query_file_info) server 683 fs/cifs/inode.c rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data); server 738 fs/cifs/inode.c struct TCP_Server_Info *server; server 751 fs/cifs/inode.c server = tcon->ses->server; server 765 fs/cifs/inode.c if (!server->ops->query_path_info) { server 775 fs/cifs/inode.c rc = server->ops->query_path_info(xid, tcon, cifs_sb, full_path, server 786 fs/cifs/inode.c (strcmp(server->vals->version_string, SMB1_VERSION_STRING) server 805 fs/cifs/inode.c tcon->ses->server->vals->cap_nt_find) == 0) server 843 fs/cifs/inode.c if (server->ops->get_srv_inum) server 844 fs/cifs/inode.c tmprc = server->ops->get_srv_inum(xid, server 865 fs/cifs/inode.c && server->ops->get_srv_inum) { server 870 fs/cifs/inode.c tmprc = server->ops->get_srv_inum(xid, server 1141 fs/cifs/inode.c struct TCP_Server_Info *server; server 1147 fs/cifs/inode.c server = cifs_sb_master_tcon(cifs_sb)->ses->server; server 1148 fs/cifs/inode.c if (!server->ops->set_file_info) server 1183 fs/cifs/inode.c return server->ops->set_file_info(inode, full_path, &info_buf, xid); server 1345 fs/cifs/inode.c struct TCP_Server_Info *server; server 1355 fs/cifs/inode.c server = tcon->ses->server; server 1378 fs/cifs/inode.c if (!server->ops->unlink) { server 1383 fs/cifs/inode.c rc = server->ops->unlink(xid, tcon, full_path, cifs_sb); server 1392 fs/cifs/inode.c if (server->ops->rename_pending_delete) { server 1393 fs/cifs/inode.c rc = server->ops->rename_pending_delete(full_path, server 1496 fs/cifs/inode.c struct TCP_Server_Info *server = tcon->ses->server; server 1498 fs/cifs/inode.c (mode & S_IWUGO) == 0 && server->ops->mkdir_setinfo) server 1499 fs/cifs/inode.c server->ops->mkdir_setinfo(inode, full_path, cifs_sb, server 1586 fs/cifs/inode.c struct TCP_Server_Info *server; server 1606 fs/cifs/inode.c server = tcon->ses->server; server 1608 fs/cifs/inode.c if ((server->ops->posix_mkdir) && (tcon->posix_extensions)) { server 1609 fs/cifs/inode.c rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path, server 1623 fs/cifs/inode.c if (!server->ops->mkdir) { server 1629 fs/cifs/inode.c rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb); server 1658 fs/cifs/inode.c struct TCP_Server_Info *server; server 1679 fs/cifs/inode.c server = tcon->ses->server; server 1681 fs/cifs/inode.c if (!server->ops->rmdir) { server 1687 fs/cifs/inode.c rc = server->ops->rmdir(xid, tcon, full_path, cifs_sb); server 1725 fs/cifs/inode.c struct TCP_Server_Info *server; server 1734 fs/cifs/inode.c server = tcon->ses->server; server 1736 fs/cifs/inode.c if (!server->ops->rename) server 1740 fs/cifs/inode.c rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb); server 1751 fs/cifs/inode.c if (server->vals->protocol_id != 0) server 2141 fs/cifs/inode.c struct TCP_Server_Info *server = tcon->ses->server; server 2162 fs/cifs/inode.c if (server->ops->fiemap) { server 2163 fs/cifs/inode.c rc = server->ops->fiemap(tcon, cfile, fei, start, len); server 2212 fs/cifs/inode.c struct TCP_Server_Info *server; server 2226 fs/cifs/inode.c server = tcon->ses->server; server 2227 fs/cifs/inode.c if (server->ops->set_file_size) server 2228 fs/cifs/inode.c rc = server->ops->set_file_size(xid, tcon, open_file, server 2245 fs/cifs/inode.c server = tcon->ses->server; server 2253 fs/cifs/inode.c if (server->ops->set_path_size) server 2254 fs/cifs/inode.c rc = server->ops->set_path_size(xid, tcon, full_path, server 2480 fs/cifs/inode.c rc = tcon->ses->server->ops->flush(xid, tcon, &wfile->fid); server 66 fs/cifs/ioctl.c if (tcon->ses->server->ops->ioctl_query_info) server 67 fs/cifs/ioctl.c rc = tcon->ses->server->ops->ioctl_query_info( server 140 fs/cifs/ioctl.c fsinf->protocol_id = tcon->ses->server->vals->protocol_id; server 232 fs/cifs/ioctl.c if (tcon->ses->server->ops->set_compression) { server 233 fs/cifs/ioctl.c rc = tcon->ses->server->ops->set_compression( server 248 fs/cifs/ioctl.c if (tcon->ses->server->ops->set_integrity) server 249 fs/cifs/ioctl.c rc = tcon->ses->server->ops->set_integrity(xid, server 268 fs/cifs/ioctl.c if (tcon->ses->server->ops->enum_snapshots) server 269 fs/cifs/ioctl.c rc = tcon->ses->server->ops->enum_snapshots(xid, tcon, server 288 fs/cifs/ioctl.c le16_to_cpu(tcon->ses->server->cipher_type); server 198 fs/cifs/link.c if (tcon->ses->server->ops->create_mf_symlink) server 199 fs/cifs/link.c rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon, server 228 fs/cifs/link.c if (tcon->ses->server->ops->query_mf_symlink) server 229 fs/cifs/link.c rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, server 266 fs/cifs/link.c if (tcon->ses->server->ops->query_mf_symlink) server 267 fs/cifs/link.c rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, server 528 fs/cifs/link.c struct TCP_Server_Info *server; server 550 fs/cifs/link.c server = tcon->ses->server; server 551 fs/cifs/link.c if (!server->ops->create_hardlink) { server 555 fs/cifs/link.c rc = server->ops->create_hardlink(xid, tcon, from_name, to_name, server 618 fs/cifs/link.c struct TCP_Server_Info *server; server 631 fs/cifs/link.c server = tcon->ses->server; server 651 fs/cifs/link.c if (rc != 0 && server->ops->query_symlink) { server 658 fs/cifs/link.c rc = server->ops->query_symlink(xid, tcon, cifs_sb, full_path, server 275 fs/cifs/misc.c buffer->Mid = get_next_mid(treeCon->ses->server); server 281 fs/cifs/misc.c if ((treeCon->ses) && (treeCon->ses->server)) server 282 fs/cifs/misc.c if (treeCon->ses->server->sign) server 315 fs/cifs/misc.c checkSMB(char *buf, unsigned int total_read, struct TCP_Server_Info *server) server 357 fs/cifs/misc.c clc_len = smbCalcSize(smb, server); server 889 fs/cifs/netmisc.c smbCalcSize(void *buf, struct TCP_Server_Info *server) server 217 fs/cifs/readdir.c int offset = cifs_sb_master_tcon(cifs_sb)->ses->server->timeAdj; server 276 fs/cifs/readdir.c struct TCP_Server_Info *server; server 297 fs/cifs/readdir.c server = tcon->ses->server; server 299 fs/cifs/readdir.c if (!server->ops->query_dir_first) { server 322 fs/cifs/readdir.c tcon->ses->server->vals->cap_nt_find) == 0) { server 334 fs/cifs/readdir.c rc = server->ops->query_dir_first(xid, tcon, full_path, cifs_sb, server 582 fs/cifs/readdir.c struct TCP_Server_Info *server = tcon->ses->server; server 585 fs/cifs/readdir.c if (!server->ops->query_dir_first || !server->ops->query_dir_next) server 609 fs/cifs/readdir.c if (server->ops->dir_needs_close(cfile)) { server 612 fs/cifs/readdir.c if (server->ops->close_dir) server 613 fs/cifs/readdir.c server->ops->close_dir(xid, tcon, &cfile->fid); server 644 fs/cifs/readdir.c rc = server->ops->query_dir_next(xid, tcon, &cfile->fid, server 666 fs/cifs/readdir.c server->ops->calc_smb_size( server 668 fs/cifs/readdir.c server); server 848 fs/cifs/readdir.c max_len = tcon->ses->server->ops->calc_smb_size( server 850 fs/cifs/readdir.c tcon->ses->server); server 48 fs/cifs/sess.c pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq); server 59 fs/cifs/sess.c if (ses->server->sign) server 357 fs/cifs/sess.c if (ses->server->sign) server 359 fs/cifs/sess.c if (!ses->server->session_estab || ses->ntlmssp->sesskey_per_smbsess) server 425 fs/cifs/sess.c if (ses->server->sign) server 427 fs/cifs/sess.c if (!ses->server->session_estab || ses->ntlmssp->sesskey_per_smbsess) server 515 fs/cifs/sess.c cifs_select_sectype(struct TCP_Server_Info *server, enum securityEnum requested) server 517 fs/cifs/sess.c switch (server->negflavor) { server 524 fs/cifs/sess.c if (server->sec_ntlmssp && server 527 fs/cifs/sess.c if ((server->sec_kerberos || server->sec_mskerberos) && server 634 fs/cifs/sess.c mutex_lock(&ses->server->srv_mutex); server 635 fs/cifs/sess.c if (!ses->server->session_estab) { server 636 fs/cifs/sess.c if (ses->server->sign) { server 637 fs/cifs/sess.c ses->server->session_key.response = server 640 fs/cifs/sess.c if (!ses->server->session_key.response) { server 641 fs/cifs/sess.c mutex_unlock(&ses->server->srv_mutex); server 644 fs/cifs/sess.c ses->server->session_key.len = server 647 fs/cifs/sess.c ses->server->sequence_number = 0x2; server 648 fs/cifs/sess.c ses->server->session_estab = true; server 650 fs/cifs/sess.c mutex_unlock(&ses->server->srv_mutex); server 724 fs/cifs/sess.c rc = calc_lanman_hash(ses->password, ses->server->cryptkey, server 725 fs/cifs/sess.c ses->server->sec_mode & SECMODE_PW_ENCRYPT ? server 1405 fs/cifs/sess.c type = cifs_select_sectype(ses->server, ses->sectype); server 27 fs/cifs/smb1ops.c send_nt_cancel(struct TCP_Server_Info *server, struct smb_rqst *rqst, server 39 fs/cifs/smb1ops.c mutex_lock(&server->srv_mutex); server 40 fs/cifs/smb1ops.c rc = cifs_sign_smb(in_buf, server, &mid->sequence_number); server 42 fs/cifs/smb1ops.c mutex_unlock(&server->srv_mutex); server 51 fs/cifs/smb1ops.c --server->sequence_number; server 52 fs/cifs/smb1ops.c rc = smb_send(server, in_buf, be32_to_cpu(in_buf->smb_buf_length)); server 54 fs/cifs/smb1ops.c server->sequence_number--; server 56 fs/cifs/smb1ops.c mutex_unlock(&server->srv_mutex); server 88 fs/cifs/smb1ops.c cifs_find_mid(struct TCP_Server_Info *server, char *buffer) server 94 fs/cifs/smb1ops.c list_for_each_entry(mid, &server->pending_mid_q, qhead) { server 108 fs/cifs/smb1ops.c cifs_add_credits(struct TCP_Server_Info *server, server 111 fs/cifs/smb1ops.c spin_lock(&server->req_lock); server 112 fs/cifs/smb1ops.c server->credits += credits->value; server 113 fs/cifs/smb1ops.c server->in_flight--; server 114 fs/cifs/smb1ops.c spin_unlock(&server->req_lock); server 115 fs/cifs/smb1ops.c wake_up(&server->request_q); server 119 fs/cifs/smb1ops.c cifs_set_credits(struct TCP_Server_Info *server, const int val) server 121 fs/cifs/smb1ops.c spin_lock(&server->req_lock); server 122 fs/cifs/smb1ops.c server->credits = val; server 123 fs/cifs/smb1ops.c server->oplocks = val > 1 ? enable_oplocks : false; server 124 fs/cifs/smb1ops.c spin_unlock(&server->req_lock); server 128 fs/cifs/smb1ops.c cifs_get_credits_field(struct TCP_Server_Info *server, const int optype) server 130 fs/cifs/smb1ops.c return &server->credits; server 161 fs/cifs/smb1ops.c cifs_get_next_mid(struct TCP_Server_Info *server) server 170 fs/cifs/smb1ops.c cur_mid = (__u16)((server->CurrentMid) & 0xffff); server 196 fs/cifs/smb1ops.c list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { server 217 fs/cifs/smb1ops.c server->tcpStatus = CifsNeedReconnect; server 221 fs/cifs/smb1ops.c server->CurrentMid = mid; server 371 fs/cifs/smb1ops.c cifs_downgrade_oplock(struct TCP_Server_Info *server, server 381 fs/cifs/smb1ops.c cifs_check_trans2(struct mid_q_entry *mid, struct TCP_Server_Info *server, server 399 fs/cifs/smb1ops.c if (!server->large_buf) { server 406 fs/cifs/smb1ops.c server->bigbuf = NULL; server 412 fs/cifs/smb1ops.c cifs_need_neg(struct TCP_Server_Info *server) server 414 fs/cifs/smb1ops.c return server->maxBuf == 0; server 424 fs/cifs/smb1ops.c set_credits(ses->server, 1); server 436 fs/cifs/smb1ops.c struct TCP_Server_Info *server = tcon->ses->server; server 456 fs/cifs/smb1ops.c if (!(server->capabilities & CAP_LARGE_WRITE_X) || server 457 fs/cifs/smb1ops.c (!(server->capabilities & CAP_UNIX) && server->sign)) server 459 fs/cifs/smb1ops.c server->maxBuf - sizeof(WRITE_REQ) + 4); server 471 fs/cifs/smb1ops.c struct TCP_Server_Info *server = tcon->ses->server; server 488 fs/cifs/smb1ops.c else if (server->capabilities & CAP_LARGE_READ_X) server 491 fs/cifs/smb1ops.c defsize = server->maxBuf - sizeof(READ_RSP); server 499 fs/cifs/smb1ops.c if (!(server->capabilities & CAP_LARGE_READ_X)) server 1018 fs/cifs/smb1ops.c cifs_can_echo(struct TCP_Server_Info *server) server 1020 fs/cifs/smb1ops.c if (server->tcpStatus == CifsGood) server 1107 fs/cifs/smb1ops.c if (tcon->ses->server->oplocks) server 1111 fs/cifs/smb1ops.c rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); server 1131 fs/cifs/smb1ops.c rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, server 1137 fs/cifs/smb1ops.c rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, server 1140 fs/cifs/smb1ops.c tcon->ses->server->ops->close(xid, tcon, &fid); server 135 fs/cifs/smb2file.c max_buf = tcon->ses->server->maxBuf; server 271 fs/cifs/smb2file.c max_buf = tlink_tcon(cfile->tlink)->ses->server->maxBuf; server 592 fs/cifs/smb2misc.c struct TCP_Server_Info *server; server 609 fs/cifs/smb2misc.c server = list_entry(tmp, struct TCP_Server_Info, tcp_ses_list); server 611 fs/cifs/smb2misc.c list_for_each(tmp1, &server->smb_ses_list) { server 648 fs/cifs/smb2misc.c smb2_is_valid_oplock_break(char *buffer, struct TCP_Server_Info *server) server 674 fs/cifs/smb2misc.c list_for_each(tmp, &server->smb_ses_list) { server 785 fs/cifs/smb2misc.c smb2_handle_cancelled_mid(char *buffer, struct TCP_Server_Info *server) server 796 fs/cifs/smb2misc.c tcon = smb2_find_smb_tcon(server, sync_hdr->SessionId, server 822 fs/cifs/smb2misc.c if (ses->server->tcpStatus == CifsGood) { server 824 fs/cifs/smb2misc.c if (ses->server->dialect != SMB311_PROT_ID) server 833 fs/cifs/smb2misc.c rc = smb311_crypto_shash_allocate(ses->server); server 837 fs/cifs/smb2misc.c d = ses->server->secmech.sdescsha512; server 27 fs/cifs/smb2ops.c change_conf(struct TCP_Server_Info *server) server 29 fs/cifs/smb2ops.c server->credits += server->echo_credits + server->oplock_credits; server 30 fs/cifs/smb2ops.c server->oplock_credits = server->echo_credits = 0; server 31 fs/cifs/smb2ops.c switch (server->credits) { server 35 fs/cifs/smb2ops.c server->echoes = false; server 36 fs/cifs/smb2ops.c server->oplocks = false; server 39 fs/cifs/smb2ops.c server->echoes = true; server 40 fs/cifs/smb2ops.c server->oplocks = false; server 41 fs/cifs/smb2ops.c server->echo_credits = 1; server 44 fs/cifs/smb2ops.c server->echoes = true; server 46 fs/cifs/smb2ops.c server->oplocks = true; server 47 fs/cifs/smb2ops.c server->oplock_credits = 1; server 49 fs/cifs/smb2ops.c server->oplocks = false; server 51 fs/cifs/smb2ops.c server->echo_credits = 1; server 53 fs/cifs/smb2ops.c server->credits -= server->echo_credits + server->oplock_credits; server 54 fs/cifs/smb2ops.c return server->credits + server->echo_credits + server->oplock_credits; server 58 fs/cifs/smb2ops.c smb2_add_credits(struct TCP_Server_Info *server, server 66 fs/cifs/smb2ops.c spin_lock(&server->req_lock); server 67 fs/cifs/smb2ops.c val = server->ops->get_credits_field(server, optype); server 71 fs/cifs/smb2ops.c trace_smb3_reconnect_with_invalid_credits(server->CurrentMid, server 72 fs/cifs/smb2ops.c server->hostname, *val); server 73 fs/cifs/smb2ops.c if ((instance == 0) || (instance == server->reconnect_instance)) server 82 fs/cifs/smb2ops.c server->in_flight--; server 83 fs/cifs/smb2ops.c if (server->in_flight == 0 && (optype & CIFS_OP_MASK) != CIFS_NEG_OP) server 84 fs/cifs/smb2ops.c rc = change_conf(server); server 89 fs/cifs/smb2ops.c else if (server->in_flight > 0 && server->oplock_credits == 0 && server 90 fs/cifs/smb2ops.c server->oplocks) { server 91 fs/cifs/smb2ops.c if (server->credits > 1) { server 92 fs/cifs/smb2ops.c server->credits--; server 93 fs/cifs/smb2ops.c server->oplock_credits++; server 96 fs/cifs/smb2ops.c spin_unlock(&server->req_lock); server 97 fs/cifs/smb2ops.c wake_up(&server->request_q); server 103 fs/cifs/smb2ops.c if (server->tcpStatus == CifsNeedReconnect server 104 fs/cifs/smb2ops.c || server->tcpStatus == CifsExiting) server 126 fs/cifs/smb2ops.c smb2_set_credits(struct TCP_Server_Info *server, const int val) server 128 fs/cifs/smb2ops.c spin_lock(&server->req_lock); server 129 fs/cifs/smb2ops.c server->credits = val; server 131 fs/cifs/smb2ops.c server->reconnect_instance++; server 132 fs/cifs/smb2ops.c spin_unlock(&server->req_lock); server 139 fs/cifs/smb2ops.c smb2_get_credits_field(struct TCP_Server_Info *server, const int optype) server 143 fs/cifs/smb2ops.c return &server->echo_credits; server 145 fs/cifs/smb2ops.c return &server->oplock_credits; server 147 fs/cifs/smb2ops.c return &server->credits; server 158 fs/cifs/smb2ops.c smb2_wait_mtu_credits(struct TCP_Server_Info *server, unsigned int size, server 164 fs/cifs/smb2ops.c spin_lock(&server->req_lock); server 166 fs/cifs/smb2ops.c if (server->credits <= 0) { server 167 fs/cifs/smb2ops.c spin_unlock(&server->req_lock); server 168 fs/cifs/smb2ops.c cifs_num_waiters_inc(server); server 169 fs/cifs/smb2ops.c rc = wait_event_killable(server->request_q, server 170 fs/cifs/smb2ops.c has_credits(server, &server->credits, 1)); server 171 fs/cifs/smb2ops.c cifs_num_waiters_dec(server); server 174 fs/cifs/smb2ops.c spin_lock(&server->req_lock); server 176 fs/cifs/smb2ops.c if (server->tcpStatus == CifsExiting) { server 177 fs/cifs/smb2ops.c spin_unlock(&server->req_lock); server 181 fs/cifs/smb2ops.c scredits = server->credits; server 197 fs/cifs/smb2ops.c credits->instance = server->reconnect_instance; server 198 fs/cifs/smb2ops.c server->credits -= credits->value; server 199 fs/cifs/smb2ops.c server->in_flight++; server 200 fs/cifs/smb2ops.c if (server->in_flight > server->max_in_flight) server 201 fs/cifs/smb2ops.c server->max_in_flight = server->in_flight; server 205 fs/cifs/smb2ops.c spin_unlock(&server->req_lock); server 210 fs/cifs/smb2ops.c smb2_adjust_credits(struct TCP_Server_Info *server, server 225 fs/cifs/smb2ops.c spin_lock(&server->req_lock); server 227 fs/cifs/smb2ops.c if (server->reconnect_instance != credits->instance) { server 228 fs/cifs/smb2ops.c spin_unlock(&server->req_lock); server 234 fs/cifs/smb2ops.c server->credits += credits->value - new_val; server 235 fs/cifs/smb2ops.c spin_unlock(&server->req_lock); server 236 fs/cifs/smb2ops.c wake_up(&server->request_q); server 242 fs/cifs/smb2ops.c smb2_get_next_mid(struct TCP_Server_Info *server) server 247 fs/cifs/smb2ops.c mid = server->CurrentMid++; server 253 fs/cifs/smb2ops.c smb2_revert_current_mid(struct TCP_Server_Info *server, const unsigned int val) server 256 fs/cifs/smb2ops.c if (server->CurrentMid >= val) server 257 fs/cifs/smb2ops.c server->CurrentMid -= val; server 262 fs/cifs/smb2ops.c smb2_find_mid(struct TCP_Server_Info *server, char *buf) server 274 fs/cifs/smb2ops.c list_for_each_entry(mid, &server->pending_mid_q, qhead) { server 288 fs/cifs/smb2ops.c smb2_dump_detail(void *buf, struct TCP_Server_Info *server) server 297 fs/cifs/smb2ops.c server->ops->calc_smb_size(buf, server)); server 302 fs/cifs/smb2ops.c smb2_need_neg(struct TCP_Server_Info *server) server 304 fs/cifs/smb2ops.c return server->max_read == 0; server 312 fs/cifs/smb2ops.c ses->server->CurrentMid = 0; server 323 fs/cifs/smb2ops.c struct TCP_Server_Info *server = tcon->ses->server; server 328 fs/cifs/smb2ops.c wsize = min_t(unsigned int, wsize, server->max_write); server 330 fs/cifs/smb2ops.c if (server->rdma) { server 331 fs/cifs/smb2ops.c if (server->sign) server 333 fs/cifs/smb2ops.c wsize, server->smbd_conn->max_fragmented_send_size); server 336 fs/cifs/smb2ops.c wsize, server->smbd_conn->max_readwrite_size); server 339 fs/cifs/smb2ops.c if (!(server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) server 348 fs/cifs/smb2ops.c struct TCP_Server_Info *server = tcon->ses->server; server 353 fs/cifs/smb2ops.c wsize = min_t(unsigned int, wsize, server->max_write); server 355 fs/cifs/smb2ops.c if (server->rdma) { server 356 fs/cifs/smb2ops.c if (server->sign) server 358 fs/cifs/smb2ops.c wsize, server->smbd_conn->max_fragmented_send_size); server 361 fs/cifs/smb2ops.c wsize, server->smbd_conn->max_readwrite_size); server 364 fs/cifs/smb2ops.c if (!(server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) server 373 fs/cifs/smb2ops.c struct TCP_Server_Info *server = tcon->ses->server; server 378 fs/cifs/smb2ops.c rsize = min_t(unsigned int, rsize, server->max_read); server 380 fs/cifs/smb2ops.c if (server->rdma) { server 381 fs/cifs/smb2ops.c if (server->sign) server 383 fs/cifs/smb2ops.c rsize, server->smbd_conn->max_fragmented_recv_size); server 386 fs/cifs/smb2ops.c rsize, server->smbd_conn->max_readwrite_size); server 390 fs/cifs/smb2ops.c if (!(server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) server 399 fs/cifs/smb2ops.c struct TCP_Server_Info *server = tcon->ses->server; server 404 fs/cifs/smb2ops.c rsize = min_t(unsigned int, rsize, server->max_read); server 406 fs/cifs/smb2ops.c if (server->rdma) { server 407 fs/cifs/smb2ops.c if (server->sign) server 409 fs/cifs/smb2ops.c rsize, server->smbd_conn->max_fragmented_recv_size); server 412 fs/cifs/smb2ops.c rsize, server->smbd_conn->max_readwrite_size); server 416 fs/cifs/smb2ops.c if (!(server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) server 633 fs/cifs/smb2ops.c struct TCP_Server_Info *server = ses->server; server 667 fs/cifs/smb2ops.c if (!server->ops->new_lease_key) server 670 fs/cifs/smb2ops.c server->ops->new_lease_key(pfid); server 770 fs/cifs/smb2ops.c smb2_parse_contexts(server, o_rsp, server 1112 fs/cifs/smb2ops.c if (ses->server->ops->query_all_EAs) { server 1114 fs/cifs/smb2ops.c rc = ses->server->ops->query_all_EAs(xid, tcon, path, server 1229 fs/cifs/smb2ops.c smb2_can_echo(struct TCP_Server_Info *server) server 1231 fs/cifs/smb2ops.c return server->echoes; server 1342 fs/cifs/smb2ops.c struct TCP_Server_Info *server = tlink_tcon(cfile->tlink)->ses->server; server 1350 fs/cifs/smb2ops.c server->ops->set_oplock_level(cinode, oplock, fid->epoch, server 1432 fs/cifs/smb2ops.c if (!ses || !(ses->server)) server 2092 fs/cifs/smb2ops.c smb2_is_status_pending(char *buf, struct TCP_Server_Info *server) server 2100 fs/cifs/smb2ops.c spin_lock(&server->req_lock); server 2101 fs/cifs/smb2ops.c server->credits += le16_to_cpu(shdr->CreditRequest); server 2102 fs/cifs/smb2ops.c spin_unlock(&server->req_lock); server 2103 fs/cifs/smb2ops.c wake_up(&server->request_q); server 2130 fs/cifs/smb2ops.c if (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) server 2159 fs/cifs/smb2ops.c struct TCP_Server_Info *server = ses->server; server 2160 fs/cifs/smb2ops.c unsigned long len = smb_rqst_len(server, rqst); server 3321 fs/cifs/smb2ops.c smb2_downgrade_oplock(struct TCP_Server_Info *server, server 3325 fs/cifs/smb2ops.c server->ops->set_oplock_level(cinode, SMB2_OPLOCK_LEVEL_II, server 3328 fs/cifs/smb2ops.c server->ops->set_oplock_level(cinode, 0, 0, NULL); server 3332 fs/cifs/smb2ops.c smb21_downgrade_oplock(struct TCP_Server_Info *server, server 3335 fs/cifs/smb2ops.c server->ops->set_oplock_level(cinode, server 3633 fs/cifs/smb2ops.c smb2_get_enc_key(struct TCP_Server_Info *server, __u64 ses_id, int enc, u8 *key) server 3639 fs/cifs/smb2ops.c list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { server 3660 fs/cifs/smb2ops.c crypt_message(struct TCP_Server_Info *server, int num_rqst, server 3677 fs/cifs/smb2ops.c rc = smb2_get_enc_key(server, tr_hdr->SessionId, enc, key); server 3684 fs/cifs/smb2ops.c rc = smb3_crypto_aead_allocate(server); server 3690 fs/cifs/smb2ops.c tfm = enc ? server->secmech.ccmaesencrypt : server 3691 fs/cifs/smb2ops.c server->secmech.ccmaesdecrypt; server 3730 fs/cifs/smb2ops.c if (server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) server 3785 fs/cifs/smb2ops.c smb3_init_transform_rq(struct TCP_Server_Info *server, int num_rqst, server 3810 fs/cifs/smb2ops.c orig_len += smb_rqst_len(server, &old_rq[i - 1]); server 3835 fs/cifs/smb2ops.c fill_transform_hdr(tr_hdr, orig_len, old_rq, server->cipher_type); server 3837 fs/cifs/smb2ops.c rc = crypt_message(server, num_rqst, new_rq, 1); server 3858 fs/cifs/smb2ops.c decrypt_raw_data(struct TCP_Server_Info *server, char *buf, server 3878 fs/cifs/smb2ops.c rc = crypt_message(server, 1, &rqst, 0); server 3886 fs/cifs/smb2ops.c server->total_read = buf_data_size + page_data_size; server 3892 fs/cifs/smb2ops.c read_data_into_pages(struct TCP_Server_Info *server, struct page **pages, server 3911 fs/cifs/smb2ops.c length = cifs_read_page_from_socket(server, page, 0, n); server 3914 fs/cifs/smb2ops.c server->total_read += length; server 3949 fs/cifs/smb2ops.c handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid, server 3971 fs/cifs/smb2ops.c if (server->ops->is_session_expired && server 3972 fs/cifs/smb2ops.c server->ops->is_session_expired(buf)) { server 3973 fs/cifs/smb2ops.c cifs_reconnect(server); server 3974 fs/cifs/smb2ops.c wake_up(&server->response_q); server 3978 fs/cifs/smb2ops.c if (server->ops->is_status_pending && server 3979 fs/cifs/smb2ops.c server->ops->is_status_pending(buf, server)) server 3987 fs/cifs/smb2ops.c min_t(unsigned int, buf_len, server->vals->read_rsp_size); server 3993 fs/cifs/smb2ops.c rdata->result = server->ops->map_error(buf, true); server 4002 fs/cifs/smb2ops.c data_offset = server->ops->read_data_offset(buf); server 4006 fs/cifs/smb2ops.c data_len = server->ops->read_data_length(buf, use_rdma_mr); server 4008 fs/cifs/smb2ops.c if (data_offset < server->vals->read_rsp_size) { server 4016 fs/cifs/smb2ops.c data_offset = server->vals->read_rsp_size; server 4026 fs/cifs/smb2ops.c pad_len = data_offset - server->vals->read_rsp_size; server 4071 fs/cifs/smb2ops.c length = rdata->copy_into_pages(server, rdata, &iter); server 4084 fs/cifs/smb2ops.c struct TCP_Server_Info *server; server 4099 fs/cifs/smb2ops.c rc = decrypt_raw_data(dw->server, dw->buf, dw->server->vals->read_rsp_size, server 4106 fs/cifs/smb2ops.c dw->server->lstrp = jiffies; server 4107 fs/cifs/smb2ops.c mid = smb2_find_mid(dw->server, dw->buf); server 4112 fs/cifs/smb2ops.c rc = handle_read_data(dw->server, mid, dw->buf, server 4113 fs/cifs/smb2ops.c dw->server->vals->read_rsp_size, server 4130 fs/cifs/smb2ops.c receive_encrypted_read(struct TCP_Server_Info *server, struct mid_q_entry **mid, server 4133 fs/cifs/smb2ops.c char *buf = server->smallbuf; server 4138 fs/cifs/smb2ops.c unsigned int buflen = server->pdu_size; server 4144 fs/cifs/smb2ops.c len = min_t(unsigned int, buflen, server->vals->read_rsp_size + server 4145 fs/cifs/smb2ops.c sizeof(struct smb2_transform_hdr)) - HEADER_SIZE(server) + 1; server 4147 fs/cifs/smb2ops.c rc = cifs_read_from_socket(server, buf + HEADER_SIZE(server) - 1, len); server 4150 fs/cifs/smb2ops.c server->total_read += rc; server 4153 fs/cifs/smb2ops.c server->vals->read_rsp_size; server 4171 fs/cifs/smb2ops.c rc = read_data_into_pages(server, pages, npages, len); server 4175 fs/cifs/smb2ops.c rc = cifs_discard_remaining_data(server); server 4184 fs/cifs/smb2ops.c if ((server->min_offload) && (server->in_flight > 1) && server 4185 fs/cifs/smb2ops.c (server->pdu_size >= server->min_offload)) { server 4190 fs/cifs/smb2ops.c dw->buf = server->smallbuf; server 4191 fs/cifs/smb2ops.c server->smallbuf = (char *)cifs_small_buf_get(); server 4196 fs/cifs/smb2ops.c dw->server = server; server 4205 fs/cifs/smb2ops.c rc = decrypt_raw_data(server, buf, server->vals->read_rsp_size, server 4210 fs/cifs/smb2ops.c *mid = smb2_find_mid(server, buf); server 4216 fs/cifs/smb2ops.c rc = handle_read_data(server, *mid, buf, server 4217 fs/cifs/smb2ops.c server->vals->read_rsp_size, server 4227 fs/cifs/smb2ops.c cifs_discard_remaining_data(server); server 4232 fs/cifs/smb2ops.c receive_encrypted_standard(struct TCP_Server_Info *server, server 4237 fs/cifs/smb2ops.c char *buf = server->smallbuf; server 4239 fs/cifs/smb2ops.c unsigned int pdu_length = server->pdu_size; server 4249 fs/cifs/smb2ops.c server->large_buf = true; server 4250 fs/cifs/smb2ops.c memcpy(server->bigbuf, buf, server->total_read); server 4251 fs/cifs/smb2ops.c buf = server->bigbuf; server 4255 fs/cifs/smb2ops.c length = cifs_read_from_socket(server, buf + HEADER_SIZE(server) - 1, server 4256 fs/cifs/smb2ops.c pdu_length - HEADER_SIZE(server) + 1); server 4259 fs/cifs/smb2ops.c server->total_read += length; server 4262 fs/cifs/smb2ops.c length = decrypt_raw_data(server, buf, buf_size, NULL, 0, 0); server 4266 fs/cifs/smb2ops.c next_is_large = server->large_buf; server 4279 fs/cifs/smb2ops.c mid_entry = smb2_find_mid(server, buf); server 4285 fs/cifs/smb2ops.c mid_entry->resp_buf_size = server->pdu_size; server 4296 fs/cifs/smb2ops.c ret = mid_entry->handle(server, mid_entry); server 4298 fs/cifs/smb2ops.c ret = cifs_handle_standard(server, mid_entry); server 4302 fs/cifs/smb2ops.c server->large_buf = next_is_large; server 4304 fs/cifs/smb2ops.c server->bigbuf = buf = next_buffer; server 4306 fs/cifs/smb2ops.c server->smallbuf = buf = next_buffer; server 4325 fs/cifs/smb2ops.c smb3_receive_transform(struct TCP_Server_Info *server, server 4328 fs/cifs/smb2ops.c char *buf = server->smallbuf; server 4329 fs/cifs/smb2ops.c unsigned int pdu_length = server->pdu_size; server 4337 fs/cifs/smb2ops.c cifs_reconnect(server); server 4338 fs/cifs/smb2ops.c wake_up(&server->response_q); server 4344 fs/cifs/smb2ops.c cifs_reconnect(server); server 4345 fs/cifs/smb2ops.c wake_up(&server->response_q); server 4350 fs/cifs/smb2ops.c if (pdu_length > CIFSMaxBufSize + MAX_HEADER_SIZE(server)) { server 4351 fs/cifs/smb2ops.c return receive_encrypted_read(server, &mids[0], num_mids); server 4354 fs/cifs/smb2ops.c return receive_encrypted_standard(server, mids, bufs, num_mids); server 4358 fs/cifs/smb2ops.c smb3_handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid) server 4360 fs/cifs/smb2ops.c char *buf = server->large_buf ? server->bigbuf : server->smallbuf; server 4362 fs/cifs/smb2ops.c return handle_read_data(server, mid, buf, server->pdu_size, server 4434 fs/cifs/smb2ops.c if (tcon->ses->server->oplocks) server 4438 fs/cifs/smb2ops.c rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, buf); server 4458 fs/cifs/smb2ops.c rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, server 4464 fs/cifs/smb2ops.c rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, server 4467 fs/cifs/smb2ops.c tcon->ses->server->ops->close(xid, tcon, &fid); server 94 fs/cifs/smb2pdu.c (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) server 106 fs/cifs/smb2pdu.c if (tcon && tcon->ses && tcon->ses->server) { server 107 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = tcon->ses->server; server 109 fs/cifs/smb2pdu.c spin_lock(&server->req_lock); server 111 fs/cifs/smb2pdu.c if (server->credits >= server->max_credits) server 115 fs/cifs/smb2pdu.c min_t(int, server->max_credits - server 116 fs/cifs/smb2pdu.c server->credits, 10)); server 117 fs/cifs/smb2pdu.c spin_unlock(&server->req_lock); server 128 fs/cifs/smb2pdu.c if ((tcon->ses) && (tcon->ses->server) && server 129 fs/cifs/smb2pdu.c (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) server 151 fs/cifs/smb2pdu.c if (tcon->ses && tcon->ses->server && tcon->ses->server->sign && server 177 fs/cifs/smb2pdu.c tcon->ses->server->hostname); server 191 fs/cifs/smb2pdu.c extract_unc_hostname(tcon->ses->server->hostname, &tcp_host, server 244 fs/cifs/smb2pdu.c struct TCP_Server_Info *server; server 273 fs/cifs/smb2pdu.c (!tcon->ses->server)) server 277 fs/cifs/smb2pdu.c server = ses->server; server 279 fs/cifs/smb2pdu.c retries = server->nr_targets; server 286 fs/cifs/smb2pdu.c while (server->tcpStatus == CifsNeedReconnect) { server 302 fs/cifs/smb2pdu.c rc = wait_event_interruptible_timeout(server->response_q, server 303 fs/cifs/smb2pdu.c (server->tcpStatus != CifsNeedReconnect), server 312 fs/cifs/smb2pdu.c if (server->tcpStatus != CifsNeedReconnect) server 327 fs/cifs/smb2pdu.c retries = server->nr_targets; server 346 fs/cifs/smb2pdu.c if (server->tcpStatus == CifsNeedReconnect) { server 381 fs/cifs/smb2pdu.c queue_delayed_work(cifsiod_wq, &server->reconnect, 0); server 561 fs/cifs/smb2pdu.c struct TCP_Server_Info *server, unsigned int *total_len) server 591 fs/cifs/smb2pdu.c if (server->compress_algorithm) { server 604 fs/cifs/smb2pdu.c server->hostname); server 627 fs/cifs/smb2pdu.c static void decode_compress_ctx(struct TCP_Server_Info *server, server 645 fs/cifs/smb2pdu.c server->compress_algorithm = ctxt->CompressionAlgorithms[0]; server 648 fs/cifs/smb2pdu.c static int decode_encrypt_ctx(struct TCP_Server_Info *server, server 669 fs/cifs/smb2pdu.c server->cipher_type = ctxt->Ciphers[0]; server 670 fs/cifs/smb2pdu.c server->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; server 675 fs/cifs/smb2pdu.c struct TCP_Server_Info *server, server 710 fs/cifs/smb2pdu.c rc = decode_encrypt_ctx(server, server 713 fs/cifs/smb2pdu.c decode_compress_ctx(server, server 716 fs/cifs/smb2pdu.c server->posix_ext_supported = true; server 817 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = ses->server; server 825 fs/cifs/smb2pdu.c if (!server) { server 836 fs/cifs/smb2pdu.c memset(server->preauth_sha_hash, 0, SMB2_PREAUTH_HASH_SIZE); server 839 fs/cifs/smb2pdu.c if (strcmp(ses->server->vals->version_string, server 845 fs/cifs/smb2pdu.c } else if (strcmp(server->vals->version_string, server 855 fs/cifs/smb2pdu.c req->Dialects[0] = cpu_to_le16(ses->server->vals->protocol_id); server 868 fs/cifs/smb2pdu.c req->Capabilities = cpu_to_le32(server->vals->req_capabilities); server 871 fs/cifs/smb2pdu.c if (server->vals->protocol_id == SMB20_PROT_ID) server 874 fs/cifs/smb2pdu.c memcpy(req->ClientGUID, server->client_guid, server 876 fs/cifs/smb2pdu.c if ((server->vals->protocol_id == SMB311_PROT_ID) || server 877 fs/cifs/smb2pdu.c (strcmp(server->vals->version_string, server 879 fs/cifs/smb2pdu.c assemble_neg_contexts(req, server, &total_len); server 903 fs/cifs/smb2pdu.c if (strcmp(server->vals->version_string, server 914 fs/cifs/smb2pdu.c } else if (strcmp(server->vals->version_string, server 922 fs/cifs/smb2pdu.c server->ops = &smb21_operations; server 923 fs/cifs/smb2pdu.c server->vals = &smb21_values; server 925 fs/cifs/smb2pdu.c server->ops = &smb311_operations; server 926 fs/cifs/smb2pdu.c server->vals = &smb311_values; server 929 fs/cifs/smb2pdu.c server->vals->protocol_id) { server 954 fs/cifs/smb2pdu.c server->dialect = le16_to_cpu(rsp->DialectRevision); server 961 fs/cifs/smb2pdu.c memcpy(server->preauth_sha_hash, ses->preauth_sha_hash, server 965 fs/cifs/smb2pdu.c server->negflavor = CIFS_NEGFLAVOR_EXTENDED; server 967 fs/cifs/smb2pdu.c server->maxBuf = min_t(unsigned int, le32_to_cpu(rsp->MaxTransactSize), server 969 fs/cifs/smb2pdu.c server->max_read = le32_to_cpu(rsp->MaxReadSize); server 970 fs/cifs/smb2pdu.c server->max_write = le32_to_cpu(rsp->MaxWriteSize); server 971 fs/cifs/smb2pdu.c server->sec_mode = le16_to_cpu(rsp->SecurityMode); server 972 fs/cifs/smb2pdu.c if ((server->sec_mode & SMB2_SEC_MODE_FLAGS_ALL) != server->sec_mode) server 974 fs/cifs/smb2pdu.c server->sec_mode); server 975 fs/cifs/smb2pdu.c server->capabilities = le32_to_cpu(rsp->Capabilities); server 977 fs/cifs/smb2pdu.c server->capabilities |= SMB2_NT_FIND | SMB2_LARGE_FILES; server 990 fs/cifs/smb2pdu.c server->sec_ntlmssp = true; server 993 fs/cifs/smb2pdu.c rc = cifs_enable_signing(server, ses->sign); server 997 fs/cifs/smb2pdu.c rc = decode_negTokenInit(security_blob, blob_length, server); server 1006 fs/cifs/smb2pdu.c rc = smb311_decode_neg_context(rsp, server, server 1023 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = tcon->ses->server; server 1028 fs/cifs/smb2pdu.c if (server->dialect == SMB311_PROT_ID) server 1054 fs/cifs/smb2pdu.c cpu_to_le32(server->vals->req_capabilities); server 1055 fs/cifs/smb2pdu.c memcpy(pneg_inbuf->Guid, server->client_guid, server 1068 fs/cifs/smb2pdu.c if (strcmp(server->vals->version_string, server 1076 fs/cifs/smb2pdu.c } else if (strcmp(server->vals->version_string, server 1088 fs/cifs/smb2pdu.c cpu_to_le16(server->vals->protocol_id); server 1124 fs/cifs/smb2pdu.c if (pneg_rsp->Dialect != cpu_to_le16(server->dialect)) server 1127 fs/cifs/smb2pdu.c if (pneg_rsp->SecurityMode != cpu_to_le16(server->sec_mode)) server 1133 fs/cifs/smb2pdu.c SMB2_LARGE_FILES) != server->capabilities) server 1151 fs/cifs/smb2pdu.c smb2_select_sectype(struct TCP_Server_Info *server, enum securityEnum requested) server 1160 fs/cifs/smb2pdu.c if (server->sec_ntlmssp && server 1163 fs/cifs/smb2pdu.c if ((server->sec_kerberos || server->sec_mskerberos) && server 1197 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = ses->server; server 1217 fs/cifs/smb2pdu.c if (server->sign) server 1285 fs/cifs/smb2pdu.c mutex_lock(&ses->server->srv_mutex); server 1286 fs/cifs/smb2pdu.c if (ses->server->ops->generate_signingkey) { server 1287 fs/cifs/smb2pdu.c rc = ses->server->ops->generate_signingkey(ses); server 1291 fs/cifs/smb2pdu.c mutex_unlock(&ses->server->srv_mutex); server 1295 fs/cifs/smb2pdu.c if (!ses->server->session_estab) { server 1296 fs/cifs/smb2pdu.c ses->server->sequence_number = 0x2; server 1297 fs/cifs/smb2pdu.c ses->server->session_estab = true; server 1299 fs/cifs/smb2pdu.c mutex_unlock(&ses->server->srv_mutex); server 1535 fs/cifs/smb2pdu.c type = smb2_select_sectype(ses->server, ses->sectype); server 1563 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = ses->server; server 1568 fs/cifs/smb2pdu.c if (!server) { server 1589 fs/cifs/smb2pdu.c memcpy(ses->preauth_sha_hash, ses->server->preauth_sha_hash, server 1609 fs/cifs/smb2pdu.c struct TCP_Server_Info *server; server 1618 fs/cifs/smb2pdu.c if (ses && (ses->server)) server 1619 fs/cifs/smb2pdu.c server = ses->server; server 1636 fs/cifs/smb2pdu.c else if (server->sign) server 1689 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = ses->server; server 1693 fs/cifs/smb2pdu.c if (!server || !tree) server 1736 fs/cifs/smb2pdu.c if ((server->dialect == SMB311_PROT_ID) && server 1793 fs/cifs/smb2pdu.c !(server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) server 1797 fs/cifs/smb2pdu.c if (server->ops->validate_negotiate) server 1798 fs/cifs/smb2pdu.c rc = server->ops->validate_negotiate(xid, tcon); server 1827 fs/cifs/smb2pdu.c if (!ses || !(ses->server)) server 1918 fs/cifs/smb2pdu.c smb2_parse_contexts(struct TCP_Server_Info *server, server 1942 fs/cifs/smb2pdu.c *oplock = server->ops->parse_lease_buf(cc, epoch, server 1962 fs/cifs/smb2pdu.c add_lease_context(struct TCP_Server_Info *server, struct kvec *iov, server 1968 fs/cifs/smb2pdu.c iov[num].iov_base = server->ops->create_lease_buf(lease_key, *oplock); server 1971 fs/cifs/smb2pdu.c iov[num].iov_len = server->vals->create_lease_size; server 1978 fs/cifs/smb2pdu.c server->vals->create_lease_size); server 2292 fs/cifs/smb2pdu.c if (!ses || !(ses->server)) { server 2416 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = tcon->ses->server; server 2489 fs/cifs/smb2pdu.c if ((!server->oplocks) || (tcon->no_lease)) server 2492 fs/cifs/smb2pdu.c if (!(server->capabilities & SMB2_GLOBAL_CAP_LEASING) || server 2495 fs/cifs/smb2pdu.c else if (!(server->capabilities & SMB2_GLOBAL_CAP_DIRECTORY_LEASING) && server 2499 fs/cifs/smb2pdu.c rc = add_lease_context(server, iov, &n_iov, server 2507 fs/cifs/smb2pdu.c if (server->capabilities & SMB2_GLOBAL_CAP_LEASING) { server 2511 fs/cifs/smb2pdu.c cpu_to_le32(server->vals->create_lease_size); server 2595 fs/cifs/smb2pdu.c struct TCP_Server_Info *server; server 2605 fs/cifs/smb2pdu.c if (ses && (ses->server)) server 2606 fs/cifs/smb2pdu.c server = ses->server; server 2668 fs/cifs/smb2pdu.c smb2_parse_contexts(server, rsp, &oparms->fid->epoch, server 2795 fs/cifs/smb2pdu.c struct TCP_Server_Info *server; server 2813 fs/cifs/smb2pdu.c server = ses->server; server 2814 fs/cifs/smb2pdu.c if (!server) server 2959 fs/cifs/smb2pdu.c if (!ses || !(ses->server)) server 3129 fs/cifs/smb2pdu.c struct TCP_Server_Info *server; server 3137 fs/cifs/smb2pdu.c server = ses->server; server 3138 fs/cifs/smb2pdu.c if (!server) server 3285 fs/cifs/smb2pdu.c if (!ses || !(ses->server)) server 3332 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = mid->callback_data; server 3339 fs/cifs/smb2pdu.c credits.instance = server->reconnect_instance; server 3343 fs/cifs/smb2pdu.c add_credits(server, &credits, CIFS_ECHO_OP); server 3348 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = container_of(work, server 3359 fs/cifs/smb2pdu.c mutex_lock(&server->reconnect_mutex); server 3365 fs/cifs/smb2pdu.c list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { server 3388 fs/cifs/smb2pdu.c server->srv_count++; server 3407 fs/cifs/smb2pdu.c queue_delayed_work(cifsiod_wq, &server->reconnect, 2 * HZ); server 3408 fs/cifs/smb2pdu.c mutex_unlock(&server->reconnect_mutex); server 3412 fs/cifs/smb2pdu.c cifs_put_tcp_session(server, 1); server 3416 fs/cifs/smb2pdu.c SMB2_echo(struct TCP_Server_Info *server) server 3427 fs/cifs/smb2pdu.c if (server->tcpStatus == CifsNeedNegotiate) { server 3429 fs/cifs/smb2pdu.c queue_delayed_work(cifsiod_wq, &server->reconnect, 0); server 3442 fs/cifs/smb2pdu.c rc = cifs_call_async(server, &rqst, NULL, smb2_echo_callback, NULL, server 3443 fs/cifs/smb2pdu.c server, CIFS_ECHO_OP, NULL); server 3493 fs/cifs/smb2pdu.c if (!ses || !(ses->server)) server 3537 fs/cifs/smb2pdu.c struct TCP_Server_Info *server; server 3544 fs/cifs/smb2pdu.c server = io_parms->tcon->ses->server; server 3545 fs/cifs/smb2pdu.c if (server == NULL) server 3569 fs/cifs/smb2pdu.c if (server->rdma && rdata && !server->sign && server 3570 fs/cifs/smb2pdu.c rdata->bytes >= server->smbd_conn->rdma_readwrite_threshold) { server 3574 fs/cifs/smb2pdu.c io_parms->tcon->ses->server->dialect == SMB30_PROT_ID; server 3577 fs/cifs/smb2pdu.c server->smbd_conn, rdata->pages, server 3631 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = tcon->ses->server; server 3650 fs/cifs/smb2pdu.c credits.instance = server->reconnect_instance; server 3652 fs/cifs/smb2pdu.c if (server->sign && !mid->decrypted) { server 3655 fs/cifs/smb2pdu.c rc = smb2_verify_signature(&rqst, server); server 3667 fs/cifs/smb2pdu.c if (server->sign && rdata->got_bytes) server 3676 fs/cifs/smb2pdu.c credits.instance = server->reconnect_instance; server 3706 fs/cifs/smb2pdu.c add_credits(server, &credits, 0); server 3719 fs/cifs/smb2pdu.c struct TCP_Server_Info *server; server 3732 fs/cifs/smb2pdu.c server = io_parms.tcon->ses->server; server 3753 fs/cifs/smb2pdu.c rc = adjust_credits(server, &rdata->credits, rdata->bytes); server 3761 fs/cifs/smb2pdu.c rc = cifs_call_async(io_parms.tcon->ses->server, &rqst, server 3864 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = tcon->ses->server; server 3872 fs/cifs/smb2pdu.c credits.instance = server->reconnect_instance; server 3873 fs/cifs/smb2pdu.c wdata->result = smb2_check_receive(mid, server, 0); server 3898 fs/cifs/smb2pdu.c credits.instance = server->reconnect_instance; server 3934 fs/cifs/smb2pdu.c add_credits(server, &credits, 0); server 3946 fs/cifs/smb2pdu.c struct TCP_Server_Info *server = tcon->ses->server; server 3978 fs/cifs/smb2pdu.c if (server->rdma && !server->sign && wdata->bytes >= server 3979 fs/cifs/smb2pdu.c server->smbd_conn->rdma_readwrite_threshold) { server 3982 fs/cifs/smb2pdu.c bool need_invalidate = server->dialect == SMB30_PROT_ID; server 3985 fs/cifs/smb2pdu.c server->smbd_conn, wdata->pages, server 4048 fs/cifs/smb2pdu.c rc = adjust_credits(server, &wdata->credits, wdata->bytes); server 4056 fs/cifs/smb2pdu.c rc = cifs_call_async(server, &rqst, NULL, smb2_writev_callback, NULL, server 4101 fs/cifs/smb2pdu.c if (io_parms->tcon->ses->server == NULL) server 4218 fs/cifs/smb2pdu.c struct TCP_Server_Info *server; server 4227 fs/cifs/smb2pdu.c if (ses && (ses->server)) server 4228 fs/cifs/smb2pdu.c server = ses->server; server 4271 fs/cifs/smb2pdu.c output_size = min_t(unsigned int, output_size, server->maxBuf); server 4416 fs/cifs/smb2pdu.c if (!ses || !(ses->server)) server 4586 fs/cifs/smb2pdu.c if ((tcon->ses == NULL) || (tcon->ses->server == NULL)) server 38 fs/cifs/smb2proto.h struct TCP_Server_Info *server); server 39 fs/cifs/smb2proto.h extern unsigned int smb2_calc_size(void *buf, struct TCP_Server_Info *server); server 47 fs/cifs/smb2proto.h struct TCP_Server_Info *server, bool log_error); server 51 fs/cifs/smb2proto.h struct TCP_Server_Info *server, struct smb_rqst *rqst); server 52 fs/cifs/smb2proto.h extern struct cifs_ses *smb2_find_smb_ses(struct TCP_Server_Info *server, server 54 fs/cifs/smb2proto.h extern struct cifs_tcon *smb2_find_smb_tcon(struct TCP_Server_Info *server, server 57 fs/cifs/smb2proto.h struct TCP_Server_Info *server); server 59 fs/cifs/smb2proto.h struct TCP_Server_Info *server); server 64 fs/cifs/smb2proto.h extern struct cifs_ses *smb2_find_smb_ses(struct TCP_Server_Info *server, server 66 fs/cifs/smb2proto.h extern int smb3_handle_read_data(struct TCP_Server_Info *server, server 117 fs/cifs/smb2proto.h extern int smb3_crypto_aead_allocate(struct TCP_Server_Info *server); server 118 fs/cifs/smb2proto.h extern unsigned long smb_rqst_len(struct TCP_Server_Info *server, server 192 fs/cifs/smb2proto.h extern int SMB2_echo(struct TCP_Server_Info *server); server 219 fs/cifs/smb2proto.h struct TCP_Server_Info *server); server 243 fs/cifs/smb2proto.h extern void smb2_parse_contexts(struct TCP_Server_Info *server, server 257 fs/cifs/smb2proto.h extern int smb311_crypto_shash_allocate(struct TCP_Server_Info *server); server 44 fs/cifs/smb2transport.c smb2_crypto_shash_allocate(struct TCP_Server_Info *server) server 47 fs/cifs/smb2transport.c &server->secmech.hmacsha256, server 48 fs/cifs/smb2transport.c &server->secmech.sdeschmacsha256); server 52 fs/cifs/smb2transport.c smb3_crypto_shash_allocate(struct TCP_Server_Info *server) server 54 fs/cifs/smb2transport.c struct cifs_secmech *p = &server->secmech; server 74 fs/cifs/smb2transport.c smb311_crypto_shash_allocate(struct TCP_Server_Info *server) server 76 fs/cifs/smb2transport.c struct cifs_secmech *p = &server->secmech; server 102 fs/cifs/smb2transport.c smb2_find_smb_ses_unlocked(struct TCP_Server_Info *server, __u64 ses_id) server 106 fs/cifs/smb2transport.c list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { server 116 fs/cifs/smb2transport.c smb2_find_smb_ses(struct TCP_Server_Info *server, __u64 ses_id) server 121 fs/cifs/smb2transport.c ses = smb2_find_smb_ses_unlocked(server, ses_id); server 148 fs/cifs/smb2transport.c smb2_find_smb_tcon(struct TCP_Server_Info *server, __u64 ses_id, __u32 tid) server 154 fs/cifs/smb2transport.c ses = smb2_find_smb_ses_unlocked(server, ses_id); server 166 fs/cifs/smb2transport.c smb2_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server) server 177 fs/cifs/smb2transport.c ses = smb2_find_smb_ses(server, shdr->SessionId); server 186 fs/cifs/smb2transport.c rc = smb2_crypto_shash_allocate(server); server 192 fs/cifs/smb2transport.c rc = crypto_shash_setkey(server->secmech.hmacsha256, server 199 fs/cifs/smb2transport.c shash = &server->secmech.sdeschmacsha256->shash; server 226 fs/cifs/smb2transport.c rc = __cifs_calc_signature(&drqst, server, sigptr, shash); server 242 fs/cifs/smb2transport.c struct TCP_Server_Info *server = ses->server; server 247 fs/cifs/smb2transport.c rc = smb3_crypto_shash_allocate(server); server 253 fs/cifs/smb2transport.c rc = crypto_shash_setkey(server->secmech.hmacsha256, server 260 fs/cifs/smb2transport.c rc = crypto_shash_init(&server->secmech.sdeschmacsha256->shash); server 266 fs/cifs/smb2transport.c rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, server 273 fs/cifs/smb2transport.c rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, server 280 fs/cifs/smb2transport.c rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, server 287 fs/cifs/smb2transport.c rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, server 294 fs/cifs/smb2transport.c rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, server 301 fs/cifs/smb2transport.c rc = crypto_shash_final(&server->secmech.sdeschmacsha256->shash, server 427 fs/cifs/smb2transport.c smb3_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server) server 435 fs/cifs/smb2transport.c struct shash_desc *shash = &server->secmech.sdesccmacaes->shash; server 438 fs/cifs/smb2transport.c ses = smb2_find_smb_ses(server, shdr->SessionId); server 447 fs/cifs/smb2transport.c rc = crypto_shash_setkey(server->secmech.cmacaes, server 485 fs/cifs/smb2transport.c rc = __cifs_calc_signature(&drqst, server, sigptr, shash); server 494 fs/cifs/smb2transport.c smb2_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server) server 501 fs/cifs/smb2transport.c server->tcpStatus == CifsNeedNegotiate) server 504 fs/cifs/smb2transport.c if (!server->session_estab) { server 509 fs/cifs/smb2transport.c rc = server->ops->calc_signature(rqst, server); server 515 fs/cifs/smb2transport.c smb2_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server) server 525 fs/cifs/smb2transport.c server->ignore_signature || server 526 fs/cifs/smb2transport.c (!server->session_estab)) server 547 fs/cifs/smb2transport.c mutex_lock(&server->srv_mutex); server 548 fs/cifs/smb2transport.c rc = server->ops->calc_signature(rqst, server); server 549 fs/cifs/smb2transport.c mutex_unlock(&server->srv_mutex); server 565 fs/cifs/smb2transport.c smb2_seq_num_into_buf(struct TCP_Server_Info *server, server 570 fs/cifs/smb2transport.c shdr->MessageId = get_next_mid64(server); server 573 fs/cifs/smb2transport.c get_next_mid(server); server 578 fs/cifs/smb2transport.c struct TCP_Server_Info *server) server 583 fs/cifs/smb2transport.c if (server == NULL) { server 596 fs/cifs/smb2transport.c temp->server = server; server 618 fs/cifs/smb2transport.c if (ses->server->tcpStatus == CifsExiting) server 621 fs/cifs/smb2transport.c if (ses->server->tcpStatus == CifsNeedReconnect) { server 626 fs/cifs/smb2transport.c if (ses->server->tcpStatus == CifsNeedNegotiate && server 643 fs/cifs/smb2transport.c *mid = smb2_mid_entry_alloc(shdr, ses->server); server 647 fs/cifs/smb2transport.c list_add_tail(&(*mid)->qhead, &ses->server->pending_mid_q); server 654 fs/cifs/smb2transport.c smb2_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, server 667 fs/cifs/smb2transport.c if (len > 24 && server->sign && !mid->decrypted) { server 670 fs/cifs/smb2transport.c rc = smb2_verify_signature(&rqst, server); server 687 fs/cifs/smb2transport.c smb2_seq_num_into_buf(ses->server, shdr); server 691 fs/cifs/smb2transport.c revert_current_mid_from_hdr(ses->server, shdr); server 695 fs/cifs/smb2transport.c rc = smb2_sign_rqst(rqst, ses->server); server 697 fs/cifs/smb2transport.c revert_current_mid_from_hdr(ses->server, shdr); server 706 fs/cifs/smb2transport.c smb2_setup_async_request(struct TCP_Server_Info *server, struct smb_rqst *rqst) server 713 fs/cifs/smb2transport.c if (server->tcpStatus == CifsNeedNegotiate && server 717 fs/cifs/smb2transport.c smb2_seq_num_into_buf(server, shdr); server 719 fs/cifs/smb2transport.c mid = smb2_mid_entry_alloc(shdr, server); server 721 fs/cifs/smb2transport.c revert_current_mid_from_hdr(server, shdr); server 725 fs/cifs/smb2transport.c rc = smb2_sign_rqst(rqst, server); server 727 fs/cifs/smb2transport.c revert_current_mid_from_hdr(server, shdr); server 736 fs/cifs/smb2transport.c smb3_crypto_aead_allocate(struct TCP_Server_Info *server) server 740 fs/cifs/smb2transport.c if (!server->secmech.ccmaesencrypt) { server 741 fs/cifs/smb2transport.c if (server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) server 750 fs/cifs/smb2transport.c server->secmech.ccmaesencrypt = tfm; server 753 fs/cifs/smb2transport.c if (!server->secmech.ccmaesdecrypt) { server 754 fs/cifs/smb2transport.c if (server->cipher_type == SMB2_ENCRYPTION_AES128_GCM) server 759 fs/cifs/smb2transport.c crypto_free_aead(server->secmech.ccmaesencrypt); server 760 fs/cifs/smb2transport.c server->secmech.ccmaesencrypt = NULL; server 765 fs/cifs/smb2transport.c server->secmech.ccmaesdecrypt = tfm; server 1391 fs/cifs/smbdirect.c void smbd_destroy(struct TCP_Server_Info *server) server 1393 fs/cifs/smbdirect.c struct smbd_connection *info = server->smbd_conn; server 1404 fs/cifs/smbdirect.c rdma_disconnect(server->smbd_conn->id); server 1458 fs/cifs/smbdirect.c mutex_unlock(&server->srv_mutex); server 1460 fs/cifs/smbdirect.c mutex_lock(&server->srv_mutex); server 1487 fs/cifs/smbdirect.c int smbd_reconnect(struct TCP_Server_Info *server) server 1491 fs/cifs/smbdirect.c if (!server->smbd_conn) { server 1500 fs/cifs/smbdirect.c if (server->smbd_conn->transport_status == SMBD_CONNECTED) { server 1502 fs/cifs/smbdirect.c smbd_destroy(server); server 1507 fs/cifs/smbdirect.c server->smbd_conn = smbd_get_connection( server 1508 fs/cifs/smbdirect.c server, (struct sockaddr *) &server->dstaddr); server 1510 fs/cifs/smbdirect.c if (server->smbd_conn) server 1513 fs/cifs/smbdirect.c return server->smbd_conn ? 0 : -ENOENT; server 1592 fs/cifs/smbdirect.c struct TCP_Server_Info *server, struct sockaddr *dstaddr, int port) server 1786 fs/cifs/smbdirect.c smbd_destroy(server); server 1819 fs/cifs/smbdirect.c struct TCP_Server_Info *server, struct sockaddr *dstaddr) server 1825 fs/cifs/smbdirect.c ret = _smbd_get_connection(server, dstaddr, port); server 2070 fs/cifs/smbdirect.c int smbd_send(struct TCP_Server_Info *server, server 2073 fs/cifs/smbdirect.c struct smbd_connection *info = server->smbd_conn; server 2098 fs/cifs/smbdirect.c remaining_data_length += smb_rqst_len(server, &rqst_array[i]); server 2117 fs/cifs/smbdirect.c rqst_idx, smb_rqst_len(server, rqst)); server 2125 fs/cifs/smbdirect.c rqst->rq_tailsz, smb_rqst_len(server, rqst)); server 11 fs/cifs/smbdirect.h #define cifs_rdma_enabled(server) ((server)->rdma) server 269 fs/cifs/smbdirect.h struct TCP_Server_Info *server, struct sockaddr *dstaddr); server 272 fs/cifs/smbdirect.h int smbd_reconnect(struct TCP_Server_Info *server); server 274 fs/cifs/smbdirect.h void smbd_destroy(struct TCP_Server_Info *server); server 278 fs/cifs/smbdirect.h int smbd_send(struct TCP_Server_Info *server, server 312 fs/cifs/smbdirect.h #define cifs_rdma_enabled(server) 0 server 315 fs/cifs/smbdirect.h struct TCP_Server_Info *server, struct sockaddr *dstaddr) {return NULL;} server 316 fs/cifs/smbdirect.h static inline int smbd_reconnect(struct TCP_Server_Info *server) {return -1; } server 317 fs/cifs/smbdirect.h static inline void smbd_destroy(struct TCP_Server_Info *server) {} server 319 fs/cifs/smbdirect.h static inline int smbd_send(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *rqst) {return -1; } server 54 fs/cifs/transport.c AllocMidQEntry(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) server 58 fs/cifs/transport.c if (server == NULL) { server 73 fs/cifs/transport.c temp->server = server; server 94 fs/cifs/transport.c __le16 command = midEntry->server->vals->lock_cmd; server 99 fs/cifs/transport.c struct TCP_Server_Info *server = midEntry->server; server 103 fs/cifs/transport.c server->ops->handle_cancelled_mid) server 104 fs/cifs/transport.c server->ops->handle_cancelled_mid(midEntry->resp_buf, server); server 119 fs/cifs/transport.c if (atomic_read(&server->num_cmds[smb_cmd]) == 0) { server 120 fs/cifs/transport.c server->slowest_cmd[smb_cmd] = roundtrip_time; server 121 fs/cifs/transport.c server->fastest_cmd[smb_cmd] = roundtrip_time; server 123 fs/cifs/transport.c if (server->slowest_cmd[smb_cmd] < roundtrip_time) server 124 fs/cifs/transport.c server->slowest_cmd[smb_cmd] = roundtrip_time; server 125 fs/cifs/transport.c else if (server->fastest_cmd[smb_cmd] > roundtrip_time) server 126 fs/cifs/transport.c server->fastest_cmd[smb_cmd] = roundtrip_time; server 128 fs/cifs/transport.c cifs_stats_inc(&server->num_cmds[smb_cmd]); server 129 fs/cifs/transport.c server->time_per_cmd[smb_cmd] += roundtrip_time; server 149 fs/cifs/transport.c cifs_stats_inc(&server->smb2slowcmd[smb_cmd]); server 203 fs/cifs/transport.c smb_send_kvec(struct TCP_Server_Info *server, struct msghdr *smb_msg, server 208 fs/cifs/transport.c struct socket *ssocket = server->ssocket; server 212 fs/cifs/transport.c smb_msg->msg_name = (struct sockaddr *) &server->dstaddr; server 216 fs/cifs/transport.c if (server->noblocksnd) server 244 fs/cifs/transport.c (!server->noblocksnd && (retries > 2))) { server 272 fs/cifs/transport.c smb_rqst_len(struct TCP_Server_Info *server, struct smb_rqst *rqst) server 279 fs/cifs/transport.c if (server->vals->header_preamble_size == 0 && server 316 fs/cifs/transport.c __smb_send_rqst(struct TCP_Server_Info *server, int num_rqst, server 326 fs/cifs/transport.c struct socket *ssocket = server->ssocket; server 331 fs/cifs/transport.c if (cifs_rdma_enabled(server)) { server 334 fs/cifs/transport.c if (server->smbd_conn) server 335 fs/cifs/transport.c rc = smbd_send(server, num_rqst, rqst); server 352 fs/cifs/transport.c send_length += smb_rqst_len(server, &rqst[j]); server 366 fs/cifs/transport.c if (server->vals->header_preamble_size == 0) { server 372 fs/cifs/transport.c rc = smb_send_kvec(server, &smb_msg, &sent); server 394 fs/cifs/transport.c rc = smb_send_kvec(server, &smb_msg, &sent); server 410 fs/cifs/transport.c rc = smb_send_kvec(server, &smb_msg, &sent); server 450 fs/cifs/transport.c server->tcpStatus = CifsNeedReconnect; server 451 fs/cifs/transport.c trace_smb3_partial_send_reconnect(server->CurrentMid, server 452 fs/cifs/transport.c server->hostname); server 465 fs/cifs/transport.c smb_send_rqst(struct TCP_Server_Info *server, int num_rqst, server 474 fs/cifs/transport.c return __smb_send_rqst(server, num_rqst, rqst); server 479 fs/cifs/transport.c if (!server->ops->init_transform_rq) { server 498 fs/cifs/transport.c rc = server->ops->init_transform_rq(server, num_rqst + 1, server 503 fs/cifs/transport.c rc = __smb_send_rqst(server, num_rqst + 1, &cur_rqst[0]); server 511 fs/cifs/transport.c smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, server 523 fs/cifs/transport.c return __smb_send_rqst(server, 1, &rqst); server 527 fs/cifs/transport.c wait_for_free_credits(struct TCP_Server_Info *server, const int num_credits, server 545 fs/cifs/transport.c credits = server->ops->get_credits_field(server, optype); server 550 fs/cifs/transport.c spin_lock(&server->req_lock); server 553 fs/cifs/transport.c server->in_flight++; server 554 fs/cifs/transport.c if (server->in_flight > server->max_in_flight) server 555 fs/cifs/transport.c server->max_in_flight = server->in_flight; server 557 fs/cifs/transport.c *instance = server->reconnect_instance; server 558 fs/cifs/transport.c spin_unlock(&server->req_lock); server 564 fs/cifs/transport.c spin_unlock(&server->req_lock); server 565 fs/cifs/transport.c cifs_num_waiters_inc(server); server 566 fs/cifs/transport.c rc = wait_event_killable_timeout(server->request_q, server 567 fs/cifs/transport.c has_credits(server, credits, num_credits), t); server 568 fs/cifs/transport.c cifs_num_waiters_dec(server); server 570 fs/cifs/transport.c trace_smb3_credit_timeout(server->CurrentMid, server 571 fs/cifs/transport.c server->hostname, num_credits); server 578 fs/cifs/transport.c spin_lock(&server->req_lock); server 580 fs/cifs/transport.c if (server->tcpStatus == CifsExiting) { server 581 fs/cifs/transport.c spin_unlock(&server->req_lock); server 599 fs/cifs/transport.c server->in_flight > 2 * MAX_COMPOUND && server 601 fs/cifs/transport.c spin_unlock(&server->req_lock); server 602 fs/cifs/transport.c cifs_num_waiters_inc(server); server 604 fs/cifs/transport.c server->request_q, server 605 fs/cifs/transport.c has_credits(server, credits, server 608 fs/cifs/transport.c cifs_num_waiters_dec(server); server 611 fs/cifs/transport.c server->CurrentMid, server 612 fs/cifs/transport.c server->hostname, num_credits); server 619 fs/cifs/transport.c spin_lock(&server->req_lock); server 631 fs/cifs/transport.c server->in_flight += num_credits; server 632 fs/cifs/transport.c if (server->in_flight > server->max_in_flight) server 633 fs/cifs/transport.c server->max_in_flight = server->in_flight; server 634 fs/cifs/transport.c *instance = server->reconnect_instance; server 636 fs/cifs/transport.c spin_unlock(&server->req_lock); server 644 fs/cifs/transport.c wait_for_free_request(struct TCP_Server_Info *server, const int flags, server 647 fs/cifs/transport.c return wait_for_free_credits(server, 1, -1, flags, server 652 fs/cifs/transport.c wait_for_compound_request(struct TCP_Server_Info *server, int num, server 657 fs/cifs/transport.c credits = server->ops->get_credits_field(server, flags & CIFS_OP_MASK); server 659 fs/cifs/transport.c spin_lock(&server->req_lock); server 665 fs/cifs/transport.c if (server->in_flight < num - *credits) { server 666 fs/cifs/transport.c spin_unlock(&server->req_lock); server 670 fs/cifs/transport.c spin_unlock(&server->req_lock); server 672 fs/cifs/transport.c return wait_for_free_credits(server, num, 60000, flags, server 677 fs/cifs/transport.c cifs_wait_mtu_credits(struct TCP_Server_Info *server, unsigned int size, server 682 fs/cifs/transport.c credits->instance = server->reconnect_instance; server 689 fs/cifs/transport.c if (ses->server->tcpStatus == CifsExiting) { server 693 fs/cifs/transport.c if (ses->server->tcpStatus == CifsNeedReconnect) { server 712 fs/cifs/transport.c *ppmidQ = AllocMidQEntry(in_buf, ses->server); server 716 fs/cifs/transport.c list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); server 722 fs/cifs/transport.c wait_for_response(struct TCP_Server_Info *server, struct mid_q_entry *midQ) server 726 fs/cifs/transport.c error = wait_event_freezekillable_unsafe(server->response_q, server 735 fs/cifs/transport.c cifs_setup_async_request(struct TCP_Server_Info *server, struct smb_rqst *rqst) server 746 fs/cifs/transport.c if (server->sign) server 749 fs/cifs/transport.c mid = AllocMidQEntry(hdr, server); server 753 fs/cifs/transport.c rc = cifs_sign_rqst(rqst, server, &mid->sequence_number); server 767 fs/cifs/transport.c cifs_call_async(struct TCP_Server_Info *server, struct smb_rqst *rqst, server 781 fs/cifs/transport.c rc = wait_for_free_request(server, flags, &instance); server 789 fs/cifs/transport.c mutex_lock(&server->srv_mutex); server 796 fs/cifs/transport.c if (instance != server->reconnect_instance) { server 797 fs/cifs/transport.c mutex_unlock(&server->srv_mutex); server 798 fs/cifs/transport.c add_credits_and_wake_if(server, &credits, optype); server 802 fs/cifs/transport.c mid = server->ops->setup_async_request(server, rqst); server 804 fs/cifs/transport.c mutex_unlock(&server->srv_mutex); server 805 fs/cifs/transport.c add_credits_and_wake_if(server, &credits, optype); server 817 fs/cifs/transport.c list_add_tail(&mid->qhead, &server->pending_mid_q); server 825 fs/cifs/transport.c cifs_in_send_inc(server); server 826 fs/cifs/transport.c rc = smb_send_rqst(server, 1, rqst, flags); server 827 fs/cifs/transport.c cifs_in_send_dec(server); server 830 fs/cifs/transport.c revert_current_mid(server, mid->credits); server 831 fs/cifs/transport.c server->sequence_number -= 2; server 835 fs/cifs/transport.c mutex_unlock(&server->srv_mutex); server 840 fs/cifs/transport.c add_credits_and_wake_if(server, &credits, optype); server 872 fs/cifs/transport.c cifs_sync_mid_result(struct mid_q_entry *mid, struct TCP_Server_Info *server) server 909 fs/cifs/transport.c send_cancel(struct TCP_Server_Info *server, struct smb_rqst *rqst, server 912 fs/cifs/transport.c return server->ops->send_cancel ? server 913 fs/cifs/transport.c server->ops->send_cancel(server, rqst, mid) : 0; server 917 fs/cifs/transport.c cifs_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, server 925 fs/cifs/transport.c if (server->sign) { server 936 fs/cifs/transport.c rc = cifs_verify_signature(&rqst, server, server 961 fs/cifs/transport.c rc = cifs_sign_rqst(rqst, ses->server, &mid->sequence_number); server 972 fs/cifs/transport.c struct TCP_Server_Info *server = mid->server; server 975 fs/cifs/transport.c credits.value = server->ops->get_credits(mid); server 976 fs/cifs/transport.c credits.instance = server->reconnect_instance; server 978 fs/cifs/transport.c add_credits(server, &credits, mid->optype); server 1008 fs/cifs/transport.c struct TCP_Server_Info *server; server 1015 fs/cifs/transport.c if ((ses == NULL) || (ses->server == NULL)) { server 1020 fs/cifs/transport.c server = ses->server; server 1021 fs/cifs/transport.c if (server->tcpStatus == CifsExiting) server 1032 fs/cifs/transport.c rc = wait_for_compound_request(server, num_rqst, flags, server 1048 fs/cifs/transport.c mutex_lock(&server->srv_mutex); server 1057 fs/cifs/transport.c if (instance != server->reconnect_instance) { server 1058 fs/cifs/transport.c mutex_unlock(&server->srv_mutex); server 1060 fs/cifs/transport.c add_credits(server, &credits[j], optype); server 1065 fs/cifs/transport.c midQ[i] = server->ops->setup_request(ses, &rqst[i]); server 1067 fs/cifs/transport.c revert_current_mid(server, i); server 1070 fs/cifs/transport.c mutex_unlock(&server->srv_mutex); server 1074 fs/cifs/transport.c add_credits(server, &credits[j], optype); server 1090 fs/cifs/transport.c cifs_in_send_inc(server); server 1091 fs/cifs/transport.c rc = smb_send_rqst(server, num_rqst, rqst, flags); server 1092 fs/cifs/transport.c cifs_in_send_dec(server); server 1098 fs/cifs/transport.c revert_current_mid(server, num_rqst); server 1099 fs/cifs/transport.c server->sequence_number -= 2; server 1102 fs/cifs/transport.c mutex_unlock(&server->srv_mutex); server 1110 fs/cifs/transport.c add_credits(server, &credits[i], optype); server 1130 fs/cifs/transport.c rc = wait_for_response(server, midQ[i]); server 1138 fs/cifs/transport.c send_cancel(server, &rqst[i], midQ[i]); server 1154 fs/cifs/transport.c rc = cifs_sync_mid_result(midQ[i], server); server 1171 fs/cifs/transport.c server->vals->header_preamble_size; server 1178 fs/cifs/transport.c rc = server->ops->check_receive(midQ[i], server, server 1271 fs/cifs/transport.c struct TCP_Server_Info *server; server 1277 fs/cifs/transport.c server = ses->server; server 1278 fs/cifs/transport.c if (server == NULL) { server 1283 fs/cifs/transport.c if (server->tcpStatus == CifsExiting) server 1296 fs/cifs/transport.c rc = wait_for_free_request(server, flags, &credits.instance); server 1304 fs/cifs/transport.c mutex_lock(&server->srv_mutex); server 1308 fs/cifs/transport.c mutex_unlock(&ses->server->srv_mutex); server 1310 fs/cifs/transport.c add_credits(server, &credits, 0); server 1314 fs/cifs/transport.c rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number); server 1316 fs/cifs/transport.c mutex_unlock(&server->srv_mutex); server 1322 fs/cifs/transport.c cifs_in_send_inc(server); server 1323 fs/cifs/transport.c rc = smb_send(server, in_buf, len); server 1324 fs/cifs/transport.c cifs_in_send_dec(server); server 1328 fs/cifs/transport.c server->sequence_number -= 2; server 1330 fs/cifs/transport.c mutex_unlock(&server->srv_mutex); server 1335 fs/cifs/transport.c rc = wait_for_response(server, midQ); server 1337 fs/cifs/transport.c send_cancel(server, &rqst, midQ); server 1343 fs/cifs/transport.c add_credits(server, &credits, 0); server 1349 fs/cifs/transport.c rc = cifs_sync_mid_result(midQ, server); server 1351 fs/cifs/transport.c add_credits(server, &credits, 0); server 1364 fs/cifs/transport.c rc = cifs_check_receive(midQ, server, 0); server 1367 fs/cifs/transport.c add_credits(server, &credits, 0); server 1391 fs/cifs/transport.c pSMB->hdr.Mid = get_next_mid(ses->server); server 1410 fs/cifs/transport.c struct TCP_Server_Info *server; server 1417 fs/cifs/transport.c server = ses->server; server 1419 fs/cifs/transport.c if (server == NULL) { server 1424 fs/cifs/transport.c if (server->tcpStatus == CifsExiting) server 1437 fs/cifs/transport.c rc = wait_for_free_request(server, CIFS_BLOCKING_OP, &instance); server 1445 fs/cifs/transport.c mutex_lock(&server->srv_mutex); server 1449 fs/cifs/transport.c mutex_unlock(&server->srv_mutex); server 1453 fs/cifs/transport.c rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number); server 1456 fs/cifs/transport.c mutex_unlock(&server->srv_mutex); server 1461 fs/cifs/transport.c cifs_in_send_inc(server); server 1462 fs/cifs/transport.c rc = smb_send(server, in_buf, len); server 1463 fs/cifs/transport.c cifs_in_send_dec(server); server 1467 fs/cifs/transport.c server->sequence_number -= 2; server 1469 fs/cifs/transport.c mutex_unlock(&server->srv_mutex); server 1477 fs/cifs/transport.c rc = wait_event_interruptible(server->response_q, server 1479 fs/cifs/transport.c ((server->tcpStatus != CifsGood) && server 1480 fs/cifs/transport.c (server->tcpStatus != CifsNew))); server 1485 fs/cifs/transport.c ((server->tcpStatus == CifsGood) || server 1486 fs/cifs/transport.c (server->tcpStatus == CifsNew))) { server 1491 fs/cifs/transport.c rc = send_cancel(server, &rqst, midQ); server 1510 fs/cifs/transport.c rc = wait_for_response(server, midQ); server 1512 fs/cifs/transport.c send_cancel(server, &rqst, midQ); server 1527 fs/cifs/transport.c rc = cifs_sync_mid_result(midQ, server); server 1540 fs/cifs/transport.c rc = cifs_check_receive(midQ, server, 0); server 92 fs/cifs/xattr.c if (pTcon->ses->server->ops->set_EA) server 93 fs/cifs/xattr.c rc = pTcon->ses->server->ops->set_EA(xid, pTcon, server 109 fs/cifs/xattr.c pTcon->ses->server->ops->set_acl) server 110 fs/cifs/xattr.c rc = pTcon->ses->server->ops->set_acl(pacl, server 242 fs/cifs/xattr.c if (pTcon->ses->server->ops->query_all_EAs) server 243 fs/cifs/xattr.c rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, server 251 fs/cifs/xattr.c if (pTcon->ses->server->ops->get_acl == NULL) server 254 fs/cifs/xattr.c pacl = pTcon->ses->server->ops->get_acl(cifs_sb, server 340 fs/cifs/xattr.c if (pTcon->ses->server->ops->query_all_EAs) server 341 fs/cifs/xattr.c rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, server 54 fs/lockd/host.c const int server; /* search for server|client */ server 147 fs/lockd/host.c host->h_server = ni->server; server 226 fs/lockd/host.c .server = 0, server 339 fs/lockd/host.c .server = 1, server 586 fs/nfs/blocklayout/blocklayout.c bl_find_get_deviceid(struct nfs_server *server, server 594 fs/nfs/blocklayout/blocklayout.c node = nfs4_find_get_deviceid(server, id, cred, gfp_mask); server 806 fs/nfs/blocklayout/blocklayout.c bl_set_layoutdriver(struct nfs_server *server, const struct nfs_fh *fh) server 810 fs/nfs/blocklayout/blocklayout.c if (server->pnfs_blksize == 0) { server 814 fs/nfs/blocklayout/blocklayout.c if (server->pnfs_blksize > PAGE_SIZE) { server 816 fs/nfs/blocklayout/blocklayout.c __func__, server->pnfs_blksize); server 175 fs/nfs/blocklayout/blocklayout.h struct nfs4_deviceid_node *bl_alloc_deviceid_node(struct nfs_server *server, server 192 fs/nfs/blocklayout/blocklayout.h dev_t bl_resolve_deviceid(struct nfs_server *server, server 230 fs/nfs/blocklayout/dev.c bl_parse_deviceid(struct nfs_server *server, struct pnfs_block_dev *d, server 235 fs/nfs/blocklayout/dev.c bl_parse_simple(struct nfs_server *server, struct pnfs_block_dev *d, server 242 fs/nfs/blocklayout/dev.c dev = bl_resolve_deviceid(server, v, gfp_mask); server 352 fs/nfs/blocklayout/dev.c bl_parse_scsi(struct nfs_server *server, struct pnfs_block_dev *d, server 401 fs/nfs/blocklayout/dev.c bl_parse_slice(struct nfs_server *server, struct pnfs_block_dev *d, server 407 fs/nfs/blocklayout/dev.c ret = bl_parse_deviceid(server, d, volumes, v->slice.volume, gfp_mask); server 417 fs/nfs/blocklayout/dev.c bl_parse_concat(struct nfs_server *server, struct pnfs_block_dev *d, server 430 fs/nfs/blocklayout/dev.c ret = bl_parse_deviceid(server, &d->children[i], server 446 fs/nfs/blocklayout/dev.c bl_parse_stripe(struct nfs_server *server, struct pnfs_block_dev *d, server 459 fs/nfs/blocklayout/dev.c ret = bl_parse_deviceid(server, &d->children[i], server 475 fs/nfs/blocklayout/dev.c bl_parse_deviceid(struct nfs_server *server, struct pnfs_block_dev *d, server 480 fs/nfs/blocklayout/dev.c return bl_parse_simple(server, d, volumes, idx, gfp_mask); server 482 fs/nfs/blocklayout/dev.c return bl_parse_slice(server, d, volumes, idx, gfp_mask); server 484 fs/nfs/blocklayout/dev.c return bl_parse_concat(server, d, volumes, idx, gfp_mask); server 486 fs/nfs/blocklayout/dev.c return bl_parse_stripe(server, d, volumes, idx, gfp_mask); server 488 fs/nfs/blocklayout/dev.c return bl_parse_scsi(server, d, volumes, idx, gfp_mask); server 496 fs/nfs/blocklayout/dev.c bl_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, server 535 fs/nfs/blocklayout/dev.c ret = bl_parse_deviceid(server, top, volumes, nr_volumes - 1, gfp_mask); server 538 fs/nfs/blocklayout/dev.c nfs4_init_deviceid_node(node, server, &pdev->dev_id); server 53 fs/nfs/blocklayout/rpc_pipefs.c bl_resolve_deviceid(struct nfs_server *server, struct pnfs_block_volume *b, server 56 fs/nfs/blocklayout/rpc_pipefs.c struct net *net = server->nfs_client->cl_net; server 127 fs/nfs/callback_proc.c struct nfs_server *server; server 131 fs/nfs/callback_proc.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { server 132 fs/nfs/callback_proc.c list_for_each_entry(lo, &server->layouts, plh_layouts) { server 165 fs/nfs/callback_proc.c struct nfs_server *server; server 170 fs/nfs/callback_proc.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { server 171 fs/nfs/callback_proc.c list_for_each_entry(lo, &server->layouts, plh_layouts) { server 370 fs/nfs/callback_proc.c struct nfs_server *server = NULL; server 380 fs/nfs/callback_proc.c if (!server || server 381 fs/nfs/callback_proc.c server->pnfs_curr_ld->id != dev->cbd_layout_type) { server 383 fs/nfs/callback_proc.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) server 384 fs/nfs/callback_proc.c if (server->pnfs_curr_ld && server 385 fs/nfs/callback_proc.c server->pnfs_curr_ld->id == dev->cbd_layout_type) { server 394 fs/nfs/callback_proc.c nfs4_delete_deviceid(server->pnfs_curr_ld, clp, &dev->cbd_dev_id); server 702 fs/nfs/callback_proc.c struct nfs_server *server; server 712 fs/nfs/callback_proc.c list_for_each_entry_rcu(server, &cps->clp->cl_superblocks, server 714 fs/nfs/callback_proc.c list_for_each_entry(tmp_copy, &server->ss_copies, copies) { server 214 fs/nfs/client.c static void pnfs_init_server(struct nfs_server *server) server 216 fs/nfs/client.c rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); server 228 fs/nfs/client.c static void pnfs_init_server(struct nfs_server *server) server 539 fs/nfs/client.c static void nfs_destroy_server(struct nfs_server *server) server 541 fs/nfs/client.c if (server->nlm_host) server 542 fs/nfs/client.c nlmclnt_done(server->nlm_host); server 548 fs/nfs/client.c static int nfs_start_lockd(struct nfs_server *server) server 551 fs/nfs/client.c struct nfs_client *clp = server->nfs_client; server 557 fs/nfs/client.c .noresvport = server->flags & NFS_MOUNT_NORESVPORT ? server 566 fs/nfs/client.c if ((server->flags & NFS_MOUNT_LOCAL_FLOCK) && server 567 fs/nfs/client.c (server->flags & NFS_MOUNT_LOCAL_FCNTL)) server 582 fs/nfs/client.c server->nlm_host = host; server 583 fs/nfs/client.c server->destroy = nfs_destroy_server; server 590 fs/nfs/client.c int nfs_init_server_rpcclient(struct nfs_server *server, server 594 fs/nfs/client.c struct nfs_client *clp = server->nfs_client; server 596 fs/nfs/client.c server->client = rpc_clone_client_set_auth(clp->cl_rpcclient, server 598 fs/nfs/client.c if (IS_ERR(server->client)) { server 600 fs/nfs/client.c return PTR_ERR(server->client); server 603 fs/nfs/client.c memcpy(&server->client->cl_timeout_default, server 605 fs/nfs/client.c sizeof(server->client->cl_timeout_default)); server 606 fs/nfs/client.c server->client->cl_timeout = &server->client->cl_timeout_default; server 607 fs/nfs/client.c server->client->cl_softrtry = 0; server 608 fs/nfs/client.c if (server->flags & NFS_MOUNT_SOFTERR) server 609 fs/nfs/client.c server->client->cl_softerr = 1; server 610 fs/nfs/client.c if (server->flags & NFS_MOUNT_SOFT) server 611 fs/nfs/client.c server->client->cl_softrtry = 1; server 651 fs/nfs/client.c static int nfs_init_server(struct nfs_server *server, server 664 fs/nfs/client.c .cred = server->cred, server 680 fs/nfs/client.c server->nfs_client = clp; server 683 fs/nfs/client.c server->flags = data->flags; server 684 fs/nfs/client.c server->options = data->options; server 685 fs/nfs/client.c server->caps |= NFS_CAP_HARDLINKS|NFS_CAP_SYMLINKS|NFS_CAP_FILEID| server 690 fs/nfs/client.c server->rsize = nfs_block_size(data->rsize, NULL); server 692 fs/nfs/client.c server->wsize = nfs_block_size(data->wsize, NULL); server 694 fs/nfs/client.c server->acregmin = data->acregmin * HZ; server 695 fs/nfs/client.c server->acregmax = data->acregmax * HZ; server 696 fs/nfs/client.c server->acdirmin = data->acdirmin * HZ; server 697 fs/nfs/client.c server->acdirmax = data->acdirmax * HZ; server 700 fs/nfs/client.c error = nfs_start_lockd(server); server 704 fs/nfs/client.c server->port = data->nfs_server.port; server 705 fs/nfs/client.c server->auth_info = data->auth_info; server 707 fs/nfs/client.c error = nfs_init_server_rpcclient(server, &timeparms, server 714 fs/nfs/client.c memcpy(&server->mountd_address, &data->mount_server.address, server 716 fs/nfs/client.c server->mountd_addrlen = data->mount_server.addrlen; server 718 fs/nfs/client.c server->mountd_version = data->mount_server.version; server 719 fs/nfs/client.c server->mountd_port = data->mount_server.port; server 720 fs/nfs/client.c server->mountd_protocol = data->mount_server.protocol; server 722 fs/nfs/client.c server->namelen = data->namlen; server 726 fs/nfs/client.c server->nfs_client = NULL; server 734 fs/nfs/client.c static void nfs_server_set_fsinfo(struct nfs_server *server, server 740 fs/nfs/client.c if (server->rsize == 0) server 741 fs/nfs/client.c server->rsize = nfs_block_size(fsinfo->rtpref, NULL); server 742 fs/nfs/client.c if (server->wsize == 0) server 743 fs/nfs/client.c server->wsize = nfs_block_size(fsinfo->wtpref, NULL); server 745 fs/nfs/client.c if (fsinfo->rtmax >= 512 && server->rsize > fsinfo->rtmax) server 746 fs/nfs/client.c server->rsize = nfs_block_size(fsinfo->rtmax, NULL); server 747 fs/nfs/client.c if (fsinfo->wtmax >= 512 && server->wsize > fsinfo->wtmax) server 748 fs/nfs/client.c server->wsize = nfs_block_size(fsinfo->wtmax, NULL); server 750 fs/nfs/client.c max_rpc_payload = nfs_block_size(rpc_max_payload(server->client), NULL); server 751 fs/nfs/client.c if (server->rsize > max_rpc_payload) server 752 fs/nfs/client.c server->rsize = max_rpc_payload; server 753 fs/nfs/client.c if (server->rsize > NFS_MAX_FILE_IO_SIZE) server 754 fs/nfs/client.c server->rsize = NFS_MAX_FILE_IO_SIZE; server 755 fs/nfs/client.c server->rpages = (server->rsize + PAGE_SIZE - 1) >> PAGE_SHIFT; server 757 fs/nfs/client.c if (server->wsize > max_rpc_payload) server 758 fs/nfs/client.c server->wsize = max_rpc_payload; server 759 fs/nfs/client.c if (server->wsize > NFS_MAX_FILE_IO_SIZE) server 760 fs/nfs/client.c server->wsize = NFS_MAX_FILE_IO_SIZE; server 761 fs/nfs/client.c server->wpages = (server->wsize + PAGE_SIZE - 1) >> PAGE_SHIFT; server 763 fs/nfs/client.c server->wtmult = nfs_block_bits(fsinfo->wtmult, NULL); server 765 fs/nfs/client.c server->dtsize = nfs_block_size(fsinfo->dtpref, NULL); server 766 fs/nfs/client.c if (server->dtsize > PAGE_SIZE * NFS_MAX_READDIR_PAGES) server 767 fs/nfs/client.c server->dtsize = PAGE_SIZE * NFS_MAX_READDIR_PAGES; server 768 fs/nfs/client.c if (server->dtsize > server->rsize) server 769 fs/nfs/client.c server->dtsize = server->rsize; server 771 fs/nfs/client.c if (server->flags & NFS_MOUNT_NOAC) { server 772 fs/nfs/client.c server->acregmin = server->acregmax = 0; server 773 fs/nfs/client.c server->acdirmin = server->acdirmax = 0; server 776 fs/nfs/client.c server->maxfilesize = fsinfo->maxfilesize; server 778 fs/nfs/client.c server->time_delta = fsinfo->time_delta; server 780 fs/nfs/client.c server->clone_blksize = fsinfo->clone_blksize; server 782 fs/nfs/client.c rpc_setbufsize(server->client, server->wsize + 100, server->rsize + 100); server 788 fs/nfs/client.c int nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, struct nfs_fattr *fattr) server 791 fs/nfs/client.c struct nfs_client *clp = server->nfs_client; server 795 fs/nfs/client.c error = clp->rpc_ops->set_capabilities(server, mntfh); server 803 fs/nfs/client.c error = clp->rpc_ops->fsinfo(server, mntfh, &fsinfo); server 807 fs/nfs/client.c nfs_server_set_fsinfo(server, &fsinfo); server 810 fs/nfs/client.c if (server->namelen == 0) { server 816 fs/nfs/client.c if (clp->rpc_ops->pathconf(server, mntfh, &pathinfo) >= 0) server 817 fs/nfs/client.c server->namelen = pathinfo.max_namelen; server 843 fs/nfs/client.c void nfs_server_insert_lists(struct nfs_server *server) server 845 fs/nfs/client.c struct nfs_client *clp = server->nfs_client; server 849 fs/nfs/client.c list_add_tail_rcu(&server->client_link, &clp->cl_superblocks); server 850 fs/nfs/client.c list_add_tail(&server->master_link, &nn->nfs_volume_list); server 857 fs/nfs/client.c void nfs_server_remove_lists(struct nfs_server *server) server 859 fs/nfs/client.c struct nfs_client *clp = server->nfs_client; server 866 fs/nfs/client.c list_del_rcu(&server->client_link); server 869 fs/nfs/client.c list_del(&server->master_link); server 881 fs/nfs/client.c struct nfs_server *server; server 883 fs/nfs/client.c server = kzalloc(sizeof(struct nfs_server), GFP_KERNEL); server 884 fs/nfs/client.c if (!server) server 887 fs/nfs/client.c server->client = server->client_acl = ERR_PTR(-EINVAL); server 890 fs/nfs/client.c INIT_LIST_HEAD(&server->client_link); server 891 fs/nfs/client.c INIT_LIST_HEAD(&server->master_link); server 892 fs/nfs/client.c INIT_LIST_HEAD(&server->delegations); server 893 fs/nfs/client.c INIT_LIST_HEAD(&server->layouts); server 894 fs/nfs/client.c INIT_LIST_HEAD(&server->state_owners_lru); server 895 fs/nfs/client.c INIT_LIST_HEAD(&server->ss_copies); server 897 fs/nfs/client.c atomic_set(&server->active, 0); server 899 fs/nfs/client.c server->io_stats = nfs_alloc_iostats(); server 900 fs/nfs/client.c if (!server->io_stats) { server 901 fs/nfs/client.c kfree(server); server 905 fs/nfs/client.c ida_init(&server->openowner_id); server 906 fs/nfs/client.c ida_init(&server->lockowner_id); server 907 fs/nfs/client.c pnfs_init_server(server); server 908 fs/nfs/client.c rpc_init_wait_queue(&server->uoc_rpcwaitq, "NFS UOC"); server 910 fs/nfs/client.c return server; server 917 fs/nfs/client.c void nfs_free_server(struct nfs_server *server) server 919 fs/nfs/client.c nfs_server_remove_lists(server); server 921 fs/nfs/client.c if (server->destroy != NULL) server 922 fs/nfs/client.c server->destroy(server); server 924 fs/nfs/client.c if (!IS_ERR(server->client_acl)) server 925 fs/nfs/client.c rpc_shutdown_client(server->client_acl); server 926 fs/nfs/client.c if (!IS_ERR(server->client)) server 927 fs/nfs/client.c rpc_shutdown_client(server->client); server 929 fs/nfs/client.c nfs_put_client(server->nfs_client); server 931 fs/nfs/client.c ida_destroy(&server->lockowner_id); server 932 fs/nfs/client.c ida_destroy(&server->openowner_id); server 933 fs/nfs/client.c nfs_free_iostats(server->io_stats); server 934 fs/nfs/client.c put_cred(server->cred); server 935 fs/nfs/client.c kfree(server); server 947 fs/nfs/client.c struct nfs_server *server; server 951 fs/nfs/client.c server = nfs_alloc_server(); server 952 fs/nfs/client.c if (!server) server 955 fs/nfs/client.c server->cred = get_cred(current_cred()); server 963 fs/nfs/client.c error = nfs_init_server(server, mount_info->parsed, nfs_mod); server 968 fs/nfs/client.c error = nfs_probe_fsinfo(server, mount_info->mntfh, fattr); server 971 fs/nfs/client.c if (server->nfs_client->rpc_ops->version == 3) { server 972 fs/nfs/client.c if (server->namelen == 0 || server->namelen > NFS3_MAXNAMLEN) server 973 fs/nfs/client.c server->namelen = NFS3_MAXNAMLEN; server 975 fs/nfs/client.c server->caps |= NFS_CAP_READDIRPLUS; server 977 fs/nfs/client.c if (server->namelen == 0 || server->namelen > NFS2_MAXNAMLEN) server 978 fs/nfs/client.c server->namelen = NFS2_MAXNAMLEN; server 982 fs/nfs/client.c error = nfs_mod->rpc_ops->getattr(server, mount_info->mntfh, server 989 fs/nfs/client.c memcpy(&server->fsid, &fattr->fsid, sizeof(server->fsid)); server 992 fs/nfs/client.c (unsigned long long) server->fsid.major, server 993 fs/nfs/client.c (unsigned long long) server->fsid.minor); server 995 fs/nfs/client.c nfs_server_insert_lists(server); server 996 fs/nfs/client.c server->mount_time = jiffies; server 998 fs/nfs/client.c return server; server 1002 fs/nfs/client.c nfs_free_server(server); server 1015 fs/nfs/client.c struct nfs_server *server; server 1019 fs/nfs/client.c server = nfs_alloc_server(); server 1020 fs/nfs/client.c if (!server) server 1023 fs/nfs/client.c server->cred = get_cred(source->cred); server 1031 fs/nfs/client.c server->nfs_client = source->nfs_client; server 1032 fs/nfs/client.c server->destroy = source->destroy; server 1033 fs/nfs/client.c refcount_inc(&server->nfs_client->cl_count); server 1034 fs/nfs/client.c nfs_server_copy_userdata(server, source); server 1036 fs/nfs/client.c server->fsid = fattr->fsid; server 1038 fs/nfs/client.c error = nfs_init_server_rpcclient(server, server 1045 fs/nfs/client.c error = nfs_probe_fsinfo(server, fh, fattr_fsinfo); server 1049 fs/nfs/client.c if (server->namelen == 0 || server->namelen > NFS4_MAXNAMLEN) server 1050 fs/nfs/client.c server->namelen = NFS4_MAXNAMLEN; server 1052 fs/nfs/client.c error = nfs_start_lockd(server); server 1056 fs/nfs/client.c nfs_server_insert_lists(server); server 1057 fs/nfs/client.c server->mount_time = jiffies; server 1060 fs/nfs/client.c return server; server 1064 fs/nfs/client.c nfs_free_server(server); server 1225 fs/nfs/client.c struct nfs_server *server; server 1238 fs/nfs/client.c server = list_entry(v, struct nfs_server, master_link); server 1239 fs/nfs/client.c clp = server->nfs_client; server 1242 fs/nfs/client.c MAJOR(server->s_dev), MINOR(server->s_dev)); server 1245 fs/nfs/client.c (unsigned long long) server->fsid.major, server 1246 fs/nfs/client.c (unsigned long long) server->fsid.minor); server 1255 fs/nfs/client.c nfs_server_fscache_state(server)); server 311 fs/nfs/delegation.c struct nfs_server *server) server 313 fs/nfs/delegation.c struct nfs_client *clp = server->nfs_client; server 325 fs/nfs/delegation.c struct nfs_server *server = NFS_SERVER(inode); server 331 fs/nfs/delegation.c return nfs_detach_delegation(nfsi, delegation, server); server 360 fs/nfs/delegation.c struct nfs_server *server = NFS_SERVER(inode); server 361 fs/nfs/delegation.c struct nfs_client *clp = server->nfs_client; server 413 fs/nfs/delegation.c list_add_tail_rcu(&delegation->super_list, &server->delegations); server 503 fs/nfs/delegation.c struct nfs_server *server; server 523 fs/nfs/delegation.c server = NFS_SERVER(place_holder); server 525 fs/nfs/delegation.c server = list_entry_rcu(clp->cl_superblocks.next, server 527 fs/nfs/delegation.c list_for_each_entry_from_rcu(server, &clp->cl_superblocks, client_link) { server 529 fs/nfs/delegation.c if (place_holder && server == NFS_SERVER(place_holder)) server 532 fs/nfs/delegation.c delegation = list_entry_rcu(server->delegations.next, server 534 fs/nfs/delegation.c list_for_each_entry_from_rcu(delegation, &server->delegations, super_list) { server 541 fs/nfs/delegation.c if (!nfs_sb_active(server->super)) server 560 fs/nfs/delegation.c nfs_sb_deactive(server->super); server 571 fs/nfs/delegation.c nfs_sb_deactive(server->super); server 642 fs/nfs/delegation.c static void nfs_mark_return_if_closed_delegation(struct nfs_server *server, server 646 fs/nfs/delegation.c set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); server 649 fs/nfs/delegation.c static void nfs_mark_return_delegation(struct nfs_server *server, server 653 fs/nfs/delegation.c set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); server 656 fs/nfs/delegation.c static bool nfs_server_mark_return_all_delegations(struct nfs_server *server) server 661 fs/nfs/delegation.c list_for_each_entry_rcu(delegation, &server->delegations, super_list) { server 662 fs/nfs/delegation.c nfs_mark_return_delegation(server, delegation); server 670 fs/nfs/delegation.c struct nfs_server *server; server 673 fs/nfs/delegation.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) server 674 fs/nfs/delegation.c nfs_server_mark_return_all_delegations(server); server 700 fs/nfs/delegation.c void nfs_server_return_all_delegations(struct nfs_server *server) server 702 fs/nfs/delegation.c struct nfs_client *clp = server->nfs_client; server 709 fs/nfs/delegation.c need_wait = nfs_server_mark_return_all_delegations(server); server 718 fs/nfs/delegation.c static void nfs_mark_return_unused_delegation_types(struct nfs_server *server, server 723 fs/nfs/delegation.c list_for_each_entry_rcu(delegation, &server->delegations, super_list) { server 727 fs/nfs/delegation.c nfs_mark_return_if_closed_delegation(server, delegation); server 734 fs/nfs/delegation.c struct nfs_server *server; server 737 fs/nfs/delegation.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) server 738 fs/nfs/delegation.c nfs_mark_return_unused_delegation_types(server, flags); server 742 fs/nfs/delegation.c static void nfs_mark_delegation_revoked(struct nfs_server *server, server 747 fs/nfs/delegation.c nfs_mark_return_delegation(server, delegation); server 800 fs/nfs/delegation.c static void nfs_mark_return_unreferenced_delegations(struct nfs_server *server) server 804 fs/nfs/delegation.c list_for_each_entry_rcu(delegation, &server->delegations, super_list) { server 807 fs/nfs/delegation.c nfs_mark_return_if_closed_delegation(server, delegation); server 818 fs/nfs/delegation.c struct nfs_server *server; server 821 fs/nfs/delegation.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) server 822 fs/nfs/delegation.c nfs_mark_return_unreferenced_delegations(server); server 838 fs/nfs/delegation.c struct nfs_server *server = NFS_SERVER(inode); server 839 fs/nfs/delegation.c struct nfs_client *clp = server->nfs_client; server 849 fs/nfs/delegation.c nfs_mark_return_delegation(server, delegation); server 860 fs/nfs/delegation.c nfs_delegation_find_inode_server(struct nfs_server *server, server 866 fs/nfs/delegation.c list_for_each_entry_rcu(delegation, &server->delegations, super_list) { server 899 fs/nfs/delegation.c struct nfs_server *server; server 903 fs/nfs/delegation.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { server 904 fs/nfs/delegation.c res = nfs_delegation_find_inode_server(server, fhandle); server 914 fs/nfs/delegation.c static void nfs_delegation_mark_reclaim_server(struct nfs_server *server) server 918 fs/nfs/delegation.c list_for_each_entry_rcu(delegation, &server->delegations, super_list) { server 936 fs/nfs/delegation.c struct nfs_server *server; server 939 fs/nfs/delegation.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) server 940 fs/nfs/delegation.c nfs_delegation_mark_reclaim_server(server); server 952 fs/nfs/delegation.c struct nfs_server *server; server 957 fs/nfs/delegation.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { server 958 fs/nfs/delegation.c list_for_each_entry_rcu(delegation, &server->delegations, server 967 fs/nfs/delegation.c if (!nfs_sb_active(server->super)) server 972 fs/nfs/delegation.c nfs_sb_deactive(server->super); server 979 fs/nfs/delegation.c delegation, server); server 984 fs/nfs/delegation.c nfs_sb_deactive(server->super); server 999 fs/nfs/delegation.c static void nfs_mark_test_expired_delegation(struct nfs_server *server, server 1006 fs/nfs/delegation.c set_bit(NFS4CLNT_DELEGATION_EXPIRED, &server->nfs_client->cl_state); server 1009 fs/nfs/delegation.c static void nfs_inode_mark_test_expired_delegation(struct nfs_server *server, server 1017 fs/nfs/delegation.c nfs_mark_test_expired_delegation(server, delegation); server 1022 fs/nfs/delegation.c static void nfs_delegation_mark_test_expired_server(struct nfs_server *server) server 1026 fs/nfs/delegation.c list_for_each_entry_rcu(delegation, &server->delegations, super_list) server 1027 fs/nfs/delegation.c nfs_mark_test_expired_delegation(server, delegation); server 1039 fs/nfs/delegation.c struct nfs_server *server; server 1042 fs/nfs/delegation.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) server 1043 fs/nfs/delegation.c nfs_delegation_mark_test_expired_server(server); server 1064 fs/nfs/delegation.c struct nfs_server *server = NFS_SERVER(inode); server 1065 fs/nfs/delegation.c const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; server 1070 fs/nfs/delegation.c status = ops->test_and_free_expired(server, stateid, cred); server 1087 fs/nfs/delegation.c struct nfs_server *server; server 1094 fs/nfs/delegation.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { server 1095 fs/nfs/delegation.c list_for_each_entry_rcu(delegation, &server->delegations, server 1104 fs/nfs/delegation.c if (!nfs_sb_active(server->super)) server 1109 fs/nfs/delegation.c nfs_sb_deactive(server->super); server 1119 fs/nfs/delegation.c nfs_inode_mark_test_expired_delegation(server,inode); server 1121 fs/nfs/delegation.c nfs_sb_deactive(server->super); server 1125 fs/nfs/delegation.c nfs_sb_deactive(server->super); server 1161 fs/nfs/delegation.c struct nfs_server *server; server 1165 fs/nfs/delegation.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) server 1166 fs/nfs/delegation.c if (!list_empty(&server->delegations)) { server 632 fs/nfs/dir.c entry.server = NFS_SERVER(inode); server 1038 fs/nfs/dir.c struct nfs_server *server = NFS_SERVER(inode); server 1048 fs/nfs/dir.c if (server->caps & NFS_CAP_ATOMIC_OPEN) server 1052 fs/nfs/dir.c if (server->flags & NFS_MOUNT_NOCTO) server 1067 fs/nfs/dir.c ret = __nfs_revalidate_inode(server, inode); server 1558 fs/nfs/dir.c struct nfs_server *server = NFS_SERVER(dir); server 1560 fs/nfs/dir.c if (!(server->attr_bitmask[2] & FATTR4_WORD2_MODE_UMASK)) server 1713 fs/nfs/dir.c struct nfs_server *server = NFS_SB(dentry->d_sb); server 1714 fs/nfs/dir.c error = server->nfs_client->rpc_ops->getattr(server, fhandle, server 2568 fs/nfs/dir.c struct nfs_server *server = NFS_SERVER(inode); server 2576 fs/nfs/dir.c ret = __nfs_revalidate_inode(server, inode); server 131 fs/nfs/export.c struct nfs_server *server = NFS_SB(sb); server 135 fs/nfs/export.c struct nfs_rpc_ops const *ops = server->nfs_client->rpc_ops; server 147 fs/nfs/export.c label = nfs4_label_alloc(server, GFP_KERNEL); server 104 fs/nfs/file.c struct nfs_server *server = NFS_SERVER(inode); server 112 fs/nfs/file.c return __nfs_revalidate_inode(server, inode); server 1120 fs/nfs/filelayout/filelayout.c filelayout_alloc_deviceid_node(struct nfs_server *server, server 1125 fs/nfs/filelayout/filelayout.c dsaddr = nfs4_fl_alloc_deviceid_node(server, pdev, gfp_flags); server 113 fs/nfs/filelayout/filelayout.h nfs4_fl_alloc_deviceid_node(struct nfs_server *server, server 63 fs/nfs/filelayout/filelayoutdev.c nfs4_fl_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, server 149 fs/nfs/filelayout/filelayoutdev.c nfs4_init_deviceid_node(&dsaddr->id_node, server, &pdev->dev_id); server 163 fs/nfs/filelayout/filelayoutdev.c da = nfs4_decode_mp_ds_addr(server->nfs_client->cl_net, server 2093 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_alloc_deviceid_node(struct nfs_server *server, server 2098 fs/nfs/flexfilelayout/flexfilelayout.c dsaddr = nfs4_ff_alloc_deviceid_node(server, pdev, gfp_flags); server 2480 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_set_layoutdriver(struct nfs_server *server, server 2484 fs/nfs/flexfilelayout/flexfilelayout.c server->caps |= NFS_CAP_LAYOUTSTATS; server 190 fs/nfs/flexfilelayout/flexfilelayout.h nfs4_ff_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, server 42 fs/nfs/flexfilelayout/flexfilelayoutdev.c nfs4_ff_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev, server 67 fs/nfs/flexfilelayout/flexfilelayoutdev.c server, server 83 fs/nfs/flexfilelayout/flexfilelayoutdev.c da = nfs4_decode_mp_ds_addr(server->nfs_client->cl_net, server 185 fs/nfs/fscache.h static inline const char *nfs_server_fscache_state(struct nfs_server *server) server 187 fs/nfs/fscache.h if (server->fscache) server 236 fs/nfs/fscache.h static inline const char *nfs_server_fscache_state(struct nfs_server *server) server 70 fs/nfs/getroot.c struct nfs_server *server = NFS_SB(sb); server 87 fs/nfs/getroot.c error = server->nfs_client->rpc_ops->getroot(server, mntfh, &fsinfo); server 363 fs/nfs/inode.c struct nfs4_label *nfs4_label_alloc(struct nfs_server *server, gfp_t flags) server 366 fs/nfs/inode.c int minor_version = server->nfs_client->cl_minorversion; server 371 fs/nfs/inode.c if (!(server->caps & NFS_CAP_SECURITY_LABEL)) server 782 fs/nfs/inode.c struct nfs_server *server = NFS_SERVER(inode); server 831 fs/nfs/inode.c if (!(server->flags & NFS_MOUNT_NOAC)) server 835 fs/nfs/inode.c err = __nfs_revalidate_inode(server, inode); server 934 fs/nfs/inode.c struct nfs_server *server; server 950 fs/nfs/inode.c server = NFS_SERVER(inode); server 951 fs/nfs/inode.c if (server->flags & NFS_MOUNT_NOCTO) server 953 fs/nfs/inode.c nfs_revalidate_inode(server, inode); server 1116 fs/nfs/inode.c __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) server 1153 fs/nfs/inode.c status = NFS_PROTO(inode)->getattr(server, NFS_FH(inode), fattr, server 1206 fs/nfs/inode.c int nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) server 1210 fs/nfs/inode.c return __nfs_revalidate_inode(server, inode); server 1795 fs/nfs/inode.c struct nfs_server *server; server 1841 fs/nfs/inode.c server = NFS_SERVER(inode); server 1844 fs/nfs/inode.c !nfs_fsid_equal(&server->fsid, &fattr->fsid) && server 1846 fs/nfs/inode.c server->fsid = fattr->fsid; server 1903 fs/nfs/inode.c } else if (server->caps & NFS_CAP_MTIME) { server 1912 fs/nfs/inode.c } else if (server->caps & NFS_CAP_CTIME) { server 1950 fs/nfs/inode.c else if (server->caps & NFS_CAP_ATIME) { server 1966 fs/nfs/inode.c } else if (server->caps & NFS_CAP_MODE) { server 1980 fs/nfs/inode.c } else if (server->caps & NFS_CAP_OWNER) { server 1994 fs/nfs/inode.c } else if (server->caps & NFS_CAP_OWNER_GROUP) { server 2008 fs/nfs/inode.c } else if (server->caps & NFS_CAP_NLINK) { server 158 fs/nfs/internal.h int nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *, struct nfs_fattr *); server 180 fs/nfs/internal.h extern int nfs4_update_server(struct nfs_server *server, const char *hostname, server 183 fs/nfs/internal.h extern void nfs_free_server(struct nfs_server *server); server 297 fs/nfs/internal.h extern struct nfs4_label *nfs4_label_alloc(struct nfs_server *server, gfp_t flags); server 329 fs/nfs/internal.h static inline struct nfs4_label *nfs4_label_alloc(struct nfs_server *server, gfp_t flags) { return NULL; } server 445 fs/nfs/internal.h extern int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh, bool); server 26 fs/nfs/iostat.h static inline void nfs_inc_server_stats(const struct nfs_server *server, server 29 fs/nfs/iostat.h this_cpu_inc(server->io_stats->events[stat]); server 38 fs/nfs/iostat.h static inline void nfs_add_server_stats(const struct nfs_server *server, server 42 fs/nfs/iostat.h this_cpu_add(server->io_stats->bytes[stat], addend); server 143 fs/nfs/namespace.c struct nfs_server *server = NFS_SERVER(d_inode(path->dentry)); server 156 fs/nfs/namespace.c mnt = server->nfs_client->rpc_ops->submount(server, path->dentry, fh, fattr); server 216 fs/nfs/namespace.c static struct vfsmount *nfs_do_clone_mount(struct nfs_server *server, server 259 fs/nfs/namespace.c struct vfsmount *nfs_submount(struct nfs_server *server, struct dentry *dentry, server 266 fs/nfs/namespace.c err = server->nfs_client->rpc_ops->lookup(d_inode(parent), &dentry->d_name, fh, fattr, NULL); server 271 fs/nfs/namespace.c return nfs_do_submount(dentry, fh, fattr, server->client->cl_auth->au_flavor); server 49 fs/nfs/nfs3acl.c struct nfs_server *server = NFS_SERVER(inode); server 68 fs/nfs/nfs3acl.c status = nfs_revalidate_inode(server, inode); server 86 fs/nfs/nfs3acl.c msg.rpc_proc = &server->client_acl->cl_procinfo[ACLPROC3_GETACL]; server 96 fs/nfs/nfs3acl.c status = rpc_call_sync(server->client_acl, &msg, 0); server 110 fs/nfs/nfs3acl.c server->caps &= ~NFS_CAP_ACLS; server 161 fs/nfs/nfs3acl.c struct nfs_server *server = NFS_SERVER(inode); server 215 fs/nfs/nfs3acl.c msg.rpc_proc = &server->client_acl->cl_procinfo[ACLPROC3_SETACL]; server 217 fs/nfs/nfs3acl.c status = rpc_call_sync(server->client_acl, &msg, 0); server 230 fs/nfs/nfs3acl.c server->caps &= ~NFS_CAP_ACLS; server 25 fs/nfs/nfs3client.c static void nfs_init_server_aclclient(struct nfs_server *server) server 27 fs/nfs/nfs3client.c if (server->flags & NFS_MOUNT_NOACL) server 30 fs/nfs/nfs3client.c server->client_acl = rpc_bind_new_program(server->client, &nfsacl_program, 3); server 31 fs/nfs/nfs3client.c if (IS_ERR(server->client_acl)) server 35 fs/nfs/nfs3client.c server->caps |= NFS_CAP_ACLS; server 39 fs/nfs/nfs3client.c server->caps &= ~NFS_CAP_ACLS; server 42 fs/nfs/nfs3client.c static inline void nfs_init_server_aclclient(struct nfs_server *server) server 44 fs/nfs/nfs3client.c server->flags &= ~NFS_MOUNT_NOACL; server 45 fs/nfs/nfs3client.c server->caps &= ~NFS_CAP_ACLS; server 52 fs/nfs/nfs3client.c struct nfs_server *server = nfs_create_server(mount_info, nfs_mod); server 54 fs/nfs/nfs3client.c if (!IS_ERR(server)) server 55 fs/nfs/nfs3client.c nfs_init_server_aclclient(server); server 56 fs/nfs/nfs3client.c return server; server 64 fs/nfs/nfs3client.c struct nfs_server *server = nfs_clone_server(source, fh, fattr, flavor); server 65 fs/nfs/nfs3client.c if (!IS_ERR(server) && !IS_ERR(source->client_acl)) server 66 fs/nfs/nfs3client.c nfs_init_server_aclclient(server); server 67 fs/nfs/nfs3client.c return server; server 88 fs/nfs/nfs3proc.c nfs3_proc_get_root(struct nfs_server *server, struct nfs_fh *fhandle, server 93 fs/nfs/nfs3proc.c status = do_proc_get_root(server->client, fhandle, info); server 94 fs/nfs/nfs3proc.c if (status && server->nfs_client->cl_rpcclient != server->client) server 95 fs/nfs/nfs3proc.c status = do_proc_get_root(server->nfs_client->cl_rpcclient, fhandle, info); server 103 fs/nfs/nfs3proc.c nfs3_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, server 116 fs/nfs/nfs3proc.c status = rpc_call_sync(server->client, &msg, 0); server 744 fs/nfs/nfs3proc.c nfs3_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle, server 756 fs/nfs/nfs3proc.c status = rpc_call_sync(server->client, &msg, 0); server 784 fs/nfs/nfs3proc.c nfs3_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, server 789 fs/nfs/nfs3proc.c status = do_proc_fsinfo(server->client, fhandle, info); server 790 fs/nfs/nfs3proc.c if (status && server->nfs_client->cl_rpcclient != server->client) server 791 fs/nfs/nfs3proc.c status = do_proc_fsinfo(server->nfs_client->cl_rpcclient, fhandle, info); server 796 fs/nfs/nfs3proc.c nfs3_proc_pathconf(struct nfs_server *server, struct nfs_fh *fhandle, server 808 fs/nfs/nfs3proc.c status = rpc_call_sync(server->client, &msg, 0); server 816 fs/nfs/nfs3proc.c struct nfs_server *server = NFS_SERVER(inode); server 824 fs/nfs/nfs3proc.c if (task->tk_status >= 0 && !server->read_hdrsize) server 825 fs/nfs/nfs3proc.c cmpxchg(&server->read_hdrsize, 0, hdr->res.replen); server 1969 fs/nfs/nfs3xdr.c struct user_namespace *userns = rpc_userns(entry->server->client); server 26 fs/nfs/nfs42proc.c struct nfs_server *server = NFS_SERVER(inode); server 31 fs/nfs/nfs42proc.c .falloc_bitmask = server->cache_consistency_bitmask, server 34 fs/nfs/nfs42proc.c .falloc_server = server, server 50 fs/nfs/nfs42proc.c status = nfs4_call_sync(server->client, server, msg, server 62 fs/nfs/nfs42proc.c struct nfs_server *server = NFS_SERVER(file_inode(filep)); server 80 fs/nfs/nfs42proc.c err = nfs4_handle_exception(server, err, &exception); server 135 fs/nfs/nfs42proc.c struct nfs_server *server, server 149 fs/nfs/nfs42proc.c spin_lock(&server->nfs_client->cl_lock); server 150 fs/nfs/nfs42proc.c list_for_each_entry(tmp_copy, &server->nfs_client->pending_cb_stateids, server 160 fs/nfs/nfs42proc.c spin_unlock(&server->nfs_client->cl_lock); server 170 fs/nfs/nfs42proc.c list_add_tail(©->copies, &server->ss_copies); server 171 fs/nfs/nfs42proc.c spin_unlock(&server->nfs_client->cl_lock); server 174 fs/nfs/nfs42proc.c spin_lock(&server->nfs_client->cl_lock); server 176 fs/nfs/nfs42proc.c spin_unlock(&server->nfs_client->cl_lock); server 233 fs/nfs/nfs42proc.c struct nfs_server *server = NFS_SERVER(dst_inode); server 268 fs/nfs/nfs42proc.c status = nfs4_call_sync(server->client, server, &msg, server 271 fs/nfs/nfs42proc.c server->caps &= ~NFS_CAP_COPY; server 283 fs/nfs/nfs42proc.c status = handle_async_copy(res, server, src, dst, server 310 fs/nfs/nfs42proc.c struct nfs_server *server = NFS_SERVER(file_inode(dst)); server 367 fs/nfs/nfs42proc.c err2 = nfs4_handle_exception(server, err, &src_exception); server 368 fs/nfs/nfs42proc.c err = nfs4_handle_exception(server, err, &dst_exception); server 478 fs/nfs/nfs42proc.c struct nfs_server *server = NFS_SERVER(inode); server 494 fs/nfs/nfs42proc.c status = nfs4_call_sync(server->client, server, &msg, server 497 fs/nfs/nfs42proc.c server->caps &= ~NFS_CAP_SEEK; server 506 fs/nfs/nfs42proc.c struct nfs_server *server = NFS_SERVER(file_inode(filep)); server 526 fs/nfs/nfs42proc.c err = nfs4_handle_exception(server, err, &exception); server 539 fs/nfs/nfs42proc.c struct nfs_server *server = NFS_SERVER(inode); server 551 fs/nfs/nfs42proc.c nfs4_setup_sequence(server->nfs_client, &data->args.seq_args, server 642 fs/nfs/nfs42proc.c int nfs42_proc_layoutstats_generic(struct nfs_server *server, server 651 fs/nfs/nfs42proc.c .rpc_client = server->client, server 705 fs/nfs/nfs42proc.c struct nfs_server *server = NFS_SERVER(inode); server 719 fs/nfs/nfs42proc.c nfs4_setup_sequence(server->nfs_client, &data->args.seq_args, server 843 fs/nfs/nfs42proc.c struct nfs_server *server = NFS_SERVER(dst_inode); server 850 fs/nfs/nfs42proc.c .dst_bitmask = server->cache_consistency_bitmask, server 853 fs/nfs/nfs42proc.c .server = server, server 874 fs/nfs/nfs42proc.c status = nfs4_call_sync(server->client, server, msg, server 890 fs/nfs/nfs42proc.c struct nfs_server *server = NFS_SERVER(file_inode(src_f)); server 925 fs/nfs/nfs42proc.c err2 = nfs4_handle_exception(server, err, &src_exception); server 926 fs/nfs/nfs42proc.c err = nfs4_handle_exception(server, err, &dst_exception); server 772 fs/nfs/nfs42xdr.c status = decode_getfattr(xdr, res->dst_fattr, res->server); server 279 fs/nfs/nfs4_fs.h int nfs4_replace_transport(struct nfs_server *server, server 285 fs/nfs/nfs4_fs.h struct nfs_server *server, server 300 fs/nfs/nfs4_fs.h extern int nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *fhandle); server 508 fs/nfs/nfs4_fs.h extern void nfs4_free_lock_state(struct nfs_server *server, struct nfs4_lock_state *lsp); server 758 fs/nfs/nfs4client.c static void nfs4_destroy_server(struct nfs_server *server) server 762 fs/nfs/nfs4client.c nfs_server_return_all_delegations(server); server 763 fs/nfs/nfs4client.c unset_pnfs_layoutdriver(server); server 764 fs/nfs/nfs4client.c nfs4_purge_state_owners(server, &freeme); server 858 fs/nfs/nfs4client.c static int nfs4_set_client(struct nfs_server *server, server 877 fs/nfs/nfs4client.c .cred = server->cred, server 883 fs/nfs/nfs4client.c if (server->flags & NFS_MOUNT_NORESVPORT) server 885 fs/nfs/nfs4client.c if (server->options & NFS_OPTION_MIGRATION) server 887 fs/nfs/nfs4client.c if (test_bit(NFS_MIG_TSM_POSSIBLE, &server->mig_status)) server 889 fs/nfs/nfs4client.c server->port = rpc_get_port(addr); server 896 fs/nfs/nfs4client.c if (server->nfs_client == clp) { server 910 fs/nfs/nfs4client.c server->nfs_client = clp; server 970 fs/nfs/nfs4client.c static void nfs4_session_limit_rwsize(struct nfs_server *server) server 977 fs/nfs/nfs4client.c if (!nfs4_has_session(server->nfs_client)) server 979 fs/nfs/nfs4client.c sess = server->nfs_client->cl_session; server 983 fs/nfs/nfs4client.c if (server->dtsize > server_resp_sz) server 984 fs/nfs/nfs4client.c server->dtsize = server_resp_sz; server 985 fs/nfs/nfs4client.c if (server->rsize > server_resp_sz) server 986 fs/nfs/nfs4client.c server->rsize = server_resp_sz; server 987 fs/nfs/nfs4client.c if (server->wsize > server_rqst_sz) server 988 fs/nfs/nfs4client.c server->wsize = server_rqst_sz; server 992 fs/nfs/nfs4client.c static int nfs4_server_common_setup(struct nfs_server *server, server 999 fs/nfs/nfs4client.c if (is_ds_only_client(server->nfs_client)) server 1007 fs/nfs/nfs4client.c error = nfs4_init_session(server->nfs_client); server 1012 fs/nfs/nfs4client.c server->caps |= server->nfs_client->cl_mvops->init_caps; server 1013 fs/nfs/nfs4client.c if (server->flags & NFS_MOUNT_NORDIRPLUS) server 1014 fs/nfs/nfs4client.c server->caps &= ~NFS_CAP_READDIRPLUS; server 1020 fs/nfs/nfs4client.c server->client->cl_auth->au_flavor == RPC_AUTH_UNIX) server 1021 fs/nfs/nfs4client.c server->caps |= NFS_CAP_UIDGID_NOMAP; server 1025 fs/nfs/nfs4client.c error = nfs4_get_rootfh(server, mntfh, auth_probe); server 1030 fs/nfs/nfs4client.c (unsigned long long) server->fsid.major, server 1031 fs/nfs/nfs4client.c (unsigned long long) server->fsid.minor); server 1034 fs/nfs/nfs4client.c error = nfs_probe_fsinfo(server, mntfh, fattr); server 1038 fs/nfs/nfs4client.c nfs4_session_limit_rwsize(server); server 1040 fs/nfs/nfs4client.c if (server->namelen == 0 || server->namelen > NFS4_MAXNAMLEN) server 1041 fs/nfs/nfs4client.c server->namelen = NFS4_MAXNAMLEN; server 1043 fs/nfs/nfs4client.c nfs_server_insert_lists(server); server 1044 fs/nfs/nfs4client.c server->mount_time = jiffies; server 1045 fs/nfs/nfs4client.c server->destroy = nfs4_destroy_server; server 1054 fs/nfs/nfs4client.c static int nfs4_init_server(struct nfs_server *server, server 1064 fs/nfs/nfs4client.c server->flags = data->flags; server 1065 fs/nfs/nfs4client.c server->options = data->options; server 1066 fs/nfs/nfs4client.c server->auth_info = data->auth_info; server 1077 fs/nfs/nfs4client.c error = nfs4_set_client(server, server 1091 fs/nfs/nfs4client.c server->rsize = nfs_block_size(data->rsize, NULL); server 1093 fs/nfs/nfs4client.c server->wsize = nfs_block_size(data->wsize, NULL); server 1095 fs/nfs/nfs4client.c server->acregmin = data->acregmin * HZ; server 1096 fs/nfs/nfs4client.c server->acregmax = data->acregmax * HZ; server 1097 fs/nfs/nfs4client.c server->acdirmin = data->acdirmin * HZ; server 1098 fs/nfs/nfs4client.c server->acdirmax = data->acdirmax * HZ; server 1099 fs/nfs/nfs4client.c server->port = data->nfs_server.port; server 1101 fs/nfs/nfs4client.c return nfs_init_server_rpcclient(server, &timeparms, server 1114 fs/nfs/nfs4client.c struct nfs_server *server; server 1118 fs/nfs/nfs4client.c server = nfs_alloc_server(); server 1119 fs/nfs/nfs4client.c if (!server) server 1122 fs/nfs/nfs4client.c server->cred = get_cred(current_cred()); server 1127 fs/nfs/nfs4client.c error = nfs4_init_server(server, mount_info->parsed); server 1131 fs/nfs/nfs4client.c error = nfs4_server_common_setup(server, mount_info->mntfh, auth_probe); server 1135 fs/nfs/nfs4client.c return server; server 1138 fs/nfs/nfs4client.c nfs_free_server(server); server 1149 fs/nfs/nfs4client.c struct nfs_server *server, *parent_server; server 1153 fs/nfs/nfs4client.c server = nfs_alloc_server(); server 1154 fs/nfs/nfs4client.c if (!server) server 1160 fs/nfs/nfs4client.c server->cred = get_cred(parent_server->cred); server 1163 fs/nfs/nfs4client.c nfs_server_copy_userdata(server, parent_server); server 1168 fs/nfs/nfs4client.c error = nfs4_set_client(server, data->hostname, server 1182 fs/nfs/nfs4client.c error = nfs4_set_client(server, data->hostname, server 1197 fs/nfs/nfs4client.c error = nfs_init_server_rpcclient(server, parent_server->client->cl_timeout, data->authflavor); server 1203 fs/nfs/nfs4client.c error = nfs4_server_common_setup(server, mntfh, auth_probe); server 1207 fs/nfs/nfs4client.c return server; server 1210 fs/nfs/nfs4client.c nfs_free_server(server); server 1220 fs/nfs/nfs4client.c static int nfs_probe_destination(struct nfs_server *server) server 1222 fs/nfs/nfs4client.c struct inode *inode = d_inode(server->super->s_root); server 1232 fs/nfs/nfs4client.c error = nfs_probe_fsinfo(server, NFS_FH(inode), fattr); server 1253 fs/nfs/nfs4client.c int nfs4_update_server(struct nfs_server *server, const char *hostname, server 1256 fs/nfs/nfs4client.c struct nfs_client *clp = server->nfs_client; server 1257 fs/nfs/nfs4client.c struct rpc_clnt *clnt = server->client; server 1281 fs/nfs/nfs4client.c nfs_server_remove_lists(server); server 1282 fs/nfs/nfs4client.c set_bit(NFS_MIG_TSM_POSSIBLE, &server->mig_status); server 1283 fs/nfs/nfs4client.c error = nfs4_set_client(server, hostname, sap, salen, buf, server 1287 fs/nfs/nfs4client.c clear_bit(NFS_MIG_TSM_POSSIBLE, &server->mig_status); server 1289 fs/nfs/nfs4client.c nfs_server_insert_lists(server); server 1294 fs/nfs/nfs4client.c if (server->nfs_client->cl_hostname == NULL) server 1295 fs/nfs/nfs4client.c server->nfs_client->cl_hostname = kstrdup(hostname, GFP_KERNEL); server 1296 fs/nfs/nfs4client.c nfs_server_insert_lists(server); server 1298 fs/nfs/nfs4client.c return nfs_probe_destination(server); server 200 fs/nfs/nfs4file.c struct nfs_server *server = NFS_SERVER(dst_inode); server 202 fs/nfs/nfs4file.c unsigned int bs = server->clone_blksize; server 13 fs/nfs/nfs4getroot.c int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh, bool auth_probe) server 23 fs/nfs/nfs4getroot.c ret = nfs4_proc_get_rootfh(server, mntfh, &fsinfo, auth_probe); server 37 fs/nfs/nfs4getroot.c memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); server 108 fs/nfs/nfs4idmap.c static bool nfs_fattr_map_owner_name(struct nfs_server *server, struct nfs_fattr *fattr) server 115 fs/nfs/nfs4idmap.c if (nfs_map_name_to_uid(server, owner->data, owner->len, &uid) == 0) { server 122 fs/nfs/nfs4idmap.c static bool nfs_fattr_map_group_name(struct nfs_server *server, struct nfs_fattr *fattr) server 129 fs/nfs/nfs4idmap.c if (nfs_map_group_to_gid(server, group->data, group->len, &gid) == 0) { server 156 fs/nfs/nfs4idmap.c void nfs_fattr_map_and_free_names(struct nfs_server *server, struct nfs_fattr *fattr) server 158 fs/nfs/nfs4idmap.c if (nfs_fattr_map_owner_name(server, fattr)) server 160 fs/nfs/nfs4idmap.c if (nfs_fattr_map_group_name(server, fattr)) server 742 fs/nfs/nfs4idmap.c int nfs_map_name_to_uid(const struct nfs_server *server, const char *name, size_t namelen, kuid_t *uid) server 744 fs/nfs/nfs4idmap.c struct idmap *idmap = server->nfs_client->cl_idmap; server 759 fs/nfs/nfs4idmap.c int nfs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, kgid_t *gid) server 761 fs/nfs/nfs4idmap.c struct idmap *idmap = server->nfs_client->cl_idmap; server 776 fs/nfs/nfs4idmap.c int nfs_map_uid_to_name(const struct nfs_server *server, kuid_t uid, char *buf, size_t buflen) server 778 fs/nfs/nfs4idmap.c struct idmap *idmap = server->nfs_client->cl_idmap; server 783 fs/nfs/nfs4idmap.c if (!(server->caps & NFS_CAP_UIDGID_NOMAP)) server 790 fs/nfs/nfs4idmap.c int nfs_map_gid_to_group(const struct nfs_server *server, kgid_t gid, char *buf, size_t buflen) server 792 fs/nfs/nfs4idmap.c struct idmap *idmap = server->nfs_client->cl_idmap; server 797 fs/nfs/nfs4idmap.c if (!(server->caps & NFS_CAP_UIDGID_NOMAP)) server 156 fs/nfs/nfs4namespace.c struct nfs_server *server, server 174 fs/nfs/nfs4namespace.c nfs_auth_info_match(&server->auth_info, pflavor)) { server 389 fs/nfs/nfs4namespace.c struct vfsmount *nfs4_submount(struct nfs_server *server, struct dentry *dentry, server 392 fs/nfs/nfs4namespace.c rpc_authflavor_t flavor = server->client->cl_auth->au_flavor; server 423 fs/nfs/nfs4namespace.c static int nfs4_try_replacing_one_location(struct nfs_server *server, server 428 fs/nfs/nfs4namespace.c struct net *net = rpc_net_ns(server->client); server 460 fs/nfs/nfs4namespace.c error = nfs4_update_server(server, hostname, sap, salen, net); server 482 fs/nfs/nfs4namespace.c int nfs4_replace_transport(struct nfs_server *server, server 508 fs/nfs/nfs4namespace.c error = nfs4_try_replacing_one_location(server, page, server 95 fs/nfs/nfs4proc.c static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fattr *fattr, struct nfs4_label *label, struct inode *inode); server 137 fs/nfs/nfs4proc.c static inline u32 *nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) server 140 fs/nfs/nfs4proc.c return server->attr_bitmask; server 142 fs/nfs/nfs4proc.c return server->attr_bitmask_nl; server 153 fs/nfs/nfs4proc.c nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) server 154 fs/nfs/nfs4proc.c { return server->attr_bitmask; } server 362 fs/nfs/nfs4proc.c static void nfs4_test_and_free_stateid(struct nfs_server *server, server 366 fs/nfs/nfs4proc.c const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; server 368 fs/nfs/nfs4proc.c ops->test_and_free_expired(server, stateid, cred); server 371 fs/nfs/nfs4proc.c static void __nfs4_free_revoked_stateid(struct nfs_server *server, server 376 fs/nfs/nfs4proc.c nfs4_test_and_free_stateid(server, stateid, cred); server 379 fs/nfs/nfs4proc.c static void nfs4_free_revoked_stateid(struct nfs_server *server, server 386 fs/nfs/nfs4proc.c __nfs4_free_revoked_stateid(server, &tmp, cred); server 450 fs/nfs/nfs4proc.c static int nfs4_do_handle_exception(struct nfs_server *server, server 453 fs/nfs/nfs4proc.c struct nfs_client *clp = server->nfs_client; server 500 fs/nfs/nfs4proc.c ret = nfs4_schedule_stateid_recovery(server, state); server 509 fs/nfs/nfs4proc.c ret = nfs4_schedule_migration_recovery(server); server 537 fs/nfs/nfs4proc.c nfs_inc_server_stats(server, NFSIOS_DELAY); server 552 fs/nfs/nfs4proc.c if (server->caps & NFS_CAP_UIDGID_NOMAP) { server 553 fs/nfs/nfs4proc.c server->caps &= ~NFS_CAP_UIDGID_NOMAP; server 559 fs/nfs/nfs4proc.c server->nfs_client->cl_hostname); server 572 fs/nfs/nfs4proc.c int nfs4_handle_exception(struct nfs_server *server, int errorcode, struct nfs4_exception *exception) server 574 fs/nfs/nfs4proc.c struct nfs_client *clp = server->nfs_client; server 577 fs/nfs/nfs4proc.c ret = nfs4_do_handle_exception(server, errorcode, exception); server 585 fs/nfs/nfs4proc.c if (test_bit(NFS_MIG_FAILED, &server->mig_status)) server 597 fs/nfs/nfs4proc.c nfs4_async_handle_exception(struct rpc_task *task, struct nfs_server *server, server 600 fs/nfs/nfs4proc.c struct nfs_client *clp = server->nfs_client; server 603 fs/nfs/nfs4proc.c ret = nfs4_do_handle_exception(server, errorcode, exception); server 614 fs/nfs/nfs4proc.c if (test_bit(NFS_MIG_FAILED, &server->mig_status)) server 631 fs/nfs/nfs4proc.c nfs4_async_handle_error(struct rpc_task *task, struct nfs_server *server, server 642 fs/nfs/nfs4proc.c task->tk_status = nfs4_async_handle_exception(task, server, server 670 fs/nfs/nfs4proc.c static void renew_lease(const struct nfs_server *server, unsigned long timestamp) server 672 fs/nfs/nfs4proc.c struct nfs_client *clp = server->nfs_client; server 1101 fs/nfs/nfs4proc.c struct nfs_server *server, server 1106 fs/nfs/nfs4proc.c struct nfs_client *clp = server->nfs_client; server 1108 fs/nfs/nfs4proc.c .seq_server = server, server 1123 fs/nfs/nfs4proc.c struct nfs_server *server, server 1130 fs/nfs/nfs4proc.c return nfs4_call_sync_sequence(clnt, server, msg, args, res); server 1188 fs/nfs/nfs4proc.c static bool nfs4_clear_cap_atomic_open_v1(struct nfs_server *server, server 1193 fs/nfs/nfs4proc.c if (!(server->caps & NFS_CAP_ATOMIC_OPEN_V1)) server 1195 fs/nfs/nfs4proc.c server->caps &= ~NFS_CAP_ATOMIC_OPEN_V1; server 1213 fs/nfs/nfs4proc.c nfs4_map_atomic_open_share(struct nfs_server *server, server 1228 fs/nfs/nfs4proc.c if (!(server->caps & NFS_CAP_ATOMIC_OPEN_V1)) server 1238 fs/nfs/nfs4proc.c nfs4_map_atomic_open_claim(struct nfs_server *server, server 1241 fs/nfs/nfs4proc.c if (server->caps & NFS_CAP_ATOMIC_OPEN_V1) server 1261 fs/nfs/nfs4proc.c p->o_res.server = p->o_arg.server; server 1275 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 1284 fs/nfs/nfs4proc.c p->f_label = nfs4_label_alloc(server, gfp_mask); server 1288 fs/nfs/nfs4proc.c p->a_label = nfs4_label_alloc(server, gfp_mask); server 1292 fs/nfs/nfs4proc.c alloc_seqid = server->nfs_client->cl_mvops->alloc_seqid; server 1303 fs/nfs/nfs4proc.c p->o_arg.claim = nfs4_map_atomic_open_claim(server, claim); server 1304 fs/nfs/nfs4proc.c p->o_arg.share_access = nfs4_map_atomic_open_share(server, server 1333 fs/nfs/nfs4proc.c p->o_arg.clientid = server->nfs_client->cl_clientid; server 1337 fs/nfs/nfs4proc.c p->o_arg.server = server; server 1338 fs/nfs/nfs4proc.c p->o_arg.bitmask = nfs4_bitmask(server, label); server 1734 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 1735 fs/nfs/nfs4proc.c struct nfs_client *clp = server->nfs_client; server 1779 fs/nfs/nfs4proc.c nfs4_test_and_free_stateid(server, &freeme, server 2154 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 2160 fs/nfs/nfs4proc.c if (nfs4_clear_cap_atomic_open_v1(server, err, &exception)) server 2164 fs/nfs/nfs4proc.c nfs4_handle_exception(server, err, &exception); server 2184 fs/nfs/nfs4proc.c static int nfs4_handle_delegation_recall_error(struct nfs_server *server, struct nfs4_state *state, const nfs4_stateid *stateid, struct file_lock *fl, int err) server 2205 fs/nfs/nfs4proc.c nfs4_schedule_lease_recovery(server->nfs_client); server 2208 fs/nfs/nfs4proc.c nfs4_schedule_migration_recovery(server); server 2211 fs/nfs/nfs4proc.c nfs4_schedule_lease_moved_recovery(server->nfs_client); server 2220 fs/nfs/nfs4proc.c nfs4_schedule_stateid_recovery(server, state); server 2241 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 2268 fs/nfs/nfs4proc.c return nfs4_handle_delegation_recall_error(server, state, stateid, NULL, err); server 2275 fs/nfs/nfs4proc.c nfs4_setup_sequence(data->o_arg.server->nfs_client, server 2289 fs/nfs/nfs4proc.c renew_lease(data->o_res.server, data->timestamp); server 2323 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(d_inode(data->dir)); server 2332 fs/nfs/nfs4proc.c .rpc_client = server->client, server 2399 fs/nfs/nfs4proc.c if (nfs4_setup_sequence(data->o_arg.server->nfs_client, server 2448 fs/nfs/nfs4proc.c renew_lease(data->o_res.server, data->timestamp); server 2486 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 2497 fs/nfs/nfs4proc.c .rpc_client = server->client, server 2604 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 2619 fs/nfs/nfs4proc.c nfs_fattr_map_and_free_names(server, &data->f_attr); server 2632 fs/nfs/nfs4proc.c server->caps &= ~NFS_CAP_POSIX_LOCK; server 2640 fs/nfs/nfs4proc.c nfs4_proc_getattr(server, &o_res->fh, o_res->f_attr, server 2669 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 2676 fs/nfs/nfs4proc.c if (nfs4_clear_cap_atomic_open_v1(server, err, &exception)) server 2683 fs/nfs/nfs4proc.c nfs4_handle_exception(server, err, &exception); server 2725 fs/nfs/nfs4proc.c static int nfs40_test_and_free_expired_stateid(struct nfs_server *server, server 2733 fs/nfs/nfs4proc.c static int nfs41_test_and_free_expired_stateid(struct nfs_server *server, server 2749 fs/nfs/nfs4proc.c status = nfs41_test_stateid(server, stateid, cred); server 2760 fs/nfs/nfs4proc.c nfs41_free_stateid(server, stateid, cred, true); server 2766 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 2792 fs/nfs/nfs4proc.c status = nfs41_test_and_free_expired_stateid(server, &stateid, cred); server 2828 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 2844 fs/nfs/nfs4proc.c status = nfs41_test_and_free_expired_stateid(server, server 2878 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 2885 fs/nfs/nfs4proc.c status = nfs41_test_and_free_expired_stateid(server, stateid, cred); server 2924 fs/nfs/nfs4proc.c const __u32 *bitmask = opendata->o_arg.server->exclcreat_bitmask; server 2961 fs/nfs/nfs4proc.c struct nfs_server *server = sp->so_server; server 2982 fs/nfs/nfs4proc.c if (server->caps & NFS_CAP_POSIX_LOCK) server 3025 fs/nfs/nfs4proc.c nfs4_schedule_stateid_recovery(server, state); server 3045 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 3059 fs/nfs/nfs4proc.c sp = nfs4_get_state_owner(server, cred, GFP_KERNEL); server 3064 fs/nfs/nfs4proc.c status = nfs4_client_recover_expired_lease(server->nfs_client); server 3078 fs/nfs/nfs4proc.c olabel = nfs4_label_alloc(server, GFP_KERNEL); server 3085 fs/nfs/nfs4proc.c if (server->attr_bitmask[2] & FATTR4_WORD2_MDSTHRESHOLD) { server 3127 fs/nfs/nfs4proc.c if (pnfs_use_threshold(ctx_th, opendata->f_attr.mdsthreshold, server)) { server 3155 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 3205 fs/nfs/nfs4proc.c nfs4_schedule_lease_recovery(server->nfs_client); server 3214 fs/nfs/nfs4proc.c if (nfs4_clear_cap_atomic_open_v1(server, status, &exception)) server 3216 fs/nfs/nfs4proc.c res = ERR_PTR(nfs4_handle_exception(server, server 3228 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 3268 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &arg->seq_args, &res->seq_res, 1); server 3272 fs/nfs/nfs4proc.c renew_lease(server, timestamp); server 3282 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 3288 fs/nfs/nfs4proc.c .server = server, server 3295 fs/nfs/nfs4proc.c .server = server, server 3306 fs/nfs/nfs4proc.c nfs4_bitmask(server, olabel), server 3317 fs/nfs/nfs4proc.c server->nfs_client->cl_hostname); server 3326 fs/nfs/nfs4proc.c err = nfs4_handle_exception(server, err, &exception); server 3446 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(calldata->inode); server 3472 fs/nfs/nfs4proc.c renew_lease(server, calldata->timestamp); server 3491 fs/nfs/nfs4proc.c nfs4_free_revoked_stateid(server, server 3501 fs/nfs/nfs4proc.c server, task->tk_status, &exception); server 3626 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 3636 fs/nfs/nfs4proc.c .rpc_client = server->client, server 3644 fs/nfs/nfs4proc.c nfs4_state_protect(server->nfs_client, NFS_SP4_MACH_CRED_CLEANUP, server 3657 fs/nfs/nfs4proc.c alloc_seqid = server->nfs_client->cl_mvops->alloc_seqid; server 3666 fs/nfs/nfs4proc.c calldata->res.server = server; server 3728 fs/nfs/nfs4proc.c static int _nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *fhandle) server 3730 fs/nfs/nfs4proc.c u32 bitmask[3] = {}, minorversion = server->nfs_client->cl_minorversion; server 3752 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); server 3766 fs/nfs/nfs4proc.c memcpy(server->attr_bitmask, res.attr_bitmask, sizeof(server->attr_bitmask)); server 3767 fs/nfs/nfs4proc.c server->caps &= ~(NFS_CAP_ACLS|NFS_CAP_HARDLINKS| server 3775 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_ACLS; server 3777 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_HARDLINKS; server 3779 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_SYMLINKS; server 3781 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_FILEID; server 3783 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_MODE; server 3785 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_NLINK; server 3787 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_OWNER; server 3789 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_OWNER_GROUP; server 3791 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_ATIME; server 3793 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_CTIME; server 3795 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_MTIME; server 3798 fs/nfs/nfs4proc.c server->caps |= NFS_CAP_SECURITY_LABEL; server 3800 fs/nfs/nfs4proc.c memcpy(server->attr_bitmask_nl, res.attr_bitmask, server 3801 fs/nfs/nfs4proc.c sizeof(server->attr_bitmask)); server 3802 fs/nfs/nfs4proc.c server->attr_bitmask_nl[2] &= ~FATTR4_WORD2_SECURITY_LABEL; server 3804 fs/nfs/nfs4proc.c memcpy(server->cache_consistency_bitmask, res.attr_bitmask, sizeof(server->cache_consistency_bitmask)); server 3805 fs/nfs/nfs4proc.c server->cache_consistency_bitmask[0] &= FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE; server 3806 fs/nfs/nfs4proc.c server->cache_consistency_bitmask[1] &= FATTR4_WORD1_TIME_METADATA|FATTR4_WORD1_TIME_MODIFY; server 3807 fs/nfs/nfs4proc.c server->cache_consistency_bitmask[2] = 0; server 3812 fs/nfs/nfs4proc.c memcpy(server->exclcreat_bitmask, res.exclcreat_bitmask, server 3813 fs/nfs/nfs4proc.c sizeof(server->exclcreat_bitmask)); server 3815 fs/nfs/nfs4proc.c server->acl_bitmask = res.acl_bitmask; server 3816 fs/nfs/nfs4proc.c server->fh_expire_type = res.fh_expire_type; server 3822 fs/nfs/nfs4proc.c int nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *fhandle) server 3829 fs/nfs/nfs4proc.c err = nfs4_handle_exception(server, server 3830 fs/nfs/nfs4proc.c _nfs4_server_capabilities(server, fhandle), server 3836 fs/nfs/nfs4proc.c static int _nfs4_lookup_root(struct nfs_server *server, struct nfs_fh *fhandle, server 3844 fs/nfs/nfs4proc.c .server = server, server 3862 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); server 3865 fs/nfs/nfs4proc.c static int nfs4_lookup_root(struct nfs_server *server, struct nfs_fh *fhandle, server 3873 fs/nfs/nfs4proc.c err = _nfs4_lookup_root(server, fhandle, info); server 3874 fs/nfs/nfs4proc.c trace_nfs4_lookup_root(server, fhandle, info->fattr, err); server 3880 fs/nfs/nfs4proc.c err = nfs4_handle_exception(server, err, &exception); server 3887 fs/nfs/nfs4proc.c static int nfs4_lookup_root_sec(struct nfs_server *server, struct nfs_fh *fhandle, server 3895 fs/nfs/nfs4proc.c auth = rpcauth_create(&auth_args, server->client); server 3898 fs/nfs/nfs4proc.c return nfs4_lookup_root(server, fhandle, info); server 3910 fs/nfs/nfs4proc.c static int nfs4_find_root_sec(struct nfs_server *server, struct nfs_fh *fhandle, server 3924 fs/nfs/nfs4proc.c if (server->auth_info.flavor_len > 0) { server 3926 fs/nfs/nfs4proc.c for (i = 0; i < server->auth_info.flavor_len; i++) { server 3927 fs/nfs/nfs4proc.c status = nfs4_lookup_root_sec(server, fhandle, info, server 3928 fs/nfs/nfs4proc.c server->auth_info.flavors[i]); server 3936 fs/nfs/nfs4proc.c status = nfs4_lookup_root_sec(server, fhandle, info, server 3965 fs/nfs/nfs4proc.c int nfs4_proc_get_rootfh(struct nfs_server *server, struct nfs_fh *fhandle, server 3972 fs/nfs/nfs4proc.c status = nfs4_lookup_root(server, fhandle, info); server 3975 fs/nfs/nfs4proc.c status = server->nfs_client->cl_mvops->find_root_sec(server, server 3979 fs/nfs/nfs4proc.c status = nfs4_server_capabilities(server, fhandle); server 3981 fs/nfs/nfs4proc.c status = nfs4_do_fsinfo(server, fhandle, info); server 3986 fs/nfs/nfs4proc.c static int nfs4_proc_get_root(struct nfs_server *server, struct nfs_fh *mntfh, server 3993 fs/nfs/nfs4proc.c error = nfs4_server_capabilities(server, mntfh); server 3999 fs/nfs/nfs4proc.c label = nfs4_label_alloc(server, GFP_KERNEL); server 4003 fs/nfs/nfs4proc.c error = nfs4_proc_getattr(server, mntfh, fattr, label, NULL); server 4010 fs/nfs/nfs4proc.c !nfs_fsid_equal(&server->fsid, &fattr->fsid)) server 4011 fs/nfs/nfs4proc.c memcpy(&server->fsid, &fattr->fsid, sizeof(server->fsid)); server 4067 fs/nfs/nfs4proc.c static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, server 4079 fs/nfs/nfs4proc.c .server = server, server 4087 fs/nfs/nfs4proc.c nfs4_bitmap_copy_adjust(bitmask, nfs4_bitmask(server, label), inode); server 4090 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); server 4093 fs/nfs/nfs4proc.c static int nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, server 4102 fs/nfs/nfs4proc.c err = _nfs4_proc_getattr(server, fhandle, fattr, label, inode); server 4103 fs/nfs/nfs4proc.c trace_nfs4_getattr(server, fhandle, fattr, err); server 4104 fs/nfs/nfs4proc.c err = nfs4_handle_exception(server, err, server 4181 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 4184 fs/nfs/nfs4proc.c .bitmask = server->attr_bitmask, server 4189 fs/nfs/nfs4proc.c .server = server, server 4200 fs/nfs/nfs4proc.c args.bitmask = nfs4_bitmask(server, label); server 4205 fs/nfs/nfs4proc.c status = nfs4_call_sync(clnt, server, &msg, &args.seq_args, &res.seq_res, 0); server 4296 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 4299 fs/nfs/nfs4proc.c .bitmask = server->attr_bitmask, server 4303 fs/nfs/nfs4proc.c .server = server, server 4314 fs/nfs/nfs4proc.c args.bitmask = nfs4_bitmask(server, label); server 4319 fs/nfs/nfs4proc.c status = nfs4_call_sync(clnt, server, &msg, &args.seq_args, server 4343 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 4349 fs/nfs/nfs4proc.c .server = server, server 4363 fs/nfs/nfs4proc.c args.bitmask = server->cache_consistency_bitmask; server 4365 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); server 4454 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 4466 fs/nfs/nfs4proc.c if (!(server->attr_bitmask[2] & FATTR4_WORD2_MODE_UMASK)) server 4482 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 4488 fs/nfs/nfs4proc.c .server = server, server 4498 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 1); server 4556 fs/nfs/nfs4proc.c res->server = NFS_SB(dentry->d_sb); server 4581 fs/nfs/nfs4proc.c if (nfs4_async_handle_error(task, res->server, NULL, server 4604 fs/nfs/nfs4proc.c res->server = NFS_SB(old_dentry->d_sb); server 4624 fs/nfs/nfs4proc.c if (nfs4_async_handle_error(task, res->server, NULL, &data->timeout) == -EAGAIN) server 4646 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 4655 fs/nfs/nfs4proc.c .server = server, server 4669 fs/nfs/nfs4proc.c res.label = nfs4_label_alloc(server, GFP_KERNEL); server 4676 fs/nfs/nfs4proc.c nfs4_bitmap_copy_adjust_setattr(bitmask, nfs4_bitmask(server, res.label), inode); server 4678 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1); server 4724 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 4726 fs/nfs/nfs4proc.c data->label = nfs4_label_alloc(server, GFP_KERNEL); server 4734 fs/nfs/nfs4proc.c data->arg.server = server; server 4738 fs/nfs/nfs4proc.c data->arg.bitmask = nfs4_bitmask(server, data->label); server 4740 fs/nfs/nfs4proc.c data->res.server = server; server 4845 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 4854 fs/nfs/nfs4proc.c if (!(server->attr_bitmask[2] & FATTR4_WORD2_MODE_UMASK)) server 4960 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 4969 fs/nfs/nfs4proc.c if (!(server->attr_bitmask[2] & FATTR4_WORD2_MODE_UMASK)) server 4983 fs/nfs/nfs4proc.c static int _nfs4_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle, server 4988 fs/nfs/nfs4proc.c .bitmask = server->attr_bitmask, server 5000 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); server 5003 fs/nfs/nfs4proc.c static int nfs4_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsstat *fsstat) server 5010 fs/nfs/nfs4proc.c err = nfs4_handle_exception(server, server 5011 fs/nfs/nfs4proc.c _nfs4_proc_statfs(server, fhandle, fsstat), server 5017 fs/nfs/nfs4proc.c static int _nfs4_do_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, server 5022 fs/nfs/nfs4proc.c .bitmask = server->attr_bitmask, server 5033 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); server 5036 fs/nfs/nfs4proc.c static int nfs4_do_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) server 5044 fs/nfs/nfs4proc.c err = _nfs4_do_fsinfo(server, fhandle, fsinfo); server 5045 fs/nfs/nfs4proc.c trace_nfs4_fsinfo(server, fhandle, fsinfo->fattr, err); server 5047 fs/nfs/nfs4proc.c nfs4_set_lease_period(server->nfs_client, fsinfo->lease_time * HZ); server 5050 fs/nfs/nfs4proc.c err = nfs4_handle_exception(server, err, &exception); server 5055 fs/nfs/nfs4proc.c static int nfs4_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) server 5060 fs/nfs/nfs4proc.c error = nfs4_do_fsinfo(server, fhandle, fsinfo); server 5063 fs/nfs/nfs4proc.c server->pnfs_blksize = fsinfo->blksize; server 5064 fs/nfs/nfs4proc.c set_pnfs_layoutdriver(server, fhandle, fsinfo); server 5070 fs/nfs/nfs4proc.c static int _nfs4_proc_pathconf(struct nfs_server *server, struct nfs_fh *fhandle, server 5075 fs/nfs/nfs4proc.c .bitmask = server->attr_bitmask, server 5093 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); server 5096 fs/nfs/nfs4proc.c static int nfs4_proc_pathconf(struct nfs_server *server, struct nfs_fh *fhandle, server 5105 fs/nfs/nfs4proc.c err = nfs4_handle_exception(server, server 5106 fs/nfs/nfs4proc.c _nfs4_proc_pathconf(server, fhandle, pathconf), server 5151 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(hdr->inode); server 5161 fs/nfs/nfs4proc.c server, task->tk_status, &exception); server 5169 fs/nfs/nfs4proc.c renew_lease(server, hdr->timestamp); server 5296 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(hdr->inode); server 5302 fs/nfs/nfs4proc.c hdr->args.bitmask = server->cache_consistency_bitmask; server 5306 fs/nfs/nfs4proc.c hdr->res.server = server; server 5311 fs/nfs/nfs4proc.c nfs4_state_protect_write(server->nfs_client, clnt, msg, hdr); server 5345 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(data->inode); server 5349 fs/nfs/nfs4proc.c data->res.server = server; server 5352 fs/nfs/nfs4proc.c nfs4_state_protect(server->nfs_client, NFS_SP4_MACH_CRED_COMMIT, clnt, msg); server 5359 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dst_inode); server 5367 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, server 5481 fs/nfs/nfs4proc.c static inline int nfs4_server_supports_acls(struct nfs_server *server) server 5483 fs/nfs/nfs4proc.c return server->caps & NFS_CAP_ACLS; server 5686 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 5689 fs/nfs/nfs4proc.c if (!nfs4_server_supports_acls(server)) server 5691 fs/nfs/nfs4proc.c ret = nfs_revalidate_inode(server, inode); server 5706 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 5722 fs/nfs/nfs4proc.c if (!nfs4_server_supports_acls(server)) server 5730 fs/nfs/nfs4proc.c ret = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1); server 5770 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 5782 fs/nfs/nfs4proc.c .server = server, server 5793 fs/nfs/nfs4proc.c ret = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 0); server 5830 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 5835 fs/nfs/nfs4proc.c .server = server, server 5842 fs/nfs/nfs4proc.c .server = server, server 5853 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1); server 6214 fs/nfs/nfs4proc.c renew_lease(data->res.server, data->timestamp); server 6219 fs/nfs/nfs4proc.c nfs4_free_revoked_stateid(data->res.server, server 6241 fs/nfs/nfs4proc.c data->res.server, task->tk_status, server 6286 fs/nfs/nfs4proc.c nfs4_setup_sequence(d_data->res.server->nfs_client, server 6301 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 6308 fs/nfs/nfs4proc.c .rpc_client = server->client, server 6320 fs/nfs/nfs4proc.c nfs4_state_protect(server->nfs_client, server 6326 fs/nfs/nfs4proc.c data->args.bitmask = server->cache_consistency_bitmask; server 6330 fs/nfs/nfs4proc.c data->res.server = server; server 6367 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 6379 fs/nfs/nfs4proc.c err = nfs4_handle_exception(server, err, &exception); server 6387 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 6388 fs/nfs/nfs4proc.c struct nfs_client *clp = server->nfs_client; server 6411 fs/nfs/nfs4proc.c arg.lock_owner.s_dev = server->s_dev; server 6412 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1); server 6485 fs/nfs/nfs4proc.c struct nfs_server *server; server 6511 fs/nfs/nfs4proc.c p->server = NFS_SERVER(inode); server 6540 fs/nfs/nfs4proc.c renew_lease(calldata->server, calldata->timestamp); server 6548 fs/nfs/nfs4proc.c nfs4_free_revoked_stateid(calldata->server, server 6565 fs/nfs/nfs4proc.c calldata->server, task->tk_status, server 6588 fs/nfs/nfs4proc.c if (nfs4_setup_sequence(calldata->server->nfs_client, server 6705 fs/nfs/nfs4proc.c struct nfs_server *server; server 6714 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 6726 fs/nfs/nfs4proc.c alloc_seqid = server->nfs_client->cl_mvops->alloc_seqid; server 6730 fs/nfs/nfs4proc.c p->arg.lock_owner.clientid = server->nfs_client->cl_clientid; server 6732 fs/nfs/nfs4proc.c p->arg.lock_owner.s_dev = server->s_dev; server 6735 fs/nfs/nfs4proc.c p->server = server; server 6775 fs/nfs/nfs4proc.c if (nfs4_setup_sequence(data->server->nfs_client, server 6864 fs/nfs/nfs4proc.c static void nfs4_handle_setlk_error(struct nfs_server *server, struct nfs4_lock_state *lsp, int new_lock_owner, int error) server 6873 fs/nfs/nfs4proc.c nfs4_schedule_stateid_recovery(server, lsp->ls_state); server 6877 fs/nfs/nfs4proc.c nfs4_schedule_lease_recovery(server->nfs_client); server 6923 fs/nfs/nfs4proc.c nfs4_handle_setlk_error(data->server, data->lsp, server 6935 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 6948 fs/nfs/nfs4proc.c nfs4_handle_exception(server, err, &exception); server 6955 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 6977 fs/nfs/nfs4proc.c nfs4_handle_exception(server, err, &exception); server 7115 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 7116 fs/nfs/nfs4proc.c struct nfs_client *clp = server->nfs_client; server 7120 fs/nfs/nfs4proc.c .s_dev = server->s_dev }; server 7215 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(state->inode); server 7222 fs/nfs/nfs4proc.c return nfs4_handle_delegation_recall_error(server, state, stateid, fl, err); server 7227 fs/nfs/nfs4proc.c struct nfs_server *server; server 7236 fs/nfs/nfs4proc.c struct nfs_server *server = data->server; server 7237 fs/nfs/nfs4proc.c nfs4_setup_sequence(server->nfs_client, &data->args.seq_args, server 7239 fs/nfs/nfs4proc.c data->args.lock_owner.clientid = server->nfs_client->cl_clientid; server 7246 fs/nfs/nfs4proc.c struct nfs_server *server = data->server; server 7252 fs/nfs/nfs4proc.c renew_lease(server, data->timestamp); server 7256 fs/nfs/nfs4proc.c nfs4_schedule_lease_recovery(server->nfs_client); server 7260 fs/nfs/nfs4proc.c if (nfs4_async_handle_error(task, server, server 7269 fs/nfs/nfs4proc.c nfs4_free_lock_state(data->server, data->lsp); server 7280 fs/nfs/nfs4proc.c nfs4_release_lockowner(struct nfs_server *server, struct nfs4_lock_state *lsp) server 7287 fs/nfs/nfs4proc.c if (server->nfs_client->cl_mvops->minor_version != 0) server 7294 fs/nfs/nfs4proc.c data->server = server; server 7295 fs/nfs/nfs4proc.c data->args.lock_owner.clientid = server->nfs_client->cl_clientid; server 7297 fs/nfs/nfs4proc.c data->args.lock_owner.s_dev = server->s_dev; server 7302 fs/nfs/nfs4proc.c rpc_call_async(server->client, &msg, 0, &nfs4_release_lockowner_ops, data); server 7400 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(dir); server 7431 fs/nfs/nfs4proc.c fs_locations->server = server; server 7433 fs/nfs/nfs4proc.c status = nfs4_call_sync(client, server, &msg, &args.seq_args, &res.seq_res, 0); server 7468 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 7469 fs/nfs/nfs4proc.c struct rpc_clnt *clnt = server->client; server 7474 fs/nfs/nfs4proc.c .clientid = server->nfs_client->cl_clientid, server 7496 fs/nfs/nfs4proc.c locations->server = server; server 7500 fs/nfs/nfs4proc.c status = nfs4_call_sync_sequence(clnt, server, &msg, server 7505 fs/nfs/nfs4proc.c renew_lease(server, now); server 7525 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 7526 fs/nfs/nfs4proc.c struct rpc_clnt *clnt = server->client; server 7549 fs/nfs/nfs4proc.c locations->server = server; server 7553 fs/nfs/nfs4proc.c status = nfs4_call_sync_sequence(clnt, server, &msg, server 7584 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 7585 fs/nfs/nfs4proc.c struct nfs_client *clp = server->nfs_client; server 7594 fs/nfs/nfs4proc.c (unsigned long long)server->fsid.major, server 7595 fs/nfs/nfs4proc.c (unsigned long long)server->fsid.minor, server 7603 fs/nfs/nfs4proc.c nfs4_handle_exception(server, status, &exception); server 7617 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 7619 fs/nfs/nfs4proc.c struct rpc_clnt *clnt = server->client; server 7642 fs/nfs/nfs4proc.c status = nfs4_call_sync_sequence(clnt, server, &msg, server 7663 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 7664 fs/nfs/nfs4proc.c struct rpc_clnt *clnt = server->client; server 7683 fs/nfs/nfs4proc.c status = nfs4_call_sync_sequence(clnt, server, &msg, server 7710 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 7711 fs/nfs/nfs4proc.c struct nfs_client *clp = server->nfs_client; server 7720 fs/nfs/nfs4proc.c (unsigned long long)server->fsid.major, server 7721 fs/nfs/nfs4proc.c (unsigned long long)server->fsid.minor, server 7729 fs/nfs/nfs4proc.c nfs4_handle_exception(server, status, &exception); server 8999 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(lgp->args.inode); server 9002 fs/nfs/nfs4proc.c nfs4_setup_sequence(server->nfs_client, &lgp->args.seq_args, server 9021 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 9095 fs/nfs/nfs4proc.c err = nfs4_handle_exception(server, nfs4err, exception); server 9107 fs/nfs/nfs4proc.c size_t max_response_pages(struct nfs_server *server) server 9109 fs/nfs/nfs4proc.c u32 max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; server 9133 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(inode); server 9142 fs/nfs/nfs4proc.c .rpc_client = server->client, server 9208 fs/nfs/nfs4proc.c struct nfs_server *server; server 9224 fs/nfs/nfs4proc.c server = NFS_SERVER(lrp->args.inode); server 9238 fs/nfs/nfs4proc.c if (nfs4_async_handle_error(task, server, NULL, NULL) != -EAGAIN) server 9316 fs/nfs/nfs4proc.c _nfs4_proc_getdeviceinfo(struct nfs_server *server, server 9337 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); server 9348 fs/nfs/nfs4proc.c int nfs4_proc_getdeviceinfo(struct nfs_server *server, server 9356 fs/nfs/nfs4proc.c err = nfs4_handle_exception(server, server 9357 fs/nfs/nfs4proc.c _nfs4_proc_getdeviceinfo(server, pdev, cred), server 9367 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(data->args.inode); server 9369 fs/nfs/nfs4proc.c nfs4_setup_sequence(server->nfs_client, server 9379 fs/nfs/nfs4proc.c struct nfs_server *server = NFS_SERVER(data->args.inode); server 9393 fs/nfs/nfs4proc.c if (nfs4_async_handle_error(task, server, NULL, NULL) == -EAGAIN) { server 9467 fs/nfs/nfs4proc.c _nfs41_proc_secinfo_no_name(struct nfs_server *server, struct nfs_fh *fhandle, server 9482 fs/nfs/nfs4proc.c struct rpc_clnt *clnt = server->client; server 9484 fs/nfs/nfs4proc.c .seq_server = server, server 9489 fs/nfs/nfs4proc.c .rpc_client = server->client, server 9491 fs/nfs/nfs4proc.c .callback_ops = server->nfs_client->cl_mvops->call_sync_ops, server 9499 fs/nfs/nfs4proc.c clnt = server->nfs_client->cl_rpcclient; server 9502 fs/nfs/nfs4proc.c cred = nfs4_get_clid_cred(server->nfs_client); server 9517 fs/nfs/nfs4proc.c nfs41_proc_secinfo_no_name(struct nfs_server *server, struct nfs_fh *fhandle, server 9529 fs/nfs/nfs4proc.c if (_nfs4_is_integrity_protected(server->nfs_client)) server 9530 fs/nfs/nfs4proc.c err = _nfs41_proc_secinfo_no_name(server, fhandle, info, server 9540 fs/nfs/nfs4proc.c err = _nfs41_proc_secinfo_no_name(server, fhandle, info, server 9549 fs/nfs/nfs4proc.c err = nfs4_handle_exception(server, err, &exception); server 9557 fs/nfs/nfs4proc.c nfs41_find_root_sec(struct nfs_server *server, struct nfs_fh *fhandle, server 9574 fs/nfs/nfs4proc.c err = nfs41_proc_secinfo_no_name(server, fhandle, info, flavors); server 9581 fs/nfs/nfs4proc.c err = nfs4_find_root_sec(server, fhandle, info); server 9602 fs/nfs/nfs4proc.c if (!nfs_auth_info_match(&server->auth_info, flavor)) server 9606 fs/nfs/nfs4proc.c err = nfs4_lookup_root_sec(server, fhandle, server 9624 fs/nfs/nfs4proc.c static int _nfs41_test_stateid(struct nfs_server *server, server 9639 fs/nfs/nfs4proc.c struct rpc_clnt *rpc_client = server->client; server 9641 fs/nfs/nfs4proc.c nfs4_state_protect(server->nfs_client, NFS_SP4_MACH_CRED_STATEID, server 9646 fs/nfs/nfs4proc.c status = nfs4_call_sync_sequence(rpc_client, server, &msg, server 9656 fs/nfs/nfs4proc.c static void nfs4_handle_delay_or_session_error(struct nfs_server *server, server 9663 fs/nfs/nfs4proc.c nfs4_handle_exception(server, err, exception); server 9670 fs/nfs/nfs4proc.c nfs4_do_handle_exception(server, err, exception); server 9685 fs/nfs/nfs4proc.c static int nfs41_test_stateid(struct nfs_server *server, server 9694 fs/nfs/nfs4proc.c err = _nfs41_test_stateid(server, stateid, cred); server 9695 fs/nfs/nfs4proc.c nfs4_handle_delay_or_session_error(server, err, &exception); server 9701 fs/nfs/nfs4proc.c struct nfs_server *server; server 9709 fs/nfs/nfs4proc.c nfs4_setup_sequence(data->server->nfs_client, server 9723 fs/nfs/nfs4proc.c if (nfs4_async_handle_error(task, data->server, NULL, NULL) == -EAGAIN) server 9749 fs/nfs/nfs4proc.c static int nfs41_free_stateid(struct nfs_server *server, server 9759 fs/nfs/nfs4proc.c .rpc_client = server->client, server 9767 fs/nfs/nfs4proc.c nfs4_state_protect(server->nfs_client, NFS_SP4_MACH_CRED_STATEID, server 9774 fs/nfs/nfs4proc.c data->server = server; server 9790 fs/nfs/nfs4proc.c nfs41_free_lock_state(struct nfs_server *server, struct nfs4_lock_state *lsp) server 9794 fs/nfs/nfs4proc.c nfs41_free_stateid(server, &lsp->ls_stateid, cred, false); server 9795 fs/nfs/nfs4proc.c nfs4_free_lock_state(server, lsp); server 204 fs/nfs/nfs4state.c nfs4_get_renew_cred_server_locked(struct nfs_server *server) server 210 fs/nfs/nfs4state.c for (pos = rb_first(&server->state_owners); server 232 fs/nfs/nfs4state.c struct nfs_server *server; server 241 fs/nfs/nfs4state.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { server 242 fs/nfs/nfs4state.c cred = nfs4_get_renew_cred_server_locked(server); server 401 fs/nfs/nfs4state.c nfs4_find_state_owner_locked(struct nfs_server *server, const struct cred *cred) server 403 fs/nfs/nfs4state.c struct rb_node **p = &server->state_owners.rb_node, server 430 fs/nfs/nfs4state.c struct nfs_server *server = new->so_server; server 431 fs/nfs/nfs4state.c struct rb_node **p = &server->state_owners.rb_node, server 453 fs/nfs/nfs4state.c rb_insert_color(&new->so_server_node, &server->state_owners); server 460 fs/nfs/nfs4state.c struct nfs_server *server = sp->so_server; server 463 fs/nfs/nfs4state.c rb_erase(&sp->so_server_node, &server->state_owners); server 489 fs/nfs/nfs4state.c nfs4_alloc_state_owner(struct nfs_server *server, server 498 fs/nfs/nfs4state.c sp->so_seqid.owner_id = ida_simple_get(&server->openowner_id, 0, 0, server 504 fs/nfs/nfs4state.c sp->so_server = server; server 539 fs/nfs/nfs4state.c static void nfs4_gc_state_owners(struct nfs_server *server) server 541 fs/nfs/nfs4state.c struct nfs_client *clp = server->nfs_client; server 549 fs/nfs/nfs4state.c list_for_each_entry_safe(sp, tmp, &server->state_owners_lru, so_lru) { server 572 fs/nfs/nfs4state.c struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *server, server 576 fs/nfs/nfs4state.c struct nfs_client *clp = server->nfs_client; server 580 fs/nfs/nfs4state.c sp = nfs4_find_state_owner_locked(server, cred); server 584 fs/nfs/nfs4state.c new = nfs4_alloc_state_owner(server, cred, gfp_flags); server 593 fs/nfs/nfs4state.c nfs4_gc_state_owners(server); server 611 fs/nfs/nfs4state.c struct nfs_server *server = sp->so_server; server 612 fs/nfs/nfs4state.c struct nfs_client *clp = server->nfs_client; server 618 fs/nfs/nfs4state.c list_add_tail(&sp->so_lru, &server->state_owners_lru); server 633 fs/nfs/nfs4state.c void nfs4_purge_state_owners(struct nfs_server *server, struct list_head *head) server 635 fs/nfs/nfs4state.c struct nfs_client *clp = server->nfs_client; server 639 fs/nfs/nfs4state.c list_for_each_entry_safe(sp, tmp, &server->state_owners_lru, so_lru) { server 868 fs/nfs/nfs4state.c struct nfs_server *server = state->owner->so_server; server 877 fs/nfs/nfs4state.c lsp->ls_seqid.owner_id = ida_simple_get(&server->lockowner_id, 0, 0, GFP_NOFS); server 887 fs/nfs/nfs4state.c void nfs4_free_lock_state(struct nfs_server *server, struct nfs4_lock_state *lsp) server 889 fs/nfs/nfs4state.c ida_simple_remove(&server->lockowner_id, lsp->ls_seqid.owner_id); server 932 fs/nfs/nfs4state.c struct nfs_server *server; server 944 fs/nfs/nfs4state.c server = state->owner->so_server; server 946 fs/nfs/nfs4state.c struct nfs_client *clp = server->nfs_client; server 948 fs/nfs/nfs4state.c clp->cl_mvops->free_lock_state(server, lsp); server 950 fs/nfs/nfs4state.c nfs4_free_lock_state(server, lsp); server 1255 fs/nfs/nfs4state.c int nfs4_schedule_migration_recovery(const struct nfs_server *server) server 1257 fs/nfs/nfs4state.c struct nfs_client *clp = server->nfs_client; server 1259 fs/nfs/nfs4state.c if (server->fh_expire_type != NFS4_FH_PERSISTENT) { server 1265 fs/nfs/nfs4state.c if (test_bit(NFS_MIG_FAILED, &server->mig_status)) server 1270 fs/nfs/nfs4state.c (unsigned long long)server->fsid.major, server 1271 fs/nfs/nfs4state.c (unsigned long long)server->fsid.minor, server 1275 fs/nfs/nfs4state.c &((struct nfs_server *)server)->mig_status); server 1384 fs/nfs/nfs4state.c int nfs4_schedule_stateid_recovery(const struct nfs_server *server, struct nfs4_state *state) server 1386 fs/nfs/nfs4state.c struct nfs_client *clp = server->nfs_client; server 1708 fs/nfs/nfs4state.c static void nfs4_reset_seqids(struct nfs_server *server, server 1711 fs/nfs/nfs4state.c struct nfs_client *clp = server->nfs_client; server 1717 fs/nfs/nfs4state.c for (pos = rb_first(&server->state_owners); server 1735 fs/nfs/nfs4state.c struct nfs_server *server; server 1738 fs/nfs/nfs4state.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) server 1739 fs/nfs/nfs4state.c nfs4_reset_seqids(server, mark_reclaim); server 1760 fs/nfs/nfs4state.c static void nfs4_clear_reclaim_server(struct nfs_server *server) server 1762 fs/nfs/nfs4state.c struct nfs_client *clp = server->nfs_client; server 1768 fs/nfs/nfs4state.c for (pos = rb_first(&server->state_owners); server 1786 fs/nfs/nfs4state.c struct nfs_server *server; server 1792 fs/nfs/nfs4state.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) server 1793 fs/nfs/nfs4state.c nfs4_clear_reclaim_server(server); server 1866 fs/nfs/nfs4state.c struct nfs_server *server; server 1873 fs/nfs/nfs4state.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { server 1874 fs/nfs/nfs4state.c nfs4_purge_state_owners(server, &freeme); server 1876 fs/nfs/nfs4state.c for (pos = rb_first(&server->state_owners); server 2043 fs/nfs/nfs4state.c static int nfs4_try_migration(struct nfs_server *server, const struct cred *cred) server 2045 fs/nfs/nfs4state.c struct nfs_client *clp = server->nfs_client; server 2052 fs/nfs/nfs4state.c (unsigned long long)server->fsid.major, server 2053 fs/nfs/nfs4state.c (unsigned long long)server->fsid.minor, server 2064 fs/nfs/nfs4state.c inode = d_inode(server->super->s_root); server 2085 fs/nfs/nfs4state.c status = nfs4_replace_transport(server, locations); server 2102 fs/nfs/nfs4state.c set_bit(NFS_MIG_FAILED, &server->mig_status); server 2114 fs/nfs/nfs4state.c struct nfs_server *server; server 2127 fs/nfs/nfs4state.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { server 2130 fs/nfs/nfs4state.c if (server->mig_gen == clp->cl_mig_gen) server 2132 fs/nfs/nfs4state.c server->mig_gen = clp->cl_mig_gen; server 2135 fs/nfs/nfs4state.c &server->mig_status)) server 2139 fs/nfs/nfs4state.c status = nfs4_try_migration(server, cred); server 2160 fs/nfs/nfs4state.c struct nfs_server *server; server 2173 fs/nfs/nfs4state.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { server 2177 fs/nfs/nfs4state.c if (server->mig_gen == clp->cl_mig_gen) server 2179 fs/nfs/nfs4state.c server->mig_gen = clp->cl_mig_gen; server 2183 fs/nfs/nfs4state.c inode = d_inode(server->super->s_root); server 2187 fs/nfs/nfs4state.c if (nfs4_try_migration(server, cred) == -NFS4ERR_LEASE_MOVED) server 112 fs/nfs/nfs4super.c struct nfs_server *server; server 118 fs/nfs/nfs4super.c server = nfs4_create_server(mount_info, &nfs_v4); server 119 fs/nfs/nfs4super.c if (IS_ERR(server)) { server 120 fs/nfs/nfs4super.c mntroot = ERR_CAST(server); server 124 fs/nfs/nfs4super.c mntroot = nfs_fs_mount_common(server, flags, dev_name, mount_info, &nfs_v4); server 272 fs/nfs/nfs4super.c struct nfs_server *server; server 282 fs/nfs/nfs4super.c server = nfs4_create_referral_server(mount_info.cloned, mount_info.mntfh); server 283 fs/nfs/nfs4super.c if (IS_ERR(server)) { server 284 fs/nfs/nfs4super.c mntroot = ERR_CAST(server); server 288 fs/nfs/nfs4super.c mntroot = nfs_fs_mount_common(server, flags, dev_name, &mount_info, &nfs_v4); server 991 fs/nfs/nfs4trace.h __entry->dev = res->server->s_dev; server 1297 fs/nfs/nfs4trace.h const struct nfs_server *server, server 1303 fs/nfs/nfs4trace.h TP_ARGS(server, fhandle, fattr, error), server 1314 fs/nfs/nfs4trace.h __entry->dev = server->s_dev; server 1336 fs/nfs/nfs4trace.h const struct nfs_server *server, \ server 1341 fs/nfs/nfs4trace.h TP_ARGS(server, fhandle, fattr, error)) server 1072 fs/nfs/nfs4xdr.c const struct nfs_server *server, server 1101 fs/nfs/nfs4xdr.c owner_namelen = nfs_map_uid_to_name(server, iap->ia_uid, owner_name, IDMAP_NAMESZ); server 1115 fs/nfs/nfs4xdr.c owner_grouplen = nfs_map_gid_to_group(server, iap->ia_gid, owner_group, IDMAP_NAMESZ); server 1242 fs/nfs/nfs4xdr.c create->server, create->server->attr_bitmask); server 1414 fs/nfs/nfs4xdr.c *p++ = cpu_to_be32(arg->server->s_dev); server 1428 fs/nfs/nfs4xdr.c arg->server, arg->server->attr_bitmask); server 1433 fs/nfs/nfs4xdr.c arg->server, arg->server->attr_bitmask); server 1443 fs/nfs/nfs4xdr.c arg->server, arg->server->exclcreat_bitmask); server 1696 fs/nfs/nfs4xdr.c static void encode_setattr(struct xdr_stream *xdr, const struct nfs_setattrargs *arg, const struct nfs_server *server, struct compound_hdr *hdr) server 1700 fs/nfs/nfs4xdr.c encode_attrs(xdr, arg->iap, arg->label, NULL, server, server 1701 fs/nfs/nfs4xdr.c server->attr_bitmask); server 2566 fs/nfs/nfs4xdr.c encode_setattr(xdr, args, args->server, &hdr); server 3698 fs/nfs/nfs4xdr.c struct nfs4_string *server; server 3716 fs/nfs/nfs4xdr.c server = &loc->servers[loc->nservers]; server 3717 fs/nfs/nfs4xdr.c status = decode_opaque_inline(xdr, &server->len, &server->data); server 3720 fs/nfs/nfs4xdr.c dprintk("%s ", server->data); server 3895 fs/nfs/nfs4xdr.c const struct nfs_server *server, kuid_t *uid, server 3917 fs/nfs/nfs4xdr.c if (len <= 0 || nfs_map_name_to_uid(server, p, len, uid) != 0) server 3929 fs/nfs/nfs4xdr.c const struct nfs_server *server, kgid_t *gid, server 3951 fs/nfs/nfs4xdr.c if (len <= 0 || nfs_map_group_to_gid(server, p, len, gid) != 0) server 4548 fs/nfs/nfs4xdr.c const struct nfs_server *server) server 4615 fs/nfs/nfs4xdr.c status = decode_attr_owner(xdr, bitmap, server, &fattr->uid, fattr->owner_name); server 4620 fs/nfs/nfs4xdr.c status = decode_attr_group(xdr, bitmap, server, &fattr->gid, fattr->group_name); server 4677 fs/nfs/nfs4xdr.c struct nfs4_label *label, const struct nfs_server *server) server 4697 fs/nfs/nfs4xdr.c label, server); server 4708 fs/nfs/nfs4xdr.c struct nfs4_label *label, const struct nfs_server *server) server 4710 fs/nfs/nfs4xdr.c return decode_getfattr_generic(xdr, fattr, NULL, NULL, label, server); server 4714 fs/nfs/nfs4xdr.c const struct nfs_server *server) server 4716 fs/nfs/nfs4xdr.c return decode_getfattr_generic(xdr, fattr, NULL, NULL, NULL, server); server 6080 fs/nfs/nfs4xdr.c decode_getfattr(xdr, res->fattr, res->server); server 6110 fs/nfs/nfs4xdr.c status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); server 6140 fs/nfs/nfs4xdr.c status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); server 6168 fs/nfs/nfs4xdr.c res->label, res->server); server 6262 fs/nfs/nfs4xdr.c decode_getfattr_label(xdr, res->fattr, res->label, res->server); server 6292 fs/nfs/nfs4xdr.c decode_getfattr_label(xdr, res->fattr, res->label, res->server); server 6325 fs/nfs/nfs4xdr.c status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); server 6429 fs/nfs/nfs4xdr.c status = decode_getfattr(xdr, res->fattr, res->server); server 6465 fs/nfs/nfs4xdr.c decode_getfattr_label(xdr, res->f_attr, res->f_label, res->server); server 6519 fs/nfs/nfs4xdr.c decode_getfattr(xdr, res->f_attr, res->server); server 6549 fs/nfs/nfs4xdr.c decode_getfattr_label(xdr, res->fattr, res->label, res->server); server 6738 fs/nfs/nfs4xdr.c decode_getfattr(xdr, res->fattr, res->server); server 6930 fs/nfs/nfs4xdr.c status = decode_getfattr(xdr, res->fattr, res->server); server 6964 fs/nfs/nfs4xdr.c NULL, res->fs_locations->server); server 6977 fs/nfs/nfs4xdr.c NULL, res->fs_locations->server); server 7273 fs/nfs/nfs4xdr.c decode_getfattr(xdr, res->fattr, res->server); server 7408 fs/nfs/nfs4xdr.c NULL, entry->label, entry->server) < 0) server 149 fs/nfs/pnfs.c set_pnfs_layoutdriver(struct nfs_server *server, const struct nfs_fh *mntfh, server 158 fs/nfs/pnfs.c if (!(server->nfs_client->cl_exchange_flags & server 161 fs/nfs/pnfs.c __func__, server->nfs_client->cl_exchange_flags); server 185 fs/nfs/pnfs.c server->pnfs_curr_ld = ld_type; server 187 fs/nfs/pnfs.c && ld_type->set_layoutdriver(server, mntfh)) { server 194 fs/nfs/pnfs.c atomic_inc(&server->nfs_client->cl_mds_count); server 201 fs/nfs/pnfs.c server->pnfs_curr_ld = NULL; server 268 fs/nfs/pnfs.c struct nfs_server *server = NFS_SERVER(lo->plh_inode); server 269 fs/nfs/pnfs.c struct pnfs_layoutdriver_type *ld = server->pnfs_curr_ld; server 272 fs/nfs/pnfs.c struct nfs_client *clp = server->nfs_client; server 769 fs/nfs/pnfs.c struct nfs_server *server, server 777 fs/nfs/pnfs.c list_for_each_entry_safe(lo, next, &server->layouts, plh_layouts) { server 783 fs/nfs/pnfs.c if (!nfs_sb_active(server->super)) server 799 fs/nfs/pnfs.c nfs_sb_deactive(server->super); server 847 fs/nfs/pnfs.c struct nfs_server *server; server 853 fs/nfs/pnfs.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { server 854 fs/nfs/pnfs.c if (memcmp(&server->fsid, fsid, sizeof(*fsid)) != 0) server 857 fs/nfs/pnfs.c server, server 873 fs/nfs/pnfs.c struct nfs_server *server; server 879 fs/nfs/pnfs.c list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { server 881 fs/nfs/pnfs.c server, server 959 fs/nfs/pnfs.c struct nfs_server *server; server 962 fs/nfs/pnfs.c server = NFS_SERVER(inode); server 965 fs/nfs/pnfs.c server = NFS_SERVER(parent_dir->d_inode); server 968 fs/nfs/pnfs.c return server; server 1016 fs/nfs/pnfs.c struct nfs_server *server = pnfs_find_server(ino, ctx); server 1017 fs/nfs/pnfs.c size_t max_reply_sz = server->pnfs_curr_ld->max_layoutget_response; server 1018 fs/nfs/pnfs.c size_t max_pages = max_response_pages(server); server 1059 fs/nfs/pnfs.c lgp->args.type = server->pnfs_curr_ld->id; server 1860 fs/nfs/pnfs.c struct nfs_server *server) server 1863 fs/nfs/pnfs.c struct nfs_client *clp = server->nfs_client; server 1870 fs/nfs/pnfs.c list_add_tail(&lo->plh_layouts, &server->layouts); server 1894 fs/nfs/pnfs.c struct nfs_server *server = NFS_SERVER(ino); server 1895 fs/nfs/pnfs.c struct nfs_client *clp = server->nfs_client; server 2004 fs/nfs/pnfs.c nfs4_schedule_stateid_recovery(server, ctx->state); server 2043 fs/nfs/pnfs.c _add_to_server_list(lo, server); server 2221 fs/nfs/pnfs.c struct nfs_server *server = NFS_SERVER(data->dir->d_inode); server 2223 fs/nfs/pnfs.c if (!(pnfs_enabled_sb(server) && server 2224 fs/nfs/pnfs.c server->pnfs_curr_ld->flags & PNFS_LAYOUTGET_ON_OPEN)) server 3018 fs/nfs/pnfs.c data->res.server = NFS_SERVER(inode); server 3072 fs/nfs/pnfs.c struct nfs_server *server = NFS_SERVER(inode); server 3078 fs/nfs/pnfs.c if (!pnfs_enabled_sb(server) || !ld->prepare_layoutstats) server 179 fs/nfs/pnfs.h (struct nfs_server *server, struct pnfs_device *pdev, server 231 fs/nfs/pnfs.h extern size_t max_response_pages(struct nfs_server *server); server 232 fs/nfs/pnfs.h extern int nfs4_proc_getdeviceinfo(struct nfs_server *server, server 350 fs/nfs/pnfs.h nfs4_find_get_deviceid(struct nfs_server *server, server 95 fs/nfs/pnfs_dev.c nfs4_get_device_info(struct nfs_server *server, server 110 fs/nfs/pnfs_dev.c max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; server 111 fs/nfs/pnfs_dev.c if (server->pnfs_curr_ld->max_deviceinfo_size && server 112 fs/nfs/pnfs_dev.c server->pnfs_curr_ld->max_deviceinfo_size < max_resp_sz) server 113 fs/nfs/pnfs_dev.c max_resp_sz = server->pnfs_curr_ld->max_deviceinfo_size; server 116 fs/nfs/pnfs_dev.c __func__, server, max_resp_sz, max_pages); server 133 fs/nfs/pnfs_dev.c pdev->layout_type = server->pnfs_curr_ld->id; server 140 fs/nfs/pnfs_dev.c rc = nfs4_proc_getdeviceinfo(server, pdev, cred); server 149 fs/nfs/pnfs_dev.c d = server->pnfs_curr_ld->alloc_deviceid_node(server, pdev, server 171 fs/nfs/pnfs_dev.c __nfs4_find_get_deviceid(struct nfs_server *server, server 177 fs/nfs/pnfs_dev.c d = _lookup_deviceid(server->pnfs_curr_ld, server->nfs_client, id, server 186 fs/nfs/pnfs_dev.c nfs4_find_get_deviceid(struct nfs_server *server, server 193 fs/nfs/pnfs_dev.c d = __nfs4_find_get_deviceid(server, id, hash); server 197 fs/nfs/pnfs_dev.c new = nfs4_get_device_info(server, id, cred, gfp_mask); server 202 fs/nfs/pnfs_dev.c d = __nfs4_find_get_deviceid(server, id, hash); server 205 fs/nfs/pnfs_dev.c server->pnfs_curr_ld->free_deviceid_node(new); server 248 fs/nfs/pnfs_dev.c nfs4_init_deviceid_node(struct nfs4_deviceid_node *d, struct nfs_server *server, server 253 fs/nfs/pnfs_dev.c d->ld = server->pnfs_curr_ld; server 254 fs/nfs/pnfs_dev.c d->nfs_client = server->nfs_client; server 54 fs/nfs/proc.c nfs_proc_get_root(struct nfs_server *server, struct nfs_fh *fhandle, server 68 fs/nfs/proc.c status = rpc_call_sync(server->client, &msg, 0); server 70 fs/nfs/proc.c if (status && server->nfs_client->cl_rpcclient != server->client) server 71 fs/nfs/proc.c status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); server 78 fs/nfs/proc.c status = rpc_call_sync(server->client, &msg, 0); server 80 fs/nfs/proc.c if (status && server->nfs_client->cl_rpcclient != server->client) server 81 fs/nfs/proc.c status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); server 101 fs/nfs/proc.c nfs_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, server 114 fs/nfs/proc.c status = rpc_call_sync(server->client, &msg, 0); server 520 fs/nfs/proc.c nfs_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle, server 533 fs/nfs/proc.c status = rpc_call_sync(server->client, &msg, 0); server 548 fs/nfs/proc.c nfs_proc_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, server 561 fs/nfs/proc.c status = rpc_call_sync(server->client, &msg, 0); server 579 fs/nfs/proc.c nfs_proc_pathconf(struct nfs_server *server, struct nfs_fh *fhandle, server 65 fs/nfs/read.c struct nfs_server *server = NFS_SERVER(inode); server 69 fs/nfs/read.c if (server->pnfs_curr_ld && !force_mds) server 70 fs/nfs/read.c pg_ops = server->pnfs_curr_ld->pg_read_ops; server 73 fs/nfs/read.c server->rsize, 0); server 420 fs/nfs/super.c struct nfs_server *server = NFS_SB(sb); server 424 fs/nfs/super.c if (atomic_inc_return(&server->active) != 1) server 432 fs/nfs/super.c struct nfs_server *server = NFS_SB(sb); server 434 fs/nfs/super.c if (atomic_dec_and_test(&server->active)) server 444 fs/nfs/super.c struct nfs_server *server = NFS_SB(dentry->d_sb); server 455 fs/nfs/super.c error = server->nfs_client->rpc_ops->statfs(server, fh, &res); server 493 fs/nfs/super.c buf->f_namelen = server->namelen; server 743 fs/nfs/super.c static void show_lease(struct seq_file *m, struct nfs_server *server) server 745 fs/nfs/super.c struct nfs_client *clp = server->nfs_client; server 754 fs/nfs/super.c static void show_sessions(struct seq_file *m, struct nfs_server *server) server 756 fs/nfs/super.c if (nfs4_has_session(server->nfs_client)) server 760 fs/nfs/super.c static void show_sessions(struct seq_file *m, struct nfs_server *server) {} server 765 fs/nfs/super.c static void show_pnfs(struct seq_file *m, struct nfs_server *server) server 768 fs/nfs/super.c if (server->pnfs_curr_ld) server 769 fs/nfs/super.c seq_printf(m, "%s", server->pnfs_curr_ld->name); server 786 fs/nfs/super.c static void show_pnfs(struct seq_file *m, struct nfs_server *server) server 920 fs/nfs/super.c struct nfs_server *server; server 923 fs/nfs/super.c server = NFS_SB(sb); server 925 fs/nfs/super.c rpc = server->client_acl; server 928 fs/nfs/super.c rpc = server->client; server 1829 fs/nfs/super.c struct nfs_server *server = ERR_PTR(-EACCES); server 1876 fs/nfs/super.c server = nfs_mod->rpc_ops->create_server(mount_info, nfs_mod); server 1877 fs/nfs/super.c if (!IS_ERR(server)) server 1878 fs/nfs/super.c return server; server 1887 fs/nfs/super.c return server; server 1899 fs/nfs/super.c struct nfs_server *server; server 1902 fs/nfs/super.c server = nfs_try_mount_request(mount_info, nfs_mod); server 1904 fs/nfs/super.c server = nfs_mod->rpc_ops->create_server(mount_info, nfs_mod); server 1906 fs/nfs/super.c if (IS_ERR(server)) server 1907 fs/nfs/super.c return ERR_CAST(server); server 1909 fs/nfs/super.c return nfs_fs_mount_common(server, flags, dev_name, mount_info, nfs_mod); server 2348 fs/nfs/super.c struct nfs_server *server = NFS_SB(sb); server 2357 fs/nfs/super.c sb->s_blocksize = nfs_block_bits(server->wsize, server 2360 fs/nfs/super.c nfs_super_set_maxbytes(sb, server->maxfilesize); server 2369 fs/nfs/super.c struct nfs_server *server = NFS_SB(sb); server 2373 fs/nfs/super.c sb->s_xattr = server->nfs_client->cl_nfs_mod->xattr; server 2374 fs/nfs/super.c sb->s_op = server->nfs_client->cl_nfs_mod->sops; server 2378 fs/nfs/super.c if (server->nfs_client->rpc_ops->version != 2) { server 2388 fs/nfs/super.c if (server->nfs_client->rpc_ops->version != 4) { server 2407 fs/nfs/super.c struct nfs_server *server = NFS_SB(sb); server 2416 fs/nfs/super.c if (server->nfs_client->rpc_ops->version != 2) { server 2425 fs/nfs/super.c if (server->nfs_client->rpc_ops->version != 4) { server 2468 fs/nfs/super.c struct nfs_server *server; server 2475 fs/nfs/super.c struct nfs_server *server = sb_mntdata->server; server 2479 fs/nfs/super.c s->s_fs_info = server; server 2480 fs/nfs/super.c s->s_d_op = server->nfs_client->rpc_ops->dentry_ops; server 2481 fs/nfs/super.c ret = set_anon_super(s, server); server 2483 fs/nfs/super.c server->s_dev = s->s_dev; server 2547 fs/nfs/super.c struct nfs_server *server = sb_mntdata->server, *old = NFS_SB(sb); server 2550 fs/nfs/super.c if (!nfs_compare_super_address(old, server)) server 2555 fs/nfs/super.c if (memcmp(&old->fsid, &server->fsid, sizeof(old->fsid)) != 0) server 2557 fs/nfs/super.c if (!nfs_compare_userns(old, server)) server 2559 fs/nfs/super.c return nfs_compare_mount_options(sb, server, mntflags); server 2655 fs/nfs/super.c struct dentry *nfs_fs_mount_common(struct nfs_server *server, server 2665 fs/nfs/super.c .server = server, server 2669 fs/nfs/super.c if (server->flags & NFS_MOUNT_UNSHARED) server 2673 fs/nfs/super.c if (server->flags & NFS_MOUNT_NOAC) server 2687 fs/nfs/super.c if (s->s_fs_info != server) { server 2688 fs/nfs/super.c nfs_free_server(server); server 2689 fs/nfs/super.c server = NULL; server 2691 fs/nfs/super.c error = super_setup_bdi_name(s, "%u:%u", MAJOR(server->s_dev), server 2692 fs/nfs/super.c MINOR(server->s_dev)); server 2697 fs/nfs/super.c nfs_set_readahead(s->s_bdi, server->rpages); server 2698 fs/nfs/super.c server->super = s; server 2705 fs/nfs/super.c if (!(server->flags & NFS_MOUNT_UNSHARED)) server 2723 fs/nfs/super.c nfs_free_server(server); server 2781 fs/nfs/super.c struct nfs_server *server = NFS_SB(s); server 2788 fs/nfs/super.c nfs_free_server(server); server 2806 fs/nfs/super.c struct nfs_server *server; server 2815 fs/nfs/super.c server = nfs_mod->rpc_ops->clone_server(NFS_SB(data->sb), data->fh, data->fattr, data->authflavor); server 2817 fs/nfs/super.c if (IS_ERR(server)) server 2818 fs/nfs/super.c mntroot = ERR_CAST(server); server 2820 fs/nfs/super.c mntroot = nfs_fs_mount_common(server, flags, server 1465 fs/nfs/write.c struct nfs_server *server = NFS_SERVER(inode); server 1469 fs/nfs/write.c if (server->pnfs_curr_ld && !force_mds) server 1470 fs/nfs/write.c pg_ops = server->pnfs_curr_ld->pg_write_ops; server 1473 fs/nfs/write.c server->wsize, ioflags); server 69 include/keys/rxrpc-type.h struct krb5_principal server; /* server principal name */ server 384 include/linux/nfs_fs.h extern int nfs_revalidate_inode(struct nfs_server *server, struct inode *inode); server 304 include/linux/nfs_xdr.h const struct nfs_server *server; server 437 include/linux/nfs_xdr.h const struct nfs_server *server; server 467 include/linux/nfs_xdr.h const struct nfs_server *server; /* Needed for ID mapping */ server 486 include/linux/nfs_xdr.h const struct nfs_server *server; server 535 include/linux/nfs_xdr.h const struct nfs_server *server; server 616 include/linux/nfs_xdr.h struct nfs_server *server; server 667 include/linux/nfs_xdr.h const struct nfs_server *server; /* used by write */ server 688 include/linux/nfs_xdr.h const struct nfs_server *server; server 702 include/linux/nfs_xdr.h struct nfs_server *server; server 720 include/linux/nfs_xdr.h struct nfs_server *server; server 748 include/linux/nfs_xdr.h struct nfs_server * server; server 777 include/linux/nfs_xdr.h const struct nfs_server * server; /* Needed for name mapping */ server 814 include/linux/nfs_xdr.h const struct nfs_server * server; server 987 include/linux/nfs_xdr.h const struct nfs_server * server; server 1007 include/linux/nfs_xdr.h const struct nfs_server * server; server 1017 include/linux/nfs_xdr.h const struct nfs_server * server; server 1043 include/linux/nfs_xdr.h const struct nfs_server * server; server 1058 include/linux/nfs_xdr.h const struct nfs_server * server; server 1074 include/linux/nfs_xdr.h const struct nfs_server * server; server 1088 include/linux/nfs_xdr.h const struct nfs_server *server; server 1199 include/linux/nfs_xdr.h const struct nfs_server *server; server 1274 include/trace/events/afs.h TP_PROTO(struct afs_server *server, int usage, enum afs_server_trace reason), server 1276 include/trace/events/afs.h TP_ARGS(server, usage, reason), server 1279 include/trace/events/afs.h __field(unsigned int, server ) server 1285 include/trace/events/afs.h __entry->server = server->debug_id; server 1291 include/trace/events/afs.h __entry->server, server 40 include/uapi/linux/qrtr.h } server; server 1098 net/dccp/feat.c u8 feat, u8 *val, u8 len, const bool server) server 1144 net/dccp/feat.c if (len > 1 && server) { server 1165 net/dccp/feat.c if (dccp_feat_reconcile(&entry->val, val, len, server, true)) { server 1178 net/dccp/feat.c WARN_ON(!server); server 1180 net/dccp/feat.c if (!dccp_feat_reconcile(&entry->val, &defval, 1, server, true)) server 1209 net/dccp/feat.c u8 feat, u8 *val, u8 len, const bool server) server 1271 net/dccp/feat.c if (dccp_feat_reconcile(&entry->val, plist, plen, server, 0) != *val) { server 1399 net/dccp/feat.c bool server = false; server 1406 net/dccp/feat.c server = true; /* fall through */ server 1412 net/dccp/feat.c val, len, server); server 1416 net/dccp/feat.c val, len, server); server 193 net/rxrpc/key.c rxrpc_free_krb5_principal(&rxk5->server); server 464 net/rxrpc/key.c ret = rxrpc_krb5_decode_principal(&rxk5->server, &xdr, &toklen); server 1088 net/rxrpc/key.c princ = &token->k5->server; server 1183 net/rxrpc/key.c princ = &token->k5->server; server 98 net/tipc/topsrv.c struct tipc_topsrv *server; server 127 net/tipc/topsrv.c struct tipc_topsrv *s = con->server; server 209 net/tipc/topsrv.c con->server = s; server 231 net/tipc/topsrv.c struct tipc_net *tn = tipc_net(con->server->net); server 250 net/tipc/topsrv.c struct tipc_topsrv *srv = con->server; server 353 net/tipc/topsrv.c if (!queue_work(con->server->send_wq, &con->swork)) server 387 net/tipc/topsrv.c struct tipc_topsrv *srv = con->server; server 442 net/tipc/topsrv.c if (!queue_work(con->server->rcv_wq, &con->rwork)) server 206 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c int server = -1; server 233 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c server = start_server((const struct sockaddr *)&addr4, sizeof(addr4)); server 234 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c if (server == -1) server 242 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c if (run_test(server, results, xdp)) server 253 tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c close(server); server 104 tools/testing/selftests/bpf/xdping.c int server = 0; server 132 tools/testing/selftests/bpf/xdping.c server = 1; server 147 tools/testing/selftests/bpf/xdping.c if (!server && optind == argc) { server 158 tools/testing/selftests/bpf/xdping.c if (!server) { server 182 tools/testing/selftests/bpf/xdping.c server ? "xdpserver" : server 211 tools/testing/selftests/bpf/xdping.c if (server) { server 880 tools/testing/selftests/cgroup/test_memcontrol.c const char server[] = "localhost"; server 887 tools/testing/selftests/cgroup/test_memcontrol.c ret = getaddrinfo(server, servport, NULL, &ai); server 1007 tools/testing/selftests/net/nettest.c static int msock_init(struct sock_args *args, int server) server 1017 tools/testing/selftests/net/nettest.c if (!server && args->has_local_ip) server 1049 tools/testing/selftests/net/nettest.c if (server && server 36 tools/testing/vsock/control.c bool server) server 59 tools/testing/vsock/control.c if (!server) { server 7 tools/testing/vsock/control.h bool server);