Lines Matching refs:desc
39 static inline void wq_enet_desc_enc(struct wq_enet_desc *desc,
44 desc->address = cpu_to_le64(address);
45 desc->length = cpu_to_le16(length & WQ_ENET_LEN_MASK);
46 desc->mss_loopback = cpu_to_le16((mss & WQ_ENET_MSS_MASK) <<
48 desc->header_length_flags = cpu_to_le16(
55 desc->vlan_tag = cpu_to_le16(vlan_tag);
58 static inline void wq_enet_desc_dec(struct wq_enet_desc *desc,
63 *address = le64_to_cpu(desc->address);
64 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK;
65 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) &
67 *loopback = (u8)((le16_to_cpu(desc->mss_loopback) >>
69 *header_length = le16_to_cpu(desc->header_length_flags) &
71 *offload_mode = (u8)((le16_to_cpu(desc->header_length_flags) >>
73 *eop = (u8)((le16_to_cpu(desc->header_length_flags) >>
75 *cq_entry = (u8)((le16_to_cpu(desc->header_length_flags) >>
77 *fcoe_encap = (u8)((le16_to_cpu(desc->header_length_flags) >>
79 *vlan_tag_insert = (u8)((le16_to_cpu(desc->header_length_flags) >>
81 *vlan_tag = le16_to_cpu(desc->vlan_tag);