Lines Matching refs:mmc_blk_data
112 struct mmc_blk_data { struct
170 struct mmc_blk_data *md;
189 static struct mmc_blk_data *mmc_blk_get(struct gendisk *disk) in mmc_blk_get()
191 struct mmc_blk_data *md; in mmc_blk_get()
210 struct mmc_blk_data *md = container_of(ref, struct mmc_blk_data, kref); in mmc_blk_kref_release()
224 static void mmc_blk_put(struct mmc_blk_data *md) in mmc_blk_put()
233 struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); in power_ro_lock_show()
253 struct mmc_blk_data *md, *part_md; in power_ro_lock_store()
302 struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); in force_ro_show()
316 struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); in force_ro_store()
342 struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); in mmc_disk_attrs_is_visible()
370 struct mmc_blk_data *md = mmc_blk_get(bdev->bd_disk); in mmc_blk_open()
388 struct mmc_blk_data *md = disk->private_data; in mmc_blk_release()
476 static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct mmc_blk_data *md, in __mmc_blk_ioctl_cmd()
619 struct mmc_blk_data *main_md = dev_get_drvdata(&card->dev); in __mmc_blk_ioctl_cmd()
675 static int mmc_blk_ioctl_cmd(struct mmc_blk_data *md, in mmc_blk_ioctl_cmd()
725 static int mmc_blk_ioctl_multi_cmd(struct mmc_blk_data *md, in mmc_blk_ioctl_multi_cmd()
819 struct mmc_blk_data *md; in mmc_blk_ioctl()
863 struct mmc_blk_data *md; in mmc_blk_alternative_gpt_sector()
929 struct mmc_blk_data *main_md = dev_get_drvdata(&card->dev); in mmc_blk_part_switch()
1052 static int mmc_blk_reset(struct mmc_blk_data *md, struct mmc_host *host, in mmc_blk_reset()
1056 struct mmc_blk_data *main_md = dev_get_drvdata(&host->card->dev); in mmc_blk_reset()
1081 static inline void mmc_blk_reset_success(struct mmc_blk_data *md, int type) in mmc_blk_reset_success()
1109 struct mmc_blk_data *md = mq->blkdata; in mmc_blk_issue_drv_op()
1178 struct mmc_blk_data *md = mq->blkdata; in mmc_blk_issue_erase_rq()
1220 struct mmc_blk_data *md = mq->blkdata; in mmc_blk_issue_discard_rq()
1233 struct mmc_blk_data *md = mq->blkdata; in mmc_blk_issue_secdiscard_rq()
1302 struct mmc_blk_data *md = mq->blkdata; in mmc_blk_issue_flush()
1391 struct mmc_blk_data *md = mq->blkdata; in mmc_blk_data_prep()
1684 struct mmc_blk_data *md = mq->blkdata; in mmc_blk_rw_rq_prep()
1892 struct mmc_blk_data *md = mq->blkdata; in mmc_blk_mq_rw_recovery()
2409 struct mmc_blk_data *md = mq->blkdata; in mmc_blk_mq_issue_rq()
2481 static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, in mmc_blk_alloc_req()
2489 struct mmc_blk_data *md; in mmc_blk_alloc_req()
2511 md = kzalloc(sizeof(struct mmc_blk_data), GFP_KERNEL); in mmc_blk_alloc_req()
2609 static struct mmc_blk_data *mmc_blk_alloc(struct mmc_card *card) in mmc_blk_alloc()
2633 struct mmc_blk_data *md, in mmc_blk_alloc_part()
2640 struct mmc_blk_data *part_md; in mmc_blk_alloc_part()
2736 struct mmc_blk_data *md, in mmc_blk_alloc_rpmb_part()
2808 static int mmc_blk_alloc_parts(struct mmc_card *card, struct mmc_blk_data *md) in mmc_blk_alloc_parts()
2844 static void mmc_blk_remove_req(struct mmc_blk_data *md) in mmc_blk_remove_req()
2856 struct mmc_blk_data *md) in mmc_blk_remove_parts()
2859 struct mmc_blk_data *part_md; in mmc_blk_remove_parts()
2870 part_md = list_entry(pos, struct mmc_blk_data, part); in mmc_blk_remove_parts()
2881 struct mmc_blk_data *md = dev_get_drvdata(&card->dev); in mmc_dbg_card_status_get()
2911 struct mmc_blk_data *md = dev_get_drvdata(&card->dev); in mmc_ext_csd_open()
2981 static int mmc_blk_add_debugfs(struct mmc_card *card, struct mmc_blk_data *md) in mmc_blk_add_debugfs()
3011 struct mmc_blk_data *md) in mmc_blk_remove_debugfs()
3029 static int mmc_blk_add_debugfs(struct mmc_card *card, struct mmc_blk_data *md) in mmc_blk_add_debugfs()
3035 struct mmc_blk_data *md) in mmc_blk_remove_debugfs()
3043 struct mmc_blk_data *md; in mmc_blk_probe()
3099 struct mmc_blk_data *md = dev_get_drvdata(&card->dev); in mmc_blk_remove()
3119 struct mmc_blk_data *part_md; in _mmc_blk_suspend()
3120 struct mmc_blk_data *md = dev_get_drvdata(&card->dev); in _mmc_blk_suspend()
3146 struct mmc_blk_data *part_md; in mmc_blk_resume()
3147 struct mmc_blk_data *md = dev_get_drvdata(dev); in mmc_blk_resume()