Home
last modified time | relevance | path

Searched refs:mhi_ring_element (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/drivers/bus/mhi/ep/
Dring.c12 return (ptr - ring->rbase) / sizeof(struct mhi_ring_element); in mhi_ep_ring_addr2offset()
21 return le64_to_cpu(rlen) / sizeof(struct mhi_ring_element); in mhi_ep_ring_num_elems()
47 buf_info.size = (end - start) * sizeof(struct mhi_ring_element); in __mhi_ep_cache_ring()
48 buf_info.host_addr = ring->rbase + (start * sizeof(struct mhi_ring_element)); in __mhi_ep_cache_ring()
55 buf_info.size = (ring->ring_size - start) * sizeof(struct mhi_ring_element); in __mhi_ep_cache_ring()
56 buf_info.host_addr = ring->rbase + (start * sizeof(struct mhi_ring_element)); in __mhi_ep_cache_ring()
66 buf_info.size = end * sizeof(struct mhi_ring_element); in __mhi_ep_cache_ring()
106 int mhi_ep_ring_add_element(struct mhi_ep_ring *ring, struct mhi_ring_element *el) in mhi_ep_ring_add_element()
190 ring->ring_cache = kcalloc(ring->ring_size, sizeof(struct mhi_ring_element), GFP_KERNEL); in mhi_ep_ring_start()
Dmain.c29 struct mhi_ring_element *el, bool bei) in mhi_ep_send_event()
72 struct mhi_ring_element *tre, u32 len, enum mhi_ev_ccs code) in mhi_ep_send_completion_event()
74 struct mhi_ring_element *event; in mhi_ep_send_completion_event()
93 struct mhi_ring_element *event; in mhi_ep_send_state_change_event()
111 struct mhi_ring_element *event; in mhi_ep_send_ee_event()
130 struct mhi_ring_element *event; in mhi_ep_send_cmd_comp_event()
137 event->ptr = cpu_to_le64(ring->rbase + ring->rd_offset * sizeof(struct mhi_ring_element)); in mhi_ep_send_cmd_comp_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()
328 struct mhi_ring_element *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()
[all …]
Dinternal.h127 struct mhi_ring_element *ring_cache;
175 int mhi_ep_ring_add_element(struct mhi_ep_ring *ring, struct mhi_ring_element *element);
/linux-6.6.21/drivers/bus/mhi/host/
Dmain.c272 !(addr & (sizeof(struct mhi_ring_element) - 1)); in is_valid_ring_ptr()
569 struct mhi_ring_element *event, in parse_xfer_event()
605 struct mhi_ring_element *local_rp, *ev_tre; in parse_xfer_event()
708 struct mhi_ring_element *event, in parse_rsc_event()
772 struct mhi_ring_element *tre) in mhi_process_cmd_completion()
777 struct mhi_ring_element *cmd_pkt; in mhi_process_cmd_completion()
810 struct mhi_ring_element *dev_rp, *local_rp; in mhi_process_ctrl_ev_ring()
981 struct mhi_ring_element *dev_rp, *local_rp; in mhi_process_data_event_ring()
1204 struct mhi_ring_element *mhi_tre; in mhi_gen_tre()
1282 struct mhi_ring_element *cmd_tre = NULL; in mhi_send_cmd()
[all …]
Dinit.c351 ring->el_size = sizeof(struct mhi_ring_element); in mhi_init_dev_ctxt()
383 ring->el_size = sizeof(struct mhi_ring_element); in mhi_init_dev_ctxt()
627 tre_ring->el_size = sizeof(struct mhi_ring_element); in mhi_init_chan_ctxt()
/linux-6.6.21/drivers/bus/mhi/
Dcommon.h295 struct mhi_ring_element { struct