Home
last modified time | relevance | path

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

/linux/drivers/usb/gadget/udc/bdc/
H A Dbdc_udc.c60 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 …]
H A Dbdc_ep.c55 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 …]
H A Dbdc_dbg.c13 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 …]
H A Dbdc_cmd.c17 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 …]
H A Dbdc_cmd.h13 int bdc_address_device(struct bdc *bdc, u32 add);
14 int bdc_config_ep(struct bdc *bdc, struct bdc_ep *ep);
15 int bdc_dconfig_ep(struct bdc *bdc, struct bdc_ep *ep);
16 int bdc_stop_ep(struct bdc *bdc, int epnum);
17 int bdc_ep_set_stall(struct bdc *bdc, int epnum);
18 int bdc_ep_clear_stall(struct bdc *bdc, int epnum);
19 int bdc_ep_bla(struct bdc *bdc, struct bdc_ep *ep, dma_addr_t dma_addr);
20 int bdc_function_wake(struct bdc *bdc, u8 intf);
21 int bdc_function_wake_fh(struct bdc *bdc, u8 intf);
H A Dbdc_dbg.h15 void bdc_dbg_bd_list(struct bdc *bdc, struct bdc_ep *ep);
16 void bdc_dbg_srr(struct bdc *bdc, u32 srr_num);
17 void bdc_dbg_regs(struct bdc *bdc);
18 void bdc_dump_epsts(struct bdc *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
H A Dbdc.h264 #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 *bdc, u32 epnum); argument
470 void bdc_softconn(struct bdc *bdc);
471 void bdc_softdisconn(struct bdc *bdc);
472 int bdc_run(struct bdc *bdc);
473 int bdc_stop(struct bdc *bdc);
[all …]
H A Dbdc_ep.h12 int bdc_init_ep(struct bdc *bdc);
15 void bdc_free_ep(struct bdc *bdc);
H A DMakefile2 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
H A DKconfig13 linked module called "bdc".
/linux/arch/arm64/boot/dts/broadcom/stingray/
H A Dstingray-usb.dtsi35 compatible = "brcm,bdc-v0.16";
69 compatible = "brcm,bdc-v0.16";
/linux/drivers/usb/gadget/udc/
H A DMakefile43 obj-$(CONFIG_USB_BDC_UDC) += bdc/
H A DKconfig291 source "drivers/usb/gadget/udc/bdc/Kconfig"
/linux/
H A DMAINTAINERS4589 F: Documentation/devicetree/bindings/usb/brcm,bdc.yaml
4590 F: drivers/usb/gadget/udc/bdc/