/titanic_41/usr/src/uts/common/ipp/meters/ |
H A D | tokenmt.c | 77 uint32_t pkt_len; in tokenmt_process() local 112 pkt_len = ntohs(ipha->ipha_length); in tokenmt_process() 117 pkt_len = ntohs(ip6_hdr->ip6_plen) + in tokenmt_process() 122 pkt_len <<= 3; in tokenmt_process() 139 if (pkt_len <= tokenmt_data->committed_tokens) { in tokenmt_process() 140 tokenmt_data->committed_tokens -= pkt_len; in tokenmt_process() 142 } else if (pkt_len <= tokenmt_data->peak_tokens) { in tokenmt_process() 149 tokenmt_data->peak_tokens -= pkt_len; in tokenmt_process() 157 (pkt_len <= tokenmt_data->committed_tokens)) { in tokenmt_process() 158 tokenmt_data->committed_tokens -= pkt_len; in tokenmt_process() [all …]
|
H A D | tswtcl.c | 66 uint32_t pkt_len; in tswtcl_process() local 100 pkt_len = ntohs(ipha->ipha_length); in tswtcl_process() 103 pkt_len = ntohs(ip6_hdr->ip6_plen) + in tswtcl_process() 108 pkt_len <<= 3; in tswtcl_process() 118 1000) + pkt_len; in tswtcl_process() 186 atomic_add_64(&tswtcl_data->green_bits, pkt_len); in tswtcl_process() 189 atomic_add_64(&tswtcl_data->yellow_bits, pkt_len); in tswtcl_process() 193 atomic_add_64(&tswtcl_data->red_bits, pkt_len); in tswtcl_process()
|
/titanic_41/usr/src/lib/librstp/common/ |
H A D | transmit.c | 98 unsigned short pkt_len) in build_bpdu_header() argument 110 len8023 = htons ((unsigned short) (pkt_len + 3)); in build_bpdu_header() 113 if (pkt_len < MIN_FRAME_LENGTH) pkt_len = MIN_FRAME_LENGTH; in build_bpdu_header() 114 return pkt_len; in build_bpdu_header() 120 register size_t pkt_len; in txTcn() local 137 pkt_len = build_bpdu_header (port_index, in txTcn() 147 pkt_len); in txTcn() 174 register size_t pkt_len; in txConfig() local 193 pkt_len = build_bpdu_header (port->port_index, in txConfig() 206 pkt_len); in txConfig() [all …]
|
/titanic_41/usr/src/uts/common/io/hxge/ |
H A D | hxge_send.c | 111 uint32_t pkt_len, pack_len, min_len; in hxge_start() local 233 pkt_len = 0; in hxge_start() 268 pkt_len = pack_len = boff = TX_PKT_HEADER_SIZE; in hxge_start() 286 nmblks, len, pkt_len, pack_len)); in hxge_start() 328 clen = pkt_len; in hxge_start() 339 pkt_len += len; in hxge_start() 350 len, pkt_len, pack_len)); in hxge_start() 365 pkt_len, pack_len)); in hxge_start() 383 bcopy_thresh, pkt_len, pack_len)); in hxge_start() 394 pkt_len, pack_len, hdrp)); in hxge_start() [all …]
|
H A D | hxge_txdma.c | 252 int pkt_len, uint8_t npads, p_tx_pkt_hdr_all_t pkthdrp) in hxge_fill_tx_hdr() argument 277 pkt_len, npads)); in hxge_fill_tx_hdr() 278 tmp = (uint64_t)pkt_len; in hxge_fill_tx_hdr() 449 pkt_len, npads, hdrp->value)); in hxge_fill_tx_hdr() 484 uint_t pkt_len; in hxge_tx_pkt_nmblocks() local 495 pkt_len = 0; in hxge_tx_pkt_nmblocks() 502 len, pkt_len, nmblks, *tot_xfer_len_p)); in hxge_tx_pkt_nmblocks() 509 " len (0) pkt_len %d nmblks %d", pkt_len, nmblks)); in hxge_tx_pkt_nmblocks() 515 len, pkt_len, nmblks, *tot_xfer_len_p)); in hxge_tx_pkt_nmblocks() 521 len, pkt_len, nmblks)); in hxge_tx_pkt_nmblocks() [all …]
|
H A D | hxge_txdma.h | 221 int pkt_len, uint8_t npads, p_tx_pkt_hdr_all_t pkthdrp);
|
/titanic_41/usr/src/uts/common/io/igb/ |
H A D | igb_rx.c | 138 igb_rx_copy(igb_rx_data_t *rx_data, uint32_t index, uint32_t pkt_len) in igb_rx_copy() argument 158 mp = allocb(pkt_len + IPHDR_ALIGN_ROOM, 0); in igb_rx_copy() 168 bcopy(current_rcb->rx_buf.address, mp->b_rptr, pkt_len); in igb_rx_copy() 169 mp->b_wptr = mp->b_rptr + pkt_len; in igb_rx_copy() 181 igb_rx_bind(igb_rx_data_t *rx_data, uint32_t index, uint32_t pkt_len) in igb_rx_bind() argument 234 mp->b_wptr = mp->b_rptr + pkt_len; in igb_rx_bind() 325 uint32_t pkt_len; in igb_rx() local 378 pkt_len = current_rbd->wb.upper.length; in igb_rx() 381 ((pkt_len + total_bytes) > poll_bytes)) in igb_rx() 385 total_bytes += pkt_len; in igb_rx() [all …]
|
/titanic_41/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_rx.c | 145 ixgbe_rx_copy(ixgbe_rx_data_t *rx_data, uint32_t index, uint32_t pkt_len) in ixgbe_rx_copy() argument 166 mp = allocb(pkt_len + IPHDR_ALIGN_ROOM, 0); in ixgbe_rx_copy() 176 bcopy(current_rcb->rx_buf.address, mp->b_rptr, pkt_len); in ixgbe_rx_copy() 177 mp->b_wptr = mp->b_rptr + pkt_len; in ixgbe_rx_copy() 189 ixgbe_rx_bind(ixgbe_rx_data_t *rx_data, uint32_t index, uint32_t pkt_len) in ixgbe_rx_bind() argument 242 mp->b_wptr = mp->b_rptr + pkt_len; in ixgbe_rx_bind() 270 uint32_t lro_num, uint32_t pkt_len) in ixgbe_lro_bind() argument 339 last_pkt_len = pkt_len - ixgbe->rx_buf_size * (lro_num - 1); in ixgbe_lro_bind() 390 uint32_t lro_num, uint32_t pkt_len) in ixgbe_lro_copy() argument 405 mp = allocb(pkt_len + IPHDR_ALIGN_ROOM, 0); in ixgbe_lro_copy() [all …]
|
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_tx.c | 33 mblk_t *mp, uint32_t pkt_len); 35 uint32_t pkt_len); 452 uint32_t pkt_len) in oce_bcopy_wqe() argument 473 for (len = 0; mp != NULL && len < pkt_len; mp = mp->b_cont) { in oce_bcopy_wqe() 479 (void) ddi_dma_sync(DBUF_DHDL(wqbd->wqb), 0, pkt_len, in oce_bcopy_wqe() 488 wqed->frag[wqed->frag_idx].u0.s.frag_len = pkt_len; in oce_bcopy_wqe() 508 uint32_t pkt_len) in oce_map_wqe() argument 525 pkt_len, DDI_DMA_WRITE | DDI_DMA_STREAMING, in oce_map_wqe() 693 uint32_t pkt_len = 0; in oce_send_packet() local 713 pkt_len += MBLKL(tmp); in oce_send_packet() [all …]
|
H A D | oce_rx.c | 336 int pkt_len; in oce_rx() local 354 pkt_len = cqe->u0.s.pkt_size; in oce_rx() 369 frag_size = (pkt_len > rq->cfg.frag_size) ? in oce_rx() 370 rq->cfg.frag_size : pkt_len; in oce_rx() 372 pkt_len -= frag_size; in oce_rx() 396 int pkt_len; in oce_rx_bcopy() local 410 pkt_len = cqe->u0.s.pkt_size; in oce_rx_bcopy() 411 alloc_len = pkt_len + OCE_RQE_BUF_HEADROOM; in oce_rx_bcopy() 421 mp->b_wptr = mp->b_rptr + pkt_len; in oce_rx_bcopy() 427 frag_size = (pkt_len > rq->cfg.frag_size) ? in oce_rx_bcopy() [all …]
|
/titanic_41/usr/src/uts/common/io/nxge/ |
H A D | nxge_send.c | 160 uint32_t pkt_len, pack_len, min_len; in nxge_start() local 400 pkt_len = 0; in nxge_start() 428 pkt_len = pack_len = boff = TX_PKT_HEADER_SIZE; in nxge_start() 446 nmblks, len, pkt_len, pack_len)); in nxge_start() 500 clen = pkt_len; in nxge_start() 511 pkt_len += len; in nxge_start() 524 len, pkt_len, pack_len)); in nxge_start() 540 pkt_len, pack_len)); in nxge_start() 559 pkt_len, pack_len)); in nxge_start() 570 pkt_len, pack_len, hdrp)); in nxge_start() [all …]
|
H A D | nxge_txdma.c | 454 boolean_t l4_cksum, int pkt_len, uint8_t npads, in nxge_fill_tx_hdr() argument 484 "npads %d", pkt_len, npads)); in nxge_fill_tx_hdr() 485 tmp = (uint64_t)pkt_len; in nxge_fill_tx_hdr() 738 "npads %d value 0x%llx", pkt_len, npads, hdrp->value)); in nxge_fill_tx_hdr() 777 uint_t pkt_len; in nxge_tx_pkt_nmblocks() local 788 pkt_len = 0; in nxge_tx_pkt_nmblocks() 795 len, pkt_len, nmblks, in nxge_tx_pkt_nmblocks() 804 pkt_len, nmblks)); in nxge_tx_pkt_nmblocks() 811 len, pkt_len, nmblks, in nxge_tx_pkt_nmblocks() 818 len, pkt_len, nmblks)); in nxge_tx_pkt_nmblocks() [all …]
|
/titanic_41/usr/src/uts/common/inet/ilb/ |
H A D | ilb.c | 1666 in6_addr_t *dst, int l3, int l4, void *iph, uint8_t *tph, uint32_t pkt_len, in ilb_check() argument 1708 pkt_len, lb_dst)) { in ilb_check() 1721 pkt_len, &busy); in ilb_check() 1758 ILB_R_KSTAT_UPDATE(rule, nomem_bytes_dropped, pkt_len); in ilb_check() 1769 ILB_S_KSTAT_UPDATE(server, bytes_processed, pkt_len); in ilb_check() 1798 ILB_R_KSTAT_UPDATE(rule, bytes_dropped, pkt_len); in ilb_check() 1800 ILB_R_KSTAT_UPDATE(rule, noport_bytes_dropped, pkt_len); in ilb_check() 1821 ILB_R_KSTAT_UPDATE(rule, bytes_dropped, pkt_len); in ilb_check() 1823 ILB_R_KSTAT_UPDATE(rule, nomem_bytes_dropped, pkt_len); in ilb_check() 1845 ILB_R_KSTAT_UPDATE(rule, bytes_dropped, pkt_len); in ilb_check() [all …]
|
H A D | ilb_conn.c | 695 update_conn_tcp(ilb_conn_t *connp, void *iph, tcpha_t *tcpha, int32_t pkt_len, in update_conn_tcp() argument 704 seg_len = pkt_len - ((uint8_t *)tcpha - (uint8_t *)iph) - in update_conn_tcp() 751 int32_t pkt_len, boolean_t c2s) in ilb_find_conn() argument 804 pkt_len); in ilb_find_conn() 808 tcp_alive = update_conn_tcp(connp, iph, tph, pkt_len, in ilb_find_conn() 831 uint32_t pkt_len, in6_addr_t *lb_dst) in ilb_check_conn() argument 839 &rule_cache, &adj_ip_sum, &adj_tp_sum, pkt_len, B_TRUE)) { in ilb_check_conn() 860 &rule_cache, &adj_ip_sum, &adj_tp_sum, pkt_len, B_FALSE)) { in ilb_check_conn()
|
/titanic_41/usr/src/uts/common/inet/ip/ |
H A D | ip6_input.c | 520 uint_t pkt_len; in ill_input_short_v6() local 556 pkt_len = ira->ira_pktlen; in ill_input_short_v6() 559 len -= pkt_len; in ill_input_short_v6() 561 mp = ip_check_length(mp, rptr, len, pkt_len, IPV6_HDR_LEN, ira); in ill_input_short_v6() 602 pkt_len = ira->ira_pktlen; in ill_input_short_v6() 650 if (pkt_len < IPV6_HDR_LEN + MIN_EHDR_LEN) { in ill_input_short_v6() 669 if (pkt_len < IPV6_HDR_LEN + ehdrlen) { in ill_input_short_v6() 1077 uint32_t pkt_len; in ip_forward_xmit_v6() local 1101 pkt_len = ira->ira_pktlen; in ip_forward_xmit_v6() 1105 if (pkt_len > mtu) { in ip_forward_xmit_v6() [all …]
|
H A D | ip_input.c | 563 uint_t pkt_len; in ill_input_short_v4() local 588 pkt_len = ira->ira_pktlen; in ill_input_short_v4() 591 len -= pkt_len; in ill_input_short_v4() 593 mp = ip_check_length(mp, rptr, len, pkt_len, in ill_input_short_v4() 635 pkt_len = ira->ira_pktlen; in ill_input_short_v4() 741 mp = ip_check_optlen(mp, ipha, opt_len, pkt_len, ira); in ill_input_short_v4() 1119 uint32_t pkt_len; in ip_forward_xmit_v4() local 1170 pkt_len = ira->ira_pktlen; in ip_forward_xmit_v4() 1176 if (pkt_len > mtu) { in ip_forward_xmit_v4() 1209 (void) ip_fragment_v4(mp, nce, ixaflags, pkt_len, mtu, in ip_forward_xmit_v4() [all …]
|
H A D | ip_output.c | 2052 uint_t pkt_len, zoneid_t nolzid) in ip_postfrag_loopback() argument 2072 iras.ira_pktlen = pkt_len; in ip_postfrag_loopback() 2132 uint_t pkt_len, uint32_t xmit_hint, zoneid_t szone, zoneid_t nolzid, in ip_postfrag_loopcheck() argument 2152 ip_postfrag_loopback(mp1, nce, ixaflags, pkt_len, in ip_postfrag_loopcheck() 2189 return (ip_xmit(mp, nce, ixaflags, pkt_len, xmit_hint, szone, 0, in ip_postfrag_loopcheck() 2203 uint_t pkt_len, uint32_t xmit_hint, zoneid_t szone, zoneid_t nolzid, in ip_postfrag_multirt_v4() argument 2234 ip_postfrag_loopback(mp1, nce, ixaflags, pkt_len, in ip_postfrag_multirt_v4() 2367 err = ip_xmit(mp1, nce1, ixaflags, pkt_len, xmit_hint, szone, in ip_postfrag_multirt_v4() 2379 err = ip_xmit(mp, nce, ixaflags, pkt_len, xmit_hint, szone, 0, in ip_postfrag_multirt_v4()
|
H A D | ip6.c | 1644 int pkt_len; in icmp_send_redirect_v6() local 1709 pkt_len = msgdsize(mp); in icmp_send_redirect_v6() 1711 if (pkt_len > max_redir_hdr_data_len) { in icmp_send_redirect_v6() 1714 (void) adjmsg(mp, max_redir_hdr_data_len - pkt_len); in icmp_send_redirect_v6() 1716 rdh->nd_opt_rh_len = (pkt_len + sizeof (nd_opt_rd_hdr_t))/8; in icmp_send_redirect_v6() 1717 (void) adjmsg(mp, -(pkt_len % 8)); in icmp_send_redirect_v6() 4104 ip_fragment_v6(mblk_t *mp, nce_t *nce, iaflags_t ixaflags, uint_t pkt_len, in ip_fragment_v6() argument 4138 ASSERT(ntohs(ip6h->ip6_plen) + IPV6_HDR_LEN == pkt_len); in ip_fragment_v6() 4139 ASSERT(msgdsize(mp) == pkt_len); in ip_fragment_v6() 4215 pkt_len -= unfragmentable_len; in ip_fragment_v6() [all …]
|
H A D | ip6_output.c | 1141 uint_t pkt_len, uint32_t xmit_hint, zoneid_t szone, zoneid_t nolzid, in ip_postfrag_multirt_v6() argument 1172 ip_postfrag_loopback(mp1, nce, ixaflags, pkt_len, in ip_postfrag_multirt_v6() 1295 err = ip_xmit(mp1, nce1, ixaflags, pkt_len, xmit_hint, szone, in ip_postfrag_multirt_v6() 1307 err = ip_xmit(mp, nce, ixaflags, pkt_len, xmit_hint, szone, 0, in ip_postfrag_multirt_v6()
|
/titanic_41/usr/src/grub/grub-0.97/netboot/ |
H A D | w89c840.c | 441 int pkt_len = ((status >> 16) & 0x7ff) - 4; in w89c840_poll() local 444 … printf(" netdev_rx() normal Rx pkt ring %d length %d status %X\n", entry, pkt_len, status); in w89c840_poll() 447 nic->packetlen = pkt_len; in w89c840_poll() 452 memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len); in w89c840_poll()
|
H A D | sundance.c | 476 int pkt_len = 0; in sundance_poll() local 488 pkt_len = frame_status & 0x1fff; in sundance_poll() 493 if (pkt_len < rx_copybreak) { in sundance_poll() 497 nic->packetlen = pkt_len; in sundance_poll()
|
/titanic_41/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_recv.c | 359 … u32_t sge_size = mm_le16_to_cpu(cqe->pkt_len) - pkt->l2pkt_rx_info->size; in lm_tpa_stop() 372 DbgBreakIf( mm_le16_to_cpu(cqe->pkt_len) < pkt->l2pkt_rx_info->size); in lm_tpa_stop() 380 pkt->l2pkt_rx_info->total_packet_size = mm_le16_to_cpu(cqe->pkt_len); in lm_tpa_stop() 400 DbgBreakIf( mm_le16_to_cpu(cqe->pkt_len) != pkt->l2pkt_rx_info->size); in lm_tpa_stop() 682 IN const u16_t pkt_len, in lm_recv_set_pkt_len() argument 686 pkt->l2pkt_rx_info->size = pkt_len; //- 4; /* CRC32 */ in lm_recv_set_pkt_len()
|
/titanic_41/usr/src/uts/common/inet/sctp/ |
H A D | sctp_output.c | 1793 uint_t pkt_len; in sctp_rexmit() local 1802 pkt = sctp_rexmit_packet(sctp, &meta, &mp, fp, &pkt_len); in sctp_rexmit() 1804 ASSERT(pkt_len <= fp->sf_pmss); in sctp_rexmit() 2213 uint_t pkt_len; in sctp_ss_rexmit() local 2294 pkt = sctp_rexmit_packet(sctp, &meta, &mp, fp, &pkt_len); in sctp_ss_rexmit() 2299 if ((pkt_len > fp->sf_pmss) && fp->sf_isv4) { in sctp_ss_rexmit() 2314 if (tot_wnd <= pkt_len || tot_wnd - pkt_len < fp->sf_pmss || in sctp_ss_rexmit() 2323 for (tot_wnd -= pkt_len, burst = sctps->sctps_maxburst - 1; in sctp_ss_rexmit()
|
/titanic_41/usr/src/uts/common/io/usb/clients/audio/usb_as/ |
H A D | usb_as.c | 1089 int pkt_len[USB_AS_N_FRAMES]; in usb_as_play_isoc_data() local 1102 pkt_len[pkt] = usb_as_get_pktsize(uasp, frame++); in usb_as_play_isoc_data() 1103 bufsize += pkt_len[pkt]; in usb_as_play_isoc_data() 1163 if (n < pkt_len[n_pkts]) { in usb_as_play_isoc_data() 1164 pkt_len[n_pkts] = n; in usb_as_play_isoc_data() 1166 n -= pkt_len[n_pkts]; in usb_as_play_isoc_data() 1186 pkt_len[pkt]; in usb_as_play_isoc_data()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute_aux6.c | 538 IPv6_hdrlen(ip6_t *ip6h, int pkt_len, uint8_t *last_hdr_rtrn) in IPv6_hdrlen() argument 553 endptr = ((uint8_t *)ip6h) + pkt_len; in IPv6_hdrlen()
|