Home
last modified time | relevance | path

Searched refs:total_len (Results 1 – 25 of 37) sorted by relevance

12

/titanic_50/usr/src/lib/udapl/udapl_tavor/tavor/
H A Ddapl_tavor_ibtf_dto.c62 DAT_COUNT total_len; in dapls_ib_post_recv() local
66 total_len = 0; in dapls_ib_post_recv()
91 total_len += pr_sgl[i].ds_len; in dapls_ib_post_recv()
98 cookie->val.dto.size = total_len; in dapls_ib_post_recv()
158 DAT_COUNT total_len; in dapls_ib_post_recv_one() local
171 total_len = pr_sgl.ds_len; in dapls_ib_post_recv_one()
177 cookie->val.dto.size = total_len; in dapls_ib_post_recv_one()
228 DAT_COUNT total_len; in dapls_ib_post_srq() local
232 total_len = 0; in dapls_ib_post_srq()
257 total_len += pr_sgl[i].ds_len; in dapls_ib_post_srq()
[all …]
H A Ddapl_arbel_hw.c196 uint32_t len, total_len; in dapli_arbel_wqe_send_build() local
318 total_len = 0; in dapli_arbel_wqe_send_build()
320 total_len += sgl[i].ds_len; in dapli_arbel_wqe_send_build()
321 if (total_len > max_inline_bytes) in dapli_arbel_wqe_send_build()
327 HTOBE_32(total_len | TAVOR_WQE_SGL_INLINE_MASK); in dapli_arbel_wqe_send_build()
H A Ddapl_tavor_hw.c300 uint32_t len, total_len; in dapli_tavor_wqe_send_build() local
415 total_len = 0; in dapli_tavor_wqe_send_build()
417 total_len += sgl[i].ds_len; in dapli_tavor_wqe_send_build()
418 if (total_len > max_inline_bytes) in dapli_tavor_wqe_send_build()
424 HTOBE_32(total_len | TAVOR_WQE_SGL_INLINE_MASK); in dapli_tavor_wqe_send_build()
/titanic_50/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dmessage.c301 rdsv3_message_map_pages(unsigned long *page_addrs, unsigned int total_len) in rdsv3_message_map_pages() argument
306 RDSV3_DPRINTF4("rdsv3_message_map_pages", "Enter(len: %d)", total_len); in rdsv3_message_map_pages()
309 rm = rdsv3_message_alloc(ceil(total_len, PAGE_SIZE), KM_NOSLEEP); in rdsv3_message_map_pages()
317 rm->m_inc.i_hdr.h_len = htonl(total_len); in rdsv3_message_map_pages()
319 rm->m_nents = ceil(total_len, PAGE_SIZE); in rdsv3_message_map_pages()
335 size_t total_len) in rdsv3_message_copy_from_user() argument
341 RDSV3_DPRINTF4("rdsv3_message_copy_from_user", "Enter: %d", total_len); in rdsv3_message_copy_from_user()
344 rm = rdsv3_message_alloc(ceil(total_len, PAGE_SIZE), KM_NOSLEEP); in rdsv3_message_copy_from_user()
353 rm->m_inc.i_hdr.h_len = htonl(total_len); in rdsv3_message_copy_from_user()
360 while (total_len) { in rdsv3_message_copy_from_user()
[all …]
/titanic_50/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_net.c505 size_t total_len = 0; in iscsi_net_sendpdu() local
519 total_len += sizeof (*ihp) + ihp->hlength * 4; in iscsi_net_sendpdu()
535 total_len += sizeof (crc_hdr); in iscsi_net_sendpdu()
547 total_len += data_len; in iscsi_net_sendpdu()
561 total_len += pad_len; in iscsi_net_sendpdu()
580 total_len += sizeof (crc_data); in iscsi_net_sendpdu()
586 int, iovlen, int, total_len); in iscsi_net_sendpdu()
595 DTRACE_PROBE2(sendmsg, size_t, total_len, size_t, send_len); in iscsi_net_sendpdu()
596 if (total_len != send_len) { in iscsi_net_sendpdu()
611 int total_len = 0; in iscsi_net_recvhdr() local
[all …]
/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftBlowfishCrypt.c153 CK_ULONG total_len; in soft_blowfish_encrypt_common() local
193 total_len = soft_blowfish_ctx->remain_len + ulDataLen; in soft_blowfish_encrypt_common()
201 if (total_len < BLOWFISH_BLOCK_LEN) { in soft_blowfish_encrypt_common()
219 remain = total_len % BLOWFISH_BLOCK_LEN; in soft_blowfish_encrypt_common()
225 out_len = total_len - remain; in soft_blowfish_encrypt_common()
329 CK_ULONG total_len; in soft_blowfish_decrypt_common() local
369 total_len = soft_blowfish_ctx->remain_len + ulEncryptedLen; in soft_blowfish_decrypt_common()
371 if (total_len < BLOWFISH_BLOCK_LEN) { in soft_blowfish_decrypt_common()
386 remain = total_len % BLOWFISH_BLOCK_LEN; in soft_blowfish_decrypt_common()
392 out_len = total_len - remain; in soft_blowfish_decrypt_common()
H A DsoftDESCrypt.c189 CK_ULONG total_len; in soft_des_encrypt_common() local
262 total_len = soft_des_ctx->remain_len + ulDataLen; in soft_des_encrypt_common()
271 if ((total_len < DES_BLOCK_LEN) || in soft_des_encrypt_common()
272 (pad_mechanism && (total_len == DES_BLOCK_LEN))) { in soft_des_encrypt_common()
289 remain = total_len % DES_BLOCK_LEN; in soft_des_encrypt_common()
295 out_len = total_len - remain; in soft_des_encrypt_common()
505 CK_ULONG total_len; in soft_des_decrypt_common() local
566 total_len = soft_des_ctx->remain_len + ulEncryptedLen; in soft_des_decrypt_common()
575 if ((total_len < DES_BLOCK_LEN) || in soft_des_decrypt_common()
576 (pad_mechanism && (total_len == DES_BLOCK_LEN))) { in soft_des_decrypt_common()
[all …]
H A DsoftAESCrypt.c168 CK_ULONG total_len; in soft_aes_encrypt_common() local
241 total_len = soft_aes_ctx->remain_len + ulDataLen; in soft_aes_encrypt_common()
250 if ((total_len < AES_BLOCK_LEN) || in soft_aes_encrypt_common()
252 (total_len == AES_BLOCK_LEN))) { in soft_aes_encrypt_common()
269 remain = total_len % AES_BLOCK_LEN; in soft_aes_encrypt_common()
275 out_len = total_len - remain; in soft_aes_encrypt_common()
506 CK_ULONG total_len; in soft_aes_decrypt_common() local
565 total_len = soft_aes_ctx->remain_len + ulEncryptedLen; in soft_aes_decrypt_common()
574 if ((total_len < AES_BLOCK_LEN) || in soft_aes_decrypt_common()
576 (total_len == AES_BLOCK_LEN))) { in soft_aes_decrypt_common()
[all …]
/titanic_50/usr/src/uts/common/rpc/
H A Dxdr_rdma.c180 uint_t total_len; in xdrrdma_getrdmablk() local
191 total_len = *sizep; in xdrrdma_getrdmablk()
192 if (total_len > maxsize) { in xdrrdma_getrdmablk()
194 int, total_len, int, maxsize); in xdrrdma_getrdmablk()
202 if (total_len == 0) in xdrrdma_getrdmablk()
231 uint32_t, total_len, uint32_t, cle->c_xdroff); in xdrrdma_getrdmablk()
233 if (total_len <= 0) in xdrrdma_getrdmablk()
244 if (cle->c_len > total_len) { in xdrrdma_getrdmablk()
246 cle->c_len = total_len; in xdrrdma_getrdmablk()
252 total_len -= cle->c_len; in xdrrdma_getrdmablk()
[all …]
/titanic_50/usr/src/uts/common/sys/idm/
H A Didm_so.h117 size_t total_len);
120 size_t total_len);
/titanic_50/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dutility.c528 UINT32 total_len) in add_pkcs_padding() argument
536 if (data_len + pad_len > total_len) { in add_pkcs_padding()
548 UINT32 total_len, in strip_pkcs_padding() argument
553 pad_value = ptr[total_len - 1]; in strip_pkcs_padding()
556 *data_len = total_len - pad_value; in strip_pkcs_padding()
H A Dobject.c520 CK_ULONG_32 tmpl_len, total_len; in object_flatten() local
531 total_len = tmpl_len + sizeof (CK_OBJECT_CLASS_32) + in object_flatten()
534 buf = (CK_BYTE *)malloc(total_len); in object_flatten()
539 (void) memset((CK_BYTE *)buf, 0x0, total_len); in object_flatten()
558 *len = total_len; in object_flatten()
H A Dloadsave.c690 UINT32 total_len; in save_public_token_object() local
718 total_len = cleartxt_len + sizeof (UINT32) + sizeof (CK_BBOOL); in save_public_token_object()
720 (void) fwrite(&total_len, sizeof (total_len), 1, fp); in save_public_token_object()
754 UINT32 total_len; in save_private_token_object() local
832 total_len = sizeof (UINT32) + sizeof (CK_BBOOL) + (UINT32)ciphertxt_len; in save_private_token_object()
836 (void) fwrite(&total_len, sizeof (UINT32), 1, fp); in save_private_token_object()
/titanic_50/usr/src/uts/common/io/idm/
H A Didm_so.c620 idm_iov_sosend(ksocket_t so, iovec_t *iop, int iovlen, size_t total_len) in idm_iov_sosend() argument
636 if (sent == total_len) { in idm_iov_sosend()
660 idm_iov_sorecv(ksocket_t so, iovec_t *iop, int iovlen, size_t total_len) in idm_iov_sorecv() argument
678 if (recv == total_len) { in idm_iov_sorecv()
744 int total_len = 0; in idm_sorecvhdr() local
794 total_len += iov[iovlen].iov_len; in idm_sorecvhdr()
801 total_len += iov[iovlen].iov_len; in idm_sorecvhdr()
807 total_len) != 0)) { in idm_sorecvhdr()
1806 int total_len; in idm_sorecvdata() local
1817 total_len = pdu->isp_datalen; in idm_sorecvdata()
[all …]
H A Didm_text.c307 size_t total_len, valuelen; in idm_keyvalue_get_next() local
313 total_len = idm_strnlen(*tb_scan, *tb_len); in idm_keyvalue_get_next()
314 if (total_len == *tb_len) { in idm_keyvalue_get_next()
331 if (*keylen == total_len) { in idm_keyvalue_get_next()
343 valuelen = total_len - (*keylen + 1); in idm_keyvalue_get_next()
/titanic_50/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_pcu.c525 long total_len; in _sdbc_power_flush() local
605 total_len = 0; in _sdbc_power_flush()
617 len, name_pool, total_len); in _sdbc_power_flush()
620 current.name = total_len; in _sdbc_power_flush()
625 total_len += len; in _sdbc_power_flush()
/titanic_50/usr/src/uts/sun4u/opl/sys/
H A Ddm2s.h93 static void dm2s_dump_bytes(char *str, uint32_t total_len,
/titanic_50/usr/src/uts/common/net/
H A Dvjcompress.h149 extern int vj_uncompress_tcp __P((uchar_t *buf, int buflen, int total_len,
/titanic_50/usr/src/uts/common/io/ppp/spppcomp/
H A Dvjcompress.c534 vj_uncompress_tcp(uchar_t *buf, int buflen, int total_len, in vj_uncompress_tcp() argument
661 total_len += cs->cs_hlen - vjlen; in vj_uncompress_tcp()
662 cs->cs_ip.ip_len = htons(total_len); in vj_uncompress_tcp()
/titanic_50/usr/src/stand/lib/inet/
H A Dipv4.c258 uint_t total_len; in frag_load() local
272 for (i = 0, len = 0, total_len = 0; i < FRAG_MAX; i++) { in frag_load()
285 total_len += len; in frag_load()
286 if (total_len > mp->b_size) in frag_load()
303 iph->ip_len = htons(total_len); in frag_load()
/titanic_50/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_wr.c95 int total_len, strong_order, fc_bits, cksum; in hermon_post_send_ud() local
170 total_len = (4 + 0xf + wr->wr.ud_lso.lso_hdr_sz) & ~0xf; in hermon_post_send_ud()
171 if ((uintptr_t)ds + total_len + (nds * 16) > in hermon_post_send_ud()
179 ds = (hermon_hw_wqe_sgl_t *)((uintptr_t)ds + total_len); in hermon_post_send_ud()
1398 int total_len; in hermon_wqe_send_build() local
1400 total_len = (4 + 0xf + wr->wr.ud_lso.lso_hdr_sz) & ~0xf; in hermon_wqe_send_build()
1401 if ((uintptr_t)ds + total_len + (nds * 16) > in hermon_wqe_send_build()
1408 ds = (hermon_hw_wqe_sgl_t *)((uintptr_t)ds + total_len); in hermon_wqe_send_build()
/titanic_50/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_usb.c285 size_t total_len; in set_msg() local
290 total_len = (*ret_str == NULL) ? 0 : strlen(*ret_str); in set_msg()
296 *ret_str = (char *)realloc(*ret_str, total_len + len + 1); in set_msg()
305 (void) strcpy(*ret_str + total_len, str); in set_msg()
306 total_len += len; in set_msg()
/titanic_50/usr/src/uts/common/io/ntxn/
H A Dunm_nic_main.c700 pktinfo->total_len += MBLKL(bp); in unm_get_pkt_info()
821 0, pktinfo->total_len, DDI_DMA_SYNC_FORDEV); in unm_send_copy()
829 hwdesc->u6.s1.buffer1Length = pktinfo->total_len; in unm_send_copy()
832 hwdesc->u1.s1.totalLength = pktinfo->total_len; in unm_send_copy()
846 adapter->stats.txbytes += pktinfo->total_len; in unm_send_copy()
981 if (pktinfo->total_len > adapter->maxmtu) { in unm_send_mapped()
1007 hwdesc->u1.s1.totalLength = pktinfo->total_len; in unm_send_mapped()
1047 adapter->stats.txbytes += pktinfo->total_len; in unm_send_mapped()
1092 if (pktinfo.total_len <= adapter->tx_bcopy_threshold || in unm_nic_xmit_frame()
1100 if (pktinfo.total_len <= adapter->maxmtu) in unm_nic_xmit_frame()
/titanic_50/usr/src/uts/sun4u/opl/io/
H A Ddm2s.c1243 dm2s_dump_bytes(char *str, uint32_t total_len, in dm2s_dump_bytes() argument
1259 for (nsg = 0; (nsg < num_sg) && (tlen < total_len); nsg++) { in dm2s_dump_bytes()
1269 str, total_len, digest); in dm2s_dump_bytes()
1273 for (nsg = 0; (nsg < num_sg) && (tlen < total_len); nsg++) { in dm2s_dump_bytes()
/titanic_50/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_ib.c347 size_t total_len, ret_str_len; in ib_set_msg() local
352 total_len = (*ret_str == NULL) ? 0 : strlen(*ret_str); in ib_set_msg()
358 ret_str_len = total_len + len + 1; in ib_set_msg()
367 (void) strlcpy(*ret_str + total_len, str, ret_str_len); in ib_set_msg()
368 total_len += len; in ib_set_msg()

12