Lines Matching refs:el

29 			     struct mhi_ring_element *el, bool bei)  in mhi_ep_send_event()  argument
48 ret = mhi_ep_ring_add_element(ring, el); in mhi_ep_send_event()
147 static int mhi_ep_process_cmd_ring(struct mhi_ep_ring *ring, struct mhi_ring_element *el) in mhi_ep_process_cmd_ring() argument
157 ch_id = MHI_TRE_GET_CMD_CHID(el); in mhi_ep_process_cmd_ring()
168 switch (MHI_TRE_GET_CMD_TYPE(el)) { in mhi_ep_process_cmd_ring()
296 MHI_TRE_GET_CMD_TYPE(el), ch_id); in mhi_ep_process_cmd_ring()
328 struct mhi_ring_element *el; in mhi_ep_read_channel() local
342 el = &ring->ring_cache[ring->rd_offset]; in mhi_ep_read_channel()
349 mhi_chan->tre_loc = MHI_TRE_DATA_GET_PTR(el); in mhi_ep_read_channel()
350 mhi_chan->tre_size = MHI_TRE_DATA_GET_LEN(el); in mhi_ep_read_channel()
386 if (MHI_TRE_DATA_GET_CHAIN(el)) { in mhi_ep_read_channel()
391 if (MHI_TRE_DATA_GET_IEOB(el)) { in mhi_ep_read_channel()
392 ret = mhi_ep_send_completion_event(mhi_cntrl, ring, el, in mhi_ep_read_channel()
393 MHI_TRE_DATA_GET_LEN(el), in mhi_ep_read_channel()
407 if (MHI_TRE_DATA_GET_IEOT(el)) { in mhi_ep_read_channel()
408 ret = mhi_ep_send_completion_event(mhi_cntrl, ring, el, in mhi_ep_read_channel()
409 MHI_TRE_DATA_GET_LEN(el), in mhi_ep_read_channel()
430 static int mhi_ep_process_ch_ring(struct mhi_ep_ring *ring, struct mhi_ring_element *el) in mhi_ep_process_ch_ring() argument
488 struct mhi_ring_element *el; in mhi_ep_queue_skb() local
515 el = &ring->ring_cache[ring->rd_offset]; in mhi_ep_queue_skb()
516 tre_len = MHI_TRE_DATA_GET_LEN(el); in mhi_ep_queue_skb()
522 buf_info.host_addr = MHI_TRE_DATA_GET_PTR(el); in mhi_ep_queue_skb()
544 ret = mhi_ep_send_completion_event(mhi_cntrl, ring, el, tr_len, code); in mhi_ep_queue_skb()
717 struct mhi_ring_element *el; in mhi_ep_cmd_ring_worker() local
736 el = &ring->ring_cache[ring->rd_offset]; in mhi_ep_cmd_ring_worker()
738 ret = mhi_ep_process_cmd_ring(ring, el); in mhi_ep_cmd_ring_worker()
751 struct mhi_ring_element *el; in mhi_ep_ch_ring_worker() local
796 el = &ring->ring_cache[ring->rd_offset]; in mhi_ep_ch_ring_worker()
799 ret = mhi_ep_process_ch_ring(ring, el); in mhi_ep_ch_ring_worker()