Lines Matching refs:reader

86 	struct cb710_mmc_reader *reader = mmc_priv(cb710_slot_to_mmc(slot));  in cb710_mmc_enable_irq()  local
89 spin_lock_irqsave(&reader->irq_lock, flags); in cb710_mmc_enable_irq()
92 spin_unlock_irqrestore(&reader->irq_lock, flags); in cb710_mmc_enable_irq()
344 static u16 cb710_encode_cmd_flags(struct cb710_mmc_reader *reader, in cb710_encode_cmd_flags() argument
446 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_command() local
449 u16 cb_cmd = cb710_encode_cmd_flags(reader, cmd); in cb710_mmc_command()
486 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_request() local
488 WARN_ON(reader->mrq != NULL); in cb710_mmc_request()
490 reader->mrq = mrq; in cb710_mmc_request()
496 queue_work(system_bh_wq, &reader->finish_req_bh_work); in cb710_mmc_request()
563 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_set_ios() local
568 if (ios->power_mode != reader->last_power_mode) { in cb710_mmc_set_ios()
583 reader->last_power_mode = MMC_POWER_ON; in cb710_mmc_set_ios()
587 reader->last_power_mode = MMC_POWER_OFF; in cb710_mmc_set_ios()
620 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_irq_handler() local
641 spin_lock(&reader->irq_lock); in cb710_mmc_irq_handler()
643 spin_unlock(&reader->irq_lock); in cb710_mmc_irq_handler()
651 struct cb710_mmc_reader *reader = from_work(reader, t, in cb710_mmc_finish_request_bh_work() local
653 struct mmc_request *mrq = reader->mrq; in cb710_mmc_finish_request_bh_work()
655 reader->mrq = NULL; in cb710_mmc_finish_request_bh_work()
656 mmc_request_done(mmc_from_priv(reader), mrq); in cb710_mmc_finish_request_bh_work()
691 struct cb710_mmc_reader *reader; in cb710_mmc_init() local
695 mmc = mmc_alloc_host(sizeof(*reader), cb710_slot_dev(slot)); in cb710_mmc_init()
719 reader = mmc_priv(mmc); in cb710_mmc_init()
721 INIT_WORK(&reader->finish_req_bh_work, in cb710_mmc_init()
723 spin_lock_init(&reader->irq_lock); in cb710_mmc_init()
752 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_exit() local
766 cancel_work_sync(&reader->finish_req_bh_work); in cb710_mmc_exit()