Lines Matching refs:desc
19 static inline void cq_enet_wq_desc_dec(struct cq_enet_wq_desc *desc,
22 cq_desc_dec((struct cq_desc *)desc, type,
81 static inline void cq_enet_rq_desc_dec(struct cq_enet_rq_desc *desc,
90 u16 completed_index_flags = le16_to_cpu(desc->completed_index_flags);
92 le16_to_cpu(desc->q_number_rss_type_flags);
93 u16 bytes_written_flags = le16_to_cpu(desc->bytes_written_flags);
95 cq_desc_dec((struct cq_desc *)desc, type,
112 *rss_hash = le32_to_cpu(desc->rss_hash);
121 *vlan = le16_to_cpu(desc->vlan);
124 *fcoe_sof = (u8)(le16_to_cpu(desc->checksum_fcoe) &
126 *fcoe_fc_crc_ok = (desc->flags &
128 *fcoe_enc_error = (desc->flags &
130 *fcoe_eof = (u8)((desc->checksum_fcoe >>
139 *checksum = le16_to_cpu(desc->checksum_fcoe);
143 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_TCP_UDP_CSUM_OK) ? 1 : 0;
144 *udp = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_UDP) ? 1 : 0;
145 *tcp = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_TCP) ? 1 : 0;
147 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4_CSUM_OK) ? 1 : 0;
148 *ipv6 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV6) ? 1 : 0;
149 *ipv4 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4) ? 1 : 0;
151 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4_FRAGMENT) ? 1 : 0;
152 *fcs_ok = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_FCS_OK) ? 1 : 0;