Home
last modified time | relevance | path

Searched refs:bdc (Results 1 – 15 of 15) sorted by relevance

/linux-4.4.14/drivers/usb/gadget/udc/bdc/
Dbdc_udc.c65 static void srr_dqp_index_advc(struct bdc *bdc, u32 srr_num) in srr_dqp_index_advc() argument
69 srr = &bdc->srr; in srr_dqp_index_advc()
70 dev_dbg_ratelimited(bdc->dev, "srr->dqp_index:%d\n", srr->dqp_index); in srr_dqp_index_advc()
78 static void bdc_uspc_connected(struct bdc *bdc) in bdc_uspc_connected() argument
84 temp = bdc_readl(bdc->regs, BDC_USPC); in bdc_uspc_connected()
86 dev_dbg(bdc->dev, "%s speed=%x\n", __func__, speed); in bdc_uspc_connected()
91 bdc->gadget.ep0->maxpacket = EP0_MAX_PKT_SIZE; in bdc_uspc_connected()
92 bdc->gadget.speed = USB_SPEED_SUPER; in bdc_uspc_connected()
94 usppms = bdc_readl(bdc->regs, BDC_USPPMS); in bdc_uspc_connected()
98 bdc_writel(bdc->regs, BDC_USPPMS, usppms); in bdc_uspc_connected()
[all …]
Dbdc_core.c35 static int poll_oip(struct bdc *bdc, int usec) in poll_oip() argument
40 status = bdc_readl(bdc->regs, BDC_BDCSC); in poll_oip()
42 dev_dbg(bdc->dev, in poll_oip()
50 dev_err(bdc->dev, "Err: operation timedout BDCSC: 0x%08x\n", status); in poll_oip()
56 int bdc_stop(struct bdc *bdc) in bdc_stop() argument
61 dev_dbg(bdc->dev, "%s ()\n\n", __func__); in bdc_stop()
62 temp = bdc_readl(bdc->regs, BDC_BDCSC); in bdc_stop()
65 dev_vdbg(bdc->dev, "BDC already halted\n"); in bdc_stop()
70 bdc_writel(bdc->regs, BDC_BDCSC, temp); in bdc_stop()
72 ret = poll_oip(bdc, BDC_COP_TIMEOUT); in bdc_stop()
[all …]
Dbdc_ep.c60 struct bdc *bdc = ep->bdc; in ep_bd_list_free() local
64 dev_dbg(bdc->dev, "%s ep:%s num_tabs:%d\n", in ep_bd_list_free()
68 dev_dbg(bdc->dev, "%s already freed\n", ep->name); in ep_bd_list_free()
78 dev_dbg(bdc->dev, "bd_table:%p index:%d\n", bd_table, index); in ep_bd_list_free()
80 dev_dbg(bdc->dev, "bd_table not allocated\n"); in ep_bd_list_free()
84 dev_dbg(bdc->dev, "bd dma pool not allocted\n"); in ep_bd_list_free()
88 dev_dbg(bdc->dev, in ep_bd_list_free()
93 dma_pool_free(bdc->bd_table_pool, in ep_bd_list_free()
130 struct bdc *bdc = ep->bdc; in ep_bd_list_alloc() local
141 dev_dbg(bdc->dev, in ep_bd_list_alloc()
[all …]
Dbdc_dbg.c18 void bdc_dbg_regs(struct bdc *bdc) in bdc_dbg_regs() argument
22 dev_vdbg(bdc->dev, "bdc->regs:%p\n", bdc->regs); in bdc_dbg_regs()
23 temp = bdc_readl(bdc->regs, BDC_BDCCFG0); in bdc_dbg_regs()
24 dev_vdbg(bdc->dev, "bdccfg0:0x%08x\n", temp); in bdc_dbg_regs()
25 temp = bdc_readl(bdc->regs, BDC_BDCCFG1); in bdc_dbg_regs()
26 dev_vdbg(bdc->dev, "bdccfg1:0x%08x\n", temp); in bdc_dbg_regs()
27 temp = bdc_readl(bdc->regs, BDC_BDCCAP0); in bdc_dbg_regs()
28 dev_vdbg(bdc->dev, "bdccap0:0x%08x\n", temp); in bdc_dbg_regs()
29 temp = bdc_readl(bdc->regs, BDC_BDCCAP1); in bdc_dbg_regs()
30 dev_vdbg(bdc->dev, "bdccap1:0x%08x\n", temp); in bdc_dbg_regs()
[all …]
Dbdc_cmd.c22 static int bdc_issue_cmd(struct bdc *bdc, u32 cmd_sc, u32 param0, in bdc_issue_cmd() argument
29 bdc_writel(bdc->regs, BDC_CMDPAR0, param0); in bdc_issue_cmd()
30 bdc_writel(bdc->regs, BDC_CMDPAR1, param1); in bdc_issue_cmd()
31 bdc_writel(bdc->regs, BDC_CMDPAR2, param2); in bdc_issue_cmd()
36 bdc_writel(bdc->regs, BDC_CMDSC, cmd_sc | BDC_CMD_CWS | BDC_CMD_SRD); in bdc_issue_cmd()
38 temp = bdc_readl(bdc->regs, BDC_CMDSC); in bdc_issue_cmd()
39 dev_dbg_ratelimited(bdc->dev, "cmdsc=%x", temp); in bdc_issue_cmd()
42 dev_dbg(bdc->dev, in bdc_issue_cmd()
49 dev_err(bdc->dev, in bdc_issue_cmd()
56 static int bdc_submit_cmd(struct bdc *bdc, u32 cmd_sc, in bdc_submit_cmd() argument
[all …]
Dbdc_dbg.h20 void bdc_dbg_bd_list(struct bdc *, struct bdc_ep*);
21 void bdc_dbg_srr(struct bdc *, u32);
22 void bdc_dbg_regs(struct bdc *);
23 void bdc_dump_epsts(struct bdc *);
25 static inline void bdc_dbg_regs(struct bdc *bdc) in bdc_dbg_regs() argument
28 static inline void bdc_dbg_srr(struct bdc *bdc, u32 srr_num) in bdc_dbg_srr() argument
31 static inline void bdc_dbg_bd_list(struct bdc *bdc, struct bdc_ep *ep) in bdc_dbg_bd_list() argument
34 static inline void bdc_dump_epsts(struct bdc *bdc) in bdc_dump_epsts() argument
Dbdc_cmd.h18 int bdc_address_device(struct bdc *, u32);
19 int bdc_config_ep(struct bdc *, struct bdc_ep *);
20 int bdc_dconfig_ep(struct bdc *, struct bdc_ep *);
21 int bdc_stop_ep(struct bdc *, int);
22 int bdc_ep_set_stall(struct bdc *, int);
23 int bdc_ep_clear_stall(struct bdc *, int);
25 int bdc_ep_bla(struct bdc *, struct bdc_ep *, dma_addr_t);
26 int bdc_function_wake(struct bdc*, u8);
27 int bdc_function_wake_fh(struct bdc*, u8);
Dbdc_pci.c30 struct platform_device *bdc; member
49 struct platform_device *bdc; in bdc_pci_probe() local
65 bdc = platform_device_alloc(BRCM_BDC_NAME, PLATFORM_DEVID_AUTO); in bdc_pci_probe()
66 if (!bdc) in bdc_pci_probe()
81 ret = platform_device_add_resources(bdc, res, ARRAY_SIZE(res)); in bdc_pci_probe()
90 dma_set_coherent_mask(&bdc->dev, pci->dev.coherent_dma_mask); in bdc_pci_probe()
92 bdc->dev.dma_mask = pci->dev.dma_mask; in bdc_pci_probe()
93 bdc->dev.dma_parms = pci->dev.dma_parms; in bdc_pci_probe()
94 bdc->dev.parent = &pci->dev; in bdc_pci_probe()
95 glue->bdc = bdc; in bdc_pci_probe()
[all …]
Dbdc.h269 #define gadget_to_bdc(g) container_of(g, struct bdc, gadget)
358 struct bdc *bdc; member
409 struct bdc { struct
446 void (*sr_handler[2])(struct bdc *, struct bdc_sr *); argument
448 void (*sr_xsf_ep0[3])(struct bdc *, struct bdc_sr *); argument
470 void bdc_notify_xfr(struct bdc *, u32); argument
471 void bdc_softconn(struct bdc *);
472 void bdc_softdisconn(struct bdc *);
473 int bdc_run(struct bdc *);
474 int bdc_stop(struct bdc *);
[all …]
DMakefile1 obj-$(CONFIG_USB_BDC_UDC) += bdc.o
2 bdc-y := bdc_core.o bdc_cmd.o bdc_ep.o bdc_udc.o
5 bdc-y += bdc_dbg.o
Dbdc_ep.h17 int bdc_init_ep(struct bdc *);
20 void bdc_free_ep(struct bdc *);
DKconfig10 linked module called "bdc".
/linux-4.4.14/drivers/usb/gadget/udc/
DMakefile33 obj-$(CONFIG_USB_BDC_UDC) += bdc/
DKconfig245 source "drivers/usb/gadget/udc/bdc/Kconfig"
/linux-4.4.14/Documentation/video4linux/
DREADME.cpia2129 Jarl Totland <Jarl.Totland@bdc.no> for the original cpia driver, which