| /linux/drivers/usb/isp1760/ |
| H A D | isp1760-udc.c | 24 #include "isp1760-udc.h" 50 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 [all …]
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | max3420_udc.c | 157 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->spi; in spi_wr8_ack() [all …]
|
| H A D | udc-xilinx.c | 124 * @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->addr, ep0->offset, epcfgreg); in xudc_wrstatus() 267 udc->write_fn(udc->addr, ep0->offset + XUSB_EP_BUF0COUNT_OFFSET, 0); in xudc_wrstatus() 268 udc->write_fn(udc->addr, XUSB_BUFFREADY_OFFSET, 1); in xudc_wrstatus() [all …]
|
| H A D | bcm63xx_udc.c | 3 * bcm63xx_udc.c -- BCM63xx UDC high/full speed USB device controller 194 * @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, u3 argument 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 D | lpc32xx_udc.c | 101 struct lpc32xx_udc *udc; member 123 * Common UDC structure 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 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 D | atmel_usba_udc.c | 48 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 D | pxa27x_udc.c | 3 * Handles the Intel 27x USB Device Controller (UDC) 36 * This driver handles the USB Device Controller (UDC) in Intel's PXA 27x 45 * This UDC hardware wants to implement a bit too much USB protocol. The 64 * made of UDC's double buffering either. USB "On-The-Go" is not implemented. 91 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() [all …]
|
| H A D | renesas_usbf.c | 280 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 D | core.c | 3 * udc.c - Core UDC Framework 9 #define pr_fmt(fmt) "UDC core: " fmt 37 * @list: for use by the udc class driver 40 * @started: the UDC's started state. True if the UDC had started. 41 * @allow_connect: Indicates whether UDC is allowed to be pulled up. 45 * @connect_lock: protects udc->started, gadget->connect, 51 * This represents the internal data structure which is used by the UDC-class 52 * to hold information about udc drive 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 D | fsl_udc_core.c | 16 #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 D | omap_udc.c | 3 * omap_udc.c -- for OMAP full speed udc; most chips support OTG. 66 * The OMAP UDC needs _very_ early endpoint setup: before enabling the 70 * optional new "UDC not yet running" state to the gadget driver model, 148 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() [all …]
|
| H A D | amd5536udc_pci.c | 3 * amd5536udc_pci.c -- AMD 5536 UDC high/full speed USB device controller 10 * The AMD5536 UDC is part of the x86 southbridge AMD Geode CS5536. 14 * Make sure that UDC is assigned to port 4 by BIOS settings (port can also 18 * UDC DMA requires 32-bit aligned buffers so DMA with gadget ether does not 25 * The driver is split so as to use the core UDC driver which is based on 32 #define UDC_MOD_DESCRIPTION "AMD 5536 UDC - USB Device Controller" 45 /* udc specific */ 49 static struct udc *udc; variable 57 struct udc *dev; in udc_pci_remove() 61 usb_del_gadget_udc(&udc->gadget); in udc_pci_remove() [all …]
|
| /linux/drivers/usb/usbip/ |
| H A D | vudc_dev.c | 73 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 D | vudc_sysfs.c | 22 /* called with udc->lock held */ 23 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 [all …]
|
| H A D | vudc_transfer.c | 46 * @udc: pointer to vudc 56 * Adapted from drivers/usb/gadget/udc/dummy_hcd.c 58 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() [all …]
|
| H A D | vudc_tx.c | 38 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() 63 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->ud, VUDC_EVENT_ERROR_TCP); in v_send_ret_submit() [all …]
|
| H A D | vudc_rx.c | 62 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 D | vudc.h | 145 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 D | sysfs-class-udc | 1 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/arch/arm/mach-pxa/ |
| H A D | pxa27x-udc.h | 8 #error You cannot include both PXA25x and PXA27x UDC support 11 #define UDCCR __REG(0x40600000) /* UDC Control Register */ 20 #define UDCCR_ACN (0x03 << 11) /* Active UDC configuration Number */ 22 #define UDCCR_AIN (0x07 << 8) /* Active UDC interface Number */ 24 #define UDCCR_AAISN (0x07 << 5) /* Active UDC Alternate Interface 31 #define UDCCR_UDR (1 << 2) /* UDC Resume */ 32 #define UDCCR_UDA (1 << 1) /* UDC Active */ 33 #define UDCCR_UDE (1 << 0) /* UDC Enable */ 35 #define UDCICR0 __REG(0x40600004) /* UDC Interrupt Control Register0 */ 36 #define UDCICR1 __REG(0x40600008) /* UDC Interrupt Control Register1 */ [all …]
|
| /linux/Documentation/devicetree/bindings/usb/ |
| H A D | iproc-udc.txt | 4 iProc family (Northstar2, Cygnus) of SoCs'. The UDC is based 10 For Broadcom NS2 platform, add "brcm,ns2-udc","brcm,iproc-udc". 11 For Broadcom Cygnus platform, add "brcm,cygnus-udc", "brcm,iproc-udc". 12 - reg: Offset and length of UDC register set 18 compatible = "brcm,ns2-udc", "brcm,iproc-udc";
|
| H A D | pxa-usb.txt | 32 UDC 35 - compatible: Should be "marvell,pxa270-udc" for USB controllers 38 - interrupts: single interrupt generated by the UDC IP 39 - clocks: input clock of the UDC IP (see clock-bindings.txt) 47 pxa27x_udc: udc@40600000 { 48 compatible = "marvell,pxa270-udc";
|
| H A D | nxp,lpc3220-udc.yaml | 4 $id: http://devicetree.org/schemas/usb/nxp,lpc3220-udc.yaml# 7 title: NXP LPC32xx SoC USB Device Controller (UDC) 14 const: nxp,lpc3220-udc 32 the UDC controller for connecting to the USB physical layer 45 compatible = "nxp,lpc3220-udc";
|
| /linux/Documentation/usb/ |
| H A D | raw-gadget.rst | 25 descriptors. Note that the UDC driver might respond to some requests on 33 3. Raw Gadget provides a way to select a UDC device/driver to bind to, 34 while GadgetFS currently binds to the first available UDC. This allows 38 capabilities. This allows the user to write UDC-agnostic gadgets. 60 Note that some UDC drivers have fixed addresses assigned to endpoints, and 62 Nevertheless, Raw Gadget provides a UDC-agnostic way to write USB gadgets. 65 endpoints that the UDC driver has. Based on that, userspace must choose UDC
|
| /linux/include/uapi/linux/usb/ |
| H A D | raw_gadget.h | 22 * @driver_name: The name of the UDC driver. 23 * @device_name: The name of a UDC instance. 25 * The last two fields identify a UDC the gadget driver should bind to. 26 * For example, Dummy UDC has "dummy_udc" as its driver_name and "dummy_udc.N" 27 * as its device_name, where N in the index of the Dummy UDC instance. 41 /* This event is queued when the driver has bound to a UDC. */ 109 /* Maximum length of UDC endpoint name in struct usb_raw_ep_info. */ 143 * @name: Name of the endpoint as it is defined in the UDC driver. 172 * Instructs Raw Gadget to bind to a UDC and start emulating a USB device. 230 * Constrains UDC VBUS power usage. [all …]
|