/src/sys/arch/mac68k/dev/ |
if_ae.c | 133 u_short totlen = 0; local in function:ae_write_mbuf 140 totlen += len; 169 len = ETHER_PAD_LEN - totlen; 175 totlen++; 182 totlen = ETHER_PAD_LEN; 184 return (totlen);
|
if_mc.c | 397 u_int len, totlen = 0; local in function:maceput 405 totlen += len; 411 if (totlen > PAGE_SIZE) 415 if (totlen < ETHERMIN + sizeof(struct ether_header)) { 416 int pad = ETHERMIN + sizeof(struct ether_header) - totlen; 417 memset(sc->sc_txbuf + totlen, 0, pad); 418 totlen = ETHERMIN + sizeof(struct ether_header); 422 (*sc->sc_putpacket)(sc, totlen); 425 return totlen; 604 mace_get(struct mc_softc *sc, void *pkt, int totlen) [all...] |
/src/sys/arch/macppc/dev/ |
am79c950.c | 394 u_int len, totlen = 0; local in function:maceput 402 totlen += len; 408 if (totlen > PAGE_SIZE) 412 if (totlen < ETHERMIN + sizeof(struct ether_header)) { 413 int pad = ETHERMIN + sizeof(struct ether_header) - totlen; 414 memset(sc->sc_txbuf + totlen, 0, pad); 415 totlen = ETHERMIN + sizeof(struct ether_header); 419 (*sc->sc_putpacket)(sc, totlen); 422 return totlen; 598 mace_get(struct mc_softc *sc, uint8_t *pkt, int totlen) [all...] |
/src/sys/ufs/chfs/ |
chfs_gc.c | 709 size_t totlen = chfs_nref_len(chmp, cheb, nref); local in function:chfs_gcollect_pristine 716 data = kmem_alloc(totlen, KM_SLEEP); 720 ret = chfs_read_leb(chmp, nref->nref_lnr, data, ofs, totlen, &retlen); 725 if (retlen != totlen) { 793 ret = chfs_reserve_space_gc(chmp, totlen); 808 vec.iov_len = totlen; 812 if (ret || retlen != totlen) { 816 ret, totlen, retlen); 818 chfs_change_size_dirty(chmp, chmp->chm_nextblock, totlen); 840 kmem_free(data, totlen); 1083 uint32_t totlen; local in function:chfs_gcollect_dnode [all...] |
/src/sys/rump/dev/lib/libugenhc/ |
ugenhc.c | 140 int totlen = 0; local in function:ugenhc_roothub_ctrl 153 totlen = uimin(buflen, sizeof(devd)); 154 memcpy(&devd, buf, totlen); 157 memcpy(buf, &devd, totlen); 163 totlen = usb_makestrdesc(sd, len, "rod nevada"); 167 totlen = usb_makestrdesc(sd, len, "RUMPUSBHC root hub"); 193 totlen = buflen; 199 totlen = len; 207 totlen = uimin(len, sizeof(ps)); 208 memcpy(buf, &ps, totlen); 225 int len, totlen; local in function:rumpusb_device_ctrl_start [all...] |
/src/sys/arch/amiga/dev/ |
if_ed_zbus.c | 290 u_short totlen = 0; local in function:ed_zbus_write_mbuf 297 totlen += len; 327 len = ETHER_PAD_LEN - totlen; 333 totlen++; 340 totlen = ETHER_PAD_LEN; 342 return totlen;
|
if_qn.c | 465 u_short totlen; local in function:qn_put 467 totlen = wantbyte = 0; 473 totlen += len; 503 if(totlen < (ETHER_MIN_LEN - ETHER_CRC_LEN)) { 508 for(len = totlen + 1; len < (ETHER_MIN_LEN - ETHER_CRC_LEN); 511 totlen = (ETHER_MIN_LEN - ETHER_CRC_LEN); 514 return (totlen);
|
/src/lib/libc/db/hash/ |
hash_bigkey.c | 478 int mylen, totlen; local in function:collect_data 486 totlen = len + mylen; 489 if ((hashp->tmp_buf = calloc(1, (size_t)totlen)) == NULL) 510 if (!xbp || ((totlen = 519 return (totlen); 544 int mylen, totlen; local in function:collect_key 552 totlen = len + mylen; 556 if ((hashp->tmp_key = calloc(1, (size_t)totlen)) == NULL) 562 if (!xbp || ((totlen = 563 collect_key(hashp, xbp, totlen, val, set)) < 1) [all...] |
/src/sys/dev/ic/ |
mb86960.c | 1349 int totlen, len; local in function:mb86960_write_mbufs 1374 for (totlen = 0, mp = m; mp != 0; mp = mp->m_next) 1375 totlen += mp->m_len; 1377 if (totlen != m->m_pkthdr.len) 1379 device_xname(sc->sc_dev), totlen, m->m_pkthdr.len); 1382 totlen = m->m_pkthdr.len; 1391 if (totlen > (ETHER_MAX_LEN - ETHER_CRC_LEN) || 1392 totlen < ETHER_HDR_LEN) { 1395 totlen < ETHER_HDR_LEN ? "partial" : "big", totlen); [all...] |
dp83932.c | 291 int error, olasttx, nexttx, opending, totlen, olseg; local in function:sonic_start 387 totlen = 0; 400 totlen += dmamap->dm_segs[seg].ds_len; 402 if (totlen < ETHER_PAD_LEN) { 409 htosonic32(sc, ETHER_PAD_LEN - totlen); 410 totlen = ETHER_PAD_LEN; 416 tda32->tda_pktsize = htosonic32(sc, totlen); 439 totlen += dmamap->dm_segs[seg].ds_len; 441 if (totlen < ETHER_PAD_LEN) { 448 htosonic16(sc, ETHER_PAD_LEN - totlen); [all...] |
mb86950.c | 603 u_short totlen; local in function:mb86950_put_fifo 607 totlen = wantbyte = 0; 613 totlen += len; 645 if (totlen < (ETHER_MIN_LEN - ETHER_CRC_LEN)) { 650 for (len = totlen + 1; len < (ETHER_MIN_LEN - ETHER_CRC_LEN); 655 totlen = (ETHER_MIN_LEN - ETHER_CRC_LEN); 658 return totlen;
|
lance.c | 365 lance_get(struct lance_softc *sc, int boff, int totlen) 375 m0->m_pkthdr.len = totlen; 379 while (totlen > 0) { 380 if (totlen >= MINCLSIZE) { 395 m->m_len = len = uimin(totlen, len); 399 totlen -= len; 400 if (totlen > 0) {
|
sgec.c | 324 int len, i, totlen, error; local in function:zestart 365 totlen = 0; 374 totlen += len; 376 if (totlen == m->m_pkthdr.len) { 400 if (totlen != m->m_pkthdr.len)
|
cs89x0.c | 1654 int totlen; local in function:cs_process_receive 1673 totlen = CS_READ_PACKET_PAGE(sc, frameOffset); 1680 totlen = CS_READ_PORT(sc, PORT_RXTX_DATA); 1683 if (totlen > ETHER_MAX_LEN) { 1685 totlen); 1710 m->m_pkthdr.len = totlen; 1719 if (totlen + pad + 1 > MHLEN) { 1739 m->m_len = totlen; 1745 pBuffLimit = pBuff + (totlen + 1) / 2; 1752 IO_READ_MULTI_2(sc, PORT_RXTX_DATA, pBuff, (totlen + 1)>>1) [all...] |
mtd803.c | 578 mtd_get(struct mtd_softc *sc, int index, int totlen) 590 m0->m_pkthdr.len = totlen; 594 while (totlen > 0) { 595 if (totlen >= MINCLSIZE) { 612 m->m_len = len = uimin(totlen, len); 616 totlen -= len; 617 if (totlen > 0) {
|
/src/sys/net/ |
if_ieee1394subr.c | 254 int totlen, fraglen, off; local in function:ieee1394_fragment 259 totlen = m0->m_pkthdr.len; 260 if (totlen + sizeof(struct ieee1394_unfraghdr) <= maxsize) { 276 ifh->ifh_ft_size = htons(IEEE1394_FT_MORE | (totlen - 1)); 282 while (off < totlen) { 283 if (off + fraglen > totlen) 284 fraglen = totlen - off; 293 htons(IEEE1394_FT_SUBSEQ | IEEE1394_FT_MORE | (totlen - 1));
|
/src/sys/dev/iscsi/ |
iscsi_send.c | 1376 uint32_t totlen, len, offs, sn; local in function:send_data_out 1383 totlen = ntohl(rx_pdu->pdu_hdr.pduh_p.r2t.DesiredDataTransferLength); 1386 totlen = min(conn->c_max_firstdata - offs, tx_ccb->ccb_data_len - offs); 1390 while (totlen) { 1391 len = min(totlen, conn->c_max_transfer); 1404 totlen -= len; 1407 if (!totlen) 1418 DEBC(conn, 10, ("Send DataOut: DataSN %d, len %d offs %x totlen %d\n", 1419 sn, len, offs, totlen)); 1422 send_pdu(tx_ccb, tx_pdu, (totlen) ? CCBDISP_NOWAIT : disp, PDUDISP_FREE) 1443 uint32_t totlen, len; local in function:send_command [all...] |
/src/sys/dev/usb/ |
vhci.c | 480 int totlen = 0; local in function:vhci_roothub_ctrl 493 totlen = uimin(buflen, sizeof(devd)); 494 memcpy(&devd, buf, totlen); 497 memcpy(buf, &devd, totlen); 503 totlen = usb_makestrdesc(sd, len, "NetBSD"); 507 totlen = usb_makestrdesc(sd, len, "VHCI root hub"); 553 totlen = uimin(buflen, sizeof(hubd)); 554 memcpy(&hubd, buf, totlen); 557 totlen = uimin(totlen, hubd.bDescLength) [all...] |
/src/sys/dev/isa/ |
if_el.c | 593 elget(struct el_softc *sc, int totlen) 605 m0->m_pkthdr.len = totlen; 612 while (totlen > 0) { 613 if (totlen >= MINCLSIZE) { 620 m->m_len = len = uimin(totlen, len); 623 totlen -= len; 624 if (totlen > 0) {
|
if_eg.c | 734 egget(struct eg_softc *sc, void *buf, int totlen) 744 m0->m_pkthdr.len = totlen; 748 while (totlen > 0) { 749 if (totlen >= MINCLSIZE) { 756 m->m_len = len = uimin(totlen, len); 760 totlen -= len; 761 if (totlen > 0) {
|
/src/sys/arch/newsmips/apbus/ |
if_sn.c | 505 u_int totlen = 0; local in function:sonicput 533 totlen += len; 537 if (totlen >= TXBSIZE) { 547 if (totlen < ETHERMIN + ETHER_HDR_LEN) { 548 int pad = ETHERMIN + ETHER_HDR_LEN - totlen; 549 memset((char *)mtdp->mtd_buf + totlen, 0, pad); 550 totlen = ETHERMIN + ETHER_HDR_LEN; 554 totlen); 556 SWO(sc->bitmode, txp, TXP_PKTSIZE, totlen); 576 return totlen; [all...] |
/src/sys/arch/mac68k/nubus/ |
if_netdock_nubus.c | 557 u_int totlen = 0; local in function:netdock_put 565 totlen += m->m_len; 567 if (totlen >= ETHER_MAX_LEN) 571 totlen += 6; 572 tmplen = totlen; 591 tmplen = ((totlen << 8) & 0xfe00) | ((totlen >> 8) & 0x00ff); 605 if (totlen & 0x01) 614 return (totlen);
|
/src/sys/arch/acorn32/podulebus/ |
if_ie.c | 1075 int resid, totlen, thisrboff, thismboff; local in function:ieget 1079 totlen = ie_packet_len(sc); 1081 if ( totlen > ETHER_MAX_LEN ) 1087 if ( totlen<=0 ) 1097 resid = totlen; 1104 m->m_pkthdr.len = totlen; 1113 while (totlen > 0) { 1122 if (totlen >= MINCLSIZE) { 1136 m->m_len = len = min(totlen, len); 1138 totlen -= len [all...] |
/src/sys/dev/scsipi/ |
if_se.c | 663 se_get(struct se_softc *sc, char *data, int totlen) 673 m0->m_pkthdr.len = totlen; 677 while (totlen > 0) { 678 if (totlen >= MINCLSIZE) { 693 m->m_len = len = uimin(totlen, len); 697 totlen -= len; 698 if (totlen > 0) {
|
/src/sys/dev/qbus/ |
if_qe.c | 452 int idx, len, s, i, totlen, buflen; local in function:qestart 497 totlen = 0; 507 } else if (totlen < ETHER_PAD_LEN) { 509 len = ETHER_PAD_LEN - totlen; 514 totlen += len; 517 if (totlen == buflen) { 540 if (totlen != buflen)
|