Home
last modified time | relevance | path

Searched refs:kmflags (Results 1 – 25 of 81) sorted by relevance

1234

/titanic_50/usr/src/uts/common/io/scsi/adapters/smrt/
H A Dsmrt_commands.c70 smrt_contig_alloc(smrt_t *smrt, smrt_dma_t *smdma, size_t sz, int kmflags, in smrt_contig_alloc() argument
76 int (*dma_wait)(caddr_t) = (kmflags == KM_SLEEP) ? DDI_DMA_SLEEP : in smrt_contig_alloc()
79 VERIFY(kmflags == KM_SLEEP || kmflags == KM_NOSLEEP); in smrt_contig_alloc()
153 smrt_command_alloc_impl(smrt_t *smrt, smrt_command_type_t type, int kmflags) in smrt_command_alloc_impl() argument
157 VERIFY(kmflags == KM_SLEEP || kmflags == KM_NOSLEEP); in smrt_command_alloc_impl()
159 if ((smcm = kmem_zalloc(sizeof (*smcm), kmflags)) == NULL) { in smrt_command_alloc_impl()
178 kmflags, (void **)&smcm->smcm_va_cmd, &smcm->smcm_pa_cmd) != in smrt_command_alloc_impl()
205 smrt_command_alloc_preinit(smrt_t *smrt, size_t datasize, int kmflags) in smrt_command_alloc_preinit() argument
210 kmflags)) == NULL) { in smrt_command_alloc_preinit()
223 if (smrt_command_attach_internal(smrt, smcm, datasize, kmflags) != 0) { in smrt_command_alloc_preinit()
[all …]
/titanic_50/usr/src/lib/libfakekernel/common/
H A Dkmem.c42 kmem2umem_flags(int kmflags) in kmem2umem_flags() argument
45 if (kmflags & KM_NOSLEEP) in kmem2umem_flags()
57 kmem_alloc(size_t size, int kmflags) in kmem_alloc() argument
59 return (umem_alloc(size, kmem2umem_flags(kmflags))); in kmem_alloc()
63 kmem_zalloc(size_t size, int kmflags) in kmem_zalloc() argument
65 return (umem_zalloc(size, kmem2umem_flags(kmflags))); in kmem_zalloc()
113 kmem_cache_alloc(kmem_cache_t *kc, int kmflags) in kmem_cache_alloc() argument
116 kmem2umem_flags(kmflags))); in kmem_cache_alloc()
/titanic_50/usr/src/uts/common/inet/sockmods/
H A Dsockmod_sctp.c95 socksctp_constructor(void *buf, void *cdrarg, int kmflags) in socksctp_constructor() argument
101 return (sonode_constructor((void *)so, cdrarg, kmflags)); in socksctp_constructor()
124 int kmflags = (sflags & SOCKET_NOSLEEP) ? KM_NOSLEEP : KM_SLEEP; in socksctp_create() local
141 ss = kmem_cache_alloc(sosctp_sockcache, kmflags); in socksctp_create()
161 (void) sosctp_aid_grow(ss, 1, kmflags); in socksctp_create()
H A Dsockmod_sdp.c78 int kmflags = (sflags & SOCKET_NOSLEEP) ? KM_NOSLEEP : KM_SLEEP; in socksdp_create() local
104 so = kmem_cache_alloc(socket_cache, kmflags); in socksdp_create()
H A Dsocksctp.h92 int kmflags);
103 int kmflags);
/titanic_50/usr/src/uts/common/inet/
H A Dinet_common.c47 inet_minor_create(char *name, dev_t min_dev, dev_t max_dev, int kmflags) in inet_minor_create() argument
49 inet_arena_t *arena = kmem_alloc(sizeof (inet_arena_t), kmflags); in inet_minor_create()
55 1, NULL, NULL, NULL, 1, kmflags | VMC_IDENTIFIER); in inet_minor_create()
/titanic_50/usr/src/uts/common/sys/
H A Dkmem.h57 extern void *kmem_alloc(size_t size, int kmflags);
58 extern void *kmem_zalloc(size_t size, int kmflags);
60 extern void *kmem_alloc_tryhard(size_t size, size_t *alloc_size, int kmflags);
/titanic_50/usr/src/uts/common/io/
H A Dmultidata.c183 mmd_alloc(mblk_t *hdr_mp, mblk_t **mmd_mp, int kmflags) in mmd_alloc() argument
199 if ((buf = kmem_cache_alloc(mmd_cache, kmflags)) == NULL) in mmd_alloc()
267 mmd_constructor(void *buf, void *cdrarg, int kmflags) in mmd_constructor() argument
404 mmd_copy(mblk_t *bp, int kmflags) in mmd_copy() argument
445 n_mmd = mmd_alloc(n_hbuf, &n_bp, kmflags); in mmd_copy()
473 mmd_copy_pattbl(mmd->mmd_pattbl, n_mmd, NULL, kmflags) < 0) { in mmd_copy()
545 n_pd = mmd_addpdesc_int(n_mmd, &n_pdi, NULL, kmflags); in mmd_copy()
548 mmd_copy_pattbl(pd->pd_pattbl, n_mmd, n_pd, kmflags) < 0)) { in mmd_copy()
701 mmd_addpdesc(multidata_t *mmd, pdescinfo_t *pdi, int *err, int kmflags) in mmd_addpdesc() argument
717 return (mmd_addpdesc_int(mmd, pdi, err, kmflags)); in mmd_addpdesc()
[all …]
H A Dstream.c185 dblk_constructor(void *buf, void *cdrarg, int kmflags) in dblk_constructor() argument
197 if ((dbp->db_mblk = kmem_cache_alloc(mblk_cache, kmflags)) == NULL) in dblk_constructor()
200 dbp->db_base = kmem_alloc(msg_size, kmflags); in dblk_constructor()
224 dblk_esb_constructor(void *buf, void *cdrarg, int kmflags) in dblk_esb_constructor() argument
228 if ((dbp->db_mblk = kmem_cache_alloc(mblk_cache, kmflags)) == NULL) in dblk_esb_constructor()
241 bcache_dblk_constructor(void *buf, void *cdrarg, int kmflags) in bcache_dblk_constructor() argument
246 if ((dbp->db_mblk = kmem_cache_alloc(mblk_cache, kmflags)) == NULL) in bcache_dblk_constructor()
249 dbp->db_base = kmem_cache_alloc(bcp->buffer_cache, kmflags); in bcache_dblk_constructor()
304 ftblk_constructor(void *buf, void *cdrarg, int kmflags) in ftblk_constructor() argument
312 fbp->ev[i].stk = kmem_alloc(sizeof (ftstk_t), kmflags); in ftblk_constructor()
[all …]
/titanic_50/usr/src/uts/common/io/cxgbe/shared/
H A Dshared.c71 rxbuf_alloc(kmem_cache_t *cache, int kmflags, uint_t ref_cnt) in rxbuf_alloc() argument
77 rxb = kmem_cache_alloc(cache, kmflags); in rxbuf_alloc()
H A Dshared.h72 struct rxbuf *rxbuf_alloc(kmem_cache_t *cache, int kmflags, uint_t ref_cnt);
/titanic_50/usr/src/uts/common/fs/sockfs/
H A Dsockcommon.c81 int kmflags = (flags == SOCKET_SLEEP) ? KM_SLEEP : KM_NOSLEEP; in socket_create() local
89 protocol, devpath, kmflags, errorp); in socket_create()
93 protocol, mod, kmflags, errorp); in socket_create()
445 sonode_constructor(void *buf, void *cdrarg, int kmflags) in sonode_constructor() argument
450 vp = so->so_vnode = vn_alloc(kmflags); in sonode_constructor()
H A Dsockparams.c188 char *devpath, int devpathlen, int flags, int kmflags, int *errorp) in sockparams_create() argument
205 sp = kmem_zalloc(sizeof (*sp), kmflags); in sockparams_create()
238 modname = kmem_zalloc(size, kmflags); in sockparams_create()
/titanic_50/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_wqe.c58 int kmflags);
61 int kmflags);
73 ibmf_send_wqe_cache_constructor(void *buf, void *cdrarg, int kmflags) in ibmf_send_wqe_cache_constructor() argument
89 IBMF_MEM_PER_WQE, kmflags == KM_SLEEP ? VM_SLEEP : VM_NOSLEEP); in ibmf_send_wqe_cache_constructor()
185 ibmf_recv_wqe_cache_constructor(void *buf, void *cdrarg, int kmflags) in ibmf_recv_wqe_cache_constructor() argument
201 IBMF_MEM_PER_WQE, kmflags == KM_SLEEP ? VM_SLEEP : VM_NOSLEEP); in ibmf_recv_wqe_cache_constructor()
298 ibmf_altqp_send_wqe_cache_constructor(void *buf, void *cdrarg, int kmflags) in ibmf_altqp_send_wqe_cache_constructor() argument
314 kmflags == KM_SLEEP ? VM_SLEEP : VM_NOSLEEP); in ibmf_altqp_send_wqe_cache_constructor()
411 ibmf_altqp_recv_wqe_cache_constructor(void *buf, void *cdrarg, int kmflags) in ibmf_altqp_recv_wqe_cache_constructor() argument
427 kmflags == KM_SLEEP ? VM_SLEEP : VM_NOSLEEP); in ibmf_altqp_recv_wqe_cache_constructor()
/titanic_50/usr/src/uts/common/rpc/sec/
H A Dauth_none.c71 authnone_init(void *buf, void *cdrarg, int kmflags) in authnone_init() argument
H A Dauth_kern.c97 authkern_init(void *buf, void *cdrarg, int kmflags) in authkern_init() argument
H A Dauth_loopb.c98 authloopback_init(void *buf, void *cdrarg, int kmflags) in authloopback_init() argument
/titanic_50/usr/src/uts/common/inet/tcp/
H A Dtcp_timers.c280 tcp_timermp_alloc(int kmflags) in tcp_timermp_alloc() argument
283 kmflags & ~KM_PANIC); in tcp_timermp_alloc()
292 } else if (kmflags & KM_PANIC) { in tcp_timermp_alloc()
310 sizeof (tcp_timer_t), &size, kmflags); in tcp_timermp_alloc()
/titanic_50/usr/src/uts/common/fs/bootfs/
H A Dbootfs_construct.c72 bootfs_node_constructor(void *buf, void *arg, int kmflags) in bootfs_node_constructor() argument
76 bnp->bvn_vnp = vn_alloc(kmflags); in bootfs_node_constructor()
/titanic_50/usr/src/uts/common/inet/ip/
H A Dipclassifier.c1926 tcp_conn_constructor(void *buf, void *cdrarg, int kmflags) in tcp_conn_constructor() argument
1938 tcp->tcp_timercache = tcp_timermp_alloc(kmflags); in tcp_conn_constructor()
1947 connp->conn_ixa = kmem_zalloc(sizeof (ip_xmit_attr_t), kmflags); in tcp_conn_constructor()
1986 ip_conn_constructor(void *buf, void *cdrarg, int kmflags) in ip_conn_constructor() argument
1997 connp->conn_ixa = kmem_zalloc(sizeof (ip_xmit_attr_t), kmflags); in ip_conn_constructor()
2029 udp_conn_constructor(void *buf, void *cdrarg, int kmflags) in udp_conn_constructor() argument
2045 connp->conn_ixa = kmem_zalloc(sizeof (ip_xmit_attr_t), kmflags); in udp_conn_constructor()
2080 rawip_conn_constructor(void *buf, void *cdrarg, int kmflags) in rawip_conn_constructor() argument
2096 connp->conn_ixa = kmem_zalloc(sizeof (ip_xmit_attr_t), kmflags); in rawip_conn_constructor()
2131 rts_conn_constructor(void *buf, void *cdrarg, int kmflags) in rts_conn_constructor() argument
[all …]
/titanic_50/usr/src/uts/common/fs/fifofs/
H A Dfifosubr.c171 fnode_constructor(void *buf, void *cdrarg, int kmflags) in fnode_constructor() argument
186 vp = vn_alloc(kmflags); in fnode_constructor()
266 pipe_constructor(void *buf, void *cdrarg, int kmflags) in pipe_constructor() argument
274 (void) fnode_constructor(buf, cdrarg, kmflags); in pipe_constructor()
/titanic_50/usr/src/uts/common/fs/smbsrv/
H A Dsmb_node.c1212 smb_node_constructor(void *buf, void *un, int kmflags) in smb_node_constructor() argument
1214 _NOTE(ARGUNUSED(kmflags, un)) in smb_node_constructor()
1233 smb_node_create_audit_buf(node, kmflags); in smb_node_constructor()
1263 smb_node_create_audit_buf(smb_node_t *node, int kmflags) in smb_node_create_audit_buf() argument
1268 abn = kmem_zalloc(sizeof (smb_audit_buf_node_t), kmflags); in smb_node_create_audit_buf()
/titanic_50/usr/src/uts/common/inet/iptun/
H A Diptun_dev.c235 iptun_constructor(void *buf, void *cdrarg, int kmflags) in iptun_constructor() argument
/titanic_50/usr/src/uts/i86pc/io/
H A Dimmu_dvma.c508 int kmflags; in pgtable_alloc() local
510 kmflags = (immu_flags & IMMU_FLAGS_NOSLEEP) ? KM_NOSLEEP : KM_SLEEP; in pgtable_alloc()
512 pgtable = kmem_cache_alloc(immu->immu_pgtable_cache, kmflags); in pgtable_alloc()
699 int kmflags; in create_immu_devi() local
707 kmflags = (immu_flags & IMMU_FLAGS_NOSLEEP) ? KM_NOSLEEP : KM_SLEEP; in create_immu_devi()
708 immu_devi = kmem_zalloc(sizeof (immu_devi_t), kmflags); in create_immu_devi()
1315 int kmflags; in domain_create() local
1337 kmflags = (immu_flags & IMMU_FLAGS_NOSLEEP) ? KM_NOSLEEP : KM_SLEEP; in domain_create()
1338 domain = kmem_zalloc(sizeof (domain_t), kmflags); in domain_create()
/titanic_50/usr/src/uts/common/sys/fibre-channel/fca/oce/
H A Doce_buf.h178 int oce_wqe_desc_ctor(void *buf, void *arg, int kmflags);

1234