• Home
  • Raw
  • Download

Lines Matching refs:m

112 static inline int xf_msg_enqueue(xf_msg_queue_t *queue, xf_message_t *m)  in xf_msg_enqueue()  argument
117 m->next = NULL; in xf_msg_enqueue()
120 queue->head = m; in xf_msg_enqueue()
122 queue->tail->next = m; in xf_msg_enqueue()
125 queue->tail = m; in xf_msg_enqueue()
131 #define xf_msg_enqueue(queue, m) \ argument
133 BUG((m)->next != NULL, _x("message is active: %p"), (m)); \
134 (xf_msg_enqueue)((queue), (m)); \
140 xf_message_t *m = queue->head; in xf_msg_dequeue() local
143 if (m != NULL) in xf_msg_dequeue()
146 if ((queue->head = m->next) == NULL) in xf_msg_dequeue()
150 m->next = NULL; in xf_msg_dequeue()
153 return m; in xf_msg_dequeue()
169 static inline int xf_msg_from_pool(xf_msg_pool_t *pool, xf_message_t *m) in xf_msg_from_pool() argument
171 return (u32)((__xf_message_t*)m - pool->p) < pool->n; in xf_msg_from_pool()
179 extern void xf_msg_schedule(xf_message_t *m, u32 ts);
182 extern void xf_msg_schedule_isr(xf_message_t *m);
185 extern void xf_msg_submit(xf_message_t *m);
188 extern void xf_msg_cancel(xf_message_t *m);
191 extern void xf_msg_complete(xf_message_t *m);
194 extern void xf_msg_complete_isr(xf_message_t *m);
203 extern void xf_msg_pool_put(xf_msg_pool_t *pool, xf_message_t *m);
219 static inline void xf_response(xf_message_t *m) in xf_response() argument
221 xf_msg_complete(m); in xf_response()
225 static inline void xf_response_data(xf_message_t *m, u32 length) in xf_response_data() argument
228 m->length = length; in xf_response_data()
231 xf_msg_complete(m); in xf_response_data()
235 static inline void xf_response_ok(xf_message_t *m) in xf_response_ok() argument
238 m->length = 0; in xf_response_ok()
241 xf_msg_complete(m); in xf_response_ok()
245 static inline void xf_response_err(xf_message_t *m) in xf_response_err() argument
248 m->opcode = XF_UNREGISTER, m->length = 0; in xf_response_err()
251 xf_msg_complete(m); in xf_response_err()