Lines Matching refs:p
158 #define COMPLETE_HTC_PACKET(p, status) \ argument
160 (p)->Status = (status); \
161 (p)->Completion((p)->pContext, (p)); \
164 #define INIT_HTC_PACKET_INFO(p, b, len) \ argument
166 (p)->pBufferStart = (b); \
167 (p)->BufferLength = (len); \
171 #define SET_HTC_PACKET_INFO_RX_REFILL(p, c, b, len, ep) \ argument
173 (p)->pPktContext = (c); \
174 (p)->pBuffer = (b); \
175 (p)->pBufferStart = (b); \
176 (p)->BufferLength = (len); \
177 (p)->Endpoint = (ep); \
181 #define HTC_PACKET_RESET_RX(p) \ argument
182 { (p)->pBuffer = (p)->pBufferStart; (p)->ActualLength = 0; }
185 #define SET_HTC_PACKET_INFO_TX(p, c, b, len, ep, tag) \ argument
187 (p)->pPktContext = (c); \
188 (p)->pBuffer = (b); \
189 (p)->ActualLength = (len); \
190 (p)->Endpoint = (ep); \
191 (p)->PktInfo.AsTx.Tag = (tag); \
192 (p)->PktInfo.AsTx.Flags = 0; \
193 (p)->PktInfo.AsTx.SendFlags = 0; \
196 #define SET_HTC_PACKET_NET_BUF_CONTEXT(p, nb) \ argument
198 (p)->pNetBufContext = (nb); \
201 #define GET_HTC_PACKET_NET_BUF_CONTEXT(p) (p)->pNetBufContext argument
217 #define HTC_PACKET_ENQUEUE(pQ, p) \ argument
218 { dl_list_insert_tail(&(pQ)->QueueHead, &(p)->ListLink); \
223 #define HTC_PACKET_ENQUEUE_TO_HEAD(pQ, p) \ argument
224 { dl_list_insert_head(&(pQ)->QueueHead, &(p)->ListLink); \
241 #define HTC_PACKET_REMOVE(pQ, p) \ argument
243 dl_list_remove(&(p)->ListLink); \
273 #define HTC_GET_ENDPOINT_FROM_PKT(p) (p)->Endpoint argument
274 #define HTC_GET_TAG_FROM_PKT(p) (p)->PktInfo.AsTx.Tag argument