/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_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_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_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_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));
|
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_umb.c | 2610 int total_len; local in function:umb_intr 2619 usbd_get_xfer_status(xfer, NULL, NULL, &total_len, NULL); 2620 if (total_len < UCDC_NOTIFICATION_LENGTH) { 2622 total_len, UCDC_NOTIFICATION_LENGTH);
|
/src/common/lib/libutil/ |
snprintb.c | 65 size_t total_len; member in struct:__anon033aa2900108 74 if (s->total_len < s->bufsize) 75 s->buf[s->total_len] = c; 76 s->total_len++; 82 int num_len = s->total_len < s->bufsize 83 ? snprintf(s->buf + s->total_len, s->bufsize - s->total_len, 87 s->total_len += num_len; 94 if (s->total_len - s->line_pos > s->line_max) { 95 s->total_len = s->line_pos + s->line_max - 1 [all...] |
/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...] |
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);
|
elinkxl.c | 1365 uint16_t total_len; local in function:ex_intr 1376 total_len = pktstat & EX_UPD_PKTLENMASK; 1377 if (total_len < 1383 m->m_pkthdr.len = m->m_len = total_len;
|
/src/sys/dev/pci/ |
if_vte.c | 1103 uint16_t status, total_len; local in function:vte_rxeof 1122 total_len = VTE_RX_LEN(le16toh(rxd->rx_desc->drlen)); 1143 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;
|
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_sk.c | 2045 int i, cur, total_len = 0; local in function:sk_rxeof 2078 total_len = SK_RXBYTES(le32toh(cur_desc->sk_ctl)); 2100 total_len + ETHER_ALIGN, 0, ifp); 2112 m->m_pkthdr.len = m->m_len = total_len;
|
if_rge.c | 1283 int i, total_len, rx = 0; local in function:rge_rxeof 1299 total_len = RGE_RXBYTES(cur_rx); 1345 m->m_len = total_len; 1363 m->m_pkthdr.len = total_len - ETHER_CRC_LEN; 1367 (total_len - ETHER_CRC_LEN); 1370 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;
|
/src/sys/dev/marvell/ |
if_mvgbe.c | 1953 int idx, cur, total_len; local in function:mvgbe_rxeof 1991 total_len = MVGBE2H16(cur_rx->bytecnt) - ETHER_CRC_LEN; 2058 m0 = m_devget(mtod(m, char *), total_len, 0, ifp); 2070 m->m_pkthdr.len = m->m_len = total_len;
|
/src/sys/dev/pci/cxgb/ |
cxgb_sge.c | 925 int i, total_len; local in function:busdma_map_mbufs 932 total_len = 0; 936 total_len += m0->m_len; 939 err = bus_dmamap_create(txq->entry_tag, total_len, TX_MAX_SEGS, total_len, 0, BUS_DMA_NOWAIT, &stx->map);
|