Home
last modified time | relevance | path

Searched refs:vhub (Results 1 – 25 of 36) sorted by relevance

12

/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Dhub.c3 * aspeed-vhub -- Driver for Aspeed SoC "vHub" USB gadget
32 #include "vhub.h"
186 if (ep->vhub->wakeup_en) in ast_vhub_hub_dev_status()
203 if (ep->vhub->ep1_stalled) in ast_vhub_hub_ep_status()
221 ep->vhub->wakeup_en = is_set; in ast_vhub_hub_dev_feature()
228 val = readl(ep->vhub->regs + AST_VHUB_CTRL); in ast_vhub_hub_dev_feature()
231 writel(val, ep->vhub->regs + AST_VHUB_CTRL); in ast_vhub_hub_dev_feature()
260 ep->vhub->ep1_stalled = is_set; in ast_vhub_hub_ep_feature()
261 reg = readl(ep->vhub->regs + AST_VHUB_EP1_CTRL); in ast_vhub_hub_ep_feature()
268 writel(reg, ep->vhub in ast_vhub_hub_ep_feature()
276 struct ast_vhub *vhub = ep->vhub; ast_vhub_rep_desc() local
332 ast_vhub_collect_languages(struct ast_vhub * vhub,void * buf,size_t size) ast_vhub_collect_languages() argument
358 ast_vhub_lookup_string(struct ast_vhub * vhub,u16 lang_id) ast_vhub_lookup_string() argument
379 struct ast_vhub *vhub = ep->vhub; ast_vhub_rep_string() local
403 struct ast_vhub *vhub = ep->vhub; ast_vhub_std_hub_request() local
480 ast_vhub_update_hub_ep1(struct ast_vhub * vhub,unsigned int port) ast_vhub_update_hub_ep1() argument
493 ast_vhub_change_port_stat(struct ast_vhub * vhub,unsigned int port,u16 clr_flags,u16 set_flags,bool set_c) ast_vhub_change_port_stat() argument
532 ast_vhub_send_host_wakeup(struct ast_vhub * vhub) ast_vhub_send_host_wakeup() argument
540 ast_vhub_device_connect(struct ast_vhub * vhub,unsigned int port,bool on) ast_vhub_device_connect() argument
562 struct ast_vhub *vhub = container_of(work, ast_vhub_wake_work() local
588 ast_vhub_hub_wake_all(struct ast_vhub * vhub) ast_vhub_hub_wake_all() argument
598 ast_vhub_port_reset(struct ast_vhub * vhub,u8 port) ast_vhub_port_reset() argument
654 struct ast_vhub *vhub = ep->vhub; ast_vhub_set_port_feature() local
697 struct ast_vhub *vhub = ep->vhub; ast_vhub_clr_port_feature() local
743 struct ast_vhub *vhub = ep->vhub; ast_vhub_get_port_stat() local
812 ast_vhub_hub_suspend(struct ast_vhub * vhub) ast_vhub_hub_suspend() argument
835 ast_vhub_hub_resume(struct ast_vhub * vhub) ast_vhub_hub_resume() argument
858 ast_vhub_hub_reset(struct ast_vhub * vhub) ast_vhub_hub_reset() argument
904 ast_vhub_of_parse_dev_desc(struct ast_vhub * vhub,const struct device_node * vhub_np) ast_vhub_of_parse_dev_desc() argument
924 ast_vhub_fixup_usb1_dev_desc(struct ast_vhub * vhub) ast_vhub_fixup_usb1_dev_desc() argument
931 ast_vhub_str_container_alloc(struct ast_vhub * vhub) ast_vhub_str_container_alloc() argument
967 ast_vhub_str_alloc_add(struct ast_vhub * vhub,const struct usb_gadget_strings * src_str) ast_vhub_str_alloc_add() argument
994 ast_vhub_of_parse_str_desc(struct ast_vhub * vhub,const struct device_node * desc_np) ast_vhub_of_parse_str_desc() argument
1036 ast_vhub_init_desc(struct ast_vhub * vhub) ast_vhub_init_desc() argument
1075 ast_vhub_init_hub(struct ast_vhub * vhub) ast_vhub_init_hub() argument
[all...]
H A Ddev.c66 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable()
68 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_enable()
98 reg = readl(d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable()
100 writel(reg, d->vhub->regs + AST_VHUB_IER); in ast_vhub_dev_disable()
123 val = readl(d->vhub->regs + AST_VHUB_CTRL); in ast_vhub_dev_feature()
126 writel(val, d->vhub->regs + AST_VHUB_CTRL); in ast_vhub_dev_feature()
239 d->gadget.speed = ep->vhub->speed; in ast_vhub_std_dev_request()
282 spin_lock_irqsave(&d->vhub->lock, flags); in ast_vhub_udc_wakeup()
289 ast_vhub_hub_wake_all(d->vhub); in ast_vhub_udc_wakeup()
292 spin_unlock_irqrestore(&d->vhub->lock, flags); in ast_vhub_udc_wakeup()
[all …]
H A Depn.c340 struct ast_vhub *vhub = ep->vhub; in ast_vhub_epn_queue() local
347 dev_warn(&vhub->pdev->dev, "Bogus EPn request ! u_req=%p\n", u_req); in ast_vhub_epn_queue()
349 dev_warn(&vhub->pdev->dev, "complete=%p internal=%d\n", in ast_vhub_epn_queue()
381 rc = usb_gadget_map_request_by_dev(&vhub->pdev->dev, u_req, in ast_vhub_epn_queue()
384 dev_warn(&vhub->pdev->dev, in ast_vhub_epn_queue()
403 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_epn_queue()
414 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_epn_queue()
440 dev_warn(&ep->vhub->pdev->dev, "Timeout waiting for DMA\n"); in ast_vhub_stop_active_req()
475 struct ast_vhub *vhub = ep->vhub; in ast_vhub_epn_dequeue() local
480 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_epn_dequeue()
[all …]
H A Dep0.c53 spin_unlock(&ep->vhub->lock); in ast_vhub_reply()
58 spin_lock(&ep->vhub->lock); in ast_vhub_reply()
151 spin_unlock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup()
153 spin_lock(&ep->vhub->lock); in ast_vhub_ep0_handle_setup()
276 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_handle_ack() local
277 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_handle_ack()
364 struct ast_vhub *vhub = ep->vhub; in ast_vhub_ep0_queue() local
365 struct device *dev = &vhub->pdev->dev; in ast_vhub_ep0_queue()
403 spin_lock_irqsave(&vhub->lock, flags); in ast_vhub_ep0_queue()
412 spin_unlock_irqrestore(&vhub->lock, flags); in ast_vhub_ep0_queue()
[all …]
H A Dvhub.h281 struct ast_vhub *vhub; member
342 struct ast_vhub *vhub; member
443 dev_dbg(&(ep)->vhub->pdev->dev, \
450 dev_dbg(&(d)->vhub->pdev->dev, \
465 dev_dbg(&(ep)->vhub->pdev->dev, \
472 dev_dbg(&(d)->vhub->pdev->dev, \
522 void ast_vhub_init_hw(struct ast_vhub *vhub);
528 void ast_vhub_init_ep0(struct ast_vhub *vhub, struct ast_vhub_ep *ep,
538 int ast_vhub_init_hub(struct ast_vhub *vhub);
543 void ast_vhub_device_connect(struct ast_vhub *vhub, unsigned int port,
[all …]
H A DMakefile2 obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub.o
3 aspeed-vhub-y := core.o ep0.o epn.o dev.o hub.o
/linux/arch/arm/boot/dts/aspeed/
H A Daspeed-bmc-inventec-transformers.dts318 &vhub {
320 aspeed,vhub-downstream-ports = <7>;
321 aspeed,vhub-generic-endpoints = <21>;
H A Daspeed-bmc-inventec-starscream.dts379 &vhub {
381 aspeed,vhub-downstream-ports = <7>;
382 aspeed,vhub-generic-endpoints = <21>;
H A Daspeed-bmc-facebook-galaxy100.dts51 &vhub {
H A Daspeed-bmc-facebook-wedge100.dts61 &vhub {
H A Dast2500-facebook-netbmc-common.dtsi73 &vhub {
H A Dast2400-facebook-netbmc-common.dtsi115 &vhub {
H A Daspeed-ast2500-evb.dts116 &vhub {
H A Dast2600-facebook-netbmc-common.dtsi151 &vhub {
H A Daspeed-g6.dtsi299 vhub: usb-vhub@1e6a0000 { label
300 compatible = "aspeed,ast2600-usb-vhub";
304 aspeed,vhub-downstream-ports = <7>;
305 aspeed,vhub-generic-endpoints = <21>;
H A Daspeed-g4.dtsi170 vhub: usb-vhub@1e6a0000 { label
171 compatible = "aspeed,ast2400-usb-vhub";
175 aspeed,vhub-downstream-ports = <5>;
176 aspeed,vhub-generic-endpoints = <15>;
H A Daspeed-bmc-qcom-dc-scm-v1.dts188 &vhub {
H A Daspeed-g5.dtsi198 vhub: usb-vhub@1e6a0000 { label
199 compatible = "aspeed,ast2500-usb-vhub";
203 aspeed,vhub-downstream-ports = <5>;
204 aspeed,vhub-generic-endpoints = <15>;
H A Daspeed-bmc-amd-daytonax.dts317 &vhub {
H A Daspeed-bmc-asrock-spc621d8hm3.dts198 &vhub {
H A Daspeed-bmc-amd-ethanolx.dts343 &vhub {
H A Daspeed-bmc-opp-romulus.dts337 &vhub {
H A Daspeed-bmc-opp-nicole.dts291 &vhub {
H A Daspeed-ast2600-evb.dts337 &vhub {
/linux/drivers/usb/gadget/udc/
H A DMakefile41 obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub/

12