• Home
  • Raw
  • Download

Lines Matching refs:musb

113 	struct musb		*musb = s->private;  in musb_regdump_show()  local
117 pm_runtime_get_sync(musb->controller); in musb_regdump_show()
123 musb_readb(musb->mregs, musb_regmap[i].offset)); in musb_regdump_show()
127 musb_readw(musb->mregs, musb_regmap[i].offset)); in musb_regdump_show()
131 musb_readl(musb->mregs, musb_regmap[i].offset)); in musb_regdump_show()
136 pm_runtime_mark_last_busy(musb->controller); in musb_regdump_show()
137 pm_runtime_put_autosuspend(musb->controller); in musb_regdump_show()
148 struct musb *musb = s->private; in musb_test_mode_show() local
151 pm_runtime_get_sync(musb->controller); in musb_test_mode_show()
152 test = musb_readb(musb->mregs, MUSB_TESTMODE); in musb_test_mode_show()
153 pm_runtime_mark_last_busy(musb->controller); in musb_test_mode_show()
154 pm_runtime_put_autosuspend(musb->controller); in musb_test_mode_show()
199 struct musb *musb = s->private; in musb_test_mode_write() local
203 pm_runtime_get_sync(musb->controller); in musb_test_mode_write()
204 test = musb_readb(musb->mregs, MUSB_TESTMODE); in musb_test_mode_write()
206 dev_err(musb->controller, "Error: test mode is already set. " in musb_test_mode_write()
230 musb_load_testpacket(musb); in musb_test_mode_write()
242 musb_writeb(musb->mregs, MUSB_TESTMODE, test); in musb_test_mode_write()
245 pm_runtime_mark_last_busy(musb->controller); in musb_test_mode_write()
246 pm_runtime_put_autosuspend(musb->controller); in musb_test_mode_write()
260 struct musb *musb = s->private; in musb_softconnect_show() local
264 switch (musb->xceiv->otg->state) { in musb_softconnect_show()
267 pm_runtime_get_sync(musb->controller); in musb_softconnect_show()
269 reg = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_softconnect_show()
272 pm_runtime_mark_last_busy(musb->controller); in musb_softconnect_show()
273 pm_runtime_put_autosuspend(musb->controller); in musb_softconnect_show()
293 struct musb *musb = s->private; in musb_softconnect_write() local
302 pm_runtime_get_sync(musb->controller); in musb_softconnect_write()
304 switch (musb->xceiv->otg->state) { in musb_softconnect_write()
306 musb_root_disconnect(musb); in musb_softconnect_write()
307 reg = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_softconnect_write()
309 musb_writeb(musb->mregs, MUSB_DEVCTL, reg); in musb_softconnect_write()
315 switch (musb->xceiv->otg->state) { in musb_softconnect_write()
323 musb->context.devctl |= MUSB_DEVCTL_SESSION; in musb_softconnect_write()
324 reg = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_softconnect_write()
326 musb_writeb(musb->mregs, MUSB_DEVCTL, reg); in musb_softconnect_write()
333 pm_runtime_mark_last_busy(musb->controller); in musb_softconnect_write()
334 pm_runtime_put_autosuspend(musb->controller); in musb_softconnect_write()
350 int musb_init_debugfs(struct musb *musb) in musb_init_debugfs() argument
356 root = debugfs_create_dir(dev_name(musb->controller), NULL); in musb_init_debugfs()
362 file = debugfs_create_file("regdump", S_IRUGO, root, musb, in musb_init_debugfs()
370 root, musb, &musb_test_mode_fops); in musb_init_debugfs()
377 root, musb, &musb_softconnect_fops); in musb_init_debugfs()
383 musb->debugfs_root = root; in musb_init_debugfs()
394 void /* __init_or_exit */ musb_exit_debugfs(struct musb *musb) in musb_exit_debugfs() argument
396 debugfs_remove_recursive(musb->debugfs_root); in musb_exit_debugfs()