Lines Matching full:req

48 static inline u8 __get_cmdq_base_opcode(struct cmdq_base *req, u32 size)  in __get_cmdq_base_opcode()  argument
50 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __get_cmdq_base_opcode()
51 return ((struct cmdq_base *)GET_TLV_DATA(req))->opcode; in __get_cmdq_base_opcode()
53 return req->opcode; in __get_cmdq_base_opcode()
56 static inline void __set_cmdq_base_opcode(struct cmdq_base *req, in __set_cmdq_base_opcode() argument
59 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __set_cmdq_base_opcode()
60 ((struct cmdq_base *)GET_TLV_DATA(req))->opcode = val; in __set_cmdq_base_opcode()
62 req->opcode = val; in __set_cmdq_base_opcode()
65 static inline __le16 __get_cmdq_base_cookie(struct cmdq_base *req, u32 size) in __get_cmdq_base_cookie() argument
67 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __get_cmdq_base_cookie()
68 return ((struct cmdq_base *)GET_TLV_DATA(req))->cookie; in __get_cmdq_base_cookie()
70 return req->cookie; in __get_cmdq_base_cookie()
73 static inline void __set_cmdq_base_cookie(struct cmdq_base *req, in __set_cmdq_base_cookie() argument
76 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __set_cmdq_base_cookie()
77 ((struct cmdq_base *)GET_TLV_DATA(req))->cookie = val; in __set_cmdq_base_cookie()
79 req->cookie = val; in __set_cmdq_base_cookie()
82 static inline __le64 __get_cmdq_base_resp_addr(struct cmdq_base *req, u32 size) in __get_cmdq_base_resp_addr() argument
84 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __get_cmdq_base_resp_addr()
85 return ((struct cmdq_base *)GET_TLV_DATA(req))->resp_addr; in __get_cmdq_base_resp_addr()
87 return req->resp_addr; in __get_cmdq_base_resp_addr()
90 static inline void __set_cmdq_base_resp_addr(struct cmdq_base *req, in __set_cmdq_base_resp_addr() argument
93 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __set_cmdq_base_resp_addr()
94 ((struct cmdq_base *)GET_TLV_DATA(req))->resp_addr = val; in __set_cmdq_base_resp_addr()
96 req->resp_addr = val; in __set_cmdq_base_resp_addr()
99 static inline u8 __get_cmdq_base_resp_size(struct cmdq_base *req, u32 size) in __get_cmdq_base_resp_size() argument
101 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __get_cmdq_base_resp_size()
102 return ((struct cmdq_base *)GET_TLV_DATA(req))->resp_size; in __get_cmdq_base_resp_size()
104 return req->resp_size; in __get_cmdq_base_resp_size()
107 static inline void __set_cmdq_base_resp_size(struct cmdq_base *req, in __set_cmdq_base_resp_size() argument
110 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __set_cmdq_base_resp_size()
111 ((struct cmdq_base *)GET_TLV_DATA(req))->resp_size = val; in __set_cmdq_base_resp_size()
113 req->resp_size = val; in __set_cmdq_base_resp_size()
116 static inline u8 __get_cmdq_base_cmd_size(struct cmdq_base *req, u32 size) in __get_cmdq_base_cmd_size() argument
118 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __get_cmdq_base_cmd_size()
119 return ((struct roce_tlv *)(req))->total_size; in __get_cmdq_base_cmd_size()
121 return req->cmd_size; in __get_cmdq_base_cmd_size()
124 static inline void __set_cmdq_base_cmd_size(struct cmdq_base *req, in __set_cmdq_base_cmd_size() argument
127 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __set_cmdq_base_cmd_size()
128 ((struct cmdq_base *)GET_TLV_DATA(req))->cmd_size = val; in __set_cmdq_base_cmd_size()
130 req->cmd_size = val; in __set_cmdq_base_cmd_size()
133 static inline __le16 __get_cmdq_base_flags(struct cmdq_base *req, u32 size) in __get_cmdq_base_flags() argument
135 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __get_cmdq_base_flags()
136 return ((struct cmdq_base *)GET_TLV_DATA(req))->flags; in __get_cmdq_base_flags()
138 return req->flags; in __get_cmdq_base_flags()
141 static inline void __set_cmdq_base_flags(struct cmdq_base *req, in __set_cmdq_base_flags() argument
144 if (HAS_TLV_HEADER(req) && size > TLV_BYTES) in __set_cmdq_base_flags()
145 ((struct cmdq_base *)GET_TLV_DATA(req))->flags = val; in __set_cmdq_base_flags()
147 req->flags = val; in __set_cmdq_base_flags()