Home
last modified time | relevance | path

Searched refs:serv (Results 1 – 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/fs/nfs/
Dcallback.c35 struct svc_serv *serv; member
42 static int nfs4_callback_up_net(struct svc_serv *serv, struct net *net) in nfs4_callback_up_net() argument
48 ret = svc_create_xprt(serv, "tcp", net, PF_INET, in nfs4_callback_up_net()
57 ret = svc_create_xprt(serv, "tcp", net, PF_INET6, in nfs4_callback_up_net()
108 struct svc_serv *serv = rqstp->rq_server; in nfs41_callback_svc() local
120 prepare_to_wait(&serv->sv_cb_waitq, &wq, TASK_INTERRUPTIBLE); in nfs41_callback_svc()
121 spin_lock_bh(&serv->sv_cb_lock); in nfs41_callback_svc()
122 if (!list_empty(&serv->sv_cb_list)) { in nfs41_callback_svc()
123 req = list_first_entry(&serv->sv_cb_list, in nfs41_callback_svc()
126 spin_unlock_bh(&serv->sv_cb_lock); in nfs41_callback_svc()
[all …]
/kernel/linux/linux-5.10/net/sunrpc/
Dsvc.c36 static void svc_unregister(const struct svc_serv *serv, struct net *net);
38 #define svc_serv_is_pooled(serv) ((serv)->sv_ops->svo_function) argument
336 svc_pool_for_cpu(struct svc_serv *serv, int cpu) in svc_pool_for_cpu() argument
346 if (svc_serv_is_pooled(serv)) { in svc_pool_for_cpu()
356 return &serv->sv_pools[pidx % serv->sv_nrpools]; in svc_pool_for_cpu()
359 int svc_rpcb_setup(struct svc_serv *serv, struct net *net) in svc_rpcb_setup() argument
368 svc_unregister(serv, net); in svc_rpcb_setup()
373 void svc_rpcb_cleanup(struct svc_serv *serv, struct net *net) in svc_rpcb_cleanup() argument
375 svc_unregister(serv, net); in svc_rpcb_cleanup()
380 static int svc_uses_rpcbind(struct svc_serv *serv) in svc_uses_rpcbind() argument
[all …]
Dsvc_xprt.c172 struct svc_xprt *xprt, struct svc_serv *serv) in svc_xprt_init() argument
178 xprt->xpt_server = serv; in svc_xprt_init()
192 struct svc_serv *serv, in __svc_xpo_create() argument
229 xprt = xcl->xcl_ops->xpo_create(serv, net, sap, len, flags); in __svc_xpo_create()
231 trace_svc_xprt_create_err(serv->sv_program->pg_name, in __svc_xpo_create()
261 void svc_add_new_perm_xprt(struct svc_serv *serv, struct svc_xprt *new) in svc_add_new_perm_xprt() argument
264 spin_lock_bh(&serv->sv_lock); in svc_add_new_perm_xprt()
265 list_add(&new->xpt_list, &serv->sv_permsocks); in svc_add_new_perm_xprt()
266 spin_unlock_bh(&serv->sv_lock); in svc_add_new_perm_xprt()
270 static int _svc_create_xprt(struct svc_serv *serv, const char *xprt_name, in _svc_create_xprt() argument
[all …]
Dsvcsock.c435 struct svc_serv *serv = svsk->sk_xprt.xpt_server; in svc_udp_recvfrom() local
460 svc_sock_setbufsize(svsk, serv->sv_nrthreads + 3); in svc_udp_recvfrom()
519 if (serv->sv_stats) in svc_udp_recvfrom()
520 serv->sv_stats->netudpcnt++; in svc_udp_recvfrom()
601 struct svc_serv *serv = xprt->xpt_server; in svc_udp_has_wspace() local
609 required = atomic_read(&svsk->sk_xprt.xpt_reserved) + serv->sv_max_mesg; in svc_udp_has_wspace()
626 static struct svc_xprt *svc_udp_create(struct svc_serv *serv, in svc_udp_create() argument
631 return svc_create_socket(serv, IPPROTO_UDP, net, sa, salen, flags); in svc_udp_create()
656 static void svc_udp_init(struct svc_sock *svsk, struct svc_serv *serv) in svc_udp_init() argument
659 &svsk->sk_xprt, serv); in svc_udp_init()
[all …]
/kernel/linux/linux-5.10/fs/lockd/
Dsvc.c190 static int create_lockd_listener(struct svc_serv *serv, const char *name, in create_lockd_listener() argument
197 xprt = svc_find_xprt(serv, name, net, family, 0); in create_lockd_listener()
199 return svc_create_xprt(serv, name, net, family, port, in create_lockd_listener()
205 static int create_lockd_family(struct svc_serv *serv, struct net *net, in create_lockd_family() argument
210 err = create_lockd_listener(serv, "udp", net, family, nlm_udpport, in create_lockd_family()
215 return create_lockd_listener(serv, "tcp", net, family, nlm_tcpport, in create_lockd_family()
229 static int make_socks(struct svc_serv *serv, struct net *net, in make_socks() argument
235 err = create_lockd_family(serv, net, PF_INET, cred); in make_socks()
239 err = create_lockd_family(serv, net, PF_INET6, cred); in make_socks()
250 svc_shutdown_net(serv, net); in make_socks()
[all …]
/kernel/linux/linux-5.10/net/caif/
Dcfrfml.c17 #define container_obj(layr) container_of(layr, struct cfrfml, serv.layer)
25 struct cfsrvl serv; member
54 cfsrvl_init(&this->serv, channel_id, dev_info, false); in cfrfml_create()
55 this->serv.release = cfrfml_release; in cfrfml_create()
56 this->serv.layer.receive = cfrfml_receive; in cfrfml_create()
57 this->serv.layer.transmit = cfrfml_transmit; in cfrfml_create()
65 snprintf(this->serv.layer.name, CAIF_LAYER_NAME_SZ, in cfrfml_create()
68 return &this->serv.layer; in cfrfml_create()
167 err = rfml->serv.layer.up->receive(rfml->serv.layer.up, pkt); in cfrfml_receive()
184 rfml->serv.dev_info.id); in cfrfml_receive()
[all …]
Dcfctrl.c17 #define container_obj(layr) container_of(layr, struct cfctrl, serv.layer)
42 caif_assert(offsetof(struct cfctrl, serv.layer) == 0); in cfctrl_create()
45 cfsrvl_init(&this->serv, 0, &dev_info, false); in cfctrl_create()
48 this->serv.layer.receive = cfctrl_recv; in cfctrl_create()
49 sprintf(this->serv.layer.name, "ctrl"); in cfctrl_create()
50 this->serv.layer.ctrlcmd = cfctrl_ctrlcmd; in cfctrl_create()
57 return &this->serv.layer; in cfctrl_create()
172 info->channel_id = cfctrl->serv.layer.id; in init_info()
173 info->dev_info = &cfctrl->serv.dev_info; in init_info()
180 struct cflayer *dn = cfctrl->serv.layer.dn; in cfctrl_enum_req()
[all …]
Dcfcnfg.c64 enum cfctrl_srv serv, u8 phyid,
372 cfcnfg_linkup_rsp(struct cflayer *layer, u8 channel_id, enum cfctrl_srv serv, in cfcnfg_linkup_rsp() argument
412 switch (serv) { in cfcnfg_linkup_rsp()
/kernel/liteos_a/testsuites/unittest/net/netdb/full/
Dnet_netdb_test_010.cpp37 char host[256], serv[256]; in NameInfoTest() local
42 …t ret = getnameinfo((struct sockaddr*)&addr, sizeof addr, host, sizeof host, serv, sizeof serv, 0); in NameInfoTest()
/kernel/linux/linux-5.10/include/linux/sunrpc/
Dsvc.h122 static inline void svc_get(struct svc_serv *serv) in svc_get() argument
124 serv->sv_nrthreads++; in svc_get()
492 int svc_rpcb_setup(struct svc_serv *serv, struct net *net);
493 void svc_rpcb_cleanup(struct svc_serv *serv, struct net *net);
494 int svc_bind(struct svc_serv *serv, struct net *net);
497 struct svc_rqst *svc_rqst_alloc(struct svc_serv *serv,
499 struct svc_rqst *svc_prepare_thread(struct svc_serv *serv,
509 int svc_pool_stats_open(struct svc_serv *serv, struct file *file);
520 struct svc_pool * svc_pool_for_cpu(struct svc_serv *serv, int cpu);
Dbc_xprt.h56 static inline void set_bc_enabled(struct svc_serv *serv) in set_bc_enabled() argument
58 serv->sv_bc_enabled = true; in set_bc_enabled()
77 static inline void set_bc_enabled(struct svc_serv *serv) in set_bc_enabled() argument
Dsvcsock.h59 void svc_sock_update_bufs(struct svc_serv *serv);
61 int svc_addsock(struct svc_serv *serv, const int fd,
66 struct svc_xprt *svc_sock_create(struct svc_serv *serv, int prot);
Dsvc_xprt.h140 struct svc_xprt *svc_find_xprt(struct svc_serv *serv, const char *xcl_name,
143 int svc_xprt_names(struct svc_serv *serv, char *buf, const int buflen);
144 void svc_add_new_perm_xprt(struct svc_serv *serv, struct svc_xprt *xprt);
/kernel/linux/linux-5.10/include/net/caif/
Dcfctrl.h44 enum cfctrl_srv serv, u8 phyid,
102 struct cfsrvl serv; member
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/
Dvhci_driver.c430 char serv[NI_MAXSERV] = "unknown port"; in usbip_vhci_imported_device_dump() local
438 ret = read_record(idev->port, host, sizeof(host), serv, sizeof(serv), in usbip_vhci_imported_device_dump()
456 host, serv, remote_busid); in usbip_vhci_imported_device_dump()
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
Dsvc_rdma_transport.c66 static struct svcxprt_rdma *svc_rdma_create_xprt(struct svc_serv *serv,
68 static struct svc_xprt *svc_rdma_create(struct svc_serv *serv,
128 static struct svcxprt_rdma *svc_rdma_create_xprt(struct svc_serv *serv, in svc_rdma_create_xprt() argument
137 svc_xprt_init(net, &svc_rdma_class, &cma_xprt->sc_xprt, serv); in svc_rdma_create_xprt()
298 static struct svc_xprt *svc_rdma_create(struct svc_serv *serv, in svc_rdma_create() argument
309 cma_xprt = svc_rdma_create_xprt(serv, net); in svc_rdma_create()
/kernel/liteos_m/kal/libc/newlib/porting/include/
Dnetdb.h105 socklen_t hostlen, char * __restrict serv, socklen_t servlen, int flags);
/kernel/linux/linux-5.10/tools/perf/Documentation/
Dexamples.txt97 0.90% git-update-serv /lib64/libc-2.5.so
98 0.73% git-update-serv /lib64/ld-2.5.so
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
Dmptcp_connect.c91 char *serv, socklen_t servlen) in xgetnameinfo() argument
94 int err = getnameinfo(addr, addrlen, host, hostlen, serv, servlen, in xgetnameinfo()
/kernel/linux/linux-5.10/fs/nfsd/
Dnfssvc.c505 static void nfsd_last_thread(struct svc_serv *serv, struct net *net) in nfsd_last_thread() argument
525 svc_rpcb_cleanup(serv, net); in nfsd_last_thread()
/kernel/linux/patches/linux-5.10/hispark_taurus_patch/
Dhispark_taurus.patch59255 + struct svc_xprt*(*bc_get_xprt)(struct svc_serv *serv, struct net *net);
59817 bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req,
59830 + s_xprt = req->rq_xprt->ops->bc_get_xprt(serv, net);
59838 rqstp->rq_server = serv;
59839 @@ -1606,6 +1613,12 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req,
59860 +struct svc_xprt *xprt_rdma_bc_get_xprt(struct svc_serv *serv, struct net *net)
59862 + return svc_find_xprt(serv, "rdma-bc", net, AF_UNSPEC, 0);
/kernel/linux/patches/linux-4.19/hispark_taurus_patch/
Dhispark_taurus.patch363652 int (*bc_up)(struct svc_serv *serv, struct net *net);
363653 + struct svc_xprt*(*bc_get_xprt)(struct svc_serv *serv, struct net *net);
364472 bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req,
364485 + s_xprt = req->rq_xprt->ops->bc_get_xprt(serv, net);
364493 rqstp->rq_server = serv;
364494 @@ -1497,13 +1504,11 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req,
364511 @@ -1520,6 +1525,12 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req,
364528 @@ -134,6 +134,11 @@ int xprt_rdma_bc_up(struct svc_serv *serv, struct net *net)
364532 +struct svc_xprt *xprt_rdma_bc_get_xprt(struct svc_serv *serv, struct net *net)
364534 + return svc_find_xprt(serv, "rdma-bc", net, AF_UNSPEC, 0);
[all …]