Lines Matching refs:cmd_sc

17 static int bdc_issue_cmd(struct bdc *bdc, u32 cmd_sc, u32 param0,  in bdc_issue_cmd()  argument
31 bdc_writel(bdc->regs, BDC_CMDSC, cmd_sc | BDC_CMD_CWS | BDC_CMD_SRD); in bdc_issue_cmd()
51 static int bdc_submit_cmd(struct bdc *bdc, u32 cmd_sc, in bdc_submit_cmd() argument
60 __func__, temp, cmd_sc, param0, param1, param2); in bdc_submit_cmd()
67 ret = bdc_issue_cmd(bdc, cmd_sc, param0, param1, param2); in bdc_submit_cmd()
110 u32 cmd_sc; in bdc_dconfig_ep() local
112 cmd_sc = BDC_SUB_CMD_DRP_EP|BDC_CMD_EPN(ep->ep_num)|BDC_CMD_EPC; in bdc_dconfig_ep()
114 ep->ep_num, cmd_sc); in bdc_dconfig_ep()
116 return bdc_submit_cmd(bdc, cmd_sc, 0, 0, 0); in bdc_dconfig_ep()
138 u32 param0, param1, param2, cmd_sc; in bdc_config_ep() local
144 cmd_sc = mul = mbs = param2 = 0; in bdc_config_ep()
205 cmd_sc |= BDC_CMD_EPC|BDC_CMD_EPN(ep->ep_num)|BDC_SUB_CMD_ADD_EP; in bdc_config_ep()
207 dev_dbg(bdc->dev, "cmd_sc=%x param2=%08x\n", cmd_sc, param2); in bdc_config_ep()
208 ret = bdc_submit_cmd(bdc, cmd_sc, param0, param1, param2); in bdc_config_ep()
225 u32 cmd_sc = 0; in bdc_ep_bla() local
234 cmd_sc |= BDC_CMD_EPN(ep->ep_num)|BDC_CMD_BLA; in bdc_ep_bla()
235 dev_dbg(bdc->dev, "cmd_sc=%x\n", cmd_sc); in bdc_ep_bla()
237 return bdc_submit_cmd(bdc, cmd_sc, param0, param1, 0); in bdc_ep_bla()
243 u32 cmd_sc = 0; in bdc_address_device() local
247 cmd_sc |= BDC_SUB_CMD_ADD|BDC_CMD_DVC; in bdc_address_device()
250 return bdc_submit_cmd(bdc, cmd_sc, 0, 0, param2); in bdc_address_device()
257 u32 cmd_sc = 0; in bdc_function_wake_fh() local
261 cmd_sc |= BDC_CMD_FH; in bdc_function_wake_fh()
268 return bdc_submit_cmd(bdc, cmd_sc, param0, param1, 0); in bdc_function_wake_fh()
274 u32 cmd_sc = 0; in bdc_function_wake() local
279 cmd_sc |= BDC_SUB_CMD_FWK|BDC_CMD_DNC; in bdc_function_wake()
281 return bdc_submit_cmd(bdc, cmd_sc, 0, 0, param2); in bdc_function_wake()
287 u32 cmd_sc = 0; in bdc_ep_set_stall() local
291 cmd_sc |= BDC_SUB_CMD_EP_STL | BDC_CMD_EPN(epnum) | BDC_CMD_EPO; in bdc_ep_set_stall()
293 return bdc_submit_cmd(bdc, cmd_sc, 0, 0, 0); in bdc_ep_set_stall()
300 u32 cmd_sc = 0; in bdc_ep_clear_stall() local
319 cmd_sc |= BDC_CMD_EPO_RST_SN; in bdc_ep_clear_stall()
322 cmd_sc |= BDC_SUB_CMD_EP_RST | BDC_CMD_EPN(epnum) | BDC_CMD_EPO; in bdc_ep_clear_stall()
324 ret = bdc_submit_cmd(bdc, cmd_sc, 0, 0, 0); in bdc_ep_clear_stall()
338 u32 cmd_sc = 0; in bdc_stop_ep() local
353 cmd_sc |= BDC_CMD_EP0_XSD | BDC_SUB_CMD_EP_STP in bdc_stop_ep()
356 ret = bdc_submit_cmd(bdc, cmd_sc, 0, 0, 0); in bdc_stop_ep()