Lines Matching refs:msh
367 static int jmb38x_ms_issue_cmd(struct memstick_host *msh) in jmb38x_ms_issue_cmd() argument
369 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_issue_cmd()
374 dev_dbg(&msh->dev, "no media status\n"); in jmb38x_ms_issue_cmd()
379 dev_dbg(&msh->dev, "control %08x\n", readl(host->addr + HOST_CONTROL)); in jmb38x_ms_issue_cmd()
380 dev_dbg(&msh->dev, "status %08x\n", readl(host->addr + INT_STATUS)); in jmb38x_ms_issue_cmd()
381 dev_dbg(&msh->dev, "hstatus %08x\n", readl(host->addr + STATUS)); in jmb38x_ms_issue_cmd()
465 dev_dbg(&msh->dev, "executing TPC %08x, len %x\n", cmd, data_len); in jmb38x_ms_issue_cmd()
470 static void jmb38x_ms_complete_cmd(struct memstick_host *msh, int last) in jmb38x_ms_complete_cmd() argument
472 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_complete_cmd()
478 dev_dbg(&msh->dev, "c control %08x\n", in jmb38x_ms_complete_cmd()
480 dev_dbg(&msh->dev, "c status %08x\n", in jmb38x_ms_complete_cmd()
482 dev_dbg(&msh->dev, "c hstatus %08x\n", readl(host->addr + STATUS)); in jmb38x_ms_complete_cmd()
509 rc = memstick_next_req(msh, &host->req); in jmb38x_ms_complete_cmd()
510 } while (!rc && jmb38x_ms_issue_cmd(msh)); in jmb38x_ms_complete_cmd()
513 rc = memstick_next_req(msh, &host->req); in jmb38x_ms_complete_cmd()
522 struct memstick_host *msh = dev_id; in jmb38x_ms_isr() local
523 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_isr()
540 jmb38x_ms_complete_cmd(msh, 0); in jmb38x_ms_isr()
580 memstick_detect_change(msh); in jmb38x_ms_isr()
589 jmb38x_ms_complete_cmd(msh, 0); in jmb38x_ms_isr()
597 struct memstick_host *msh = (struct memstick_host *)data; in jmb38x_ms_abort() local
598 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_abort()
605 jmb38x_ms_complete_cmd(msh, 0); in jmb38x_ms_abort()
612 struct memstick_host *msh = (struct memstick_host *)data; in jmb38x_ms_req_tasklet() local
613 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_req_tasklet()
620 rc = memstick_next_req(msh, &host->req); in jmb38x_ms_req_tasklet()
622 } while (!rc && jmb38x_ms_issue_cmd(msh)); in jmb38x_ms_req_tasklet()
627 static void jmb38x_ms_dummy_submit(struct memstick_host *msh) in jmb38x_ms_dummy_submit() argument
632 static void jmb38x_ms_submit_req(struct memstick_host *msh) in jmb38x_ms_submit_req() argument
634 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_submit_req()
680 static int jmb38x_ms_set_param(struct memstick_host *msh, in jmb38x_ms_set_param() argument
684 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_set_param()
872 struct memstick_host *msh; in jmb38x_ms_alloc_host() local
875 msh = memstick_alloc_host(sizeof(struct jmb38x_ms_host), in jmb38x_ms_alloc_host()
877 if (!msh) in jmb38x_ms_alloc_host()
880 host = memstick_priv(msh); in jmb38x_ms_alloc_host()
894 tasklet_init(&host->notify, jmb38x_ms_req_tasklet, (unsigned long)msh); in jmb38x_ms_alloc_host()
895 msh->request = jmb38x_ms_submit_req; in jmb38x_ms_alloc_host()
896 msh->set_param = jmb38x_ms_set_param; in jmb38x_ms_alloc_host()
898 msh->caps = MEMSTICK_CAP_PAR4 | MEMSTICK_CAP_PAR8; in jmb38x_ms_alloc_host()
900 setup_timer(&host->timer, jmb38x_ms_abort, (unsigned long)msh); in jmb38x_ms_alloc_host()
903 msh)) in jmb38x_ms_alloc_host()
904 return msh; in jmb38x_ms_alloc_host()
908 memstick_free_host(msh); in jmb38x_ms_alloc_host()
912 static void jmb38x_ms_free_host(struct memstick_host *msh) in jmb38x_ms_free_host() argument
914 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_free_host()
916 free_irq(host->irq, msh); in jmb38x_ms_free_host()
918 memstick_free_host(msh); in jmb38x_ms_free_host()