Lines Matching refs:headptr
37 u32 headptr, tailptr; in retrieve_msg_frame() local
40 headptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_POST_HEAD)); in retrieve_msg_frame()
42 if (tailptr == headptr) in retrieve_msg_frame()
64 u32 headptr; in get_msg() local
101 headptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_FREE_HEAD)); in get_msg()
103 …if( (headptr < MSG_OUTBOUND_FREE_STACK) || ( headptr >= (MSG_OUTBOUND_FREE_STACK+MSG_BOUND_STACK_S… in get_msg()
109 writel_be(msg_frame_address, MIXART_MEM(mgr, headptr)); in get_msg()
112 headptr += 4; in get_msg()
113 if( headptr >= (MSG_OUTBOUND_FREE_STACK+MSG_BOUND_STACK_SIZE) ) in get_msg()
114 headptr = MSG_OUTBOUND_FREE_STACK; in get_msg()
116 writel_be(headptr, MIXART_MEM(mgr, MSG_OUTBOUND_FREE_HEAD)); in get_msg()
133 u32 headptr, tailptr; in send_msg() local
142 headptr = readl_be(MIXART_MEM(mgr, MSG_INBOUND_FREE_HEAD)); in send_msg()
144 if (tailptr == headptr) { in send_msg()
200 headptr = readl_be(MIXART_MEM(mgr, MSG_INBOUND_POST_HEAD)); in send_msg()
202 …if( (headptr < MSG_INBOUND_POST_STACK) || (headptr >= (MSG_INBOUND_POST_STACK+MSG_BOUND_STACK_SIZE… in send_msg()
206 writel_be(msg_frame_address, MIXART_MEM(mgr, headptr)); in send_msg()
209 headptr += 4; in send_msg()
210 if( headptr >= (MSG_INBOUND_POST_STACK+MSG_BOUND_STACK_SIZE) ) in send_msg()
211 headptr = MSG_INBOUND_POST_STACK; in send_msg()
213 writel_be(headptr, MIXART_MEM(mgr, MSG_INBOUND_POST_HEAD)); in send_msg()