Lines Matching refs:desc
19 static inline void cq_enet_wq_desc_enc(struct cq_enet_wq_desc *desc, in cq_enet_wq_desc_enc() argument
22 cq_desc_enc((struct cq_desc *)desc, type, in cq_enet_wq_desc_enc()
26 static inline void cq_enet_wq_desc_dec(struct cq_enet_wq_desc *desc, in cq_enet_wq_desc_dec() argument
29 cq_desc_dec((struct cq_desc *)desc, type, in cq_enet_wq_desc_dec()
110 static inline void cq_enet_rq_desc_enc(struct cq_enet_rq_desc *desc, in cq_enet_rq_desc_enc() argument
118 cq_desc_enc((struct cq_desc *)desc, type, in cq_enet_rq_desc_enc()
121 desc->completed_index_flags |= cpu_to_le16( in cq_enet_rq_desc_enc()
127 desc->q_number_rss_type_flags |= cpu_to_le16( in cq_enet_rq_desc_enc()
132 desc->rss_hash = cpu_to_le32(rss_hash); in cq_enet_rq_desc_enc()
134 desc->bytes_written_flags = cpu_to_le16( in cq_enet_rq_desc_enc()
139 desc->vlan = cpu_to_le16(vlan); in cq_enet_rq_desc_enc()
142 desc->checksum_fcoe = cpu_to_le16( in cq_enet_rq_desc_enc()
147 desc->checksum_fcoe = cpu_to_le16(checksum); in cq_enet_rq_desc_enc()
150 desc->flags = in cq_enet_rq_desc_enc()
163 static inline void cq_enet_rq_desc_dec(struct cq_enet_rq_desc *desc, in cq_enet_rq_desc_dec() argument
176 cq_desc_dec((struct cq_desc *)desc, type, in cq_enet_rq_desc_dec()
179 completed_index_flags = le16_to_cpu(desc->completed_index_flags); in cq_enet_rq_desc_dec()
181 le16_to_cpu(desc->q_number_rss_type_flags); in cq_enet_rq_desc_dec()
182 bytes_written_flags = le16_to_cpu(desc->bytes_written_flags); in cq_enet_rq_desc_dec()
198 *rss_hash = le32_to_cpu(desc->rss_hash); in cq_enet_rq_desc_dec()
210 *vlan_tci = le16_to_cpu(desc->vlan); in cq_enet_rq_desc_dec()
213 *fcoe_sof = (u8)(le16_to_cpu(desc->checksum_fcoe) & in cq_enet_rq_desc_dec()
215 *fcoe_fc_crc_ok = (desc->flags & in cq_enet_rq_desc_dec()
217 *fcoe_enc_error = (desc->flags & in cq_enet_rq_desc_dec()
219 *fcoe_eof = (u8)((le16_to_cpu(desc->checksum_fcoe) >> in cq_enet_rq_desc_dec()
228 *checksum = le16_to_cpu(desc->checksum_fcoe); in cq_enet_rq_desc_dec()
232 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_TCP_UDP_CSUM_OK) ? 1 : 0; in cq_enet_rq_desc_dec()
233 *udp = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_UDP) ? 1 : 0; in cq_enet_rq_desc_dec()
234 *tcp = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_TCP) ? 1 : 0; in cq_enet_rq_desc_dec()
236 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4_CSUM_OK) ? 1 : 0; in cq_enet_rq_desc_dec()
237 *ipv6 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV6) ? 1 : 0; in cq_enet_rq_desc_dec()
238 *ipv4 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4) ? 1 : 0; in cq_enet_rq_desc_dec()
240 (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4_FRAGMENT) ? 1 : 0; in cq_enet_rq_desc_dec()
241 *fcs_ok = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_FCS_OK) ? 1 : 0; in cq_enet_rq_desc_dec()