Lines Matching full:pi
51 * @pi: packet information
63 ice_tso_detect_sparse(if_pkt_info_t pi)
66 bus_dma_segment_t *segs = pi->ipi_segs;
67 int nsegs = pi->ipi_nsegs;
71 hlen = pi->ipi_ehdrlen + pi->ipi_ip_hlen + pi->ipi_tcp_hlen;
72 tsolen = pi->ipi_len - hlen;
111 segsz = pi->ipi_tso_segsz;
138 * @pi: the packet info to prepare for
145 ice_tso_setup(struct ice_tx_queue *txq, if_pkt_info_t pi)
152 idx = pi->ipi_pidx;
154 tsolen = pi->ipi_len - (pi->ipi_ehdrlen + pi->ipi_ip_hlen + pi->ipi_tcp_hlen);
159 if (pi->ipi_tso_segsz < ICE_MIN_TSO_MSS) {
161 pi->ipi_tso_segsz = ICE_MIN_TSO_MSS;
163 mss = pi->ipi_tso_segsz;
180 * @pi: the packet info to program for
192 ice_tx_setup_offload(struct ice_tx_queue *txq, if_pkt_info_t pi, u32 *cmd, u32 *off)
194 u32 remaining_csum_flags = pi->ipi_csum_flags;
196 switch (pi->ipi_etype) {
199 if (pi->ipi_csum_flags & ICE_CSUM_IP) {
222 *off |= (pi->ipi_ehdrlen >> 1) << ICE_TX_DESC_LEN_MACLEN_S;
223 *off |= (pi->ipi_ip_hlen >> 2) << ICE_TX_DESC_LEN_IPLEN_S;
228 switch (pi->ipi_ipproto) {
230 if (pi->ipi_csum_flags & ICE_CSUM_TCP) {
232 *off |= (pi->ipi_tcp_hlen >> 2) <<
238 if (pi->ipi_csum_flags & ICE_CSUM_UDP) {
246 if (pi->ipi_csum_flags & ICE_CSUM_SCTP) {