Home
last modified time | relevance | path

Searched refs:totlen (Results 1 – 25 of 79) sorted by relevance

1234

/netbsd-src/sys/rump/dev/lib/libugenhc/
H A Dugenhc.c140 int totlen = 0; in ugenhc_roothub_ctrl() local
153 totlen = uimin(buflen, sizeof(devd)); in ugenhc_roothub_ctrl()
154 memcpy(&devd, buf, totlen); in ugenhc_roothub_ctrl()
157 memcpy(buf, &devd, totlen); in ugenhc_roothub_ctrl()
163 totlen = usb_makestrdesc(sd, len, "rod nevada"); in ugenhc_roothub_ctrl()
167 totlen = usb_makestrdesc(sd, len, "RUMPUSBHC root hub"); in ugenhc_roothub_ctrl()
193 totlen = buflen; in ugenhc_roothub_ctrl()
199 totlen = len; in ugenhc_roothub_ctrl()
207 totlen = uimin(len, sizeof(ps)); in ugenhc_roothub_ctrl()
208 memcpy(buf, &ps, totlen); in ugenhc_roothub_ctrl()
[all …]
/netbsd-src/sys/arch/mac68k/dev/
H A Dif_mc.c397 u_int len, totlen = 0; in maceput() local
405 totlen += len; in maceput()
411 if (totlen > PAGE_SIZE) in maceput()
415 if (totlen < ETHERMIN + sizeof(struct ether_header)) { in maceput()
416 int pad = ETHERMIN + sizeof(struct ether_header) - totlen; in maceput()
417 memset(sc->sc_txbuf + totlen, 0, pad); in maceput()
418 totlen = ETHERMIN + sizeof(struct ether_header); in maceput()
422 (*sc->sc_putpacket)(sc, totlen); in maceput()
425 return totlen; in maceput()
604 mace_get(struct mc_softc *sc, void *pkt, int totlen) in mace_get() argument
[all …]
H A Dif_ae.c133 u_short totlen = 0; in ae_write_mbuf() local
140 totlen += len; in ae_write_mbuf()
169 len = ETHER_PAD_LEN - totlen; in ae_write_mbuf()
175 totlen++; in ae_write_mbuf()
182 totlen = ETHER_PAD_LEN; in ae_write_mbuf()
184 return (totlen); in ae_write_mbuf()
/netbsd-src/sys/arch/macppc/dev/
H A Dam79c950.c394 u_int len, totlen = 0; in maceput() local
402 totlen += len; in maceput()
408 if (totlen > PAGE_SIZE) in maceput()
412 if (totlen < ETHERMIN + sizeof(struct ether_header)) { in maceput()
413 int pad = ETHERMIN + sizeof(struct ether_header) - totlen; in maceput()
414 memset(sc->sc_txbuf + totlen, 0, pad); in maceput()
415 totlen = ETHERMIN + sizeof(struct ether_header); in maceput()
419 (*sc->sc_putpacket)(sc, totlen); in maceput()
422 return totlen; in maceput()
598 mace_get(struct mc_softc *sc, uint8_t *pkt, int totlen) in mace_get() argument
[all …]
/netbsd-src/sys/ufs/chfs/
H A Dchfs_gc.c709 size_t totlen = chfs_nref_len(chmp, cheb, nref); in chfs_gcollect_pristine() local
716 data = kmem_alloc(totlen, KM_SLEEP); in chfs_gcollect_pristine()
720 ret = chfs_read_leb(chmp, nref->nref_lnr, data, ofs, totlen, &retlen); in chfs_gcollect_pristine()
725 if (retlen != totlen) { in chfs_gcollect_pristine()
793 ret = chfs_reserve_space_gc(chmp, totlen); in chfs_gcollect_pristine()
808 vec.iov_len = totlen; in chfs_gcollect_pristine()
812 if (ret || retlen != totlen) { in chfs_gcollect_pristine()
816 ret, totlen, retlen); in chfs_gcollect_pristine()
818 chfs_change_size_dirty(chmp, chmp->chm_nextblock, totlen); in chfs_gcollect_pristine()
840 kmem_free(data, totlen); in chfs_gcollect_pristine()
[all …]
/netbsd-src/external/bsd/pcc/dist/pcc/f77/fcom/
H A Dmain.c358 ftnint totlen; in dodata() local
364 totlen = 0; in dodata()
382 totlen += ovlen; in dodata()
389 totlen = doeven(totlen, align); in dodata()
428 totlen = doeven(totlen+ovlen, (ALIDOUBLE>SZLONG ? ALIDOUBLE : SZLONG) ); in dodata()
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dtls13encryptiontest.c206 size_t totlen = 0; in multihexstr2buf() local
210 totlen += strlen(str[outer]); in multihexstr2buf()
211 if ((totlen & 1) != 0) in multihexstr2buf()
215 totlen /= 2; in multihexstr2buf()
216 outbuf = OPENSSL_malloc(totlen); in multihexstr2buf()
235 *len = totlen; in multihexstr2buf()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dtls13encryptiontest.c217 size_t totlen = 0; in multihexstr2buf() local
221 totlen += strlen(str[outer]); in multihexstr2buf()
222 if ((totlen & 1) != 0) in multihexstr2buf()
226 totlen /= 2; in multihexstr2buf()
227 outbuf = OPENSSL_malloc(totlen); in multihexstr2buf()
246 *len = totlen; in multihexstr2buf()
/netbsd-src/lib/libc/db/hash/
H A Dhash_bigkey.c478 int mylen, totlen; in collect_data() local
486 totlen = len + mylen; in collect_data()
489 if ((hashp->tmp_buf = calloc(1, (size_t)totlen)) == NULL) in collect_data()
510 if (!xbp || ((totlen = in collect_data()
519 return (totlen); in collect_data()
544 int mylen, totlen; in collect_key() local
552 totlen = len + mylen; in collect_key()
556 if ((hashp->tmp_key = calloc(1, (size_t)totlen)) == NULL) in collect_key()
562 if (!xbp || ((totlen = in collect_key()
563 collect_key(hashp, xbp, totlen, val, set)) < 1)) in collect_key()
[all …]
/netbsd-src/sys/arch/amiga/dev/
H A Dif_ed_zbus.c290 u_short totlen = 0; in ed_zbus_write_mbuf() local
297 totlen += len; in ed_zbus_write_mbuf()
327 len = ETHER_PAD_LEN - totlen; in ed_zbus_write_mbuf()
333 totlen++; in ed_zbus_write_mbuf()
340 totlen = ETHER_PAD_LEN; in ed_zbus_write_mbuf()
342 return totlen; in ed_zbus_write_mbuf()
H A Dif_qn.c465 u_short totlen; in qn_put() local
467 totlen = wantbyte = 0; in qn_put()
473 totlen += len; in qn_put()
503 if(totlen < (ETHER_MIN_LEN - ETHER_CRC_LEN)) { in qn_put()
508 for(len = totlen + 1; len < (ETHER_MIN_LEN - ETHER_CRC_LEN); in qn_put()
511 totlen = (ETHER_MIN_LEN - ETHER_CRC_LEN); in qn_put()
514 return (totlen); in qn_put()
/netbsd-src/sys/dev/ic/
H A Dmb86960.c1349 int totlen, len; in mb86960_write_mbufs() local
1374 for (totlen = 0, mp = m; mp != 0; mp = mp->m_next) in mb86960_write_mbufs()
1375 totlen += mp->m_len; in mb86960_write_mbufs()
1377 if (totlen != m->m_pkthdr.len) in mb86960_write_mbufs()
1379 device_xname(sc->sc_dev), totlen, m->m_pkthdr.len); in mb86960_write_mbufs()
1382 totlen = m->m_pkthdr.len; in mb86960_write_mbufs()
1391 if (totlen > (ETHER_MAX_LEN - ETHER_CRC_LEN) || in mb86960_write_mbufs()
1392 totlen < ETHER_HDR_LEN) { in mb86960_write_mbufs()
1395 totlen < ETHER_HDR_LEN ? "partial" : "big", totlen); in mb86960_write_mbufs()
1409 len = uimax(totlen, (ETHER_MIN_LEN - ETHER_CRC_LEN)); in mb86960_write_mbufs()
[all …]
H A Dlance.c365 lance_get(struct lance_softc *sc, int boff, int totlen) in lance_get() argument
375 m0->m_pkthdr.len = totlen; in lance_get()
379 while (totlen > 0) { in lance_get()
380 if (totlen >= MINCLSIZE) { in lance_get()
395 m->m_len = len = uimin(totlen, len); in lance_get()
399 totlen -= len; in lance_get()
400 if (totlen > 0) { in lance_get()
H A Ddp83932.c291 int error, olasttx, nexttx, opending, totlen, olseg; in sonic_start() local
387 totlen = 0; in sonic_start()
400 totlen += dmamap->dm_segs[seg].ds_len; in sonic_start()
402 if (totlen < ETHER_PAD_LEN) { in sonic_start()
409 htosonic32(sc, ETHER_PAD_LEN - totlen); in sonic_start()
410 totlen = ETHER_PAD_LEN; in sonic_start()
416 tda32->tda_pktsize = htosonic32(sc, totlen); in sonic_start()
439 totlen += dmamap->dm_segs[seg].ds_len; in sonic_start()
441 if (totlen < ETHER_PAD_LEN) { in sonic_start()
448 htosonic16(sc, ETHER_PAD_LEN - totlen); in sonic_start()
[all …]
H A Dmb86950.c603 u_short totlen; in mb86950_put_fifo() local
607 totlen = wantbyte = 0; in mb86950_put_fifo()
613 totlen += len; in mb86950_put_fifo()
645 if (totlen < (ETHER_MIN_LEN - ETHER_CRC_LEN)) { in mb86950_put_fifo()
650 for (len = totlen + 1; len < (ETHER_MIN_LEN - ETHER_CRC_LEN); in mb86950_put_fifo()
655 totlen = (ETHER_MIN_LEN - ETHER_CRC_LEN); in mb86950_put_fifo()
658 return totlen; in mb86950_put_fifo()
H A Dcs89x0.c1654 int totlen; in cs_process_receive() local
1673 totlen = CS_READ_PACKET_PAGE(sc, frameOffset); in cs_process_receive()
1680 totlen = CS_READ_PORT(sc, PORT_RXTX_DATA); in cs_process_receive()
1683 if (totlen > ETHER_MAX_LEN) { in cs_process_receive()
1685 totlen); in cs_process_receive()
1710 m->m_pkthdr.len = totlen; in cs_process_receive()
1719 if (totlen + pad + 1 > MHLEN) { in cs_process_receive()
1739 m->m_len = totlen; in cs_process_receive()
1745 pBuffLimit = pBuff + (totlen + 1) / 2; in cs_process_receive()
1752 IO_READ_MULTI_2(sc, PORT_RXTX_DATA, pBuff, (totlen in cs_process_receive()
[all...]
/netbsd-src/sys/dev/iscsi/
H A Discsi_send.c1376 uint32_t totlen, len, offs, sn; in send_data_out() local
1383 totlen = ntohl(rx_pdu->pdu_hdr.pduh_p.r2t.DesiredDataTransferLength); in send_data_out()
1386 totlen = min(conn->c_max_firstdata - offs, tx_ccb->ccb_data_len - offs); in send_data_out()
1390 while (totlen) { in send_data_out()
1391 len = min(totlen, conn->c_max_transfer); in send_data_out()
1404 totlen -= len; in send_data_out()
1407 if (!totlen) in send_data_out()
1418 DEBC(conn, 10, ("Send DataOut: DataSN %d, len %d offs %x totlen %d\n", in send_data_out()
1419 sn, len, offs, totlen)); in send_data_out()
1422 send_pdu(tx_ccb, tx_pdu, (totlen) in send_data_out()
1443 uint32_t totlen, len; send_command() local
[all...]
/netbsd-src/sys/dev/usb/
H A Dvhci.c480 int totlen = 0; in vhci_roothub_ctrl() local
493 totlen = uimin(buflen, sizeof(devd)); in vhci_roothub_ctrl()
494 memcpy(&devd, buf, totlen); in vhci_roothub_ctrl()
497 memcpy(buf, &devd, totlen); in vhci_roothub_ctrl()
503 totlen = usb_makestrdesc(sd, len, "NetBSD"); in vhci_roothub_ctrl()
507 totlen = usb_makestrdesc(sd, len, "VHCI root hub"); in vhci_roothub_ctrl()
553 totlen = uimin(buflen, sizeof(hubd)); in vhci_roothub_ctrl()
554 memcpy(&hubd, buf, totlen); in vhci_roothub_ctrl()
557 totlen = uimin(totlen, hubd.bDescLength); in vhci_roothub_ctrl()
558 memcpy(buf, &hubd, totlen); in vhci_roothub_ctrl()
[all …]
/netbsd-src/sys/dev/isa/
H A Dif_el.c593 elget(struct el_softc *sc, int totlen) in elget() argument
605 m0->m_pkthdr.len = totlen; in elget()
612 while (totlen > 0) { in elget()
613 if (totlen >= MINCLSIZE) { in elget()
620 m->m_len = len = uimin(totlen, len); in elget()
623 totlen -= len; in elget()
624 if (totlen > 0) { in elget()
H A Dif_eg.c734 egget(struct eg_softc *sc, void *buf, int totlen) in egget() argument
744 m0->m_pkthdr.len = totlen; in egget()
748 while (totlen > 0) { in egget()
749 if (totlen >= MINCLSIZE) { in egget()
756 m->m_len = len = uimin(totlen, len); in egget()
760 totlen -= len; in egget()
761 if (totlen > 0) { in egget()
/netbsd-src/sys/arch/mac68k/nubus/
H A Dif_netdock_nubus.c557 u_int totlen = 0; in netdock_put() local
565 totlen += m->m_len; in netdock_put()
567 if (totlen >= ETHER_MAX_LEN) in netdock_put()
571 totlen += 6; in netdock_put()
572 tmplen = totlen; in netdock_put()
591 tmplen = ((totlen << 8) & 0xfe00) | ((totlen >> 8) & 0x00ff); in netdock_put()
605 if (totlen & 0x01) in netdock_put()
614 return (totlen); in netdock_put()
/netbsd-src/sys/net/
H A Dif_ieee1394subr.c256 int totlen, fraglen, off; in ieee1394_fragment() local
261 totlen = m0->m_pkthdr.len; in ieee1394_fragment()
262 if (totlen + sizeof(struct ieee1394_unfraghdr) <= maxsize) { in ieee1394_fragment()
278 ifh->ifh_ft_size = htons(IEEE1394_FT_MORE | (totlen - 1)); in ieee1394_fragment()
284 while (off < totlen) { in ieee1394_fragment()
285 if (off + fraglen > totlen) in ieee1394_fragment()
286 fraglen = totlen - off; in ieee1394_fragment()
295 htons(IEEE1394_FT_SUBSEQ | IEEE1394_FT_MORE | (totlen - 1)); in ieee1394_fragment()
/netbsd-src/sys/arch/newsmips/apbus/
H A Dif_sn.c505 u_int totlen = 0; in sonicput() local
533 totlen += len; in sonicput()
537 if (totlen >= TXBSIZE) { in sonicput()
547 if (totlen < ETHERMIN + ETHER_HDR_LEN) { in sonicput()
548 int pad = ETHERMIN + ETHER_HDR_LEN - totlen; in sonicput()
549 memset((char *)mtdp->mtd_buf + totlen, 0, pad); in sonicput()
550 totlen = ETHERMIN + ETHER_HDR_LEN; in sonicput()
554 totlen); in sonicput()
556 SWO(sc->bitmode, txp, TXP_PKTSIZE, totlen); in sonicput()
576 return totlen; in sonicput()
/netbsd-src/sys/arch/acorn32/podulebus/
H A Dif_ie.c1075 int resid, totlen, thisrboff, thismboff; in ieget() local
1079 totlen = ie_packet_len(sc); in ieget()
1081 if ( totlen > ETHER_MAX_LEN ) in ieget()
1087 if ( totlen<=0 ) in ieget()
1097 resid = totlen; in ieget()
1104 m->m_pkthdr.len = totlen; in ieget()
1113 while (totlen > 0) { in ieget()
1122 if (totlen >= MINCLSIZE) { in ieget()
1136 m->m_len = len = min(totlen, len); in ieget()
1138 totlen in ieget()
[all...]
/netbsd-src/sys/kern/
H A Duipc_mbuf.c1391 m_devget(char *buf, int totlen, int off, struct ifnet *ifp) in m_devget()
1399 epkt = cp + totlen; in m_devget()
1406 totlen -= 2 * sizeof(uint16_t); in m_devget()
1413 m->m_pkthdr.len = totlen; in m_devget()
1416 while (totlen > 0) { in m_devget()
1426 len = uimin(totlen, epkt - cp); in m_devget()
1453 totlen -= len; in m_devget()
1544 int totlen = 0; in m_copyback_internal()
1556 * we don't bother to update "totlen" in the case of CB_COW, in m_copyback_internal()
1566 totlen in m_copyback_internal()
1388 m_devget(char * buf,int totlen,int off,struct ifnet * ifp) m_devget() argument
1541 int totlen = 0; m_copyback_internal() local
2303 int totlen = 0, len; m_verify_packet() local
[all...]

1234