Home
last modified time | relevance | path

Searched refs:totlen (Results 1 – 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash_bigkey.c372 int32_t totlen, retval; local
380 totlen = len + BIGKEYLEN(pagep);
383 hashp->bigkey_buf = (u_int8_t *)malloc(totlen);
390 return (totlen);
400 totlen = len + BIGKEYLEN(pagep);
439 int32_t totlen, retval; local
449 totlen = len + BIGDATALEN(pagep);
450 hashp->bigdata_buf = (u_int8_t *)malloc(totlen);
455 return (totlen);
457 totlen = len + BIGDATALEN(pagep);
[all …]
/illumos-gate/usr/src/cmd/ldap/ns_ldap/
H A Dmapping.c154 int len, totlen = 1; /* Terminating NULL byte */ in set_keys() local
162 totlen += 3; in set_keys()
164 MALLOC(keyfilter, totlen); in set_keys()
167 (void) snprintf(keyfilter, totlen, "(|"); in set_keys()
175 totlen += strlen(k) + 2; in set_keys()
178 totlen += strlen(attrtype) + strlen(k) + 3; in set_keys()
192 (void) snprintf(keyfilter + len, totlen - len, in set_keys()
195 (void) snprintf(keyfilter + len, totlen - len, in set_keys()
203 (void) strlcat(keyfilter, ")", totlen); in set_keys()
238 totlen += strlen(k) + 2; in set_keys_publickey()
[all …]
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_rxtx.c487 size_t totlen; in rge_send_copy() local
518 totlen = 0; in rge_send_copy()
526 totlen += 2 * ETHERADDRL; in rge_send_copy()
530 if ((totlen += mblen) <= rgep->ethmax_size) { in rge_send_copy()
540 if ((totlen += mblen) <= rgep->ethmax_size) { in rge_send_copy()
545 rgep->stats.obytes += totlen; in rge_send_copy()
547 if (totlen == rgep->ethmax_size) in rge_send_copy()
557 ASSERT(totlen <= rgep->ethmax_size); in rge_send_copy()
565 hw_sbd_p->flags_len = RGE_BSWAP_32(totlen & SBD_LEN_MASK); in rge_send_copy()
579 ASSERT(totlen >= sizeof (struct ether_header) + in rge_send_copy()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dtn_ipopt.c643 int remlen, padding, lastpad, totlen; in tsol_prepend_option() local
659 padding = totlen = lastpad = 0; in tsol_prepend_option()
673 totlen++; in tsol_prepend_option()
687 totlen += olen; in tsol_prepend_option()
692 totlen -= lastpad; in tsol_prepend_option()
705 totlen -= padding; in tsol_prepend_option()
731 while (totlen > 0) { in tsol_prepend_option()
745 totlen--; in tsol_prepend_option()
750 ASSERT(totlen >= 2); in tsol_prepend_option()
752 ASSERT(olen >= 2 && olen <= totlen); in tsol_prepend_option()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_notify.c723 uint32_t namelen, totlen; in smb_notify_encode_action() local
745 totlen = (12 + namelen + 3) & ~3; in smb_notify_encode_action()
746 if (MBC_ROOM_FOR(mbc, totlen) == 0) { in smb_notify_encode_action()
774 totlen, /* NextEntryOffset */ in smb_notify_encode_action()
776 mbc->chain_offset = nc->nc_last_off + totlen; in smb_notify_encode_action()
/illumos-gate/usr/src/uts/common/io/atge/
H A Datge_l1c.c740 uint32_t rdinfo, status, totlen, pktlen, slotlen; in atge_l1c_rx() local
759 totlen = L1C_RRD_BYTES(status); in atge_l1c_rx()
764 rdinfo, status, totlen, rx_cons, nsegs)); in atge_l1c_rx()
782 mp = allocb(totlen + L1C_HEADROOM, BPRI_MED); in atge_l1c_rx()
786 mp->b_wptr = bufp + totlen; in atge_l1c_rx()
790 atgep->atge_rbytes += totlen; in atge_l1c_rx()
801 slotlen = totlen; in atge_l1c_rx()
805 atgep->atge_name, __func__, totlen)); in atge_l1c_rx()
820 slotlen = min(atgep->atge_max_frame_size, totlen); in atge_l1c_rx()
824 totlen -= slotlen; in atge_l1c_rx()
H A Datge_l1.c632 uint32_t index, flags, totlen, pktlen, slotlen; in atge_l1_rx() local
649 totlen = L1_RX_BYTES(ATGE_GET32(l1->atge_l1_rr, &rx_rr->len)); in atge_l1_rx()
656 index, flags, totlen, rx_cons, nsegs)); in atge_l1_rx()
673 mp = allocb(totlen + VLAN_TAGSZ, BPRI_MED); in atge_l1_rx()
677 mp->b_wptr = bufp + totlen; in atge_l1_rx()
681 atgep->atge_rbytes += totlen; in atge_l1_rx()
692 slotlen = totlen; in atge_l1_rx()
696 atgep->atge_name, __func__, totlen)); in atge_l1_rx()
/illumos-gate/usr/src/cmd/bhyve/
H A Dnet_backends.c749 ssize_t totlen = 0; in netmap_send() local
770 totlen += iov_frag_size; in netmap_send()
820 return (totlen); in netmap_send()
829 ssize_t totlen = 0; in netmap_peek_recvlen() local
834 totlen += slot->len; in netmap_peek_recvlen()
840 return (totlen); in netmap_peek_recvlen()
851 ssize_t totlen = 0; in netmap_recv() local
882 totlen += copylen; in netmap_recv()
893 totlen)); in netmap_recv()
907 return (totlen); in netmap_recv()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpppoe.c169 int totlen; in cat_save_env() local
173 totlen = 0; in cat_save_env()
176 totlen += strlen(argp[1]) + 1; in cat_save_env()
177 if ((str = malloc(totlen + 1)) == NULL) { in cat_save_env()
/illumos-gate/usr/src/uts/common/io/rtls/
H A Drtls.c962 int totlen; in rtls_send() local
1110 totlen = 0; in rtls_send()
1115 totlen = msgsize(mp); in rtls_send()
1116 if (totlen > (ETHERMAX + 4)) { /* 4 bytes for VLAN header */ in rtls_send()
1119 mac_name(rtlsp->mh), totlen); in rtls_send()
1142 rtlsp->stats.obytes += totlen; in rtls_send()
1144 if (totlen < ETHERMIN) { in rtls_send()
1145 bzero(rtlsp->tx_buf[cur_desc] + totlen, ETHERMIN - totlen); in rtls_send()
1146 totlen = ETHERMIN; in rtls_send()
1150 (void) ddi_dma_sync(rtlsp->dma_area_tx[cur_desc].dma_hdl, 0, totlen, in rtls_send()
[all …]
/illumos-gate/usr/src/uts/common/io/nge/
H A Dnge_tx.c354 size_t totlen; in nge_send_copy() local
383 totlen = 0; in nge_send_copy()
388 totlen = 0; in nge_send_copy()
392 if ((totlen += mblen) <= ngep->max_sdu) { in nge_send_copy()
404 ngep->desc_attr.txd_fill(hw_sbd_p, &ssbdp->pbuf.cookie, totlen, in nge_send_copy()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dmbuf.c123 size_t len, totlen; in m_lineup() local
130 totlen = m_totlen(m0); in m_lineup()
131 if ((error = m_get(totlen, &nm)) != 0) in m_lineup()
142 nm->m_len = totlen; in m_lineup()
/illumos-gate/usr/src/boot/sys/amd64/include/pc/
H A Dbios.h101 size_t totlen; /* total length of BIOS string to copy */ member
/illumos-gate/usr/src/uts/common/io/bpf/
H A Dbpf.c1579 int totlen, curlen; in catchpacket() local
1591 totlen = hdrlen + min(snaplen, pktlen); in catchpacket()
1592 if (totlen > d->bd_bufsize) in catchpacket()
1593 totlen = d->bd_bufsize; in catchpacket()
1599 if (curlen + totlen > d->bd_bufsize) { in catchpacket()
1639 (hp->bh_caplen = totlen - hdrlen)); in catchpacket()
1640 d->bd_slen = curlen + totlen; in catchpacket()
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_files.c67 size_t totlen; in nwam_tokenize_by_unescaped_delim() local
72 totlen = strlen(in); in nwam_tokenize_by_unescaped_delim()
85 *nextp = ((*nextp - in) < totlen) ? (*nextp) : NULL; in nwam_tokenize_by_unescaped_delim()
/illumos-gate/usr/src/boot/sys/i386/include/pc/
H A Dbios.h271 size_t totlen; /* total length of BIOS string to copy */ member
/illumos-gate/usr/src/uts/common/io/dmfe/
H A Ddmfe_main.c1012 size_t totlen; in dmfe_send_msg() local
1092 totlen = 0; in dmfe_send_msg()
1100 if ((totlen += mblen) <= DMFE_MAX_PKT_SIZE) { in dmfe_send_msg()
1129 ASSERT(totlen <= DMFE_MAX_PKT_SIZE); in dmfe_send_msg()
1130 totlen &= TX_BUFFER_SIZE1; in dmfe_send_msg()
1131 desc1 = TX_FIRST_DESC | TX_LAST_DESC | totlen; in dmfe_send_msg()
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_stream.c1204 ssize_t totlen; in msgpullup() local
1216 totlen = xmsgsize(mp); in msgpullup()
1218 if ((len > 0) && (len > totlen)) in msgpullup()
1226 len = totlen; in msgpullup()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Dbsd-comp.c82 int totlen; /* length of this structure */ member
345 db->totlen = newlen;
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dbsd-comp.c96 int totlen; /* length of this structure */ member
426 db->totlen = newlen; in bsd_alloc()
447 kmem_free(db, db->totlen); in bsd_free()
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dplatform.c860 size_t totlen; in platform_get_files() local
908 totlen = strlen(dirname[i]) + 1; in platform_get_files()
909 totlen += strlen(dp->d_name) + 1; in platform_get_files()
910 files[nfiles] = MALLOC(totlen); in platform_get_files()
913 (void) snprintf(files[nfiles++], totlen, in platform_get_files()
/illumos-gate/usr/src/uts/common/io/iwn/
H A Dif_iwn.c3678 int i, totlen, seglen, pad; in iwn_send() local
3812 totlen = msgdsize(mp); in iwn_send()
3852 if (totlen + IEEE80211_CRC_LEN > ic->ic_rtsthreshold) { in iwn_send()
3911 tx->len = htole16(totlen); in iwn_send()
3955 for (i = 1, seglen = totlen - hdrlen; in iwn_send()
3984 ic->ic_stats.is_tx_bytes += totlen; in iwn_send()
4410 int totlen, ret; in iwn_cmd() local
4416 totlen = 4 + size; in iwn_cmd()
4420 if (iwn_dma_contig_alloc(sc, &data->cmd_dma, totlen, in iwn_cmd()
4443 (void) ddi_dma_sync(data->cmd_dma.dma_hdl, 0, totlen, in iwn_cmd()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/ip/
H A Dip.c1329 uint16_t ver, totlen, hdrlen, ipid, off, csum; in iphdr() local
1361 mdb_nhconvert(&totlen, &iph->ipha_length, sizeof (totlen)); in iphdr()
1377 hdrlen, iph->ipha_type_of_service, totlen, ipid, in iphdr()
/illumos-gate/usr/src/uts/intel/io/dnet/
H A Ddnet.c1325 int mblen, totlen; in dnet_send() local
1344 totlen = 0; in dnet_send()
1414 totlen += dma_cookie.dmac_size; in dnet_send()
1435 if (totlen > ETHERMAX + VLAN_TAGSZ) { in dnet_send()
1436 cmn_err(CE_WARN, "DNET: tried to send large %d packet", totlen); in dnet_send()
/illumos-gate/usr/src/uts/common/io/vioif/
H A Dvioif.c647 size_t totlen = hdrlen + datalen + acklen; in vioif_ctrlq_req() local
666 if (totlen > virtio_dma_size(cb->cb_dma)) { in vioif_ctrlq_req()

12