Home
last modified time | relevance | path

Searched refs:blksz (Results 1 – 25 of 27) sorted by relevance

12

/drivers/mmc/core/
Dsdio_ops.c115 unsigned addr, int incr_addr, u8 *buf, unsigned blocks, unsigned blksz) in mmc_io_rw_extended() argument
124 BUG_ON(blocks == 1 && blksz > 512); in mmc_io_rw_extended()
126 WARN_ON(blksz == 0); in mmc_io_rw_extended()
140 if (blocks == 1 && blksz <= 512) in mmc_io_rw_extended()
141 cmd.arg |= (blksz == 512) ? 0 : blksz; /* byte mode */ in mmc_io_rw_extended()
146 data.blksz = blksz; in mmc_io_rw_extended()
152 sg_init_one(&sg, buf, blksz * blocks); in mmc_io_rw_extended()
Dsdio_io.c158 int sdio_set_block_size(struct sdio_func *func, unsigned blksz) in sdio_set_block_size() argument
162 if (blksz > func->card->host->max_blk_size) in sdio_set_block_size()
165 if (blksz == 0) { in sdio_set_block_size()
166 blksz = min(func->max_blksize, func->card->host->max_blk_size); in sdio_set_block_size()
167 blksz = min(blksz, 512u); in sdio_set_block_size()
172 blksz & 0xff, NULL); in sdio_set_block_size()
177 (blksz >> 8) & 0xff, NULL); in sdio_set_block_size()
180 func->cur_blksize = blksz; in sdio_set_block_size()
Dsdio_ops.h19 unsigned addr, int incr_addr, u8 *buf, unsigned blocks, unsigned blksz);
Dcore.c138 mmc_hostname(host), mrq->data->blksz, in mmc_start_request()
157 BUG_ON(mrq->data->blksz > host->max_blk_size); in mmc_start_request()
159 BUG_ON(mrq->data->blocks * mrq->data->blksz > in mmc_start_request()
166 BUG_ON(sz != mrq->data->blocks * mrq->data->blksz); in mmc_start_request()
Dsd_ops.c279 data.blksz = 8; in mmc_app_send_scr()
331 data.blksz = 64; in mmc_sd_switch()
Dmmc_ops.c243 data.blksz = len; in mmc_send_cxd_data()
/drivers/mmc/card/
Dmmc_test.c64 unsigned dev_addr, unsigned blocks, unsigned blksz, int write) in mmc_test_prepare_mrq() argument
87 mrq->data->blksz = blksz; in mmc_test_prepare_mrq()
131 u8 *buffer, unsigned addr, unsigned blksz, int write) in mmc_test_buffer_transfer() argument
151 sg_init_one(&sg, buffer, blksz); in mmc_test_buffer_transfer()
153 mmc_test_prepare_mrq(test, &mrq, &sg, 1, addr, 1, blksz, write); in mmc_test_buffer_transfer()
271 mrq->data->blocks * mrq->data->blksz) in mmc_test_check_result()
301 if (!ret && mrq->data->bytes_xfered > mrq->data->blksz) in mmc_test_check_broken_result()
319 unsigned blocks, unsigned blksz, int write) in mmc_test_simple_transfer() argument
336 blocks, blksz, write); in mmc_test_simple_transfer()
349 unsigned blocks, unsigned blksz, int write) in mmc_test_broken_transfer() argument
[all …]
Dblock.c192 data.blksz = 4; in mmc_sd_num_wr_blocks()
292 brq.data.blksz = 512; in mmc_blk_issue_rq()
448 ret = __blk_end_request(req, -EIO, brq.data.blksz); in mmc_blk_issue_rq()
/drivers/mmc/host/
Dtmio_mmc.c201 if (count > data->blksz) in tmio_mmc_pio_irq()
202 count = data->blksz; in tmio_mmc_pio_irq()
239 data->bytes_xfered = data->blocks * data->blksz; in tmio_mmc_data_irq()
397 data->blksz, data->blocks); in tmio_mmc_start_data()
400 if (data->blksz < 4 && host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) { in tmio_mmc_start_data()
402 mmc_hostname(host->mmc), data->blksz); in tmio_mmc_start_data()
410 tmio_iowrite16(data->blksz, ctl + CTL_SD_XFER_LEN); in tmio_mmc_start_data()
Dtifm_sd.c226 unsigned int t_size = r_data->blksz; in tifm_sd_bounce_block()
251 r_data->blksz - t_size, in tifm_sd_bounce_block()
255 r_data->blksz - t_size, p_cnt); in tifm_sd_bounce_block()
265 unsigned int t_size = TIFM_DMA_TSIZE * r_data->blksz; in tifm_sd_set_dma_data()
292 dma_blk_cnt = dma_len / r_data->blksz; in tifm_sd_set_dma_data()
294 host->block_pos += dma_blk_cnt * r_data->blksz; in tifm_sd_set_dma_data()
644 if (mrq->data && !is_power_of_2(mrq->data->blksz)) in tifm_sd_request()
668 r_data->blksz); in tifm_sd_request()
698 writel(ilog2(r_data->blksz) - 2, in tifm_sd_request()
717 writel(r_data->blksz - 1, in tifm_sd_request()
[all …]
Dmmci.c77 data->blksz, data->blocks, data->flags); in mmci_start_data()
80 host->size = data->blksz; in mmci_start_data()
94 blksz_bits = ffs(data->blksz) - 1; in mmci_start_data()
95 BUG_ON(1 << blksz_bits != data->blksz); in mmci_start_data()
154 host->data_xfered += data->blksz; in mmci_data_irq()
398 if (mrq->data && !is_power_of_2(mrq->data->blksz)) { in mmci_request()
400 mmc_hostname(mmc), mrq->data->blksz); in mmci_request()
Dat91_mci.c201 size = data->blksz * data->blocks; in at91_mci_sg_to_dma()
305 at91_mci_write(host, ATMEL_PDC_RCR, (data->blksz & 0x3) ? sg->length : sg->length / 4); in at91_mci_pre_dma_read()
309 at91_mci_write(host, ATMEL_PDC_RNCR, (data->blksz & 0x3) ? sg->length : sg->length / 4); in at91_mci_pre_dma_read()
426 data->bytes_xfered = data->blksz * data->blocks; in at91_mci_update_bytes_xfered()
524 if (data->blksz & 0x3) { in at91_mci_send_command()
538 block_length = data->blksz; in at91_mci_send_command()
583 mr |= (data->blksz & 0x3) ? AT91_MCI_PDCFBYTE : 0; in at91_mci_send_command()
642 at91_mci_write(host, ATMEL_PDC_TCR, (data->blksz & 0x3) ? in at91_mci_send_command()
Dsdhci.h21 #define SDHCI_MAKE_BLKSZ(dma, blksz) (((dma & 0x7) << 12) | (blksz & 0xFFF)) argument
Datmel-mci.c240 data->blksz, data->flags, data->error); in atmci_req_show()
583 if (data->blocks * data->blksz < ATMCI_DMA_THRESHOLD) in atmci_submit_data_dma()
585 if (data->blksz & 3) in atmci_submit_data_dma()
664 if (data->blocks * data->blksz < 12 in atmci_submit_data()
665 || (data->blocks * data->blksz) & 3) in atmci_submit_data()
721 | MCI_BLKLEN(data->blksz)); in atmci_start_request()
723 MCI_BCNT(data->blocks) | MCI_BLKLEN(data->blksz)); in atmci_start_request()
795 if (data && data->blocks > 1 && data->blksz & 3) { in atmci_request()
1194 data->bytes_xfered = data->blocks * data->blksz; in atmci_tasklet_func()
Dwbsd.c474 if ((data->blocks * data->blksz - data->bytes_xfered) < 16) in wbsd_empty_fifo()
550 size = data->blocks * data->blksz; in wbsd_prepare_data()
577 blksize = data->blksz + 2; in wbsd_prepare_data()
582 blksize = data->blksz + 2 * 4; in wbsd_prepare_data()
716 host->mrq->data->blksz - count; in wbsd_finish_data()
717 data->bytes_xfered -= data->bytes_xfered % data->blksz; in wbsd_finish_data()
740 data->bytes_xfered -= data->blksz; in wbsd_finish_data()
Dsdricoh_cs.c289 sdricoh_writew(host, R226_BLOCKSIZE, data->blksz); in sdricoh_request()
315 "sg length %i\n", data->blksz, data->blocks, in sdricoh_request()
321 size_t len = data->blksz; in sdricoh_request()
Dmxcmmc.c166 unsigned int blksz = data->blksz; in mxcmci_setup_data() local
167 unsigned int datasize = nob * blksz; in mxcmci_setup_data()
179 writew(blksz, host->base + MMC_REG_BLK_LEN); in mxcmci_setup_data()
Ds3cmci.c120 host->dcnt, cmd->data->blksz, in prepare_dbgmsg()
122 cmd->data->blocks * cmd->data->blksz); in prepare_dbgmsg()
748 (mrq->data->blocks * mrq->data->blksz); in finalize_request()
847 if ((data->blksz & 3) != 0) { in s3cmci_setup_data()
852 pr_warning("%s: can't do non-word sized block transfers (blksz %d)\n", __func__, data->blksz); in s3cmci_setup_data()
902 writel(data->blksz, host->base + S3C2410_SDIBSIZE); in s3cmci_setup_data()
Dsdhci.c190 blksize = host->data->blksz; in sdhci_read_block_pio()
235 blksize = host->data->blksz; in sdhci_write_block_pio()
576 BUG_ON(data->blksz * data->blocks > 524288); in sdhci_prepare_data()
577 BUG_ON(data->blksz > host->mmc->max_blk_size); in sdhci_prepare_data()
713 writew(SDHCI_MAKE_BLKSZ(7, data->blksz), in sdhci_prepare_data()
768 data->bytes_xfered = data->blksz * data->blocks; in sdhci_finish_data()
Dimxmmc.c227 unsigned int blksz = data->blksz; in imxmci_setup_data() local
228 unsigned int datasz = nob * blksz; in imxmci_setup_data()
238 writew(blksz, host->base + MMC_REG_BLK_LEN); in imxmci_setup_data()
Domap_hsmmc.c293 data->bytes_xfered += data->blocks * (data->blksz); in mmc_omap_xfer_done()
682 if ((data->blksz % 4) == 0) in mmc_omap_start_dma_transfer()
684 (data->blksz / 4), data->blocks, OMAP_DMA_SYNC_FRAME, in mmc_omap_start_dma_transfer()
747 OMAP_HSMMC_WRITE(host->base, BLK, (req->data->blksz) in mmc_omap_prepare_data()
Dau1xmmc.c365 (data->blocks * data->blksz) - host->pio.len; in au1xmmc_data_complete()
615 int datalen = data->blocks * data->blksz; in au1xmmc_prepare_data()
633 au_writel(data->blksz - 1, HOST_BLKSIZE(host)); in au1xmmc_prepare_data()
Dpxamci.c128 writel(data->blksz, host->base + MMC_BLKLEN); in pxamci_setup_data()
314 data->bytes_xfered = data->blocks * data->blksz; in pxamci_data_done()
Domap.c905 frame = data->blksz; in mmc_omap_prepare_dma()
908 if ((data->blocks == 1) && (count > data->blksz)) in mmc_omap_prepare_dma()
1094 block_size = data->blksz; in mmc_omap_prepare_data()
Dgoldfish.c375 block_size = data->blksz; in goldfish_mmc_prepare_data()

12