Lines Matching refs:rpc_client
520 struct rpc_sysfs_client *rpc_client; in rpc_sysfs_client_setup() local
527 rpc_client = rpc_sysfs_client_alloc(rpc_sunrpc_client_kobj, in rpc_sysfs_client_setup()
529 if (rpc_client) { in rpc_sysfs_client_setup()
533 clnt->cl_sysfs = rpc_client; in rpc_sysfs_client_setup()
534 rpc_client->clnt = clnt; in rpc_sysfs_client_setup()
535 rpc_client->xprt_switch = xprt_switch; in rpc_sysfs_client_setup()
536 kobject_uevent(&rpc_client->kobject, KOBJ_ADD); in rpc_sysfs_client_setup()
537 ret = sysfs_create_link_nowarn(&rpc_client->kobject, in rpc_sysfs_client_setup()
591 struct rpc_sysfs_client *rpc_client = clnt->cl_sysfs; in rpc_sysfs_client_destroy() local
593 if (rpc_client) { in rpc_sysfs_client_destroy()
596 sysfs_remove_link(&rpc_client->kobject, name); in rpc_sysfs_client_destroy()
597 kobject_uevent(&rpc_client->kobject, KOBJ_REMOVE); in rpc_sysfs_client_destroy()
598 kobject_del(&rpc_client->kobject); in rpc_sysfs_client_destroy()
599 kobject_put(&rpc_client->kobject); in rpc_sysfs_client_destroy()