| /linux/fs/nfs/ |
| A D | nfs4state.c | 187 if (clp->cl_state) in nfs40_discover_server_trunking() 299 if (clp->cl_slot_tbl) in nfs4_begin_drain_session() 369 if (clp != *result) in nfs41_discover_server_trunking() 386 nfs_put_client(clp); in nfs41_discover_server_trunking() 1249 if (!clp) in nfs4_schedule_lease_recovery() 1254 clp->cl_hostname); in nfs4_schedule_lease_recovery() 1304 __func__, clp->cl_clientid, clp->cl_hostname); in nfs4_schedule_lease_moved_recovery() 2201 clp->cl_mig_gen++; in nfs4_handle_migration() 2247 clp->cl_mig_gen++; in nfs4_handle_lease_moved() 2381 struct nfs_client *clp = session->clp; in nfs4_schedule_session_recovery() local [all …]
|
| A D | nfs4renewd.c | 58 struct nfs_client *clp = in nfs4_renew_state() local 71 lease = clp->cl_lease_time; in nfs4_renew_state() 72 last = clp->cl_last_renewal; in nfs4_renew_state() 77 if (nfs_delegations_present(clp)) in nfs4_renew_state() 106 nfs4_schedule_state_renewal(clp); in nfs4_renew_state() 118 spin_lock(&clp->cl_lock); in nfs4_schedule_state_renewal() 119 timeout = (2 * clp->cl_lease_time) / 3 + (long)clp->cl_last_renewal in nfs4_schedule_state_renewal() 127 spin_unlock(&clp->cl_lock); in nfs4_schedule_state_renewal() 145 spin_lock(&clp->cl_lock); in nfs4_set_lease_period() 146 clp->cl_lease_time = lease; in nfs4_set_lease_period() [all …]
|
| A D | client.c | 149 if ((clp = kzalloc(sizeof(*clp), GFP_KERNEL)) == NULL) in nfs_alloc_client() 157 clp->rpc_ops = clp->cl_nfs_mod->rpc_ops; in nfs_alloc_client() 190 return clp; in nfs_alloc_client() 195 kfree(clp); in nfs_alloc_client() 264 if (!clp) in nfs_put_client() 276 clp->rpc_ops->free_client(clp); in nfs_put_client() 339 return clp; in nfs_match_client() 401 return clp; in nfs_found_client() 424 if (clp) { in nfs_get_client() 663 return clp; in nfs_init_client() [all …]
|
| A D | nfs4client.c | 206 if (IS_ERR(clp)) in nfs4_alloc_client() 207 return clp; in nfs4_alloc_client() 259 strscpy(clp->cl_ipaddr, ip_addr, sizeof(clp->cl_ipaddr)); in nfs4_alloc_client() 268 return clp; in nfs4_alloc_client() 288 clp->cl_mvops->shutdown_client(clp); in nfs4_shutdown_client() 402 ret = clp->cl_mvops->init_client(clp); in nfs4_init_client_minor_version() 453 return clp; in nfs4_init_client() 818 if (clp) in nfs4_find_client_ident() 821 return clp; in nfs4_find_client_ident() 876 return clp; in nfs4_find_client_sessionid() [all …]
|
| A D | callback_proc.c | 350 if (cps->clp) in nfs4_callback_layoutrecall() 375 if (!cps->clp) { in nfs4_callback_devicenotify() 473 session = clp->cl_session; in referring_call_exists() 506 struct nfs_client *clp; in nfs4_callback_sequence() local 513 if (clp == NULL) in nfs4_callback_sequence() 519 tbl = &clp->cl_session->bc_slot_table; in nfs4_callback_sequence() 585 cps->clp = clp; /* put in nfs4_callback_compound */ in nfs4_callback_sequence() 615 if (!cps->clp) /* set in cb_sequence */ in nfs4_callback_recallany() 673 nfs41_notify_server(cps->clp); in nfs4_callback_recallslot() 723 spin_lock(&cps->clp->cl_lock); in nfs4_callback_offload() [all …]
|
| A D | localio.c | 127 trace_nfs_local_enable(clp); in nfs_local_enable() 138 trace_nfs_local_disable(clp); in nfs_local_disable() 183 if (status || !clp->cl_uuid.net || !clp->cl_uuid.dom) in nfs_server_uuid_is_local() 199 nfs_local_disable(clp); in nfs_local_probe() 205 nfs_local_disable(clp); in nfs_local_probe() 211 nfs_local_enable(clp); in nfs_local_probe() 212 nfs_uuid_end(&clp->cl_uuid); in nfs_local_probe() 228 if (!nfs_server_is_local(clp)) in nfs_local_open_fh() 233 localio = nfs_open_local_fh(&clp->cl_uuid, clp->cl_rpcclient, in nfs_local_open_fh() 243 nfs_local_probe(clp); in nfs_local_open_fh() [all …]
|
| A D | nfs4session.h | 75 struct nfs_client *clp; member 111 return clp->cl_session; in nfs4_get_session() 123 extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp); 125 extern int nfs4_init_session(struct nfs_client *clp); 131 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session() argument 133 if (clp->cl_session) in nfs4_has_session() 138 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session() argument 140 if (nfs4_has_session(clp)) in nfs4_has_persistent_session() 141 return (clp->cl_session->flags & SESSION4_PERSIST); in nfs4_has_persistent_session() 163 static inline int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session() argument [all …]
|
| A D | delegation.c | 348 struct nfs_client *clp) in nfs_detach_delegation_locked() argument 352 lockdep_is_held(&clp->cl_lock)); in nfs_detach_delegation_locked() 375 spin_lock(&clp->cl_lock); in nfs_detach_delegation() 377 spin_unlock(&clp->cl_lock); in nfs_detach_delegation() 468 spin_lock(&clp->cl_lock); in nfs_inode_set_delegation() 491 __func__, clp->cl_hostname); in nfs_inode_set_delegation() 535 spin_unlock(&clp->cl_lock); in nfs_inode_set_delegation() 876 nfs4_schedule_state_manager(clp); in nfs_delegation_run_state_manager() 900 if (clp == NULL) in nfs_server_return_all_delegations() 909 nfs4_wait_clnt_recover(clp); in nfs_server_return_all_delegations() [all …]
|
| A D | nfs4_fs.h | 256 struct nfs_client *clp; member 303 extern int nfs4_destroy_clientid(struct nfs_client *clp); 353 is_ds_only_client(struct nfs_client *clp) in is_ds_only_client() argument 360 is_ds_client(struct nfs_client *clp) in is_ds_client() argument 382 if (test_bit(sp4_mode, &clp->cl_sp4_flags)) { in _nfs4_state_protect() 385 flavor = clp->cl_rpcclient->cl_auth->au_flavor; in _nfs4_state_protect() 388 *clntp = clp->cl_rpcclient; in _nfs4_state_protect() 405 _nfs4_state_protect(clp, sp4_mode, clntp, msg); in nfs4_state_protect() 423 is_ds_only_client(struct nfs_client *clp) in is_ds_only_client() argument 429 is_ds_client(struct nfs_client *clp) in is_ds_client() argument [all …]
|
| A D | delegation.h | 55 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle); 57 void nfs_expire_all_delegations(struct nfs_client *clp); 58 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags); 59 void nfs_expire_unreferenced_delegations(struct nfs_client *clp); 60 int nfs_client_return_marked_delegations(struct nfs_client *clp); 61 int nfs_delegations_present(struct nfs_client *clp); 65 void nfs_delegation_mark_reclaim(struct nfs_client *clp); 66 void nfs_delegation_reap_unclaimed(struct nfs_client *clp); 68 void nfs_mark_test_expired_all_delegations(struct nfs_client *clp); 69 void nfs_test_expired_all_delegations(struct nfs_client *clp); [all …]
|
| A D | nfs4session.c | 571 session->clp = clp; in nfs4_alloc_session() 586 cred = nfs4_get_clid_cred(session->clp); in nfs4_destroy_session() 616 if (clp->cl_cons_state < NFS_CS_READY) in nfs41_check_session_ready() 624 if (!nfs4_has_session(clp)) in nfs4_init_session() 628 return nfs41_check_session_ready(clp); in nfs4_init_session() 636 spin_lock(&clp->cl_lock); in nfs4_init_ds_session() 642 clp->cl_lease_time = lease_time; in nfs4_init_ds_session() 643 clp->cl_last_renewal = jiffies; in nfs4_init_ds_session() 645 spin_unlock(&clp->cl_lock); in nfs4_init_ds_session() 647 ret = nfs41_check_session_ready(clp); in nfs4_init_ds_session() [all …]
|
| A D | pnfs_nfs.c | 820 if (!IS_ERR(clp)) { in _nfs4_pnfs_v3_ds_connect() 823 .net = clp->cl_net, in _nfs4_pnfs_v3_ds_connect() 844 if (IS_ERR(clp)) in _nfs4_pnfs_v3_ds_connect() 850 if (IS_ERR(clp)) { in _nfs4_pnfs_v3_ds_connect() 851 status = PTR_ERR(clp); in _nfs4_pnfs_v3_ds_connect() 880 if (!IS_ERR(clp) && clp->cl_mvops->session_trunk) { in _nfs4_pnfs_v4_ds_connect() 883 .net = clp->cl_net, in _nfs4_pnfs_v4_ds_connect() 890 .clp = clp, in _nfs4_pnfs_v4_ds_connect() 956 if (IS_ERR(clp)) in _nfs4_pnfs_v4_ds_connect() 962 nfs_put_client(clp); in _nfs4_pnfs_v4_ds_connect() [all …]
|
| A D | sysfs.c | 197 struct nfs_netns_client *clp; in nfs_netns_sysfs_setup() local 200 if (clp) { in nfs_netns_sysfs_setup() 201 netns->nfs_client = clp; in nfs_netns_sysfs_setup() 202 kobject_uevent(&clp->kobject, KOBJ_ADD); in nfs_netns_sysfs_setup() 208 struct nfs_netns_client *clp = netns->nfs_client; in nfs_netns_sysfs_destroy() local 210 if (clp) { in nfs_netns_sysfs_destroy() 211 kobject_uevent(&clp->kobject, KOBJ_REMOVE); in nfs_netns_sysfs_destroy() 212 kobject_del(&clp->kobject); in nfs_netns_sysfs_destroy() 213 kobject_put(&clp->kobject); in nfs_netns_sysfs_destroy() 214 kobject_del(&clp->nfs_net_kobj); in nfs_netns_sysfs_destroy() [all …]
|
| A D | nfs4proc.c | 862 clp = session->clp; in nfs41_sequence_process() 4080 .clp = clp, in test_fs_location_for_trunking() 8744 .clp = clp, in nfs4_proc_bind_conn_to_session() 9270 .clp = clp, in nfs4_proc_get_lease_time() 9469 .clp = clp, in nfs4_proc_create_session() 9537 struct nfs_client *clp = calldata->clp; in nfs41_sequence_release() local 9560 struct nfs_client *clp = calldata->clp; in nfs41_sequence_call_done() local 9582 struct nfs_client *clp = calldata->clp; in nfs41_sequence_prepare() local 9628 calldata->clp = clp; in _nfs41_proc_sequence() 9723 struct nfs_client *clp = calldata->clp; in nfs4_reclaim_complete_done() local [all …]
|
| A D | pnfs_dev.c | 80 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid() argument 86 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid() 229 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_delete_deviceid() argument 235 d = _lookup_deviceid(ld, clp, id, nfs4_deviceid_hash(id)); in nfs4_delete_deviceid() 328 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client() argument 336 if (d->nfs_client == clp && atomic_read(&d->ref)) { in _deviceid_purge_client() 355 nfs4_deviceid_purge_client(const struct nfs_client *clp) in nfs4_deviceid_purge_client() argument 359 if (!(clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_MDS)) in nfs4_deviceid_purge_client() 362 _deviceid_purge_client(clp, h); in nfs4_deviceid_purge_client() 369 nfs4_deviceid_mark_client_invalid(struct nfs_client *clp) in nfs4_deviceid_mark_client_invalid() argument [all …]
|
| A D | fscache.c | 46 static bool nfs_fscache_get_client_key(struct nfs_client *clp, in nfs_fscache_get_client_key() argument 49 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) &clp->cl_addr; in nfs_fscache_get_client_key() 50 const struct sockaddr_in *sin = (struct sockaddr_in *) &clp->cl_addr; in nfs_fscache_get_client_key() 54 clp->rpc_ops->version, in nfs_fscache_get_client_key() 55 clp->cl_minorversion, in nfs_fscache_get_client_key() 56 clp->cl_addr.ss_family); in nfs_fscache_get_client_key() 58 switch (clp->cl_addr.ss_family) { in nfs_fscache_get_client_key() 76 clp->cl_addr.ss_family); in nfs_fscache_get_client_key()
|
| /linux/fs/nfsd/ |
| A D | nfs4callback.c | 1036 .net = clp->net, in setup_callback_client() 1086 clp->cl_cb_cred = cred; in setup_callback_client() 1121 nfsd4_mark_cb_down(clp); in nfsd4_cb_probe_done() 1147 trace_nfsd_cb_probe(clp); in nfsd4_probe_callback() 1162 spin_lock(&clp->cl_lock); in nfsd4_change_callback() 1434 if (clp->cl_cb_client) { in nfsd4_process_cb_update() 1439 clp->cl_cb_cred = NULL; in nfsd4_process_cb_update() 1448 spin_lock(&clp->cl_lock); in nfsd4_process_cb_update() 1467 nfsd4_mark_cb_down(clp); in nfsd4_process_cb_update() 1483 trace_nfsd_cb_start(clp); in nfsd4_run_cb_work() [all …]
|
| A D | nfs4state.c | 2692 if (!clp) in client_info_show() 2971 if (!clp) in client_states_open() 3041 if (!clp) in client_ctl_write() 4272 cstate->clp = clp; in nfsd4_sequence() 4307 cstate->clp = clp; in nfsd4_sequence() 4391 if (clp) in nfsd4_destroy_clientid() 4401 struct nfs4_client *clp = cstate->clp; in nfsd4_reclaim_complete() local 4922 struct nfs4_client *clp = cstate->clp; in find_or_alloc_open_stateowner() local 5407 clp = cstate->clp; in nfsd4_process_open1() 6233 clp = cstate->clp; in nfsd4_renew() [all …]
|
| A D | nfs4recover.c | 189 crp->cr_clp = clp; in __nfsd4_create_reclaim_record_grace() 706 crp->cr_clp = clp; in nfsd4_check_legacy_client() 1133 clp->cl_name.len); in nfsd4_cld_create() 1175 clp->cl_name.len); in nfsd4_cld_create_v2() 1236 clp->cl_name.len); in nfsd4_cld_remove() 1279 clp->cl_name.len); in nfsd4_cld_check_v0() 1338 crp->cr_clp = clp; in nfsd4_cld_check() 1411 crp->cr_clp = clp; in nfsd4_cld_check_v2() 1931 hexid = bin_to_hex_dup(clp->cl_name.data, clp->cl_name.len); in nfsd4_umh_cltrack_create() 1958 hexid = bin_to_hex_dup(clp->cl_name.data, clp->cl_name.len); in nfsd4_umh_cltrack_remove() [all …]
|
| A D | trace.h | 760 TP_ARGS(clp, cs), 790 TP_ARGS(clp, cs)) 989 TP_ARGS(clp), 996 __string_len(name, clp->cl_name.data, clp->cl_name.len) 1018 TP_ARGS(clp)) 1420 TP_ARGS(clp, conn), 1442 TP_ARGS(clp), 1463 TP_ARGS(clp), 1485 TP_ARGS(clp)) 1580 TP_ARGS(clp, cb), [all …]
|
| A D | nfs4layouts.c | 181 spin_lock(&clp->cl_lock); in nfsd4_free_layout_stateid() 183 spin_unlock(&clp->cl_lock); in nfsd4_free_layout_stateid() 230 struct nfs4_client *clp = cstate->clp; in nfsd4_alloc_layout_stateid() local 266 spin_lock(&clp->cl_lock); in nfsd4_alloc_layout_stateid() 269 spin_unlock(&clp->cl_lock); in nfsd4_alloc_layout_stateid() 552 struct nfs4_client *clp = cstate->clp; in nfsd4_return_client_layouts() local 558 spin_lock(&clp->cl_lock); in nfsd4_return_client_layouts() 576 spin_unlock(&clp->cl_lock); in nfsd4_return_client_layouts() 597 spin_lock(&clp->cl_lock); in nfsd4_return_all_client_layouts() 600 spin_unlock(&clp->cl_lock); in nfsd4_return_all_client_layouts() [all …]
|
| A D | blocklayout.c | 167 struct nfs4_client *clp, in nfsd4_block_proc_getdeviceinfo() argument 217 static u64 nfsd4_scsi_pr_key(struct nfs4_client *clp) in nfsd4_scsi_pr_key() argument 219 return ((u64)clp->cl_clientid.cl_boot << 32) | clp->cl_clientid.cl_id; in nfsd4_scsi_pr_key() 249 struct nfs4_client *clp, in nfsd4_block_get_device_info_scsi() argument 266 b->scsi.pr_key = nfsd4_scsi_pr_key(clp); in nfsd4_block_get_device_info_scsi() 306 struct nfs4_client *clp, in nfsd4_scsi_proc_getdeviceinfo() argument 311 return nfserrno(nfsd4_block_get_device_info_scsi(sb, clp, gdp)); in nfsd4_scsi_proc_getdeviceinfo() 331 struct nfs4_client *clp = ls->ls_stid.sc_client; in nfsd4_scsi_fence_client() local 335 nfsd4_scsi_pr_key(clp), 0, true); in nfsd4_scsi_fence_client()
|
| A D | state.h | 737 extern void nfsd4_probe_callback(struct nfs4_client *clp); 738 extern void nfsd4_probe_callback_sync(struct nfs4_client *clp); 740 extern void nfsd4_init_cb(struct nfsd4_callback *cb, struct nfs4_client *clp, 744 extern void nfsd4_shutdown_copy(struct nfs4_client *clp); 753 struct nfs4_client *clp, 775 extern void nfsd4_client_record_create(struct nfs4_client *clp); 776 extern void nfsd4_client_record_remove(struct nfs4_client *clp); 777 extern int nfsd4_client_record_check(struct nfs4_client *clp); 780 static inline bool try_to_expire_client(struct nfs4_client *clp) in try_to_expire_client() argument 782 cmpxchg(&clp->cl_state, NFSD4_COURTESY, NFSD4_EXPIRABLE); in try_to_expire_client() [all …]
|
| A D | pnfs.h | 27 struct nfs4_client *clp, 74 void nfsd4_return_all_file_layouts(struct nfs4_client *clp, 88 static inline void nfsd4_return_all_client_layouts(struct nfs4_client *clp) in nfsd4_return_all_client_layouts() argument 91 static inline void nfsd4_return_all_file_layouts(struct nfs4_client *clp, in nfsd4_return_all_file_layouts() argument
|
| /linux/drivers/clk/ |
| A D | clk-loongson2.c | 297 clp = devm_kzalloc(dev, struct_size(clp, clk_data.hws, clks_num), in loongson2_clk_probe() 299 if (!clp) in loongson2_clk_probe() 303 if (IS_ERR(clp->base)) in loongson2_clk_probe() 304 return PTR_ERR(clp->base); in loongson2_clk_probe() 306 spin_lock_init(&clp->clk_lock); in loongson2_clk_probe() 307 clp->clk_data.num = clks_num + 1; in loongson2_clk_probe() 308 clp->dev = dev; in loongson2_clk_probe() 324 clp->base + p->reg_offset, in loongson2_clk_probe() 327 &clp->clk_lock); in loongson2_clk_probe() 333 &clp->clk_lock); in loongson2_clk_probe() [all …]
|