Lines Matching defs:msh
366 static int jmb38x_ms_issue_cmd(struct memstick_host *msh)
368 struct jmb38x_ms_host *host = memstick_priv(msh);
373 dev_dbg(&msh->dev, "no media status\n");
378 dev_dbg(&msh->dev, "control %08x\n", readl(host->addr + HOST_CONTROL));
379 dev_dbg(&msh->dev, "status %08x\n", readl(host->addr + INT_STATUS));
380 dev_dbg(&msh->dev, "hstatus %08x\n", readl(host->addr + STATUS));
459 dev_dbg(&msh->dev, "executing TPC %08x, len %x\n", cmd, data_len);
464 static void jmb38x_ms_complete_cmd(struct memstick_host *msh, int last)
466 struct jmb38x_ms_host *host = memstick_priv(msh);
472 dev_dbg(&msh->dev, "c control %08x\n",
474 dev_dbg(&msh->dev, "c status %08x\n",
476 dev_dbg(&msh->dev, "c hstatus %08x\n", readl(host->addr + STATUS));
503 rc = memstick_next_req(msh, &host->req);
504 } while (!rc && jmb38x_ms_issue_cmd(msh));
507 rc = memstick_next_req(msh, &host->req);
516 struct memstick_host *msh = dev_id;
517 struct jmb38x_ms_host *host = memstick_priv(msh);
571 memstick_detect_change(msh);
580 jmb38x_ms_complete_cmd(msh, 0);
588 struct memstick_host *msh = (struct memstick_host *)data;
589 struct jmb38x_ms_host *host = memstick_priv(msh);
596 jmb38x_ms_complete_cmd(msh, 0);
603 struct memstick_host *msh = (struct memstick_host *)data;
604 struct jmb38x_ms_host *host = memstick_priv(msh);
611 rc = memstick_next_req(msh, &host->req);
613 } while (!rc && jmb38x_ms_issue_cmd(msh));
618 static void jmb38x_ms_dummy_submit(struct memstick_host *msh)
623 static void jmb38x_ms_submit_req(struct memstick_host *msh)
625 struct jmb38x_ms_host *host = memstick_priv(msh);
672 static int jmb38x_ms_set_param(struct memstick_host *msh,
676 struct jmb38x_ms_host *host = memstick_priv(msh);
825 struct memstick_host *msh;
828 msh = memstick_alloc_host(sizeof(struct jmb38x_ms_host),
830 if (!msh)
833 host = memstick_priv(msh);
847 tasklet_init(&host->notify, jmb38x_ms_req_tasklet, (unsigned long)msh);
848 msh->request = jmb38x_ms_submit_req;
849 msh->set_param = jmb38x_ms_set_param;
851 msh->caps = MEMSTICK_CAP_PAR4 | MEMSTICK_CAP_PAR8;
853 setup_timer(&host->timer, jmb38x_ms_abort, (unsigned long)msh);
856 msh))
857 return msh;
861 kfree(msh);
865 static void jmb38x_ms_free_host(struct memstick_host *msh)
867 struct jmb38x_ms_host *host = memstick_priv(msh);
869 free_irq(host->irq, msh);
871 memstick_free_host(msh);