HomeSort by: relevance | last modified time | path
    Searched refs:total_len (Results 1 - 25 of 34) sorted by relevancy

1 2

  /src/common/lib/libutil/
snprintb.c 65 size_t total_len; member in struct:__anon033aa2900108
83 if (s->total_len < s->bufsize)
84 s->buf[s->total_len] = c;
85 s->total_len++;
91 int num_len = s->total_len < s->bufsize
92 ? snprintf(s->buf + s->total_len, s->bufsize - s->total_len,
96 s->total_len += num_len;
103 if (s->total_len - s->line_pos > s->line_max) {
104 s->total_len = s->line_pos + s->line_max - 1
    [all...]
  /src/sys/dev/usb/
if_upl.c 226 upl_uno_rx_loop(struct usbnet * un, struct usbnet_chain *c, uint32_t total_len)
230 device_xname(un->un_dev), __func__, total_len));
232 usbnet_input(un, c->unc_buf, total_len);
238 int total_len; local in function:upl_uno_tx_prepare
244 total_len = m->m_pkthdr.len;
246 DPRINTFN(10,("%s: %s: total_len=%d\n",
247 device_xname(un->un_dev), __func__, total_len));
249 return total_len;
if_ncm.c 255 ncm_uno_rx_loop(struct usbnet *un, struct usbnet_chain *c, uint32_t total_len)
263 if (total_len < sizeof(*hdr) + sizeof(*ptr)) {
278 ndp_index > total_len - sizeof(*ptr)) {
281 "total_len %u\n", ndp_index,
283 total_len);
295 if ((unsigned)UGETW(ptr->wLength) > total_len - ndp_index) {
297 "ndp_index %u total_len %u\n", UGETW(ptr->wLength),
298 ndp_index, total_len);
312 if (data_len > total_len ||
313 data_start > total_len - data_len)
    [all...]
if_udav.c 622 int total_len; local in function:udav_uno_tx_prepare
632 total_len = m->m_pkthdr.len;
633 if (total_len < UDAV_MIN_FRAME_LEN) {
634 memset(buf + 2 + total_len, 0,
635 UDAV_MIN_FRAME_LEN - total_len);
636 total_len = UDAV_MIN_FRAME_LEN;
640 buf[0] = (uint8_t)total_len;
641 buf[1] = (uint8_t)(total_len >> 8);
642 total_len += 2;
645 __func__, total_len));
    [all...]
if_url.c 471 int total_len; local in function:url_uno_tx_prepare
481 total_len = m->m_pkthdr.len;
483 if (total_len < URL_MIN_FRAME_LEN) {
484 memset(c->unc_buf + total_len, 0,
485 URL_MIN_FRAME_LEN - total_len);
486 total_len = URL_MIN_FRAME_LEN;
490 __func__, total_len));
492 return total_len;
496 url_uno_rx_loop(struct usbnet *un, struct usbnet_chain *c, uint32_t total_len)
503 if (total_len <= ETHER_CRC_LEN || total_len <= sizeof(rxhdr))
    [all...]
if_kue.c 534 kue_uno_rx_loop(struct usbnet *un, struct usbnet_chain *c, uint32_t total_len)
540 if (total_len <= 1)
543 DPRINTFN(10,("%s: %s: total_len=%d len=%d\n",
545 total_len, le16dec(buf)));
548 if (pktlen > total_len - ETHER_ALIGN)
549 pktlen = total_len - ETHER_ALIGN;
565 unsigned total_len, pkt_len; local in function:kue_uno_tx_prepare
568 total_len = roundup2(pkt_len, 64);
570 if ((unsigned)total_len > un->un_tx_bufsz) {
572 device_xname(un->un_dev), __func__, pkt_len, total_len));
    [all...]
if_cdce.c 266 cdce_uno_rx_loop(struct usbnet * un, struct usbnet_chain *c, uint32_t total_len)
271 if (un->un_flags & CDCE_ZAURUS && total_len > 4)
272 total_len -= 4;
274 if (total_len < sizeof(struct ether_header)) {
279 usbnet_enqueue(un, c->unc_buf, total_len, 0, 0, 0);
if_axe.c 993 axe_uno_rx_loop(struct usbnet * un, struct usbnet_chain *c, uint32_t total_len)
1008 if (total_len < sizeof(hdr)) {
1015 DPRINTFN(20, "total_len %#jx len %#jx ilen %#jx",
1016 total_len,
1020 total_len -= sizeof(hdr);
1031 if (total_len < rxlen) {
1032 pktlen = total_len;
1033 total_len = 0;
1037 total_len -= rxlen;
1043 if (total_len < sizeof(csum_hdr))
    [all...]
if_smsc.c 872 smsc_uno_rx_loop(struct usbnet *un, struct usbnet_chain *c, uint32_t total_len)
881 DPRINTF("total_len %jd/%#jx", total_len, total_len, 0, 0);
882 while (total_len != 0) {
884 if (total_len < sizeof(rxhdr)) {
885 DPRINTF("total_len %jd < sizeof(rxhdr) %jd",
886 total_len, sizeof(rxhdr), 0, 0);
894 total_len -= sizeof(rxhdr);
908 DPRINTF("total_len %jd pktlen %jd rxhdr 0x%08jx", total_len
    [all...]
if_cue.c 560 cue_uno_rx_loop(struct usbnet *un, struct usbnet_chain *c, uint32_t total_len)
566 DPRINTFN(5,("%s: %s: total_len=%d len=%d\n",
568 total_len, le16dec(buf)));
571 if (total_len < 2 ||
572 len > total_len - 2 ||
585 unsigned total_len; local in function:cue_uno_tx_prepare
600 total_len = m->m_pkthdr.len + 2;
606 return total_len;
if_aue.c 879 aue_uno_rx_loop(struct usbnet *un, struct usbnet_chain *c, uint32_t total_len)
888 device_unit(un->un_dev), total_len, 0, 0);
890 if (total_len <= 4 + ETHER_CRC_LEN) {
895 memcpy(&r, buf + total_len - 4, sizeof(r));
905 pktlen = total_len - ETHER_CRC_LEN - 4;
914 int total_len; local in function:aue_uno_tx_prepare
937 total_len = m->m_pkthdr.len + 2;
940 device_unit(un->un_dev), total_len, 0, 0);
942 return total_len;
if_urndis.c 748 uint32_t total_len)
756 while (total_len > 1) {
760 total_len));
762 if (total_len < sizeof(*msg)) {
763 printf("%s: urndis_decap invalid buffer total_len %u < "
766 total_len,
771 DPRINTF(("%s: urndis_decap total_len %u data(off:%u len:%u) "
797 if (le32toh(msg->rm_len) > total_len) {
799 "total_len %u\n",
802 total_len);
    [all...]
if_mue.c 1137 mue_uno_rx_loop(struct usbnet *un, struct usbnet_chain *c, uint32_t total_len)
1147 KASSERTMSG(total_len <= un->un_rx_bufsz, "%u vs %u",
1148 total_len, un->un_rx_bufsz);
1151 if (__predict_false(total_len < sizeof(*hdrp))) {
1152 MUE_PRINTF(un, "packet length %u too short\n", total_len);
1177 pktlen + sizeof(*hdrp) > total_len)) {
1217 if (pktlen > total_len)
1218 pktlen = total_len;
1219 total_len -= pktlen;
1221 } while (total_len > 0)
    [all...]
if_mos.c 667 mos_uno_rx_loop(struct usbnet * un, struct usbnet_chain *c, uint32_t total_len)
675 device_xname(un->un_dev), __func__, total_len));
677 if (total_len <= 1)
681 pktlen = total_len - 1;
usbnet.c 233 uno_rx_loop(struct usbnet *un, struct usbnet_chain *c, uint32_t total_len)
236 (*un->un_ops->uno_rx_loop)(un, c, total_len);
358 uint32_t total_len; local in function:usbnet_rxeof
379 usbd_get_xfer_status(xfer, NULL, NULL, &total_len, NULL);
381 if (total_len > un->un_rx_bufsz) {
384 total_len, un->un_rx_bufsz);
388 uno_rx_loop(un, c, total_len);
if_axen.c 755 axen_uno_rx_loop(struct usbnet *un, struct usbnet_chain *c, uint32_t total_len)
765 if (total_len < sizeof(pkt_hdr)) {
776 hdr_p = (uint32_t *)(buf + total_len - sizeof(uint32_t));
782 if (hdr_offset > total_len) {
785 hdr_offset, total_len);
if_ure.c 945 ure_uno_rx_loop(struct usbnet *un, struct usbnet_chain *c, uint32_t total_len)
954 if (total_len < sizeof(rxhdr)) {
963 total_len -= sizeof(rxhdr);
967 if (pkt_len > total_len) {
973 total_len -= roundup(pkt_len, 8);
981 } while (total_len > 0);
if_atu.c 293 int total_len = 0, s; local in function:atu_usb_request
323 usbd_get_xfer_status(xfer, NULL, NULL, &total_len, NULL);
329 device_xname(sc->atu_dev), total_len));
331 if (total_len != length)
333 device_xname(sc->atu_dev), total_len));
  /src/sys/dev/ic/
rtl81x9.c 915 u_int total_len, wrap; local in function:rtk_rxeof
950 total_len = rxstat >> 16;
951 if (total_len == RTK_RXSTAT_UNFINISHED)
955 total_len < ETHER_MIN_LEN ||
956 total_len > (MCLBYTES - RTK_ETHER_ALIGN)) {
986 rx_bytes += total_len + RTK_RXSTAT_LEN;
1011 if (total_len > wrap)
1012 new_rx = total_len - wrap;
1014 new_rx = cur_rx + total_len;
1022 total_len -= ETHER_CRC_LEN
    [all...]
dp8390.c 1011 * total_len = amount of data to copy
1014 dp8390_get(struct dp8390_softc *sc, int src, u_short total_len)
1024 m0->m_pkthdr.len = total_len;
1028 while (total_len > 0) {
1029 if (total_len >= MINCLSIZE) {
1045 m->m_len = len = uimin(total_len, len);
1048 total_len -= len;
1049 if (total_len > 0) {
rtl8169.c 476 int total_len, i, s, error = 0; local in function:re_diag
557 total_len = rxstat & sc->re_rxlenmask;
559 if (total_len != ETHER_MIN_LEN) {
1239 int i, total_len; local in function:re_rxeof
1256 total_len = rxstat & sc->re_rxlenmask;
1346 m->m_len = total_len % (MCLBYTES - RE_ETHER_ALIGN);
1364 m->m_pkthdr.len = total_len - ETHER_CRC_LEN;
1367 (total_len - ETHER_CRC_LEN);
  /src/sys/dev/pci/
if_vr.c 605 int i, total_len; local in function:vr_rxeof
691 total_len = VR_RXBYTES(le32toh(d->vr_status));
693 if (total_len == 0) {
715 total_len -= ETHER_CRC_LEN;
729 if (vr_copy_small != 0 && total_len <= MHLEN) {
734 mtod(ds->ds_mbuf, void *), total_len);
768 if (total_len > (MHLEN - 2)) {
782 total_len);
791 m->m_pkthdr.len = m->m_len = total_len;
if_vge.c 1193 int idx, total_len, lim; local in function:vge_rxeof
1217 total_len = (rxstat & VGE_RDSTS_BUFSIZ) >> 16;
1285 m->m_len = total_len % VGE_RX_BUFSIZE;
1303 m->m_pkthdr.len = total_len - ETHER_CRC_LEN;
1305 m->m_pkthdr.len = m->m_len = total_len - ETHER_CRC_LEN;
if_msk.c 2122 unsigned cur, prod, tail, total_len = len; local in function:msk_rxeof
2154 uimin(dmamap->dm_mapsize, total_len), BUS_DMASYNC_POSTREAD);
2157 if (total_len < SK_MIN_FRAMELEN ||
2158 total_len > ETHER_MAX_LEN_JUMBO ||
2159 msk_rxvalid(sc, rxstat, total_len) == 0) {
2166 m->m_pkthdr.len = m->m_len = total_len;
  /src/sys/net/
slcompress.c 466 * Uncompress a packet of total length total_len. The first buflen bytes are
472 sl_uncompress_tcp_core(u_char *buf, int buflen, int total_len, u_int type,
600 total_len += cs->cs_hlen - vjlen;
601 cs->cs_ip.ip_len = htons(total_len);

Completed in 202 milliseconds

1 2