/net/sunrpc/ |
D | svc.c | 38 static void svc_unregister(const struct svc_serv *serv, struct net *net); 370 struct svc_pool *svc_pool_for_cpu(struct svc_serv *serv) in svc_pool_for_cpu() argument 376 if (serv->sv_nrpools <= 1) in svc_pool_for_cpu() 377 return serv->sv_pools; in svc_pool_for_cpu() 388 return &serv->sv_pools[pidx % serv->sv_nrpools]; in svc_pool_for_cpu() 391 int svc_rpcb_setup(struct svc_serv *serv, struct net *net) in svc_rpcb_setup() argument 400 svc_unregister(serv, net); in svc_rpcb_setup() 405 void svc_rpcb_cleanup(struct svc_serv *serv, struct net *net) in svc_rpcb_cleanup() argument 407 svc_unregister(serv, net); in svc_rpcb_cleanup() 412 static int svc_uses_rpcbind(struct svc_serv *serv) in svc_uses_rpcbind() argument [all …]
|
D | svc_xprt.c | 196 struct svc_xprt *xprt, struct svc_serv *serv) in svc_xprt_init() argument 202 xprt->xpt_server = serv; in svc_xprt_init() 216 struct svc_serv *serv, in __svc_xpo_create() argument 253 xprt = xcl->xcl_ops->xpo_create(serv, net, sap, len, flags); in __svc_xpo_create() 255 trace_svc_xprt_create_err(serv->sv_program->pg_name, in __svc_xpo_create() 288 void svc_add_new_perm_xprt(struct svc_serv *serv, struct svc_xprt *new) in svc_add_new_perm_xprt() argument 291 spin_lock_bh(&serv->sv_lock); in svc_add_new_perm_xprt() 292 list_add(&new->xpt_list, &serv->sv_permsocks); in svc_add_new_perm_xprt() 293 spin_unlock_bh(&serv->sv_lock); in svc_add_new_perm_xprt() 297 static int _svc_xprt_create(struct svc_serv *serv, const char *xprt_name, in _svc_xprt_create() argument [all …]
|
D | svcsock.c | 566 struct svc_serv *serv = svsk->sk_xprt.xpt_server; in svc_udp_recvfrom() local 591 svc_sock_setbufsize(svsk, serv->sv_nrthreads + 3); in svc_udp_recvfrom() 650 if (serv->sv_stats) in svc_udp_recvfrom() 651 serv->sv_stats->netudpcnt++; in svc_udp_recvfrom() 742 struct svc_serv *serv = xprt->xpt_server; in svc_udp_has_wspace() local 750 required = atomic_read(&svsk->sk_xprt.xpt_reserved) + serv->sv_max_mesg; in svc_udp_has_wspace() 767 static struct svc_xprt *svc_udp_create(struct svc_serv *serv, in svc_udp_create() argument 772 return svc_create_socket(serv, IPPROTO_UDP, net, sa, salen, flags); in svc_udp_create() 796 static void svc_udp_init(struct svc_sock *svsk, struct svc_serv *serv) in svc_udp_init() argument 799 &svsk->sk_xprt, serv); in svc_udp_init() [all …]
|
/net/caif/ |
D | cfrfml.c | 17 #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 …]
|
D | cfctrl.c | 17 #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 …]
|
D | cfcnfg.c | 64 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()
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_transport.c | 66 static struct svcxprt_rdma *svc_rdma_create_xprt(struct svc_serv *serv, 68 static struct svc_xprt *svc_rdma_create(struct svc_serv *serv, 125 static struct svcxprt_rdma *svc_rdma_create_xprt(struct svc_serv *serv, in svc_rdma_create_xprt() argument 134 svc_xprt_init(net, &svc_rdma_class, &cma_xprt->sc_xprt, serv); in svc_rdma_create_xprt() 296 static struct svc_xprt *svc_rdma_create(struct svc_serv *serv, in svc_rdma_create() argument 307 cma_xprt = svc_rdma_create_xprt(serv, net, NUMA_NO_NODE); in svc_rdma_create()
|