Lines Matching refs:desc
40 static inline void wq_enet_desc_enc(struct wq_enet_desc *desc, in wq_enet_desc_enc() argument
45 desc->address = cpu_to_le64(address); in wq_enet_desc_enc()
46 desc->length = cpu_to_le16(length & WQ_ENET_LEN_MASK); in wq_enet_desc_enc()
47 desc->mss_loopback = cpu_to_le16((mss & WQ_ENET_MSS_MASK) << in wq_enet_desc_enc()
49 desc->header_length_flags = cpu_to_le16( in wq_enet_desc_enc()
56 desc->vlan_tag = cpu_to_le16(vlan_tag); in wq_enet_desc_enc()
59 static inline void wq_enet_desc_dec(struct wq_enet_desc *desc, in wq_enet_desc_dec() argument
64 *address = le64_to_cpu(desc->address); in wq_enet_desc_dec()
65 *length = le16_to_cpu(desc->length) & WQ_ENET_LEN_MASK; in wq_enet_desc_dec()
66 *mss = (le16_to_cpu(desc->mss_loopback) >> WQ_ENET_MSS_SHIFT) & in wq_enet_desc_dec()
68 *loopback = (u8)((le16_to_cpu(desc->mss_loopback) >> in wq_enet_desc_dec()
70 *header_length = le16_to_cpu(desc->header_length_flags) & in wq_enet_desc_dec()
72 *offload_mode = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec()
74 *eop = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec()
76 *cq_entry = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec()
78 *fcoe_encap = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec()
80 *vlan_tag_insert = (u8)((le16_to_cpu(desc->header_length_flags) >> in wq_enet_desc_dec()
82 *vlan_tag = le16_to_cpu(desc->vlan_tag); in wq_enet_desc_dec()