Home
last modified time | relevance | path

Searched refs:udc (Results 1 – 25 of 85) sorted by relevance

1234

/linux/drivers/usb/isp1760/
H A Disp1760-udc.c50 static u32 isp1760_udc_read(struct isp1760_udc *udc, u16 field) in isp1760_udc_read() argument
52 return isp1760_field_read(udc->fields, field); in isp1760_udc_read()
55 static void isp1760_udc_write(struct isp1760_udc *udc, u16 field, u32 val) in isp1760_udc_write() argument
57 isp1760_field_write(udc->fields, field, val); in isp1760_udc_write()
60 static u32 isp1760_udc_read_raw(struct isp1760_udc *udc, u16 reg) in isp1760_udc_read_raw() argument
64 regmap_raw_read(udc->regs, reg, &val, 4); in isp1760_udc_read_raw()
69 static u16 isp1760_udc_read_raw16(struct isp1760_udc *udc, u16 reg) in isp1760_udc_read_raw16() argument
73 regmap_raw_read(udc->regs, reg, &val, 2); in isp1760_udc_read_raw16()
78 static void isp1760_udc_write_raw(struct isp1760_udc *udc, u16 reg, u32 val) in isp1760_udc_write_raw() argument
82 regmap_raw_write(udc->regs, reg, &val_le, 4); in isp1760_udc_write_raw()
[all …]
H A Disp1760-core.c27 #include "isp1760-udc.h"
32 struct isp1760_udc *udc = &isp->udc; in isp1760_init_core() local
77 isp1760_reg_write(udc->regs, ISP176x_DC_MODE, 0); in isp1760_init_core()
112 struct isp1760_udc *udc = &isp->udc; in isp1760_set_pullup() local
115 isp1760_field_set(udc->fields, HW_DP_PULLUP); in isp1760_set_pullup()
117 isp1760_field_set(udc->fields, HW_DP_PULLUP_CLEAR); in isp1760_set_pullup()
490 struct isp1760_udc *udc; in isp1760_register() local
514 udc in isp1760_register()
[all...]
/linux/drivers/usb/gadget/udc/
H A Dlpc32xx_udc.c101 struct lpc32xx_udc *udc; member
188 dev_dbg(epp->udc->dev, "%s: " fmt, __func__, ## arg)
190 dev_err(epp->udc->dev, "%s: " fmt, __func__, ## arg)
192 dev_info(epp->udc->dev, "%s: " fmt, __func__, ## arg)
194 dev_warn(epp->udc->dev, "%s:" fmt, __func__, ## arg)
471 static const char debug_filename[] = "driver/udc";
499 struct lpc32xx_udc *udc = s->private; in udc_show() local
505 spin_lock_irqsave(&udc->lock, flags); in udc_show()
508 udc->vbus ? "present" : "off", in udc_show()
509 udc in udc_show()
528 create_debug_file(struct lpc32xx_udc * udc) create_debug_file() argument
533 remove_debug_file(struct lpc32xx_udc * udc) remove_debug_file() argument
539 create_debug_file(struct lpc32xx_udc * udc) create_debug_file() argument
540 remove_debug_file(struct lpc32xx_udc * udc) remove_debug_file() argument
544 isp1301_udc_configure(struct lpc32xx_udc * udc) isp1301_udc_configure() argument
623 isp1301_pullup_set(struct lpc32xx_udc * udc) isp1301_pullup_set() argument
638 struct lpc32xx_udc *udc = pullup_work() local
644 isp1301_pullup_enable(struct lpc32xx_udc * udc,int en_pullup,int block) isp1301_pullup_enable() argument
660 isp1301_set_powerstate(struct lpc32xx_udc * udc,int enable) isp1301_set_powerstate() argument
680 struct lpc32xx_udc *udc = power_work() local
693 udc_protocol_cmd_w(struct lpc32xx_udc * udc,u32 cmd) udc_protocol_cmd_w() argument
721 udc_protocol_cmd_data_w(struct lpc32xx_udc * udc,u32 cmd,u32 data) udc_protocol_cmd_data_w() argument
730 udc_protocol_cmd_r(struct lpc32xx_udc * udc,u32 cmd) udc_protocol_cmd_r() argument
757 uda_enable_devint(struct lpc32xx_udc * udc,u32 devmask) uda_enable_devint() argument
764 uda_disable_devint(struct lpc32xx_udc * udc,u32 mask) uda_disable_devint() argument
771 uda_clear_devint(struct lpc32xx_udc * udc,u32 mask) uda_clear_devint() argument
782 uda_enable_hwepint(struct lpc32xx_udc * udc,u32 hwep) uda_enable_hwepint() argument
789 uda_disable_hwepint(struct lpc32xx_udc * udc,u32 hwep) uda_disable_hwepint() argument
796 uda_clear_hwepint(struct lpc32xx_udc * udc,u32 hwep) uda_clear_hwepint() argument
802 udc_ep_dma_enable(struct lpc32xx_udc * udc,u32 hwep) udc_ep_dma_enable() argument
808 udc_ep_dma_disable(struct lpc32xx_udc * udc,u32 hwep) udc_ep_dma_disable() argument
821 udc_realize_hwep(struct lpc32xx_udc * udc,u32 hwep,u32 maxpacket) udc_realize_hwep() argument
843 udc_unrealize_hwep(struct lpc32xx_udc * udc,u32 hwep) udc_unrealize_hwep() argument
855 udc_selep_clrint(struct lpc32xx_udc * udc,u32 hwep) udc_selep_clrint() argument
862 udc_disable_hwep(struct lpc32xx_udc * udc,u32 hwep) udc_disable_hwep() argument
869 udc_stall_hwep(struct lpc32xx_udc * udc,u32 hwep) udc_stall_hwep() argument
876 udc_clrstall_hwep(struct lpc32xx_udc * udc,u32 hwep) udc_clrstall_hwep() argument
883 udc_select_hwep(struct lpc32xx_udc * udc,u32 hwep) udc_select_hwep() argument
894 udc_clr_buffer_hwep(struct lpc32xx_udc * udc,u32 hwep) udc_clr_buffer_hwep() argument
901 udc_val_buffer_hwep(struct lpc32xx_udc * udc,u32 hwep) udc_val_buffer_hwep() argument
907 udc_clearep_getsts(struct lpc32xx_udc * udc,u32 hwep) udc_clearep_getsts() argument
920 udc_dd_alloc(struct lpc32xx_udc * udc) udc_dd_alloc() argument
933 udc_dd_free(struct lpc32xx_udc * udc,struct lpc32xx_usbd_dd_gad * dd) udc_dd_free() argument
946 udc_clk_set(struct lpc32xx_udc * udc,int enable) udc_clk_set() argument
964 udc_set_address(struct lpc32xx_udc * udc,u32 addr) udc_set_address() argument
975 udc_ep_in_req_dma(struct lpc32xx_udc * udc,struct lpc32xx_ep * ep) udc_ep_in_req_dma() argument
1001 udc_ep_out_req_dma(struct lpc32xx_udc * udc,struct lpc32xx_ep * ep) udc_ep_out_req_dma() argument
1019 udc_disable(struct lpc32xx_udc * udc) udc_disable() argument
1052 udc_enable(struct lpc32xx_udc * udc) udc_enable() argument
1106 uda_power_event(struct lpc32xx_udc * udc,u32 conn) uda_power_event() argument
1114 uda_resm_susp_event(struct lpc32xx_udc * udc,u32 conn) uda_resm_susp_event() argument
1127 uda_remwkp_cgh(struct lpc32xx_udc * udc) uda_remwkp_cgh() argument
1135 udc_pop_fifo(struct lpc32xx_udc * udc,u8 * data,u32 bytes) udc_pop_fifo() argument
1202 udc_read_hwep(struct lpc32xx_udc * udc,u32 hwep,u32 * data,u32 bytes) udc_read_hwep() argument
1236 udc_stuff_fifo(struct lpc32xx_udc * udc,u8 * data,u32 bytes) udc_stuff_fifo() argument
1306 udc_write_hwep(struct lpc32xx_udc * udc,u32 hwep,u32 * data,u32 bytes) udc_write_hwep() argument
1332 uda_usb_reset(struct lpc32xx_udc * udc) uda_usb_reset() argument
1346 udc_ep0_send_zlp(struct lpc32xx_udc * udc) udc_ep0_send_zlp() argument
1352 udc_get_current_frame(struct lpc32xx_udc * udc) udc_get_current_frame() argument
1364 udc_set_device_configured(struct lpc32xx_udc * udc) udc_set_device_configured() argument
1370 udc_set_device_unconfigured(struct lpc32xx_udc * udc) udc_set_device_unconfigured() argument
1376 udc_reinit(struct lpc32xx_udc * udc) udc_reinit() argument
1399 struct lpc32xx_udc *udc = ep->udc; done() local
1440 udc_ep0_in_req(struct lpc32xx_udc * udc) udc_ep0_in_req() argument
1478 udc_ep0_out_req(struct lpc32xx_udc * udc) udc_ep0_out_req() argument
1519 stop_activity(struct lpc32xx_udc * udc) stop_activity() argument
1549 pullup(struct lpc32xx_udc * udc,int is_on) pullup() argument
1565 struct lpc32xx_udc *udc = ep->udc; lpc32xx_ep_disable() local
1603 struct lpc32xx_udc *udc; lpc32xx_ep_enable() local
1736 struct lpc32xx_udc *udc; lpc32xx_ep_queue() local
1863 struct lpc32xx_udc *udc; lpc32xx_ep_set_halt() local
1917 udc_send_in_zlp(struct lpc32xx_udc * udc,struct lpc32xx_ep * ep) udc_send_in_zlp() argument
1931 udc_handle_eps(struct lpc32xx_udc * udc,struct lpc32xx_ep * ep) udc_handle_eps() argument
1978 udc_handle_dma_ep(struct lpc32xx_udc * udc,struct lpc32xx_ep * ep) udc_handle_dma_ep() argument
2098 udc_handle_dev(struct lpc32xx_udc * udc) udc_handle_dev() argument
2130 udc_get_status(struct lpc32xx_udc * udc,u16 reqtype,u16 wIndex) udc_get_status() argument
2177 udc_handle_ep0_setup(struct lpc32xx_udc * udc) udc_handle_ep0_setup() argument
2316 udc_handle_ep0_in(struct lpc32xx_udc * udc) udc_handle_ep0_in() argument
2350 udc_handle_ep0_out(struct lpc32xx_udc * udc) udc_handle_ep0_out() argument
2404 struct lpc32xx_udc *udc = to_udc(gadget); lpc32xx_get_frame() local
2437 struct lpc32xx_udc *udc = to_udc(gadget); lpc32xx_vbus_session() local
2473 struct lpc32xx_udc *udc = to_udc(gadget); lpc32xx_pullup() local
2722 struct lpc32xx_udc *udc = _udc; lpc32xx_usb_lp_irq() local
2761 struct lpc32xx_udc *udc = _udc; lpc32xx_usb_hp_irq() local
2800 struct lpc32xx_udc *udc = _udc; lpc32xx_usb_devdma_irq() local
2827 vbus_work(struct lpc32xx_udc * udc) vbus_work() argument
2869 struct lpc32xx_udc *udc = _udc; lpc32xx_usb_vbus_irq() local
2879 struct lpc32xx_udc *udc = to_udc(gadget); lpc32xx_start() local
2912 struct lpc32xx_udc *udc = to_udc(gadget); lpc32xx_stop() local
2947 struct lpc32xx_udc *udc = platform_get_drvdata(dev); lpc32xx_udc_shutdown() local
2985 struct lpc32xx_udc *udc; lpc32xx_udc_probe() local
3178 struct lpc32xx_udc *udc = platform_get_drvdata(pdev); lpc32xx_udc_remove() local
3206 struct lpc32xx_udc *udc = platform_get_drvdata(pdev); lpc32xx_udc_suspend() local
3229 struct lpc32xx_udc *udc = platform_get_drvdata(pdev); lpc32xx_udc_resume() local
[all...]
H A Dbcm63xx_udc.c194 * @udc: Reference to the device controller.
217 struct bcm63xx_udc *udc; member
234 * @udc: Reference to the device controller.
242 struct bcm63xx_udc *udc; member
352 static inline u32 usbd_readl(struct bcm63xx_udc *udc, u32 off) in usbd_readl() argument
354 return bcm_readl(udc->usbd_regs + off); in usbd_readl()
357 static inline void usbd_writel(struct bcm63xx_udc *udc, u32 val, u32 off) in usbd_writel() argument
359 bcm_writel(val, udc->usbd_regs + off); in usbd_writel()
362 static inline u32 usb_dma_readl(struct bcm63xx_udc *udc, u32 off) in usb_dma_readl() argument
364 return bcm_readl(udc in usb_dma_readl()
367 usb_dma_writel(struct bcm63xx_udc * udc,u32 val,u32 off) usb_dma_writel() argument
372 usb_dmac_readl(struct bcm63xx_udc * udc,u32 off,int chan) usb_dmac_readl() argument
378 usb_dmac_writel(struct bcm63xx_udc * udc,u32 val,u32 off,int chan) usb_dmac_writel() argument
385 usb_dmas_readl(struct bcm63xx_udc * udc,u32 off,int chan) usb_dmas_readl() argument
391 usb_dmas_writel(struct bcm63xx_udc * udc,u32 val,u32 off,int chan) usb_dmas_writel() argument
398 set_clocks(struct bcm63xx_udc * udc,bool is_enabled) set_clocks() argument
423 bcm63xx_ep_dma_select(struct bcm63xx_udc * udc,int idx) bcm63xx_ep_dma_select() argument
441 bcm63xx_set_stall(struct bcm63xx_udc * udc,struct bcm63xx_ep * bep,bool is_stalled) bcm63xx_set_stall() argument
459 bcm63xx_fifo_setup(struct bcm63xx_udc * udc) bcm63xx_fifo_setup() argument
499 bcm63xx_fifo_reset_ep(struct bcm63xx_udc * udc,int ep_num) bcm63xx_fifo_reset_ep() argument
515 bcm63xx_fifo_reset(struct bcm63xx_udc * udc) bcm63xx_fifo_reset() argument
527 bcm63xx_ep_init(struct bcm63xx_udc * udc) bcm63xx_ep_init() argument
550 bcm63xx_ep_setup(struct bcm63xx_udc * udc) bcm63xx_ep_setup() argument
592 iudma_write(struct bcm63xx_udc * udc,struct iudma_ch * iudma,struct bcm63xx_req * breq) iudma_write() argument
668 iudma_read(struct bcm63xx_udc * udc,struct iudma_ch * iudma) iudma_read() argument
702 iudma_reset_channel(struct bcm63xx_udc * udc,struct iudma_ch * iudma) iudma_reset_channel() argument
758 iudma_init_channel(struct bcm63xx_udc * udc,unsigned int ch_idx) iudma_init_channel() argument
798 iudma_init(struct bcm63xx_udc * udc) iudma_init() argument
821 iudma_uninit(struct bcm63xx_udc * udc) iudma_uninit() argument
842 bcm63xx_set_ctrl_irqs(struct bcm63xx_udc * udc,bool enable_irqs) bcm63xx_set_ctrl_irqs() argument
868 bcm63xx_select_phy_mode(struct bcm63xx_udc * udc,bool is_device) bcm63xx_select_phy_mode() argument
908 bcm63xx_select_pullup(struct bcm63xx_udc * udc,bool is_on) bcm63xx_select_pullup() argument
927 bcm63xx_uninit_udc_hw(struct bcm63xx_udc * udc) bcm63xx_uninit_udc_hw() argument
941 bcm63xx_init_udc_hw(struct bcm63xx_udc * udc) bcm63xx_init_udc_hw() argument
1034 struct bcm63xx_udc *udc = bep->udc; bcm63xx_ep_enable() local
1073 struct bcm63xx_udc *udc = bep->udc; bcm63xx_ep_disable() local
1154 struct bcm63xx_udc *udc = bep->udc; bcm63xx_udc_queue() local
1206 struct bcm63xx_udc *udc = bep->udc; bcm63xx_udc_dequeue() local
1254 struct bcm63xx_udc *udc = bep->udc; bcm63xx_udc_set_halt() local
1274 struct bcm63xx_udc *udc = bep->udc; bcm63xx_udc_set_wedge() local
1308 bcm63xx_ep0_setup_callback(struct bcm63xx_udc * udc,struct usb_ctrlrequest * ctrl) bcm63xx_ep0_setup_callback() argument
1331 bcm63xx_ep0_spoof_set_cfg(struct bcm63xx_udc * udc) bcm63xx_ep0_spoof_set_cfg() argument
1355 bcm63xx_ep0_spoof_set_iface(struct bcm63xx_udc * udc) bcm63xx_ep0_spoof_set_iface() argument
1381 bcm63xx_ep0_map_write(struct bcm63xx_udc * udc,int ch_idx,struct usb_request * req) bcm63xx_ep0_map_write() argument
1402 bcm63xx_ep0_complete(struct bcm63xx_udc * udc,struct usb_request * req,int status) bcm63xx_ep0_complete() argument
1421 bcm63xx_ep0_nuke_reply(struct bcm63xx_udc * udc,int is_tx) bcm63xx_ep0_nuke_reply() argument
1439 bcm63xx_ep0_read_complete(struct bcm63xx_udc * udc) bcm63xx_ep0_read_complete() argument
1458 bcm63xx_ep0_internal_request(struct bcm63xx_udc * udc,int ch_idx,int length) bcm63xx_ep0_internal_request() argument
1478 bcm63xx_ep0_do_setup(struct bcm63xx_udc * udc) bcm63xx_ep0_do_setup() argument
1531 bcm63xx_ep0_do_idle(struct bcm63xx_udc * udc) bcm63xx_ep0_do_idle() argument
1578 bcm63xx_ep0_one_round(struct bcm63xx_udc * udc) bcm63xx_ep0_one_round() argument
1732 struct bcm63xx_udc *udc = container_of(w, struct bcm63xx_udc, ep0_wq); bcm63xx_ep0_process() local
1749 struct bcm63xx_udc *udc = gadget_to_udc(gadget); bcm63xx_udc_get_frame() local
1764 struct bcm63xx_udc *udc = gadget_to_udc(gadget); bcm63xx_udc_pullup() local
1812 struct bcm63xx_udc *udc = gadget_to_udc(gadget); bcm63xx_udc_start() local
1847 struct bcm63xx_udc *udc = gadget_to_udc(gadget); bcm63xx_udc_stop() local
1890 bcm63xx_update_cfg_iface(struct bcm63xx_udc * udc) bcm63xx_update_cfg_iface() argument
1908 bcm63xx_update_link_speed(struct bcm63xx_udc * udc) bcm63xx_update_link_speed() argument
1948 bcm63xx_update_wedge(struct bcm63xx_udc * udc,bool new_status) bcm63xx_update_wedge() argument
1969 struct bcm63xx_udc *udc = dev_id; bcm63xx_udc_ctrl_isr() local
2041 struct bcm63xx_udc *udc = iudma->udc; bcm63xx_udc_data_isr() local
2126 struct bcm63xx_udc *udc = s->private; bcm63xx_usbd_dbg_show() local
2165 struct bcm63xx_udc *udc = s->private; bcm63xx_iudma_dbg_show() local
2236 bcm63xx_udc_init_debugfs(struct bcm63xx_udc * udc) bcm63xx_udc_init_debugfs() argument
2254 bcm63xx_udc_cleanup_debugfs(struct bcm63xx_udc * udc) bcm63xx_udc_cleanup_debugfs() argument
2274 struct bcm63xx_udc *udc; bcm63xx_udc_probe() local
2359 struct bcm63xx_udc *udc = platform_get_drvdata(pdev); bcm63xx_udc_remove() local
[all...]
H A Dudc-xilinx.c124 * @udc: xilinx usb peripheral driver instance pointer
142 struct xusb_udc *udc; member
201 static const char driver_name[] = "xilinx-udc";
257 * @udc: pointer to the usb device controller structure.
259 static void xudc_wrstatus(struct xusb_udc *udc) in xudc_wrstatus() argument
261 struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; in xudc_wrstatus()
264 epcfgreg = udc->read_fn(udc->addr + ep0->offset)| in xudc_wrstatus()
266 udc->write_fn(udc in xudc_wrstatus()
279 xudc_epconfig(struct xusb_ep * ep,struct xusb_udc * udc) xudc_epconfig() argument
319 struct xusb_udc *udc = ep->udc; xudc_start_dma() local
382 struct xusb_udc *udc = ep->udc; xudc_dma_send() local
436 struct xusb_udc *udc = ep->udc; xudc_dma_receive() local
485 struct xusb_udc *udc = ep->udc; xudc_eptxrx() local
553 struct xusb_udc *udc = ep->udc; xudc_done() local
594 struct xusb_udc *udc = ep->udc; xudc_read_fifo() local
682 struct xusb_udc *udc = ep->udc; xudc_write_fifo() local
754 struct xusb_udc *udc; xudc_ep_set_halt() local
808 struct xusb_udc *udc = ep->udc; __xudc_ep_enable() local
897 struct xusb_udc *udc; xudc_ep_enable() local
932 struct xusb_udc *udc; xudc_ep_disable() local
1003 struct xusb_udc *udc = ep0->udc; __xudc_ep0_queue() local
1057 struct xusb_udc *udc = ep0->udc; xudc_ep0_queue() local
1081 struct xusb_udc *udc = ep->udc; xudc_ep_queue() local
1143 struct xusb_udc *udc = ep->udc; xudc_ep_dequeue() local
1220 struct xusb_udc *udc; xudc_get_frame() local
1239 struct xusb_udc *udc = to_udc(gadget); xudc_wakeup() local
1279 struct xusb_udc *udc = to_udc(gadget); xudc_pullup() local
1302 xudc_eps_init(struct xusb_udc * udc) xudc_eps_init() argument
1356 xudc_stop_activity(struct xusb_udc * udc) xudc_stop_activity() argument
1377 struct xusb_udc *udc = to_udc(gadget); xudc_start() local
1415 struct xusb_udc *udc = to_udc(gadget); xudc_stop() local
1446 xudc_clear_stall_all_ep(struct xusb_udc * udc) xudc_clear_stall_all_ep() argument
1473 xudc_startup_handler(struct xusb_udc * udc,u32 intrstatus) xudc_startup_handler() argument
1564 xudc_ep0_stall(struct xusb_udc * udc) xudc_ep0_stall() argument
1580 xudc_setaddress(struct xusb_udc * udc) xudc_setaddress() argument
1601 xudc_getstatus(struct xusb_udc * udc) xudc_getstatus() argument
1658 xudc_set_clear_feature(struct xusb_udc * udc) xudc_set_clear_feature() argument
1750 xudc_handle_setup(struct xusb_udc * udc) xudc_handle_setup() argument
1817 xudc_ep0_out(struct xusb_udc * udc) xudc_ep0_out() argument
1866 xudc_ep0_in(struct xusb_udc * udc) xudc_ep0_in() argument
1939 xudc_ctrl_ep_handler(struct xusb_udc * udc,u32 intrstatus) xudc_ctrl_ep_handler() argument
1961 xudc_nonctrl_ep_handler(struct xusb_udc * udc,u8 epnum,u32 intrstatus) xudc_nonctrl_ep_handler() argument
1995 struct xusb_udc *udc = _udc; xudc_irq() local
2064 struct xusb_udc *udc; xudc_probe() local
2184 struct xusb_udc *udc = platform_get_drvdata(pdev); xudc_remove() local
2193 struct xusb_udc *udc; xudc_suspend() local
2217 struct xusb_udc *udc; xudc_resume() local
[all...]
H A Dmax3420_udc.c157 struct max3420_udc *udc; member
190 static const char driver_name[] = "max3420-udc";
199 static void spi_ack_ctrl(struct max3420_udc *udc) in spi_ack_ctrl() argument
201 struct spi_device *spi = udc->spi; in spi_ack_ctrl()
218 static u8 spi_rd8_ack(struct max3420_udc *udc, u8 reg, int actstat) in spi_rd8_ack() argument
220 struct spi_device *spi = udc->spi; in spi_rd8_ack()
240 static u8 spi_rd8(struct max3420_udc *udc, u8 reg) in spi_rd8() argument
242 return spi_rd8_ack(udc, reg, 0); in spi_rd8()
245 static void spi_wr8_ack(struct max3420_udc *udc, u8 reg, u8 val, int actstat) in spi_wr8_ack() argument
247 struct spi_device *spi = udc in spi_wr8_ack()
266 spi_wr8(struct max3420_udc * udc,u8 reg,u8 val) spi_wr8() argument
271 spi_rd_buf(struct max3420_udc * udc,u8 reg,void * buf,u8 len) spi_rd_buf() argument
293 spi_wr_buf(struct max3420_udc * udc,u8 reg,void * buf,u8 len) spi_wr_buf() argument
316 struct max3420_udc *udc = ep->udc; spi_max3420_enable() local
348 struct max3420_udc *udc = ep->udc; spi_max3420_stall() local
379 spi_max3420_rwkup(struct max3420_udc * udc) spi_max3420_rwkup() argument
411 __max3420_stop(struct max3420_udc * udc) __max3420_stop() argument
432 __max3420_start(struct max3420_udc * udc) __max3420_start() argument
475 max3420_start(struct max3420_udc * udc) max3420_start() argument
498 struct max3420_udc *udc = dev_id; max3420_vbus_handler() local
518 struct max3420_udc *udc = dev_id; max3420_irq_handler() local
535 max3420_getstatus(struct max3420_udc * udc) max3420_getstatus() argument
575 max3420_set_clear_feature(struct max3420_udc * udc) max3420_set_clear_feature() argument
619 max3420_handle_setup(struct max3420_udc * udc) max3420_handle_setup() argument
669 struct max3420_udc *udc = ep->udc; max3420_req_done() local
684 max3420_do_data(struct max3420_udc * udc,int ep_id,int in) max3420_do_data() argument
744 max3420_handle_irqs(struct max3420_udc * udc) max3420_handle_irqs() argument
841 struct max3420_udc *udc = dev_id; max3420_thread() local
906 struct max3420_udc *udc = ep->udc; max3420_ep_set_halt() local
946 struct max3420_udc *udc = ep->udc; max3420_ep_enable() local
975 struct max3420_udc *udc = ep->udc; __max3420_ep_disable() local
993 struct max3420_udc *udc = ep->udc; max3420_ep_disable() local
1029 struct max3420_udc *udc = ep->udc; max3420_ep_queue() local
1082 struct max3420_udc *udc = to_udc(gadget); max3420_wakeup() local
1104 struct max3420_udc *udc = to_udc(gadget); max3420_udc_start() local
1126 struct max3420_udc *udc = to_udc(gadget); max3420_udc_stop() local
1149 max3420_eps_init(struct max3420_udc * udc) max3420_eps_init() argument
1200 struct max3420_udc *udc; max3420_probe() local
1298 struct max3420_udc *udc = spi_get_drvdata(spi); max3420_remove() local
[all...]
H A Datmel_usba_udc.c48 spin_lock_irq(&ep->udc->lock); in queue_dbg_open()
55 spin_unlock_irq(&ep->udc->lock); in queue_dbg_open()
61 spin_unlock_irq(&ep->udc->lock); in queue_dbg_open()
141 struct usba_udc *udc; in regs_dbg_open() local
147 udc = inode->i_private; in regs_dbg_open()
152 spin_lock_irq(&udc->lock); in regs_dbg_open()
154 data[i] = readl_relaxed(udc->regs + i * 4); in regs_dbg_open()
155 spin_unlock_irq(&udc->lock); in regs_dbg_open()
202 static void usba_ep_init_debugfs(struct usba_udc *udc, in usba_ep_init_debugfs() argument
207 ep_root = debugfs_create_dir(ep->ep.name, udc in usba_ep_init_debugfs()
223 usba_init_debugfs(struct usba_udc * udc) usba_init_debugfs() argument
243 usba_cleanup_debugfs(struct usba_udc * udc) usba_cleanup_debugfs() argument
249 usba_ep_init_debugfs(struct usba_udc * udc,struct usba_ep * ep) usba_ep_init_debugfs() argument
260 usba_init_debugfs(struct usba_udc * udc) usba_init_debugfs() argument
265 usba_cleanup_debugfs(struct usba_udc * udc) usba_cleanup_debugfs() argument
322 usba_config_fifo_table(struct usba_udc * udc) usba_config_fifo_table() argument
356 usba_int_enb_get(struct usba_udc * udc) usba_int_enb_get() argument
361 usba_int_enb_set(struct usba_udc * udc,u32 mask) usba_int_enb_set() argument
370 usba_int_enb_clear(struct usba_udc * udc,u32 mask) usba_int_enb_clear() argument
379 vbus_is_present(struct usba_udc * udc) vbus_is_present() argument
388 toggle_bias(struct usba_udc * udc,int is_on) toggle_bias() argument
394 generate_bias_pulse(struct usba_udc * udc) generate_bias_pulse() argument
475 send_status(struct usba_udc * udc,struct usba_ep * ep) send_status() argument
484 struct usba_udc *udc = ep->udc; receive_data() local
541 struct usba_udc *udc = ep->udc; request_complete() local
575 struct usba_udc *udc = ep->udc; usba_ep_enable() local
667 struct usba_udc *udc = ep->udc; usba_ep_disable() local
724 queue_dma(struct usba_udc * udc,struct usba_ep * ep,struct usba_request * req,gfp_t gfp_flags) queue_dma() argument
778 struct usba_udc *udc = ep->udc; usba_ep_queue() local
860 struct usba_udc *udc = ep->udc; usba_ep_dequeue() local
921 struct usba_udc *udc = ep->udc; usba_ep_set_halt() local
973 struct usba_udc *udc = ep->udc; usba_ep_fifo_flush() local
992 struct usba_udc *udc = to_usba_udc(gadget); usba_udc_get_frame() local
999 struct usba_udc *udc = to_usba_udc(gadget); usba_udc_wakeup() local
1018 struct usba_udc *udc = to_usba_udc(gadget); usba_udc_set_selfpowered() local
1133 reset_all_endpoints(struct usba_udc * udc) reset_all_endpoints() argument
1147 get_ep_by_addr(struct usba_udc * udc,u16 wIndex) get_ep_by_addr() argument
1171 set_protocol_stall(struct usba_udc * udc,struct usba_ep * ep) set_protocol_stall() argument
1177 is_stalled(struct usba_udc * udc,struct usba_ep * ep) is_stalled() argument
1184 set_address(struct usba_udc * udc,unsigned int addr) set_address() argument
1194 do_test_mode(struct usba_udc * udc) do_test_mode() argument
1302 handle_ep0_setup(struct usba_udc * udc,struct usba_ep * ep,struct usb_ctrlrequest * crq) handle_ep0_setup() argument
1428 usba_control_irq(struct usba_udc * udc,struct usba_ep * ep) usba_control_irq() argument
1616 usba_ep_irq(struct usba_udc * udc,struct usba_ep * ep) usba_ep_irq() argument
1669 usba_dma_irq(struct usba_udc * udc,struct usba_ep * ep) usba_dma_irq() argument
1714 struct usba_udc *udc = devid; usba_udc_irq() local
1856 start_clock(struct usba_udc * udc) start_clock() argument
1878 stop_clock(struct usba_udc * udc) stop_clock() argument
1891 usba_start(struct usba_udc * udc) usba_start() argument
1919 usba_stop(struct usba_udc * udc) usba_stop() argument
1940 struct usba_udc *udc = devid; usba_vbus_irq_thread() local
1968 struct usba_udc *udc = container_of(gadget, struct usba_udc, gadget); atmel_usba_pullup() local
1988 struct usba_udc *udc = container_of(gadget, struct usba_udc, gadget); atmel_usba_start() local
2027 struct usba_udc *udc = container_of(gadget, struct usba_udc, gadget); atmel_usba_stop() local
2040 at91sam9rl_toggle_bias(struct usba_udc * udc,int is_on) at91sam9rl_toggle_bias() argument
2046 at91sam9g45_pulse_bias(struct usba_udc * udc) at91sam9g45_pulse_bias() argument
2134 atmel_udc_of_init(struct platform_device * pdev,struct usba_udc * udc) atmel_udc_of_init() argument
2276 struct usba_udc *udc; usba_udc_probe() local
2370 struct usba_udc *udc; usba_udc_remove() local
2386 struct usba_udc *udc = dev_get_drvdata(dev); usba_udc_suspend() local
2419 struct usba_udc *udc = dev_get_drvdata(dev); usba_udc_resume() local
[all...]
H A Dpxa27x_udc.c91 struct pxa_udc *udc = s->private; in state_dbg_show() local
94 if (!udc->driver) in state_dbg_show()
102 udc->driver ? udc->driver->driver.name : "(none)"); in state_dbg_show()
104 tmp = udc_readl(udc, UDCCR); in state_dbg_show()
123 udc_readl(udc, UDCICR0), udc_readl(udc, UDCICR1)); in state_dbg_show()
125 udc_readl(udc, UDCISR0), udc_readl(udc, UDCISR1)); in state_dbg_show()
126 seq_printf(s, "udcfnr=%d\n", udc_readl(udc, UDCFNR)); in state_dbg_show()
128 udc->stats.irqs_reset, udc->stats.irqs_suspend, in state_dbg_show()
129 udc->stats.irqs_resume, udc->stats.irqs_reconfig); in state_dbg_show()
137 struct pxa_udc *udc = s->private; in queues_dbg_show() local
[all …]
H A Dfsl_udc_core.c16 #define pr_fmt(x) "udc: " x
54 static const char driver_name[] = "fsl-usb2-udc";
156 __releases(ep->udc->lock) in done()
157 __acquires(ep->udc->lock) in done()
159 struct fsl_udc *udc = NULL; in done() local
164 udc = (struct fsl_udc *)ep->udc; in done()
181 dma_pool_free(udc->td_pool, curr_td, curr_td->td_dma); in done()
184 usb_gadget_unmap_request(&ep->udc->gadget, &req->req, ep_is_in(ep)); in done()
187 dev_vdbg(udc in done()
225 dr_controller_setup(struct fsl_udc * udc) dr_controller_setup() argument
349 dr_controller_run(struct fsl_udc * udc) dr_controller_run() argument
374 dr_controller_stop(struct fsl_udc * udc) dr_controller_stop() argument
479 struct_ep_qh_setup(struct fsl_udc * udc,unsigned char ep_num,unsigned char dir,unsigned char ep_type,unsigned int max_pkt_len,unsigned int zlt,unsigned char mult) struct_ep_qh_setup() argument
515 ep0_setup(struct fsl_udc * udc) ep0_setup() argument
543 struct fsl_udc *udc = NULL; fsl_ep_enable() local
630 struct fsl_udc *udc = NULL; fsl_ep_disable() local
864 struct fsl_udc *udc = ep->udc; fsl_ep_queue() local
1002 struct fsl_udc *udc = NULL; fsl_ep_set_halt() local
1044 struct fsl_udc *udc; fsl_ep_fifo_status() local
1146 struct fsl_udc *udc = container_of(gadget, struct fsl_udc, gadget); fsl_wakeup() local
1163 can_pullup(struct fsl_udc * udc) can_pullup() argument
1172 struct fsl_udc *udc; fsl_vbus_session() local
1198 struct fsl_udc *udc; fsl_vbus_draw() local
1211 struct fsl_udc *udc; fsl_pullup() local
1252 ep0stall(struct fsl_udc * udc) ep0stall() argument
1265 ep0_prime_status(struct fsl_udc * udc,int direction) ep0_prime_status() argument
1301 udc_reset_ep_queue(struct fsl_udc * udc,u8 pipe) udc_reset_ep_queue() argument
1312 ch9setaddress(struct fsl_udc * udc,u16 value,u16 index,u16 length) ch9setaddress() argument
1326 ch9getstatus(struct fsl_udc * udc,u8 request_type,u16 value,u16 index,u16 length) ch9getstatus() argument
1390 setup_received_irq(struct fsl_udc * udc,struct usb_ctrlrequest * setup) setup_received_irq() argument
1517 ep0_req_complete(struct fsl_udc * udc,struct fsl_ep * ep0,struct fsl_req * req) ep0_req_complete() argument
1553 tripwire_handler(struct fsl_udc * udc,u8 ep_num,u8 * buffer_ptr) tripwire_handler() argument
1590 process_ep_req(struct fsl_udc * udc,int pipe,struct fsl_req * curr_req) process_ep_req() argument
1666 dtd_complete_irq(struct fsl_udc * udc) dtd_complete_irq() argument
1734 port_change_irq(struct fsl_udc * udc) port_change_irq() argument
1751 suspend_irq(struct fsl_udc * udc) suspend_irq() argument
1761 bus_resume(struct fsl_udc * udc) bus_resume() argument
1772 reset_queues(struct fsl_udc * udc,bool bus_reset) reset_queues() argument
1791 reset_irq(struct fsl_udc * udc) reset_irq() argument
1862 struct fsl_udc *udc = _udc; fsl_udc_irq() local
2025 struct fsl_udc *udc = udc_controller; fsl_proc_read() local
2235 struct_udc_setup(struct fsl_udc * udc,struct platform_device * pdev) struct_udc_setup() argument
2309 struct_ep_setup(struct fsl_udc * udc,unsigned char index,char * name,int link) struct_ep_setup() argument
2599 struct fsl_udc *udc = udc_controller; fsl_udc_otg_suspend() local
[all...]
H A Dcore.c3 * udc.c - Core UDC Framework
37 * @list: for use by the udc class driver
45 * @connect_lock: protects udc->started, gadget->connect,
52 * to hold information about udc driver and gadget together.
70 /* Protects udc_list, udc->driver, driver->is_bound, and related calls */
709 __must_hold(&gadget->udc->connect_lock) in usb_gadget_connect_locked()
721 if (gadget->deactivated || !gadget->udc->allow_connect || !gadget->udc->started) { in usb_gadget_connect_locked()
756 mutex_lock(&gadget->udc->connect_lock); in usb_gadget_connect()
758 mutex_unlock(&gadget->udc in usb_gadget_connect()
1127 struct usb_udc *udc = gadget->udc; usb_gadget_state_work() local
1150 usb_udc_connect_control_locked(struct usb_udc * udc) usb_udc_connect_control_locked() argument
1160 struct usb_udc *udc = container_of(work, struct usb_udc, vbus_work); vbus_event_work() local
1186 struct usb_udc *udc = gadget->udc; usb_udc_vbus_handler() local
1227 usb_gadget_udc_start_locked(struct usb_udc * udc) usb_gadget_udc_start_locked() argument
1257 usb_gadget_udc_stop_locked(struct usb_udc * udc) usb_gadget_udc_stop_locked() argument
1280 usb_gadget_udc_set_speed(struct usb_udc * udc,enum usb_device_speed speed) usb_gadget_udc_set_speed() argument
1307 usb_gadget_enable_async_callbacks(struct usb_udc * udc) usb_gadget_enable_async_callbacks() argument
1336 usb_gadget_disable_async_callbacks(struct usb_udc * udc) usb_gadget_disable_async_callbacks() argument
1353 struct usb_udc *udc; usb_udc_release() local
1370 struct usb_udc *udc = gadget->udc; usb_gadget_release() local
1412 struct usb_udc *udc; usb_add_gadget() local
1538 struct usb_udc *udc; usb_get_gadget_udc_name() local
1577 struct usb_udc *udc = gadget->udc; usb_del_gadget() local
1624 struct usb_udc *udc = gadget->udc; gadget_match_driver() local
1644 struct usb_udc *udc = gadget->udc; gadget_bind_driver() local
1710 struct usb_udc *udc = gadget->udc; gadget_unbind_driver() local
1794 struct usb_udc *udc = container_of(dev, struct usb_udc, dev); srp_store() local
1806 struct usb_udc *udc = container_of(dev, struct usb_udc, dev); soft_connect_store() local
1842 struct usb_udc *udc = container_of(dev, struct usb_udc, dev); state_show() local
1852 struct usb_udc *udc = container_of(dev, struct usb_udc, dev); function_show() local
1924 const struct usb_udc *udc = container_of(dev, struct usb_udc, dev); usb_udc_uevent() local
[all...]
H A Drenesas_usbf.c280 struct usbf_udc *udc; member
425 static inline u32 usbf_reg_readl(struct usbf_udc *udc, uint offset) in usbf_reg_readl() argument
427 return readl(udc->regs + offset); in usbf_reg_readl()
430 static inline void usbf_reg_writel(struct usbf_udc *udc, uint offset, u32 val) in usbf_reg_writel() argument
432 writel(val, udc->regs + offset); in usbf_reg_writel()
435 static inline void usbf_reg_bitset(struct usbf_udc *udc, uint offset, u32 set) in usbf_reg_bitset() argument
439 tmp = usbf_reg_readl(udc, offset); in usbf_reg_bitset()
441 usbf_reg_writel(udc, offset, tmp); in usbf_reg_bitset()
444 static inline void usbf_reg_bitclr(struct usbf_udc *udc, uint offset, u32 clr) in usbf_reg_bitclr() argument
448 tmp = usbf_reg_readl(udc, offse in usbf_reg_bitclr()
453 usbf_reg_clrset(struct usbf_udc * udc,uint offset,u32 clr,u32 set) usbf_reg_clrset() argument
1831 struct usbf_udc *udc = ep->udc; usbf_ep_enable() local
1888 struct usbf_udc *udc = ep->udc; usbf_ep_disable() local
1988 struct usbf_udc *udc = ep->udc; usbf_ep_queue() local
2193 usbf_get_ep_by_addr(struct usbf_udc * udc,u8 address) usbf_get_ep_by_addr() argument
2214 usbf_req_delegate(struct usbf_udc * udc,const struct usb_ctrlrequest * ctrlrequest) usbf_req_delegate() argument
2234 usbf_req_get_status(struct usbf_udc * udc,const struct usb_ctrlrequest * ctrlrequest) usbf_req_get_status() argument
2294 usbf_req_clear_set_feature(struct usbf_udc * udc,const struct usb_ctrlrequest * ctrlrequest,bool is_set) usbf_req_clear_set_feature() argument
2369 usbf_req_set_address(struct usbf_udc * udc,const struct usb_ctrlrequest * ctrlrequest) usbf_req_set_address() argument
2405 usbf_req_set_configuration(struct usbf_udc * udc,const struct usb_ctrlrequest * ctrlrequest) usbf_req_set_configuration() argument
2449 struct usbf_udc *udc = ep0->udc; usbf_handle_ep0_setup() local
2523 struct usbf_udc *udc = ep0->udc; usbf_handle_ep0_data_status() local
2552 struct usbf_udc *udc = ep0->udc; usbf_handle_ep0_out_status_start() local
2577 struct usbf_udc *udc = ep0->udc; usbf_handle_ep0_in_status_start() local
2623 struct usbf_udc *udc = ep0->udc; usbf_ep0_interrupt() local
2838 usbf_reset(struct usbf_udc * udc) usbf_reset() argument
2868 usbf_driver_suspend(struct usbf_udc * udc) usbf_driver_suspend() argument
2893 usbf_driver_resume(struct usbf_udc * udc) usbf_driver_resume() argument
2910 struct usbf_udc *udc = (struct usbf_udc *)_udc; usbf_epc_irq() local
2971 struct usbf_udc *udc = (struct usbf_udc *)_udc; usbf_ahb_epc_irq() local
3024 struct usbf_udc *udc = container_of(gadget, struct usbf_udc, gadget); usbf_udc_start() local
3044 struct usbf_udc *udc = container_of(gadget, struct usbf_udc, gadget); usbf_udc_stop() local
3063 struct usbf_udc *udc = container_of(gadget, struct usbf_udc, gadget); usbf_get_frame() local
3068 usbf_attach(struct usbf_udc * udc) usbf_attach() argument
3085 usbf_detach(struct usbf_udc * udc) usbf_detach() argument
3111 struct usbf_udc *udc = container_of(gadget, struct usbf_udc, gadget); usbf_pullup() local
3129 struct usbf_udc *udc = container_of(gadget, struct usbf_udc, gadget); usbf_udc_set_selfpowered() local
3141 struct usbf_udc *udc = container_of(gadget, struct usbf_udc, gadget); usbf_udc_wakeup() local
3246 struct usbf_udc *udc; usbf_probe() local
3366 struct usbf_udc *udc = platform_get_drvdata(pdev); usbf_remove() local
[all...]
H A Domap_udc.c148 struct omap_udc *udc; in omap_ep_enable() local
192 udc = ep->udc; in omap_ep_enable()
193 if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN) { in omap_ep_enable()
198 spin_lock_irqsave(&udc->lock, flags); in omap_ep_enable()
210 omap_writew(udc->clr_halt, UDC_CTRL); in omap_ep_enable()
215 list_add(&ep->iso, &udc->iso); in omap_ep_enable()
230 spin_unlock_irqrestore(&udc->lock, flags); in omap_ep_enable()
248 spin_lock_irqsave(&ep->udc->lock, flags); in omap_ep_disable()
257 spin_unlock_irqrestore(&ep->udc->lock, flags); in omap_ep_disable()
292 struct omap_udc *udc = ep->udc; in done() local
[all …]
H A Damd5536udc.h517 struct udc *dev;
529 struct udc { struct
578 #define to_amd5536_udc(g) (container_of((g), struct udc, gadget)) argument
587 int udc_enable_dev_setup_interrupts(struct udc *dev);
588 int udc_mask_unused_interrupts(struct udc *dev);
592 void udc_basic_init(struct udc *dev);
593 void free_dma_pools(struct udc *dev);
594 int init_dma_pools(struct udc *dev);
595 void udc_remove(struct udc *dev);
596 int udc_probe(struct udc *dev);
[all …]
H A Damd5536udc_pci.c49 static struct udc *udc; variable
57 struct udc *dev; in udc_pci_remove()
61 usb_del_gadget_udc(&udc->gadget); in udc_pci_remove()
86 struct udc *dev; in udc_pci_probe()
92 if (udc) { in udc_pci_probe()
98 dev = kzalloc_obj(struct udc); in udc_pci_probe()
174 udc = dev; in udc_pci_probe()
H A DMakefile5 udc-core-y := core.o trace.o
10 obj-$(CONFIG_USB_GADGET) += udc-core.o
25 obj-$(CONFIG_USB_M66592) += m66592-udc.o
26 obj-$(CONFIG_USB_R8A66597) += r8a66597-udc.o
34 obj-$(CONFIG_USB_GADGET_XILINX) += udc-xilinx.o
H A Dsnps_udc_core.c39 static void udc_setup_endpoints(struct udc *dev);
40 static void udc_soft_reset(struct udc *dev);
55 static struct udc *udc; variable
184 static void print_regs(struct udc *dev) in print_regs()
217 int udc_mask_unused_interrupts(struct udc *dev) in udc_mask_unused_interrupts()
240 static int udc_enable_ep0_interrupts(struct udc *dev) in udc_enable_ep0_interrupts()
257 int udc_enable_dev_setup_interrupts(struct udc *dev) in udc_enable_dev_setup_interrupts()
281 struct udc *dev; in udc_set_txfifo_addr()
322 struct udc *dev; in udc_ep_enable()
560 static void udc_free_dma_chain(struct udc *dev, struct udc_request *req) in udc_free_dma_chain()
[all …]
H A Datmel_usba_udc.h188 #define usba_readl(udc, reg) \ argument
189 readl_relaxed((udc)->regs + USBA_##reg)
190 #define usba_writel(udc, reg, value) \ argument
191 writel_relaxed((value), (udc)->regs + USBA_##reg)
275 struct usba_udc *udc; member
312 void (*toggle_bias)(struct usba_udc *udc, int is_on);
313 void (*pulse_bias)(struct usba_udc *udc);
/linux/drivers/usb/usbip/
H A Dvudc_dev.c73 static void nuke(struct vudc *udc, struct vep *ep) in nuke() argument
83 spin_unlock(&udc->lock); in nuke()
85 spin_lock(&udc->lock); in nuke()
90 static void stop_activity(struct vudc *udc) in stop_activity() argument
95 udc->address = 0; in stop_activity()
98 nuke(udc, &udc->ep[i]); in stop_activity()
100 list_for_each_entry_safe(urb_p, tmp, &udc->urb_queue, urb_entry) { in stop_activity()
106 struct vep *vudc_find_endpoint(struct vudc *udc, u8 address) in vudc_find_endpoint() argument
111 return &udc->ep[0]; in vudc_find_endpoint()
114 struct vep *ep = &udc->ep[i]; in vudc_find_endpoint()
[all …]
H A Dvudc_sysfs.c23 int get_gadget_descs(struct vudc *udc) in get_gadget_descs() argument
26 struct vep *ep0 = to_vep(udc->gadget.ep0); in get_gadget_descs()
27 struct usb_device_descriptor *ddesc = &udc->dev_desc; in get_gadget_descs()
31 if (!udc->driver || !udc->pullup) in get_gadget_descs()
40 spin_unlock(&udc->lock); in get_gadget_descs()
41 ret = udc->driver->setup(&(udc->gadget), &req); in get_gadget_descs()
42 spin_lock(&udc->lock); in get_gadget_descs()
56 udc->desc_cached = 1; in get_gadget_descs()
74 struct vudc *udc = (struct vudc *)dev_get_drvdata(dev); in dev_desc_read() local
75 char *desc_ptr = (char *) &udc->dev_desc; in dev_desc_read()
[all …]
H A Dvudc_transfer.c58 static int handle_control_request(struct vudc *udc, struct urb *urb, in handle_control_request() argument
73 udc->address = w_value; in handle_control_request()
84 udc->gadget.b_hnp_enable = 1; in handle_control_request()
87 udc->gadget.a_hnp_support = 1; in handle_control_request()
90 udc->gadget.a_alt_hnp_support = 1; in handle_control_request()
96 udc->devstatus |= (1 << w_value); in handle_control_request()
101 ep2 = vudc_find_endpoint(udc, w_index); in handle_control_request()
102 if (!ep2 || ep2->ep.name == udc->ep[0].ep.name) { in handle_control_request()
129 udc->devstatus &= ~(1 << w_value); in handle_control_request()
134 ep2 = vudc_find_endpoint(udc, w_index); in handle_control_request()
[all …]
H A Dvudc_rx.c62 static int v_recv_cmd_unlink(struct vudc *udc, in v_recv_cmd_unlink() argument
68 spin_lock_irqsave(&udc->lock, flags); in v_recv_cmd_unlink()
69 list_for_each_entry(urb_p, &udc->urb_queue, urb_entry) { in v_recv_cmd_unlink()
74 v_kick_timer(udc, jiffies); in v_recv_cmd_unlink()
75 spin_unlock_irqrestore(&udc->lock, flags); in v_recv_cmd_unlink()
79 spin_lock(&udc->lock_tx); in v_recv_cmd_unlink()
80 v_enqueue_ret_unlink(udc, pdu->base.seqnum, 0); in v_recv_cmd_unlink()
81 wake_up(&udc->tx_waitq); in v_recv_cmd_unlink()
82 spin_unlock(&udc->lock_tx); in v_recv_cmd_unlink()
83 spin_unlock_irqrestore(&udc->lock, flags); in v_recv_cmd_unlink()
[all …]
H A Dvudc_tx.c38 static int v_send_ret_unlink(struct vudc *udc, struct v_unlink *unlink) in v_send_ret_unlink() argument
60 ret = kernel_sendmsg(udc->ud.tcp_socket, &msg, iov, in v_send_ret_unlink()
64 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_TCP); in v_send_ret_unlink()
73 static int v_send_ret_submit(struct vudc *udc, struct urbp *urb_p) in v_send_ret_submit() argument
89 dev_err(&udc->gadget.dev, in v_send_ret_submit()
102 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_MALLOC); in v_send_ret_submit()
141 usbip_event_add(&udc->ud, VUDC_EVENT_ERROR_TCP); in v_send_ret_submit()
154 usbip_event_add(&udc->ud, in v_send_ret_submit()
166 ret = kernel_sendmsg(udc->ud.tcp_socket, &msg, in v_send_ret_submit()
169 usbip_event_add(&udc in v_send_ret_submit()
184 v_send_ret(struct vudc * udc) v_send_ret() argument
224 struct vudc *udc = container_of(ud, struct vudc, ud); v_tx_loop() local
244 v_enqueue_ret_unlink(struct vudc * udc,__u32 seqnum,__u32 status) v_enqueue_ret_unlink() argument
270 v_enqueue_ret_submit(struct vudc * udc,struct urbp * urb_p) v_enqueue_ret_submit() argument
[all...]
H A Dvudc.h145 int get_gadget_descs(struct vudc *udc);
150 void v_enqueue_ret_unlink(struct vudc *udc, __u32 seqnum, __u32 status);
151 void v_enqueue_ret_submit(struct vudc *udc, struct urbp *urb_p);
159 void v_init_timer(struct vudc *udc);
160 void v_start_timer(struct vudc *udc);
161 void v_kick_timer(struct vudc *udc, unsigned long time);
162 void v_stop_timer(struct vudc *udc);
169 struct vep *vudc_find_endpoint(struct vudc *udc, u8 address);
/linux/Documentation/ABI/stable/
H A Dsysfs-class-udc1 What: /sys/class/udc/<udc>/a_alt_hnp_support
9 What: /sys/class/udc/<udc>/a_hnp_support
17 What: /sys/class/udc/<udc>/b_hnp_enable
25 What: /sys/class/udc/<udc>/current_speed
33 What: /sys/class/udc/<udc>/is_a_peripheral
42 What: /sys/class/udc/<udc>/is_otg
50 What: /sys/class/udc/<udc>/maximum_speed
58 What: /sys/class/udc/<udc>/soft_connect
67 What: /sys/class/udc/<udc>/srp
75 What: /sys/class/udc/<udc>/state
[all …]
/linux/Documentation/devicetree/bindings/usb/
H A Diproc-udc.txt10 For Broadcom NS2 platform, add "brcm,ns2-udc","brcm,iproc-udc".
11 For Broadcom Cygnus platform, add "brcm,cygnus-udc", "brcm,iproc-udc".
18 compatible = "brcm,ns2-udc", "brcm,iproc-udc";

1234