Lines Matching refs:tx_desc

239 	struct mlx4_en_tx_desc *tx_desc = ring->buf + (index << LOG_TXBB_SIZE);  in mlx4_en_stamp_wqe()  local
242 __be32 *ptr = (__be32 *)tx_desc; in mlx4_en_stamp_wqe()
246 if (likely((void *)tx_desc + in mlx4_en_stamp_wqe()
279 struct mlx4_en_tx_desc *tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_free_tx_desc() local
280 struct mlx4_wqe_data_seg *data = (void *) tx_desc + tx_info->data_offset; in mlx4_en_free_tx_desc()
310 if (likely((void *)tx_desc + in mlx4_en_free_tx_desc()
403 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_handle_err_cqe() local
417 tx_desc = ring->buf + (wqe_index << LOG_TXBB_SIZE); in mlx4_en_handle_err_cqe()
418 print_hex_dump(KERN_WARNING, "", DUMP_PREFIX_OFFSET, 16, 1, tx_desc, desc_size, false); in mlx4_en_handle_err_cqe()
688 static void build_inline_wqe(struct mlx4_en_tx_desc *tx_desc, in build_inline_wqe() argument
693 struct mlx4_wqe_inline_seg *inl = &tx_desc->inl; in build_inline_wqe()
772 struct mlx4_en_tx_desc *tx_desc, in mlx4_en_tx_write_desc() argument
778 tx_desc->ctrl.qpn_vlan = qpn_vlan; in mlx4_en_tx_write_desc()
786 tx_desc->ctrl.owner_opcode = op_own; in mlx4_en_tx_write_desc()
790 mlx4_bf_copy(ring->bf.reg + ring->bf.offset, &tx_desc->ctrl, in mlx4_en_tx_write_desc()
801 tx_desc->ctrl.owner_opcode = op_own; in mlx4_en_tx_write_desc()
879 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_xmit() local
939 tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_xmit()
946 tx_desc = (struct mlx4_en_tx_desc *) ring->bounce_buf; in mlx4_en_xmit()
957 data = &tx_desc->data; in mlx4_en_xmit()
962 data = (void *)&tx_desc->lso + lso_align; in mlx4_en_xmit()
995 tx_desc->ctrl.srcrb_flags = priv->ctrl_flags; in mlx4_en_xmit()
998 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_IP_CSUM | in mlx4_en_xmit()
1001 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_IP_CSUM); in mlx4_en_xmit()
1012 tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((__be16 *)ethh->h_dest); in mlx4_en_xmit()
1013 tx_desc->ctrl.imm = get_unaligned((__be32 *)(ethh->h_dest + 2)); in mlx4_en_xmit()
1027 tx_desc->lso.mss_hdr_size = cpu_to_be32( in mlx4_en_xmit()
1035 memcpy(tx_desc->lso.header, skb->data, ETH_HLEN + sizeof(*h6)); in mlx4_en_xmit()
1036 h6 = (struct ipv6hdr *)((char *)tx_desc->lso.header + ETH_HLEN); in mlx4_en_xmit()
1048 memcpy(tx_desc->lso.header, skb->data, lso_header_size); in mlx4_en_xmit()
1066 build_inline_wqe(tx_desc, skb, shinfo, fragptr); in mlx4_en_xmit()
1090 tx_desc = mlx4_en_bounce_to_desc(priv, ring, index, desc_size); in mlx4_en_xmit()
1114 mlx4_en_tx_write_desc(ring, tx_desc, qpn_vlan, desc_size, bf_index, in mlx4_en_xmit()
1151 struct mlx4_en_tx_desc *tx_desc = ring->buf + in mlx4_en_init_tx_xdp_ring_descs() local
1162 tx_desc->data.lkey = ring->mr_key; in mlx4_en_init_tx_xdp_ring_descs()
1163 tx_desc->ctrl.qpn_vlan.fence_size = MLX4_EN_XDP_TX_REAL_SZ; in mlx4_en_init_tx_xdp_ring_descs()
1164 tx_desc->ctrl.srcrb_flags = priv->ctrl_flags; in mlx4_en_init_tx_xdp_ring_descs()
1173 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_xmit_frame() local
1192 tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_xmit_frame()
1193 data = &tx_desc->data; in mlx4_en_xmit_frame()
1223 tx_desc->ctrl.owner_opcode = op_own; in mlx4_en_xmit_frame()