Home
last modified time | relevance | path

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

12

/freebsd-13.1/sys/rpc/
H A Dtypes.h69 #define mem_alloc(bsize) malloc(bsize, M_RPC, M_WAITOK|M_ZERO) macro
72 #define mem_alloc(bsize) calloc(1, bsize) macro
H A 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()
H A Drpc_callmsg.c130 mem_alloc(oa->oa_length); in xdr_callmsg()
166 mem_alloc(oa->oa_length); in xdr_callmsg()
H A Dclnt_rc.c91 cl = mem_alloc(sizeof (CLIENT)); in clnt_reconnect_create()
92 rc = mem_alloc(sizeof (*rc)); in clnt_reconnect_create()
518 rc->rc_tlscertname = mem_alloc(slen); in clnt_reconnect_control()
/freebsd-13.1/sys/kgssapi/
H A 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-13.1/lib/libc/rpc/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A Drpc_callmsg.c135 mem_alloc(oa->oa_length); in xdr_callmsg()
171 mem_alloc(oa->oa_length); in xdr_callmsg()
H A Dclnt_dg.c188 dg_fd_locks = (int *) mem_alloc(fd_allocsz); in clnt_dg_create()
197 dg_cv = (cond_t *) mem_alloc(cv_allocsz); in clnt_dg_create()
236 if ((cl = mem_alloc(sizeof (CLIENT))) == NULL) in clnt_dg_create()
243 cu = mem_alloc(sizeof (*cu) + sendsz + recvsz); in clnt_dg_create()
H A Dsvc_auth.c213 asp = mem_alloc(sizeof (*asp)); in svc_auth_reg()
H A Dclnt_vc.c184 cl = (CLIENT *)mem_alloc(sizeof (*cl)); in clnt_vc_create()
185 ct = (struct ct_data *)mem_alloc(sizeof (*ct)); in clnt_vc_create()
202 vc_fd_locks = (int *) mem_alloc(fd_allocsz); in clnt_vc_create()
212 vc_cv = (cond_t *) mem_alloc(cv_allocsz); in clnt_vc_create()
/freebsd-13.1/sys/xdr/
H A Dxdr_reference.c79 *pp = loc = (caddr_t) mem_alloc(size); in xdr_reference()
H A Dxdr_array.c97 *addrp = target = mem_alloc(nodesize); in xdr_array()
/freebsd-13.1/lib/libc/xdr/
H A Dxdr_reference.c87 *pp = loc = (caddr_t) mem_alloc(size); in xdr_reference()
H A Dxdr_array.c105 *addrp = target = mem_alloc(nodesize); in xdr_array()
/freebsd-13.1/sys/rpc/rpcsec_gss/
H A Dsvc_rpcsec_gss.c209 …svc_rpc_gss_client_hash = mem_alloc(sizeof(struct svc_rpc_gss_client_list) * svc_rpc_gss_client_ha… in svc_rpc_gss_init()
223 scb = mem_alloc(sizeof(struct svc_rpc_gss_callback)); in rpc_gss_set_callback()
300 sname = mem_alloc(sizeof(*sname)); in rpc_gss_set_svc_name()
371 buf.value = mem_alloc(namelen); in rpc_gss_get_principal_name()
416 result = mem_alloc(sizeof(int) + buf.length); in rpc_gss_get_principal_name()
576 client = mem_alloc(sizeof(struct svc_rpc_gss_client)); in svc_rpc_gss_create_client()
990 mem_alloc(sizeof(*client->cl_rawcred.client_principal) in svc_rpc_gss_accept_sec_context()
/freebsd-13.1/lib/librpcsec_gss/
H A 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()
H A 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-13.1/sys/arm64/include/
H A Dbus_dma_impl.h65 int (*mem_alloc)(bus_dma_tag_t dmat, void** vaddr, int flags, member
/freebsd-13.1/sys/riscv/include/
H A Dbus_dma_impl.h62 int (*mem_alloc)(bus_dma_tag_t dmat, void** vaddr, int flags, member
/freebsd-13.1/sys/x86/include/
H A Dbusdma_impl.h67 int (*mem_alloc)(bus_dma_tag_t dmat, void** vaddr, int flags, member

12