Searched refs:txr (Results 1 – 2 of 2) sorted by relevance
202 smb_txreq_t *txr; in smb_net_txr_alloc() local204 txr = kmem_cache_alloc(smb_txr_cache, KM_SLEEP); in smb_net_txr_alloc()205 txr->tr_len = 0; in smb_net_txr_alloc()206 bzero(&txr->tr_lnd, sizeof (txr->tr_lnd)); in smb_net_txr_alloc()207 txr->tr_magic = SMB_TXREQ_MAGIC; in smb_net_txr_alloc()208 return (txr); in smb_net_txr_alloc()217 smb_net_txr_free(smb_txreq_t *txr) in smb_net_txr_free() argument219 ASSERT(txr->tr_magic == SMB_TXREQ_MAGIC); in smb_net_txr_free()220 ASSERT(!list_link_active(&txr->tr_lnd)); in smb_net_txr_free()222 txr->tr_magic = 0; in smb_net_txr_free()[all …]
124 smb_txreq_t *txr; in smb_session_send() local141 txr = smb_net_txr_alloc(); in smb_session_send()144 rc = mbc_moveout(mbc, (caddr_t)&txr->tr_buf[NETBIOS_HDR_SZ], in smb_session_send()145 sizeof (txr->tr_buf) - NETBIOS_HDR_SZ, &txr->tr_len); in smb_session_send()147 smb_net_txr_free(txr); in smb_session_send()153 hdr.xh_length = (uint32_t)txr->tr_len; in smb_session_send()155 rc = smb_session_xprt_puthdr(session, &hdr, txr->tr_buf, in smb_session_send()159 smb_net_txr_free(txr); in smb_session_send()162 txr->tr_len += NETBIOS_HDR_SZ; in smb_session_send()163 smb_server_add_txb(session->s_server, (int64_t)txr->tr_len); in smb_session_send()[all …]