Lines Matching full:host
60 err = mmcsd_send_cmd(card->host, &cmd, 0); in mmcsd_num_wr_blocks()
63 if (!controller_is_spi(card->host) && !(cmd.resp[0] & R1_APP_CMD)) in mmcsd_num_wr_blocks()
79 (card->host->io_cfg.clock / 1000); in mmcsd_num_wr_blocks()
97 mmcsd_send_request(card->host, &req); in mmcsd_num_wr_blocks()
114 struct rt_mmcsd_host *host = card->host; in rt_mmcsd_req_blk() local
117 mmcsd_host_lock(host); in rt_mmcsd_req_blk()
137 if (!controller_is_spi(card->host) || !dir) in rt_mmcsd_req_blk()
167 mmcsd_send_request(host, &req); in rt_mmcsd_req_blk()
169 if (!controller_is_spi(card->host) && dir != 0) in rt_mmcsd_req_blk()
178 err = mmcsd_send_cmd(card->host, &cmd, 5); in rt_mmcsd_req_blk()
193 mmcsd_host_unlock(host); in rt_mmcsd_req_blk()
328 mmcsd_host_lock(card->host); in mmcsd_set_blksize()
332 err = mmcsd_send_cmd(card->host, &cmd, 5); in mmcsd_set_blksize()
333 mmcsd_host_unlock(card->host); in mmcsd_set_blksize()
395 blk_dev->max_req_size = BLK_MIN((card->host->max_dma_segs * in rt_mmcsd_blk_probe()
396 card->host->max_seg_size) >> 9, in rt_mmcsd_blk_probe()
397 (card->host->max_blk_count * in rt_mmcsd_blk_probe()
398 card->host->max_blk_size) >> 9); in rt_mmcsd_blk_probe()