Lines Matching defs:desc
31 static inline void cq_enet_wq_desc_dec(struct cq_enet_wq_desc *desc,
34 cq_desc_dec((struct cq_desc *)desc, type,
93 static inline void cq_enet_rq_desc_dec(struct cq_enet_rq_desc *desc,
102 u16 completed_index_flags = le16_to_cpu(desc->completed_index_flags);
104 le16_to_cpu(desc->q_number_rss_type_flags);
105 u16 bytes_written_flags = le16_to_cpu(desc->bytes_written_flags);
107 cq_desc_dec((struct cq_desc *)desc, type,
124 *rss_hash = le32_to_cpu(desc->rss_hash);
133 *vlan = le16_to_cpu(desc->vlan);
136 *fcoe_sof = (u8)(le16_to_cpu(desc->checksum_fcoe) &
138 *fcoe_fc_crc_ok = (desc->flags &
140 *fcoe_enc_error = (desc->flags &
142 *fcoe_eof = (u8)((desc->checksum_fcoe >>
151 *checksum = le16_to_cpu(desc->checksum_fcoe);
155 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_TCP_UDP_CSUM_OK) ? 1 : 0;
156 *udp = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_UDP) ? 1 : 0;
157 *tcp = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_TCP) ? 1 : 0;
159 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4_CSUM_OK) ? 1 : 0;
160 *ipv6 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV6) ? 1 : 0;
161 *ipv4 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4) ? 1 : 0;
163 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4_FRAGMENT) ? 1 : 0;
164 *fcs_ok = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_FCS_OK) ? 1 : 0;