/drivers/usb/gadget/udc/bdc/ |
D | bdc_udc.c | 60 static void srr_dqp_index_advc(struct bdc *bdc, u32 srr_num) in srr_dqp_index_advc() argument 64 srr = &bdc->srr; in srr_dqp_index_advc() 65 dev_dbg_ratelimited(bdc->dev, "srr->dqp_index:%d\n", srr->dqp_index); in srr_dqp_index_advc() 73 static void bdc_uspc_connected(struct bdc *bdc) in bdc_uspc_connected() argument 79 temp = bdc_readl(bdc->regs, BDC_USPC); in bdc_uspc_connected() 81 dev_dbg(bdc->dev, "%s speed=%x\n", __func__, speed); in bdc_uspc_connected() 86 bdc->gadget.ep0->maxpacket = EP0_MAX_PKT_SIZE; in bdc_uspc_connected() 87 bdc->gadget.speed = USB_SPEED_SUPER; in bdc_uspc_connected() 89 usppms = bdc_readl(bdc->regs, BDC_USPPMS); in bdc_uspc_connected() 93 bdc_writel(bdc->regs, BDC_USPPMS, usppms); in bdc_uspc_connected() [all …]
|
D | bdc_core.c | 32 static int poll_oip(struct bdc *bdc, int usec) in poll_oip() argument 37 status = bdc_readl(bdc->regs, BDC_BDCSC); in poll_oip() 39 dev_dbg(bdc->dev, in poll_oip() 47 dev_err(bdc->dev, "Err: operation timedout BDCSC: 0x%08x\n", status); in poll_oip() 53 int bdc_stop(struct bdc *bdc) in bdc_stop() argument 58 dev_dbg(bdc->dev, "%s ()\n\n", __func__); in bdc_stop() 59 temp = bdc_readl(bdc->regs, BDC_BDCSC); in bdc_stop() 62 dev_vdbg(bdc->dev, "BDC already halted\n"); in bdc_stop() 67 bdc_writel(bdc->regs, BDC_BDCSC, temp); in bdc_stop() 69 ret = poll_oip(bdc, BDC_COP_TIMEOUT); in bdc_stop() [all …]
|
D | bdc_ep.c | 55 struct bdc *bdc = ep->bdc; in ep_bd_list_free() local 59 dev_dbg(bdc->dev, "%s ep:%s num_tabs:%d\n", in ep_bd_list_free() 63 dev_dbg(bdc->dev, "%s already freed\n", ep->name); in ep_bd_list_free() 73 dev_dbg(bdc->dev, "bd_table:%p index:%d\n", bd_table, index); in ep_bd_list_free() 75 dev_dbg(bdc->dev, "bd_table not allocated\n"); in ep_bd_list_free() 79 dev_dbg(bdc->dev, "bd dma pool not allocated\n"); in ep_bd_list_free() 83 dev_dbg(bdc->dev, in ep_bd_list_free() 88 dma_pool_free(bdc->bd_table_pool, in ep_bd_list_free() 125 struct bdc *bdc = ep->bdc; in ep_bd_list_alloc() local 136 dev_dbg(bdc->dev, in ep_bd_list_alloc() [all …]
|
D | bdc_cmd.c | 17 static int bdc_issue_cmd(struct bdc *bdc, u32 cmd_sc, u32 param0, in bdc_issue_cmd() argument 24 bdc_writel(bdc->regs, BDC_CMDPAR0, param0); in bdc_issue_cmd() 25 bdc_writel(bdc->regs, BDC_CMDPAR1, param1); in bdc_issue_cmd() 26 bdc_writel(bdc->regs, BDC_CMDPAR2, param2); in bdc_issue_cmd() 31 bdc_writel(bdc->regs, BDC_CMDSC, cmd_sc | BDC_CMD_CWS | BDC_CMD_SRD); in bdc_issue_cmd() 33 temp = bdc_readl(bdc->regs, BDC_CMDSC); in bdc_issue_cmd() 34 dev_dbg_ratelimited(bdc->dev, "cmdsc=%x", temp); in bdc_issue_cmd() 37 dev_dbg(bdc->dev, in bdc_issue_cmd() 44 dev_err(bdc->dev, in bdc_issue_cmd() 51 static int bdc_submit_cmd(struct bdc *bdc, u32 cmd_sc, in bdc_submit_cmd() argument [all …]
|
D | bdc_dbg.c | 13 void bdc_dbg_regs(struct bdc *bdc) in bdc_dbg_regs() argument 17 dev_vdbg(bdc->dev, "bdc->regs:%p\n", bdc->regs); in bdc_dbg_regs() 18 temp = bdc_readl(bdc->regs, BDC_BDCCFG0); in bdc_dbg_regs() 19 dev_vdbg(bdc->dev, "bdccfg0:0x%08x\n", temp); in bdc_dbg_regs() 20 temp = bdc_readl(bdc->regs, BDC_BDCCFG1); in bdc_dbg_regs() 21 dev_vdbg(bdc->dev, "bdccfg1:0x%08x\n", temp); in bdc_dbg_regs() 22 temp = bdc_readl(bdc->regs, BDC_BDCCAP0); in bdc_dbg_regs() 23 dev_vdbg(bdc->dev, "bdccap0:0x%08x\n", temp); in bdc_dbg_regs() 24 temp = bdc_readl(bdc->regs, BDC_BDCCAP1); in bdc_dbg_regs() 25 dev_vdbg(bdc->dev, "bdccap1:0x%08x\n", temp); in bdc_dbg_regs() [all …]
|
D | bdc_dbg.h | 15 void bdc_dbg_bd_list(struct bdc *, struct bdc_ep*); 16 void bdc_dbg_srr(struct bdc *, u32); 17 void bdc_dbg_regs(struct bdc *); 18 void bdc_dump_epsts(struct bdc *); 20 static inline void bdc_dbg_regs(struct bdc *bdc) in bdc_dbg_regs() argument 23 static inline void bdc_dbg_srr(struct bdc *bdc, u32 srr_num) in bdc_dbg_srr() argument 26 static inline void bdc_dbg_bd_list(struct bdc *bdc, struct bdc_ep *ep) in bdc_dbg_bd_list() argument 29 static inline void bdc_dump_epsts(struct bdc *bdc) in bdc_dump_epsts() argument
|
D | bdc_pci.c | 25 struct platform_device *bdc; member 44 struct platform_device *bdc; in bdc_pci_probe() local 60 bdc = platform_device_alloc(BRCM_BDC_NAME, PLATFORM_DEVID_AUTO); in bdc_pci_probe() 61 if (!bdc) in bdc_pci_probe() 76 ret = platform_device_add_resources(bdc, res, ARRAY_SIZE(res)); in bdc_pci_probe() 80 platform_device_put(bdc); in bdc_pci_probe() 86 dma_set_coherent_mask(&bdc->dev, pci->dev.coherent_dma_mask); in bdc_pci_probe() 88 bdc->dev.dma_mask = pci->dev.dma_mask; in bdc_pci_probe() 89 bdc->dev.dma_parms = pci->dev.dma_parms; in bdc_pci_probe() 90 bdc->dev.parent = &pci->dev; in bdc_pci_probe() [all …]
|
D | bdc_cmd.h | 13 int bdc_address_device(struct bdc *, u32); 14 int bdc_config_ep(struct bdc *, struct bdc_ep *); 15 int bdc_dconfig_ep(struct bdc *, struct bdc_ep *); 16 int bdc_stop_ep(struct bdc *, int); 17 int bdc_ep_set_stall(struct bdc *, int); 18 int bdc_ep_clear_stall(struct bdc *, int); 20 int bdc_ep_bla(struct bdc *, struct bdc_ep *, dma_addr_t); 21 int bdc_function_wake(struct bdc*, u8); 22 int bdc_function_wake_fh(struct bdc*, u8);
|
D | bdc.h | 264 #define gadget_to_bdc(g) container_of(g, struct bdc, gadget) 353 struct bdc *bdc; member 404 struct bdc { struct 444 void (*sr_handler[2])(struct bdc *, struct bdc_sr *); argument 446 void (*sr_xsf_ep0[3])(struct bdc *, struct bdc_sr *); argument 469 void bdc_notify_xfr(struct bdc *, u32); argument 470 void bdc_softconn(struct bdc *); 471 void bdc_softdisconn(struct bdc *); 472 int bdc_run(struct bdc *); 473 int bdc_stop(struct bdc *); [all …]
|
D | Makefile | 2 obj-$(CONFIG_USB_BDC_UDC) += bdc.o 3 bdc-y := bdc_core.o bdc_cmd.o bdc_ep.o bdc_udc.o 6 bdc-y += bdc_dbg.o
|
D | bdc_ep.h | 12 int bdc_init_ep(struct bdc *); 15 void bdc_free_ep(struct bdc *);
|
D | Kconfig | 13 linked module called "bdc".
|
/drivers/usb/gadget/udc/ |
D | Makefile | 43 obj-$(CONFIG_USB_BDC_UDC) += bdc/
|
D | Kconfig | 306 source "drivers/usb/gadget/udc/bdc/Kconfig"
|