Home
last modified time | relevance | path

Searched refs:mem_alloc (Results 1 – 25 of 45) sorted by relevance

12

/freebsd-12-stable/sys/rpc/
Dtypes.h69 #define mem_alloc(bsize) malloc(bsize, M_RPC, M_WAITOK|M_ZERO) macro
72 #define mem_alloc(bsize) calloc(1, bsize) macro
Dauth_unix.c186 auth = mem_alloc(sizeof(*auth)); in authunix_create()
187 au = mem_alloc(sizeof(*au)); in authunix_create()
209 au->au_origcred.oa_base = mem_alloc((u_int) len); in authunix_create()
Drpc_callmsg.c130 mem_alloc(oa->oa_length); in xdr_callmsg()
166 mem_alloc(oa->oa_length); in xdr_callmsg()
/freebsd-12-stable/lib/libc/rpc/
Dauth_unix.c109 auth = mem_alloc(sizeof(*auth)); in authunix_create()
116 au = mem_alloc(sizeof(*au)); in authunix_create()
149 au->au_origcred.oa_base = mem_alloc((u_int) len); in authunix_create()
151 if ((au->au_origcred.oa_base = mem_alloc((u_int) len)) == NULL) { in authunix_create()
Dsvc_dg.c133 su = mem_alloc(sizeof (*su)); in svc_dg_create()
137 if ((rpc_buffer(xprt) = mem_alloc(su->su_iosz)) == NULL) in svc_dg_create()
153 xprt->xp_ltaddr.buf = mem_alloc(sizeof (struct sockaddr_storage)); in svc_dg_create()
164 su->su_srcaddr.buf = mem_alloc(sizeof (ss)); in svc_dg_create()
273 xprt->xp_rtaddr.buf = mem_alloc(alen); in svc_dg_recv()
459 (type *) mem_alloc((sizeof (type) * (size)))
615 newbuf = mem_alloc(su->su_iosz); in cache_set()
Dsvc_vc.c138 r = mem_alloc(sizeof(*r)); in svc_vc_create()
164 xprt->xp_ltaddr.buf = mem_alloc((size_t)sslocal.ss_len); in svc_vc_create()
205 ret->xp_ltaddr.buf = mem_alloc((size_t)ss.ss_len); in svc_fd_create()
218 ret->xp_rtaddr.buf = mem_alloc((size_t)ss.ss_len); in svc_fd_create()
255 cd = mem_alloc(sizeof(struct cf_conn)); in makefd_xprt()
316 newxprt->xp_rtaddr.buf = mem_alloc(len); in rendezvous_request()
357 newxprt->xp_ltaddr.buf = mem_alloc((size_t)sslocal.ss_len); in rendezvous_request()
Dsvc_auth_des.c331 entry->rname = (char *)mem_alloc((u_int)strlen(cred->adc_fullname.name) in _svcauth_des()
363 mem_alloc(sizeof(struct cache_entry) * AUTHDES_CACHESZ); in cache_init()
367 authdes_lru = (short *)mem_alloc(sizeof(short) * AUTHDES_CACHESZ); in cache_init()
477 cred = (struct bsdcred *)mem_alloc(sizeof(struct bsdcred)); in authdes_getucred()
Dsvc.c113 mem_alloc((FD_SETSIZE + 1) * sizeof(SVCXPRT *)); in xprt_register()
211 s = mem_alloc(sizeof (struct svc_callout)); in svc_reg()
291 s = mem_alloc(sizeof(struct svc_callout)); in svc_register()
541 xprt = mem_alloc(sizeof(SVCXPRT)); in svc_xprt_alloc()
545 ext = mem_alloc(sizeof(SVCXPRT_EXT)); in svc_xprt_alloc()
Dauth_des.c68 #define ALLOC(object_type) (object_type *) mem_alloc(sizeof(object_type))
186 ad->ad_fullname = (char *)mem_alloc(ad->ad_fullnamelen + 1); in authdes_pk_seccreate()
188 ad->ad_servername = (char *)mem_alloc(ad->ad_servernamelen + 1); in authdes_pk_seccreate()
195 ad->ad_timehost = (char *)mem_alloc(strlen(timehost) + 1); in authdes_pk_seccreate()
Drpc_callmsg.c135 mem_alloc(oa->oa_length); in xdr_callmsg()
171 mem_alloc(oa->oa_length); in xdr_callmsg()
Dsvc_auth.c213 asp = mem_alloc(sizeof (*asp)); in svc_auth_reg()
/freebsd-12-stable/sys/kgssapi/
Dgssd_prot.c104 oid = mem_alloc(sizeof(gss_OID_desc)); in xdr_gss_OID()
169 set = mem_alloc(sizeof(gss_OID_set_desc)); in xdr_gss_OID_set()
224 ch = mem_alloc(sizeof(*ch)); in xdr_gss_channel_bindings_t()
/freebsd-12-stable/lib/librpcsec_gss/
Dsvc_rpcsec_gss.c173 scb = mem_alloc(sizeof(struct svc_rpc_gss_callback)); in rpc_gss_set_callback()
260 buf.value = mem_alloc(namelen); in rpc_gss_get_principal_name()
305 result = mem_alloc(sizeof(int) + buf.length); in rpc_gss_get_principal_name()
413 client = mem_alloc(sizeof(struct svc_rpc_gss_client)); in svc_rpc_gss_create_client()
534 if ((bp = (char *) mem_alloc(string_length))) { in gss_oid_to_str()
712 mem_alloc(sizeof(*client->cl_rawcred.client_principal) in svc_rpc_gss_accept_sec_context()
Drpcsec_gss.c166 auth = mem_alloc(sizeof(*auth)); in rpc_gss_seccreate()
172 gd = mem_alloc(sizeof(*gd)); in rpc_gss_seccreate()
291 gd->gd_verf.value = mem_alloc(verf->oa_length); in rpc_gss_validate()
/freebsd-12-stable/sys/xdr/
Dxdr_reference.c79 *pp = loc = (caddr_t) mem_alloc(size); in xdr_reference()
Dxdr_array.c97 *addrp = target = mem_alloc(nodesize); in xdr_array()
/freebsd-12-stable/lib/libc/xdr/
Dxdr_reference.c87 *pp = loc = (caddr_t) mem_alloc(size); in xdr_reference()
Dxdr_array.c105 *addrp = target = mem_alloc(nodesize); in xdr_array()
Dxdr_rec.c179 RECSTREAM *rstrm = mem_alloc(sizeof(RECSTREAM)); in xdrrec_create()
190 rstrm->out_base = mem_alloc(rstrm->sendsize); in xdrrec_create()
197 rstrm->in_base = mem_alloc(recvsize); in xdrrec_create()
/freebsd-12-stable/sys/rpc/rpcsec_gss/
Dsvc_rpcsec_gss.c215 scb = mem_alloc(sizeof(struct svc_rpc_gss_callback)); in rpc_gss_set_callback()
292 sname = mem_alloc(sizeof(*sname)); in rpc_gss_set_svc_name()
363 buf.value = mem_alloc(namelen); in rpc_gss_get_principal_name()
408 result = mem_alloc(sizeof(int) + buf.length); in rpc_gss_get_principal_name()
568 client = mem_alloc(sizeof(struct svc_rpc_gss_client)); in svc_rpc_gss_create_client()
982 mem_alloc(sizeof(*client->cl_rawcred.client_principal) in svc_rpc_gss_accept_sec_context()
Drpcsec_gss.c385 auth = mem_alloc(sizeof(*auth)); in rpc_gss_seccreate_int()
391 gd = mem_alloc(sizeof(*gd)); in rpc_gss_seccreate_int()
560 pr = mem_alloc(sizeof(struct rpc_pending_request)); in rpc_gss_marshal()
651 gd->gd_verf.value = mem_alloc(verf->oa_length); in rpc_gss_validate()
/freebsd-12-stable/sys/x86/include/
Dbusdma_impl.h67 int (*mem_alloc)(bus_dma_tag_t dmat, void** vaddr, int flags, member
/freebsd-12-stable/sys/arm64/include/
Dbus_dma_impl.h64 int (*mem_alloc)(bus_dma_tag_t dmat, void** vaddr, int flags, member
/freebsd-12-stable/sys/riscv/include/
Dbus_dma_impl.h63 int (*mem_alloc)(bus_dma_tag_t dmat, void** vaddr, int flags, member
Dbus_dma.h49 return (tc->impl->mem_alloc(dmat, vaddr, flags, mapp)); in bus_dmamem_alloc()

12