Searched refs:tlen (Results 51 - 75 of 147) sorted by relevance

123456

/freebsd-11-stable/sys/dev/cm/
H A Dsmc90cx6.c358 int len, tlen, offset, buffer; local
406 tlen = m->m_pkthdr.len;
407 if (tlen < ARC_MIN_FORBID_LEN) {
408 offset = 256 - tlen;
412 if (tlen <= ARC_MAX_FORBID_LEN)
415 if (tlen > ARC_MAX_LEN)
416 tlen = ARC_MAX_LEN;
417 offset = 512 - tlen;
/freebsd-11-stable/usr.sbin/bhyve/
H A Dpci_virtio_net.c258 rx_iov_trim(struct iovec *iov, int *niov, int tlen) argument
262 /* XXX short-cut: assume first segment is >= tlen */
263 assert(iov[0].iov_len >= tlen);
265 iov[0].iov_len -= tlen;
271 iov[0].iov_base = (void *)((uintptr_t)iov[0].iov_base + tlen);
596 int plen, tlen; local
607 tlen = iov[0].iov_len;
610 tlen += iov[i].iov_len;
616 /* chain is processed, release it and set tlen */
617 vq_relchain(vq, idx, tlen);
[all...]
/freebsd-11-stable/sys/net80211/
H A Dieee80211_radiotap.c55 struct ieee80211_radiotap_header *th, int tlen, uint32_t tx_radiotap,
58 ieee80211_radiotap_attachv(ic, th, tlen, 0, tx_radiotap,
65 int tlen, int n_tx_v, uint32_t tx_radiotap,
72 th->it_len = htole16(roundup2(tlen, sizeof(uint32_t)));
54 ieee80211_radiotap_attach(struct ieee80211com *ic, struct ieee80211_radiotap_header *th, int tlen, uint32_t tx_radiotap, struct ieee80211_radiotap_header *rh, int rlen, uint32_t rx_radiotap) argument
63 ieee80211_radiotap_attachv(struct ieee80211com *ic, struct ieee80211_radiotap_header *th, int tlen, int n_tx_v, uint32_t tx_radiotap, struct ieee80211_radiotap_header *rh, int rlen, int n_rx_v, uint32_t rx_radiotap) argument
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-rsvp.c663 const char *ident, u_int tlen,
683 while(tlen>=sizeof(struct rsvp_object_header)) {
720 if(tlen < rsvp_obj_len) {
1836 tlen-=rsvp_obj_len;
1854 u_short plen, tlen; local
1881 plen = tlen = EXTRACT_16BITS(rsvp_com_header->length);
1888 tlen,
1892 if (tlen < sizeof(const struct rsvp_common_header)) {
1893 ND_PRINT((ndo, "ERROR: common header too short %u < %lu", tlen,
1899 tlen
661 rsvp_obj_print(netdissect_options *ndo, const u_char *pptr, u_int plen, const u_char *tptr, const char *ident, u_int tlen, const struct rsvp_common_header *rsvp_com_header) argument
[all...]
H A Dprint-ldp.c580 u_short tlen; local
620 tlen = pdu_len - (sizeof(const struct ldp_common_header)-4); /* Type & Length fields not included */
622 while(tlen>0) {
699 tlen -= msg_len+4;
H A Dprint-fr.c440 u_int tlen,idx,hdr_len = 0; local
471 tlen = length -3;
477 while (tlen>sizeof(struct ie_tlv_header_t)) {
495 tlen-=sizeof(struct ie_tlv_header_t);
543 tlen-=ie_len;
/freebsd-11-stable/sys/dev/ppbus/
H A Dppbconf.c180 int tlen, i; local
189 tlen = strlen(token);
190 if (tlen == 0)
193 for (i = 0; i <= slen-tlen; i++) {
194 if (strncmp(str + i, token, tlen) == 0)
/freebsd-11-stable/sys/netinet/
H A Dtcp_reass.c322 struct mbuf *m, struct tcphdr *th, int tlen,
327 tcp_log_reassm(tp, last, NULL, th->th_seq, tlen, TCP_R_LOG_APPEND, 0);
329 last->tqe_len += tlen;
330 last->tqe_m->m_pkthdr.len += tlen;
338 TCPSTAT_ADD(tcps_rcvoobyte, tlen);
348 int tlen, struct mbuf *mlast, int lenofoh)
353 tcp_log_reassm(tp, first, NULL, th->th_seq, tlen, TCP_R_LOG_PREPEND, 0);
355 if (SEQ_GT((th->th_seq + tlen), first->tqe_start)) {
357 i = (th->th_seq + tlen) - first->tqe_start;
368 first->tqe_len += tlen;
321 tcp_reass_append(struct tcpcb *tp, struct tseg_qent *last, struct mbuf *m, struct tcphdr *th, int tlen, struct mbuf *mlast, int lenofoh) argument
347 tcp_reass_prepend(struct tcpcb *tp, struct tseg_qent *first, struct mbuf *m, struct tcphdr *th, int tlen, struct mbuf *mlast, int lenofoh) argument
[all...]
/freebsd-11-stable/sys/netgraph/
H A Dng_pppoe.c401 int tlen; local
412 tlen = ntohs((*tag)->tag_len) + sizeof(**tag);
413 if ((length + tlen) > (ETHER_MAX_LEN - 4 - sizeof(*wh))) {
418 bcopy(*tag, (char *)dp, tlen);
419 length += tlen;
420 dp += tlen;
1295 int error, tlen; local
1307 tlen = min(NG_HOOKSIZ - 1, ntohs(tag->tag_len));
1308 strncpy(sts->hook, (const char *)(tag + 1), tlen);
1309 sts->hook[tlen]
1359 int error, tlen; local
1382 int error, tlen; local
[all...]
/freebsd-11-stable/contrib/bmake/
H A Darch.c903 size_t len, tlen; local
930 len = tlen = strlen(member);
932 tlen = sizeof(arhPtr->AR_NAME);
943 } else if (strncmp(member, arhPtr->AR_NAME, tlen) == 0) {
951 if (tlen != sizeof(arhPtr->AR_NAME) && arhPtr->AR_NAME[tlen] != ' '){
/freebsd-11-stable/sys/dev/le/
H A Dlance.c347 int len, tlen = 0; local
360 tlen += len;
364 if (tlen < LEMINSIZE) {
365 (*sc->sc_zerobuf)(sc, boff, LEMINSIZE - tlen);
366 tlen = LEMINSIZE;
368 return (tlen);
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_pptp.c440 int hlen, tlen, dlen; local
447 tlen = ntohs(pip->ip_len);
448 dlen = tlen - hlen;
H A Dalias_skinny.c305 size_t hlen, tlen, dlen; local
315 tlen = ntohs(pip->ip_len);
316 dlen = tlen - hlen;
H A Dalias_irc.c172 int hlen, tlen, dlen; local
182 tlen = ntohs(pip->ip_len);
183 dlen = tlen - hlen;
/freebsd-11-stable/sys/arm64/include/
H A Dbus_dma_impl.h67 struct vm_page **ma, bus_size_t tlen, int ma_offs, int flags,
/freebsd-11-stable/contrib/nvi/cl/
H A Dcl_term.c212 cl_fmap(SCR *sp, seq_t stype, CHAR_T *from, size_t flen, CHAR_T *to, size_t tlen) argument
220 return (cl_pfmap(sp, stype, from, flen, to, tlen));
228 cl_pfmap(SCR *sp, seq_t stype, CHAR_T *from, size_t flen, CHAR_T *to, size_t tlen) argument
254 ts, strlen(p), to, tlen, stype, SEQ_NOOVERWRITE | SEQ_SCREEN));
/freebsd-11-stable/contrib/nvi/ex/
H A Dex_argv.c365 size_t blen, len, off, tlen; local
382 len += tlen = STRLEN(exp->lastbcomm);
386 MEMCPY(p, exp->lastbcomm, tlen);
387 p += tlen;
396 tlen = strlen(t);
397 len += tlen;
401 CHAR2INT(sp, t, tlen, wp, wlen);
412 len += tlen = strlen(t);
416 CHAR2INT(sp, t, tlen, wp, wlen);
H A Dex_cscope.c609 size_t tlen; local
650 TAILQ_FIRST(cbp->textq)->len, p, tlen);
652 tlen = strlen(p);
655 CALLOC(sp, tqp, TAGQ *, 1, sizeof(TAGQ) + tlen + 3);
662 tqp->tlen = tlen + 2;
663 memcpy(tqp->tag + 2, p, tlen);
664 tqp->tag[tlen + 2] = '\0';
/freebsd-11-stable/sys/x86/include/
H A Dbusdma_impl.h67 struct vm_page **ma, bus_size_t tlen, int ma_offs, int flags,
/freebsd-11-stable/sys/dev/glxsb/
H A Dglxsb.c724 int len, tlen, xlen; local
767 tlen = crd->crd_len;
771 while (tlen > 0) {
772 len = (tlen > GLXSB_MAX_AES_LEN) ? GLXSB_MAX_AES_LEN : tlen;
789 tlen -= len;
791 if (tlen <= 0) { /* Ideally, just == 0 */
807 if (tlen > 0) {
/freebsd-11-stable/sys/dev/hyperv/vmbus/
H A Dvmbus_reg.h153 #define VMBUS_CHANPKT_TOTLEN(tlen) \
154 roundup2((tlen), VMBUS_CHANPKT_SIZE_ALIGN)
/freebsd-11-stable/contrib/libreadline/
H A Dcomplete.c627 size_t tlen; local
662 tlen = mbrtowc (&wc, s, end - s, &ps);
663 if (MB_INVALIDCH (tlen))
665 tlen = 1;
669 else if (MB_NULLWCH (tlen))
676 fwrite (s, 1, tlen, rl_outstream);
677 s += tlen;
698 int printed_len, extension_char, slen, tlen; local
739 tlen = strlen (to_print);
740 new_full_pathname = (char *)xmalloc (slen + tlen
[all...]
/freebsd-11-stable/contrib/elftoolchain/elfcopy/
H A Dmain.c521 size_t tlen, slen, plen; local
531 tlen = strlen(tmpdir);
532 slen = tmpdir[tlen - 1] == '/' ? 0 : 1;
537 tlen = 0;
540 tlen = ++tmpdir - src;
546 tmpf = malloc(tlen + slen + plen);
549 if (tlen > 0)
550 memcpy(tmpf, tmpdir, tlen);
552 tmpf[tlen] = '/';
554 memcpy(tmpf + tlen
[all...]
/freebsd-11-stable/lib/libipsec/
H A Dpfkey.c110 int tlen; local
124 tlen = ipsec_supported[algno]->sadb_supported_len
127 while (tlen > 0) {
128 if (tlen < sizeof(struct sadb_alg)) {
135 tlen -= sizeof(struct sadb_alg);
737 * tlen: msg length, it's to makeing sure.
743 pfkey_set_supported(msg, tlen)
745 int tlen;
752 if (msg->sadb_msg_len != tlen) {
758 ep = p + tlen;
[all...]
/freebsd-11-stable/sys/kern/
H A Dsubr_bus_dma.c158 struct vm_page **ma, bus_size_t tlen, int ma_offs, int flags,
166 for (i = 0; tlen > 0; i++, tlen -= len) {
167 len = min(PAGE_SIZE - ma_offs, tlen);
157 bus_dmamap_load_ma_triv(bus_dma_tag_t dmat, bus_dmamap_t map, struct vm_page **ma, bus_size_t tlen, int ma_offs, int flags, bus_dma_segment_t *segs, int *segp) argument

Completed in 212 milliseconds

123456