Searched refs:tlen (Results 1 - 16 of 16) sorted by relevance

/darwin-on-arm/xnu/bsd/nfs/
H A Dxdr_subs.h216 uint32_t tlen; local
221 tlen = MIN(xbp->xb_left, len);
222 if (tlen) {
223 xbp->xb_ptr += tlen;
224 xbp->xb_left -= tlen;
225 len -= tlen;
332 uint32_t len, tlen; local
346 tlen = MIN(xbp->xb_left, len);
347 if (tlen) {
349 if (tlen > coun
375 uint32_t len, tlen; local
[all...]
H A Dnfs_subs.c381 uint32_t paddedlen, tlen; local
392 tlen = MIN(nmc->nmc_left, paddedlen);
393 if (tlen) {
395 if (tlen > len)
396 tlen = len;
397 bcopy(buf, nmc->nmc_ptr, tlen);
399 bzero(nmc->nmc_ptr, tlen);
401 nmc->nmc_ptr += tlen;
402 nmc->nmc_left -= tlen;
403 paddedlen -= tlen;
422 uint32_t tlen; local
449 uint32_t paddedlen, tlen; local
[all...]
H A Dnfs_serv.c693 int error, mpcnt, tlen, len, attrerr; local
786 tlen = nfsm_rndup(len);
787 nfsm_adj(mpath, NFS_MAXPATHLEN-tlen, tlen-len);
820 uint32_t reqlen, maxlen, count, len, tlen, left; local
925 tlen = nfsm_rndup(len);
926 if (count != tlen || tlen != len)
927 nfsm_adj(mread, count - tlen, tlen
1379 int error, mlen, i, ioflags, tlen; local
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Dlro_ext.h52 int tcp_start_coalescing(struct ip *, struct tcphdr *, int tlen);
H A Dtcp_input.c301 static inline void update_iaj_state(struct tcpcb *tp, uint32_t tlen, int reset_size);
310 struct tcpopt *to, u_int32_t tlen);
1091 int len, tlen, off; local
1162 tlen = sizeof(*ip6) + ntohs(ip6->ip6_plen) - off0;
1176 if (in6_cksum(m, IPPROTO_TCP, off0, tlen)) {
1194 if (in6_cksum(m, IPPROTO_TCP, off0, tlen)) {
1255 tlen = ip->ip_len;
1267 ipov->ih_len = (u_short)tlen;
1291 ipov->ih_len = (u_short)tlen;
1295 len = sizeof (struct ip) + tlen;
[all...]
H A Dtcp_lro.c706 unsigned int tlen; local
745 tlen = ip_hdr->ip_len ; //ignore IP header bytes len
746 m->m_pkthdr.lro_pktlen = tlen; /* Used to return max pkt encountered to tcp */
749 if (off < sizeof (struct tcphdr) || off > tlen) {
778 int tlen = ip->ip_len; local
793 ipov->ih_len = (u_short)tlen;
817 ipov->ih_len = (u_short)tlen;
821 len = sizeof (struct ip) + tlen;
849 tcp_start_coalescing(struct ip *ip_hdr, struct tcphdr *tcp_hdr, int tlen) argument
870 (lf->lr_seq != (tcp_hdr->th_seq + tlen))) {
[all...]
H A Dtcp_subr.c582 register int tlen; local
630 tlen = 0;
652 tlen = 0;
683 tlen));
684 tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
688 tlen += sizeof (struct tcpiphdr);
689 ip->ip_len = tlen;
692 m->m_len = tlen;
693 m->m_pkthdr.len = tlen;
725 &ip6->ip6_dst, htons((u_short)(tlen
[all...]
/darwin-on-arm/xnu/bsd/netkey/
H A Dkey_debug.c83 int tlen, extlen; local
96 tlen = PFKEY_UNUNIT64(base->sadb_msg_len) - sizeof(struct sadb_msg);
99 while (tlen > 0) {
107 if (ext->sadb_ext_len > tlen) {
165 tlen -= extlen;
455 int tlen; local
458 tlen = PFKEY_UNUNIT64(xpl->sadb_x_policy_len) - sizeof(*xpl);
461 while (tlen > 0) {
485 if (xisr->sadb_x_ipsecrequest_len > tlen) {
490 tlen
[all...]
H A Dkey.c1705 int tlen; local
1718 tlen = PFKEY_EXTLEN(xpl0) - sizeof(*xpl0);
1721 while (tlen > 0) {
1860 tlen -= xisr->sadb_x_ipsecrequest_len;
1863 if (tlen < 0) {
1864 ipseclog((LOG_DEBUG, "key_msg2sp: becoming tlen < 0.\n"));
1936 int tlen; local
1944 tlen = key_getspreqmsglen(sp);
1946 m = key_alloc_mbuf(tlen);
1953 m->m_len = tlen;
2906 u_int tlen; local
4441 key_setsadbmsg( u_int8_t type, u_int16_t tlen, u_int8_t satype, u_int32_t seq, pid_t pid, u_int16_t reserved) argument
[all...]
/darwin-on-arm/xnu/bsd/kern/
H A Duipc_mbuf2.c133 int hlen, tlen, olen; local
270 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>,
272 * note that hlen + tlen == len, and tlen > 0.
275 tlen = len - hlen;
303 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen
305 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len);
306 n->m_len += tlen;
307 m_adj(n->m_next, tlen);
345 /* get tlen fro
[all...]
H A Dsysv_msg.c1020 size_t tlen; local
1023 tlen = msginfo.msgssz;
1025 tlen = msgsz;
1032 eval = copyin(user_msgp, &msgpool[next * msginfo.msgssz], tlen);
1045 msgsz -= tlen;
1046 user_msgp = user_msgp + tlen; /* ptr math */
1420 size_t tlen; local
1424 tlen = msginfo.msgssz;
1426 tlen = msgsz;
1433 user_msgp, tlen);
[all...]
/darwin-on-arm/xnu/osfmk/kern/
H A Dprintf.c667 int tlen = sprintf(tbuf, "[%5llu.%06llu] ", (uint64_t)(ns / NSEC_PER_SEC), (uint64_t)((ns % NSEC_PER_SEC) / 1000));
668 for(tp = tbuf; tp < tbuf + tlen; tp++)
/darwin-on-arm/xnu/bsd/netinet6/
H A Din6.c2965 int tlen = -1, dscopecmp, bscopecmp, matchcmp; local
3169 tlen = in6_matchlen(IFA_IN6(ifa), dst);
3170 matchcmp = tlen - blen;
3196 blen = tlen >= 0 ? tlen :
3240 int dst_scope = in6_addrscope(dst), blen = -1, tlen; local
3298 tlen = in6_matchlen(IFA_IN6(ifa), dst);
3299 if (tlen > blen) {
3300 blen = tlen;
H A Dah_core.c1207 int tlen; local
1229 tlen = n->m_len - off;
1231 tlen = len;
1233 (algo->update)(algos, mtod(n, caddr_t) + off, tlen);
1235 len -= tlen;
H A Dip6_output.c284 int hlen, tlen, len, off; local
1276 * 1-a: send as is if tlen <= path mtu
1277 * 1-b: fragment if tlen > path mtu
1280 * 2-a: send as is if tlen <= interface mtu
1281 * 2-b: error if tlen > interface mtu
1289 tlen = m->m_pkthdr.len;
1306 if (dontfrag && tlen > ifmtu) { /* case 2-b */
1334 (tlen <= mtu || tso || (ifp->if_hwassist & CSUM_FRAGMENT_IPV6)))) {
1425 for (off = hlen; off < tlen; off += len) {
1446 if (off + len >= tlen)
[all...]
/darwin-on-arm/xnu/bsd/net/
H A Dpf.c2356 int len, tlen; local
2368 tlen = sizeof (struct tcphdr);
2370 tlen += 4;
2375 len = sizeof (struct ip) + tlen;
2380 len = sizeof (struct ip6_hdr) + tlen;
2441 h->ip_len = htons(tlen);
2454 h6->ip6_plen = htons(tlen);
2469 th->th_off = tlen >> 2;
2516 sizeof (struct ip6_hdr), tlen);

Completed in 201 milliseconds