Lines Matching refs:desc
20 static inline void cq_enet_wq_desc_dec(struct cq_enet_wq_desc *desc, in cq_enet_wq_desc_dec() argument
23 cq_desc_dec((struct cq_desc *)desc, type, in cq_enet_wq_desc_dec()
91 static inline void cq_enet_rq_desc_dec(struct cq_enet_rq_desc *desc, in cq_enet_rq_desc_dec() argument
104 cq_desc_dec((struct cq_desc *)desc, type, in cq_enet_rq_desc_dec()
107 completed_index_flags = le16_to_cpu(desc->completed_index_flags); in cq_enet_rq_desc_dec()
109 le16_to_cpu(desc->q_number_rss_type_flags); in cq_enet_rq_desc_dec()
110 bytes_written_flags = le16_to_cpu(desc->bytes_written_flags); in cq_enet_rq_desc_dec()
126 *rss_hash = le32_to_cpu(desc->rss_hash); in cq_enet_rq_desc_dec()
138 *vlan_tci = le16_to_cpu(desc->vlan); in cq_enet_rq_desc_dec()
141 *fcoe_sof = (u8)(le16_to_cpu(desc->checksum_fcoe) & in cq_enet_rq_desc_dec()
143 *fcoe_fc_crc_ok = (desc->flags & in cq_enet_rq_desc_dec()
145 *fcoe_enc_error = (desc->flags & in cq_enet_rq_desc_dec()
147 *fcoe_eof = (u8)((le16_to_cpu(desc->checksum_fcoe) >> in cq_enet_rq_desc_dec()
156 *checksum = le16_to_cpu(desc->checksum_fcoe); in cq_enet_rq_desc_dec()
160 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_TCP_UDP_CSUM_OK) ? 1 : 0; in cq_enet_rq_desc_dec()
161 *udp = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_UDP) ? 1 : 0; in cq_enet_rq_desc_dec()
162 *tcp = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_TCP) ? 1 : 0; in cq_enet_rq_desc_dec()
164 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4_CSUM_OK) ? 1 : 0; in cq_enet_rq_desc_dec()
165 *ipv6 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV6) ? 1 : 0; in cq_enet_rq_desc_dec()
166 *ipv4 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4) ? 1 : 0; in cq_enet_rq_desc_dec()
168 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4_FRAGMENT) ? 1 : 0; in cq_enet_rq_desc_dec()
169 *fcs_ok = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_FCS_OK) ? 1 : 0; in cq_enet_rq_desc_dec()