Lines Matching refs:msh
58 struct memstick_host *msh; member
366 static int jmb38x_ms_issue_cmd(struct memstick_host *msh) in jmb38x_ms_issue_cmd() argument
368 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_issue_cmd()
372 dev_dbg(&msh->dev, "no media status\n"); in jmb38x_ms_issue_cmd()
377 dev_dbg(&msh->dev, "control %08x\n", readl(host->addr + HOST_CONTROL)); in jmb38x_ms_issue_cmd()
378 dev_dbg(&msh->dev, "status %08x\n", readl(host->addr + INT_STATUS)); in jmb38x_ms_issue_cmd()
379 dev_dbg(&msh->dev, "hstatus %08x\n", readl(host->addr + STATUS)); in jmb38x_ms_issue_cmd()
461 dev_dbg(&msh->dev, "executing TPC %08x, len %x\n", cmd, data_len); in jmb38x_ms_issue_cmd()
466 static void jmb38x_ms_complete_cmd(struct memstick_host *msh, int last) in jmb38x_ms_complete_cmd() argument
468 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_complete_cmd()
474 dev_dbg(&msh->dev, "c control %08x\n", in jmb38x_ms_complete_cmd()
476 dev_dbg(&msh->dev, "c status %08x\n", in jmb38x_ms_complete_cmd()
478 dev_dbg(&msh->dev, "c hstatus %08x\n", readl(host->addr + STATUS)); in jmb38x_ms_complete_cmd()
505 rc = memstick_next_req(msh, &host->req); in jmb38x_ms_complete_cmd()
506 } while (!rc && jmb38x_ms_issue_cmd(msh)); in jmb38x_ms_complete_cmd()
509 rc = memstick_next_req(msh, &host->req); in jmb38x_ms_complete_cmd()
518 struct memstick_host *msh = dev_id; in jmb38x_ms_isr() local
519 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_isr()
536 jmb38x_ms_complete_cmd(msh, 0); in jmb38x_ms_isr()
576 memstick_detect_change(msh); in jmb38x_ms_isr()
585 jmb38x_ms_complete_cmd(msh, 0); in jmb38x_ms_isr()
594 struct memstick_host *msh = host->msh; in jmb38x_ms_abort() local
601 jmb38x_ms_complete_cmd(msh, 0); in jmb38x_ms_abort()
608 struct memstick_host *msh = (struct memstick_host *)data; in jmb38x_ms_req_tasklet() local
609 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_req_tasklet()
616 rc = memstick_next_req(msh, &host->req); in jmb38x_ms_req_tasklet()
618 } while (!rc && jmb38x_ms_issue_cmd(msh)); in jmb38x_ms_req_tasklet()
623 static void jmb38x_ms_dummy_submit(struct memstick_host *msh) in jmb38x_ms_dummy_submit() argument
628 static void jmb38x_ms_submit_req(struct memstick_host *msh) in jmb38x_ms_submit_req() argument
630 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_submit_req()
673 static int jmb38x_ms_set_param(struct memstick_host *msh, in jmb38x_ms_set_param() argument
677 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_set_param()
848 struct memstick_host *msh; in jmb38x_ms_alloc_host() local
851 msh = memstick_alloc_host(sizeof(struct jmb38x_ms_host), in jmb38x_ms_alloc_host()
853 if (!msh) in jmb38x_ms_alloc_host()
856 host = memstick_priv(msh); in jmb38x_ms_alloc_host()
857 host->msh = msh; in jmb38x_ms_alloc_host()
871 tasklet_init(&host->notify, jmb38x_ms_req_tasklet, (unsigned long)msh); in jmb38x_ms_alloc_host()
872 msh->request = jmb38x_ms_submit_req; in jmb38x_ms_alloc_host()
873 msh->set_param = jmb38x_ms_set_param; in jmb38x_ms_alloc_host()
875 msh->caps = MEMSTICK_CAP_PAR4 | MEMSTICK_CAP_PAR8; in jmb38x_ms_alloc_host()
880 msh)) in jmb38x_ms_alloc_host()
881 return msh; in jmb38x_ms_alloc_host()
885 memstick_free_host(msh); in jmb38x_ms_alloc_host()
889 static void jmb38x_ms_free_host(struct memstick_host *msh) in jmb38x_ms_free_host() argument
891 struct jmb38x_ms_host *host = memstick_priv(msh); in jmb38x_ms_free_host()
893 free_irq(host->irq, msh); in jmb38x_ms_free_host()
895 memstick_free_host(msh); in jmb38x_ms_free_host()