Lines Matching refs:swqe

768 	struct ehea_swqe *swqe;  in check_sqs()  local
775 swqe = ehea_get_swqe(pr->qp, &swqe_index); in check_sqs()
776 memset(swqe, 0, SWQE_HEADER_SIZE); in check_sqs()
779 swqe->tx_control |= EHEA_SWQE_PURGE; in check_sqs()
780 swqe->wr_id = SWQE_RESTART_CHECK; in check_sqs()
781 swqe->tx_control |= EHEA_SWQE_SIGNALLED_COMPLETION; in check_sqs()
782 swqe->tx_control |= EHEA_SWQE_IMM_DATA_PRESENT; in check_sqs()
783 swqe->immediate_data_length = 80; in check_sqs()
785 ehea_post_swqe(pr->qp, swqe); in check_sqs()
1603 static void write_swqe2_immediate(struct sk_buff *skb, struct ehea_swqe *swqe, in write_swqe2_immediate() argument
1607 u8 *imm_data = &swqe->u.immdata_desc.immediate_data[0]; in write_swqe2_immediate()
1608 struct ehea_vsgentry *sg1entry = &swqe->u.immdata_desc.sg_entry; in write_swqe2_immediate()
1611 swqe->descriptors = 0; in write_swqe2_immediate()
1614 swqe->tx_control |= EHEA_SWQE_TSO; in write_swqe2_immediate()
1615 swqe->mss = skb_shinfo(skb)->gso_size; in write_swqe2_immediate()
1625 swqe->immediate_data_length = immediate_len; in write_swqe2_immediate()
1632 swqe->descriptors++; in write_swqe2_immediate()
1636 swqe->immediate_data_length = skb_data_size; in write_swqe2_immediate()
1641 struct ehea_swqe *swqe, u32 lkey) in write_swqe2_data() argument
1648 sg1entry = &swqe->u.immdata_desc.sg_entry; in write_swqe2_data()
1649 sg_list = (struct ehea_vsgentry *)&swqe->u.immdata_desc.sg_list; in write_swqe2_data()
1652 write_swqe2_immediate(skb, swqe, lkey); in write_swqe2_data()
1656 if (swqe->descriptors == 0) { in write_swqe2_data()
1665 swqe->descriptors++; in write_swqe2_data()
1677 swqe->descriptors++; in write_swqe2_data()
1956 static void xmit_common(struct sk_buff *skb, struct ehea_swqe *swqe) in xmit_common() argument
1958 swqe->tx_control |= EHEA_SWQE_IMM_DATA_PRESENT | EHEA_SWQE_CRC; in xmit_common()
1964 swqe->tx_control |= EHEA_SWQE_IP_CHECKSUM; in xmit_common()
1966 swqe->ip_start = skb_network_offset(skb); in xmit_common()
1967 swqe->ip_end = swqe->ip_start + ip_hdrlen(skb) - 1; in xmit_common()
1972 swqe->tx_control |= EHEA_SWQE_TCP_CHECKSUM; in xmit_common()
1974 swqe->tcp_offset = swqe->ip_end + 1 + in xmit_common()
1980 swqe->tx_control |= EHEA_SWQE_TCP_CHECKSUM; in xmit_common()
1982 swqe->tcp_offset = swqe->ip_end + 1 + in xmit_common()
1989 struct ehea_swqe *swqe, u32 lkey) in ehea_xmit2() argument
1991 swqe->tx_control |= EHEA_SWQE_DESCRIPTORS_PRESENT; in ehea_xmit2()
1993 xmit_common(skb, swqe); in ehea_xmit2()
1995 write_swqe2_data(skb, dev, swqe, lkey); in ehea_xmit2()
1999 struct ehea_swqe *swqe) in ehea_xmit3() argument
2001 u8 *imm_data = &swqe->u.immdata_nodesc.immediate_data[0]; in ehea_xmit3()
2003 xmit_common(skb, swqe); in ehea_xmit3()
2010 swqe->immediate_data_length = skb->len; in ehea_xmit3()
2017 struct ehea_swqe *swqe; in ehea_start_xmit() local
2026 swqe = ehea_get_swqe(pr->qp, &swqe_index); in ehea_start_xmit()
2027 memset(swqe, 0, SWQE_HEADER_SIZE); in ehea_start_xmit()
2031 swqe->tx_control |= EHEA_SWQE_VLAN_INSERT; in ehea_start_xmit()
2032 swqe->vlan_tag = skb_vlan_tag_get(skb); in ehea_start_xmit()
2041 ehea_xmit3(skb, dev, swqe); in ehea_start_xmit()
2042 swqe->wr_id = EHEA_BMASK_SET(EHEA_WR_ID_TYPE, EHEA_SWQE3_TYPE) in ehea_start_xmit()
2045 swqe->wr_id |= EHEA_BMASK_SET(EHEA_WR_ID_REFILL, in ehea_start_xmit()
2047 swqe->tx_control |= EHEA_SWQE_SIGNALLED_COMPLETION; in ehea_start_xmit()
2052 swqe->wr_id = in ehea_start_xmit()
2063 ehea_xmit2(skb, dev, swqe, lkey); in ehea_start_xmit()
2064 swqe->tx_control |= EHEA_SWQE_SIGNALLED_COMPLETION; in ehea_start_xmit()
2071 ehea_dump(swqe, 512, "swqe"); in ehea_start_xmit()
2075 swqe->tx_control |= EHEA_SWQE_PURGE; in ehea_start_xmit()
2078 ehea_post_swqe(pr->qp, swqe); in ehea_start_xmit()
2478 struct ehea_swqe *swqe; in ehea_purge_sq() local
2483 swqe = ehea_get_swqe(&qp, &wqe_index); in ehea_purge_sq()
2484 swqe->tx_control |= EHEA_SWQE_PURGE; in ehea_purge_sq()