Home
last modified time | relevance | path

Searched refs:priv_ep (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/usb/cdns3/
H A Dcdns3-gadget.c76 static int cdns3_ep_run_transfer(struct cdns3_endpoint *priv_ep,
79 static int cdns3_ep_run_stream_transfer(struct cdns3_endpoint *priv_ep,
116 struct cdns3_endpoint *priv_ep) in cdns3_get_dma_pos() argument
120 dma_index = readl(&priv_dev->regs->ep_traddr) - priv_ep->trb_pool_dma; in cdns3_get_dma_pos()
187 dma_addr_t cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep, in cdns3_trb_virt_to_dma() argument
190 u32 offset = (char *)trb - (char *)priv_ep->trb_pool; in cdns3_trb_virt_to_dma()
192 return priv_ep->trb_pool_dma + offset; in cdns3_trb_virt_to_dma()
195 static void cdns3_free_trb_pool(struct cdns3_endpoint *priv_ep) in cdns3_free_trb_pool() argument
197 struct cdns3_device *priv_dev = priv_ep->cdns3_dev; in cdns3_free_trb_pool()
199 if (priv_ep in cdns3_free_trb_pool()
212 cdns3_allocate_trb_pool(struct cdns3_endpoint * priv_ep) cdns3_allocate_trb_pool() argument
262 cdns3_ep_stall_flush(struct cdns3_endpoint * priv_ep) cdns3_ep_stall_flush() argument
325 cdns3_ep_inc_enq(struct cdns3_endpoint * priv_ep) cdns3_ep_inc_enq() argument
335 cdns3_ep_inc_deq(struct cdns3_endpoint * priv_ep) cdns3_ep_inc_deq() argument
385 cdns3_start_all_request(struct cdns3_device * priv_dev,struct cdns3_endpoint * priv_ep) cdns3_start_all_request() argument
436 cdns3_wa2_enable_detection(priv_dev,priv_ep,reg) global() argument
478 cdns3_wa2_descmiss_copy_data(struct cdns3_endpoint * priv_ep,struct usb_request * request) cdns3_wa2_descmiss_copy_data() argument
509 cdns3_wa2_gadget_giveback(struct cdns3_device * priv_dev,struct cdns3_endpoint * priv_ep,struct cdns3_request * priv_req) cdns3_wa2_gadget_giveback() argument
549 cdns3_wa2_gadget_ep_queue(struct cdns3_device * priv_dev,struct cdns3_endpoint * priv_ep,struct cdns3_request * priv_req) cdns3_wa2_gadget_ep_queue() argument
616 cdns3_wa2_remove_old_request(struct cdns3_endpoint * priv_ep) cdns3_wa2_remove_old_request() argument
646 cdns3_wa2_descmissing_packet(struct cdns3_endpoint * priv_ep) cdns3_wa2_descmissing_packet() argument
792 cdns3_gadget_giveback(struct cdns3_endpoint * priv_ep,struct cdns3_request * priv_req,int status) cdns3_gadget_giveback() argument
846 cdns3_wa1_restore_cycle_bit(struct cdns3_endpoint * priv_ep) cdns3_wa1_restore_cycle_bit() argument
895 struct cdns3_endpoint *priv_ep = priv_req->priv_ep; cdns3_prepare_aligned_request_buf() local
956 cdns3_wa1_update_guard(struct cdns3_endpoint * priv_ep,struct cdns3_trb * trb) cdns3_wa1_update_guard() argument
979 cdns3_wa1_tray_restore_cycle_bit(struct cdns3_device * priv_dev,struct cdns3_endpoint * priv_ep) cdns3_wa1_tray_restore_cycle_bit() argument
991 cdns3_ep_run_stream_transfer(struct cdns3_endpoint * priv_ep,struct usb_request * request) cdns3_ep_run_stream_transfer() argument
1096 cdns3_rearm_drdy_if_needed(struct cdns3_endpoint * priv_ep) cdns3_rearm_drdy_if_needed() argument
1116 cdns3_ep_run_transfer(struct cdns3_endpoint * priv_ep,struct usb_request * request) cdns3_ep_run_transfer() argument
1423 struct cdns3_endpoint *priv_ep; cdns3_set_hw_configuration() local
1485 cdns3_trb_handled(struct cdns3_endpoint * priv_ep,struct cdns3_request * priv_req) cdns3_trb_handled() argument
1549 cdns3_transfer_completed(struct cdns3_device * priv_dev,struct cdns3_endpoint * priv_ep) cdns3_transfer_completed() argument
1652 cdns3_rearm_transfer(struct cdns3_endpoint * priv_ep,u8 rearm) cdns3_rearm_transfer() argument
1672 cdns3_reprogram_tdl(struct cdns3_endpoint * priv_ep) cdns3_reprogram_tdl() argument
1693 cdns3_check_ep_interrupt_proceed(struct cdns3_endpoint * priv_ep) cdns3_check_ep_interrupt_proceed() argument
2061 cdns3_configure_dmult(struct cdns3_device * priv_dev,struct cdns3_endpoint * priv_ep) cdns3_configure_dmult() argument
2099 cdns3_ep_config(struct cdns3_endpoint * priv_ep,bool enable) cdns3_ep_config() argument
2219 cdns3_ep_dir_is_correct(struct usb_endpoint_descriptor * desc,struct cdns3_endpoint * priv_ep) cdns3_ep_dir_is_correct() argument
2230 struct cdns3_endpoint *priv_ep; cdns3_find_available_ep() local
2276 struct cdns3_endpoint *priv_ep; cdns3_gadget_match_ep() local
2315 struct cdns3_endpoint *priv_ep = ep_to_cdns3_ep(ep); cdns3_gadget_ep_alloc_request() local
2355 struct cdns3_endpoint *priv_ep; cdns3_gadget_ep_enable() local
2493 struct cdns3_endpoint *priv_ep; cdns3_gadget_ep_disable() local
2587 struct cdns3_endpoint *priv_ep = ep_to_cdns3_ep(ep); __cdns3_gadget_ep_queue() local
2645 struct cdns3_endpoint *priv_ep; cdns3_gadget_ep_queue() local
2690 struct cdns3_endpoint *priv_ep = ep_to_cdns3_ep(ep); cdns3_gadget_ep_dequeue() local
2766 __cdns3_gadget_ep_set_halt(struct cdns3_endpoint * priv_ep) __cdns3_gadget_ep_set_halt() argument
2787 __cdns3_gadget_ep_clear_halt(struct cdns3_endpoint * priv_ep) __cdns3_gadget_ep_clear_halt() argument
2849 struct cdns3_endpoint *priv_ep = ep_to_cdns3_ep(ep); cdns3_gadget_ep_set_halt() local
3050 struct cdns3_endpoint *priv_ep; cdns3_gadget_udc_stop() local
3093 struct cdns3_endpoint *priv_ep; cdns3_gadget_check_config() local
3168 struct cdns3_endpoint *priv_ep; cdns3_init_eps() local
[all...]
H A Dcdns3-ep0.c39 struct cdns3_endpoint *priv_ep = priv_dev->eps[0]; in cdns3_ep0_run_transfer() local
41 priv_ep->trb_pool[0].buffer = cpu_to_le32(TRB_BUFFER(dma_addr)); in cdns3_ep0_run_transfer()
42 priv_ep->trb_pool[0].length = cpu_to_le32(TRB_LEN(length)); in cdns3_ep0_run_transfer()
45 priv_ep->trb_pool[0].control = cpu_to_le32(TRB_CYCLE | TRB_TYPE(TRB_NORMAL)); in cdns3_ep0_run_transfer()
46 priv_ep->trb_pool[1].buffer = cpu_to_le32(TRB_BUFFER(dma_addr)); in cdns3_ep0_run_transfer()
47 priv_ep->trb_pool[1].length = cpu_to_le32(TRB_LEN(0)); in cdns3_ep0_run_transfer()
48 priv_ep->trb_pool[1].control = cpu_to_le32(TRB_CYCLE | TRB_IOC | in cdns3_ep0_run_transfer()
51 priv_ep->trb_pool[0].control = cpu_to_le32(TRB_CYCLE | TRB_IOC | in cdns3_ep0_run_transfer()
53 priv_ep->trb_pool[1].control = 0; in cdns3_ep0_run_transfer()
56 trace_cdns3_prepare_trb(priv_ep, priv_ep->trb_pool); in cdns3_ep0_run_transfer()
[all …]
H A Dcdns3-debug.h110 static inline char *cdns3_dbg_ring(struct cdns3_endpoint *priv_ep, char *str) in cdns3_dbg_ring() argument
112 dma_addr_t addr = priv_ep->trb_pool_dma; in cdns3_dbg_ring()
118 trb_per_sector = GET_TRBS_PER_SEGMENT(priv_ep->type); in cdns3_dbg_ring()
120 trb = &priv_ep->trb_pool[priv_ep->dequeue]; in cdns3_dbg_ring()
121 ret += sprintf(str + ret, "\n\t\tRing contents for %s:", priv_ep->name); in cdns3_dbg_ring()
125 priv_ep->dequeue, trb, in cdns3_dbg_ring()
126 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb)); in cdns3_dbg_ring()
128 trb = &priv_ep->trb_pool[priv_ep->enqueue]; in cdns3_dbg_ring()
131 priv_ep->enqueue, trb, in cdns3_dbg_ring()
132 (unsigned long long)cdns3_trb_virt_to_dma(priv_ep, trb)); in cdns3_dbg_ring()
[all …]
H A Dcdns3-gadget.h1234 struct cdns3_endpoint *priv_ep; member
1345 dma_addr_t cdns3_trb_virt_to_dma(struct cdns3_endpoint *priv_ep,
1354 void cdns3_rearm_transfer(struct cdns3_endpoint *priv_ep, u8 rearm);
1355 int cdns3_allocate_trb_pool(struct cdns3_endpoint *priv_ep);
1359 void __cdns3_gadget_ep_set_halt(struct cdns3_endpoint *priv_ep);
1360 int __cdns3_gadget_ep_clear_halt(struct cdns3_endpoint *priv_ep);
1366 void cdns3_gadget_giveback(struct cdns3_endpoint *priv_ep,
1371 struct cdns3_endpoint *priv_ep);
1373 int cdns3_ep_config(struct cdns3_endpoint *priv_ep, bool enable);