Lines Matching refs:reader
87 struct cb710_mmc_reader *reader = mmc_priv(cb710_slot_to_mmc(slot)); in cb710_mmc_enable_irq() local
90 spin_lock_irqsave(&reader->irq_lock, flags); in cb710_mmc_enable_irq()
93 spin_unlock_irqrestore(&reader->irq_lock, flags); in cb710_mmc_enable_irq()
345 static u16 cb710_encode_cmd_flags(struct cb710_mmc_reader *reader, in cb710_encode_cmd_flags() argument
447 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_command() local
450 u16 cb_cmd = cb710_encode_cmd_flags(reader, cmd); in cb710_mmc_command()
487 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_request() local
489 WARN_ON(reader->mrq != NULL); in cb710_mmc_request()
491 reader->mrq = mrq; in cb710_mmc_request()
497 tasklet_schedule(&reader->finish_req_tasklet); in cb710_mmc_request()
564 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_set_ios() local
569 if (ios->power_mode != reader->last_power_mode) in cb710_mmc_set_ios()
584 reader->last_power_mode = MMC_POWER_ON; in cb710_mmc_set_ios()
588 reader->last_power_mode = MMC_POWER_OFF; in cb710_mmc_set_ios()
619 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_irq_handler() local
640 spin_lock(&reader->irq_lock); in cb710_mmc_irq_handler()
642 spin_unlock(&reader->irq_lock); in cb710_mmc_irq_handler()
651 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_finish_request_tasklet() local
652 struct mmc_request *mrq = reader->mrq; in cb710_mmc_finish_request_tasklet()
654 reader->mrq = NULL; in cb710_mmc_finish_request_tasklet()
698 struct cb710_mmc_reader *reader; in cb710_mmc_init() local
702 mmc = mmc_alloc_host(sizeof(*reader), cb710_slot_dev(slot)); in cb710_mmc_init()
720 reader = mmc_priv(mmc); in cb710_mmc_init()
722 tasklet_init(&reader->finish_req_tasklet, in cb710_mmc_init()
724 spin_lock_init(&reader->irq_lock); in cb710_mmc_init()
753 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_exit() local
767 tasklet_kill(&reader->finish_req_tasklet); in cb710_mmc_exit()