Searched refs:flits (Results 1 – 8 of 8) sorted by relevance
941 unsigned int flits; in calc_tx_descs() local946 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1) + 2; in calc_tx_descs()948 flits++; in calc_tx_descs()949 return flits_to_desc(flits); in calc_tx_descs()1053 unsigned int flits, unsigned int sgl_flits, in write_wr_hdr_sgl() argument1064 sd->sflit = flits; in write_wr_hdr_sgl()1070 V_WR_SGLSFLT(flits)) | wr_hi; in write_wr_hdr_sgl()1072 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) | in write_wr_hdr_sgl()1081 V_WR_SGLSFLT(flits)) | wr_hi; in write_wr_hdr_sgl()1084 unsigned int avail = WR_FLITS - flits; in write_wr_hdr_sgl()[all …]
824 static inline unsigned int flits_to_desc(unsigned int flits) in flits_to_desc() argument826 BUG_ON(flits > SGE_MAX_WR_LEN / sizeof(__be64)); in flits_to_desc()827 return DIV_ROUND_UP(flits, TXD_PER_EQ_UNIT); in flits_to_desc()858 unsigned int flits; in calc_tx_flits() local878 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1); in calc_tx_flits()880 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) + in calc_tx_flits()884 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) + in calc_tx_flits()886 return flits; in calc_tx_flits()1167 unsigned int flits, ndesc; in t4vf_eth_xmit() local1216 flits = calc_tx_flits(skb); in t4vf_eth_xmit()[all …]
794 unsigned int flits; in calc_tx_flits() local813 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1); in calc_tx_flits()815 flits += (sizeof(struct fw_eth_tx_pkt_wr) + in calc_tx_flits()819 flits += (sizeof(struct fw_eth_tx_pkt_wr) + in calc_tx_flits()821 return flits; in calc_tx_flits()1170 unsigned int flits, ndesc; in t4_eth_xmit() local1214 flits = calc_tx_flits(skb); in t4_eth_xmit()1215 ndesc = flits_to_desc(flits); in t4_eth_xmit()1235 wr_mid = FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2)); in t4_eth_xmit()1244 end = (u64 *)wr + flits; in t4_eth_xmit()[all …]
1374 u64 *flits = packet->ebuf; in process_receive_bypass() local1376 if (flits && !(packet->rhf & RHF_LEN_ERR)) { in process_receive_bypass()1377 dd->err_info_rcvport.packet_flit1 = flits[0]; in process_receive_bypass()1379 packet->tlen > sizeof(flits[0]) ? flits[1] : 0; in process_receive_bypass()
101 __be64 flits[T4_EQ_ENTRY_SIZE / sizeof(__be64) * T4_SQ_NUM_SLOTS]; member107 __be64 flits[T4_EQ_ENTRY_SIZE / sizeof(__be64) * T4_RQ_NUM_SLOTS]; member
115 unsigned int flits, cnt; in cxgbit_calc_tx_flits_ofld() local119 flits = skb_transport_offset(skb) / 8; in cxgbit_calc_tx_flits_ofld()123 return flits + cxgbit_sgl_len(cnt); in cxgbit_calc_tx_flits_ofld()
169 unsigned int flits, cnt; in calc_tx_flits_ofld() local174 flits = skb_transport_offset(skb) / 8; /* headers */ in calc_tx_flits_ofld()178 return flits + sgl_len(cnt); in calc_tx_flits_ofld()
499 unsigned int flits, cnt; in calc_tx_flits_ofld() local503 flits = skb_transport_offset(skb) / 8; in calc_tx_flits_ofld()507 return flits + sgl_len(cnt); in calc_tx_flits_ofld()