Home
last modified time | relevance | path

Searched refs:max_blk_size (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v5.4/drivers/mmc/core/
Dsdio_io.c163 if (blksz > func->card->host->max_blk_size) in sdio_set_block_size()
167 blksz = min(func->max_blksize, func->card->host->max_blk_size); in sdio_set_block_size()
191 unsigned mval = func->card->host->max_blk_size; in sdio_max_byte_size()
Dhost.c446 host->max_blk_size = 512; in mmc_alloc_host()
/Linux-v5.4/drivers/mmc/host/
Dwmt-sdmmc.c182 u32 max_blk_size; member
741 .max_blk_size = 2048,
796 mmc->max_blk_size = wmt_caps->max_blk_size; in wmt_mci_probe()
Dmeson-mx-sdio.c563 mmc->max_blk_size = FIELD_GET(MESON_MX_SDIO_EXT_DATA_RW_NUMBER_MASK, in meson_mx_mmc_add_host()
565 mmc->max_blk_size -= (4 * MESON_MX_SDIO_RESPONSE_CRC16_BITS); in meson_mx_mmc_add_host()
566 mmc->max_blk_size /= BITS_PER_BYTE; in meson_mx_mmc_add_host()
Dmvsdio.c743 mmc->max_blk_size = 2048; in mvsd_probe()
747 mmc->max_seg_size = mmc->max_blk_size * mmc->max_blk_count; in mvsd_probe()
748 mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; in mvsd_probe()
Dvia-sdmmc.c485 BUG_ON(data->blksz > host->mmc->max_blk_size); in via_sdc_preparedata()
1040 mmc->max_blk_size = VIA_CRDR_MAX_BLOCK_LENGTH; in via_init_mmc_host()
1043 mmc->max_seg_size = mmc->max_blk_size * mmc->max_blk_count; in via_init_mmc_host()
Dtmio_mmc_core.c1190 mmc->max_blk_size = TMIO_MAX_BLK_SIZE; in tmio_mmc_host_probe()
1192 (PAGE_SIZE / mmc->max_blk_size) * mmc->max_segs; in tmio_mmc_host_probe()
1194 mmc->max_blk_size * mmc->max_blk_count, in tmio_mmc_host_probe()
Ddavinci_mmc.c1292 mmc->max_blk_size = 4095; /* BLEN is 12 bits */ in davinci_mmcsd_probe()
1294 mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; in davinci_mmcsd_probe()
1297 dev_dbg(mmc_dev(host->mmc), "max_blk_size=%d\n", mmc->max_blk_size); in davinci_mmcsd_probe()
Dsdhci.c1033 BUG_ON(data->blksz > host->mmc->max_blk_size); in sdhci_prepare_data()
4217 mmc->max_blk_size = 2; in sdhci_setup_host()
4219 mmc->max_blk_size = (host->caps & SDHCI_MAX_BLOCK_MASK) >> in sdhci_setup_host()
4221 if (mmc->max_blk_size >= 3) { in sdhci_setup_host()
4224 mmc->max_blk_size = 0; in sdhci_setup_host()
4228 mmc->max_blk_size = 512 << mmc->max_blk_size; in sdhci_setup_host()
Dsdricoh_cs.c431 mmc->max_blk_size = 512; in sdricoh_init_mmc()
Dandroid-goldfish.c491 mmc->max_blk_size = 2048; /* MMC_BLOCK_LENGTH is 11 bits (+1) */ in goldfish_mmc_probe()
Djz4740_mmc.c992 mmc->max_blk_size = (1 << 10) - 1; in jz4740_mmc_probe()
994 mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; in jz4740_mmc_probe()
Ddw_mmc.c2831 mmc->max_blk_size = 65535; in dw_mci_init_slot()
2837 mmc->max_blk_size = 65535; in dw_mci_init_slot()
2840 mmc->max_blk_size * mmc->max_blk_count; in dw_mci_init_slot()
2845 mmc->max_blk_size = 65535; /* BLKSIZ is 16 bits */ in dw_mci_init_slot()
2847 mmc->max_req_size = mmc->max_blk_size * in dw_mci_init_slot()
Dmxcmmc.c1042 mmc->max_blk_size = 2048; in mxcmci_probe()
1044 mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; in mxcmci_probe()
Dtifm_sd.c976 mmc->max_blk_size = min(TIFM_MMCSD_MAX_BLOCK_SIZE, PAGE_SIZE); in tifm_sd_probe()
977 mmc->max_seg_size = mmc->max_blk_count * mmc->max_blk_size; in tifm_sd_probe()
Datmel-mci.c2262 mmc->max_blk_size = 4095; in atmci_init_slot()
2264 mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; in atmci_init_slot()
2265 mmc->max_seg_size = mmc->max_blk_size * mmc->max_segs; in atmci_init_slot()
2269 mmc->max_blk_size = 32768; in atmci_init_slot()
Dushc.c459 mmc->max_blk_size = 512; in ushc_probe()
Dmeson-gx-mmc.c1155 mmc->max_segs = SD_EMMC_SRAM_DATA_BUF_LEN / mmc->max_blk_size; in meson_mmc_probe()
1162 mmc->max_req_size = mmc->max_blk_count * mmc->max_blk_size; in meson_mmc_probe()
Dmxs-mmc.c652 mmc->max_blk_size = 1 << 0xf; in mxs_mmc_probe()
Dpxamci.c642 mmc->max_blk_size = cpu_is_pxa25x() ? 1023 : 2048; in pxamci_probe()
Domap.c1265 mmc->max_blk_size = 2048; /* BLEN is 11 bits (+1) */ in mmc_omap_new_slot()
1267 mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; in mmc_omap_new_slot()
Dsh_mmcif.c1434 mmc->max_blk_size = 512; in sh_mmcif_probe()
1436 mmc->max_blk_count = mmc->max_req_size / mmc->max_blk_size; in sh_mmcif_probe()
Dusdhi6rol0.c1843 mmc->max_blk_size = 512; in usdhi6_probe()
1845 mmc->max_blk_count = mmc->max_req_size / mmc->max_blk_size; in usdhi6_probe()
/Linux-v5.4/drivers/staging/greybus/
Dsdio.c140 blksz = min_t(u16, le16_to_cpu(response.max_blk_size), data_max); in gb_sdio_get_caps()
143 mmc->max_blk_size = rounddown_pow_of_two(blksz); in gb_sdio_get_caps()
802 mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; in gb_sdio_probe()
/Linux-v5.4/include/linux/mmc/
Dhost.h382 unsigned int max_blk_size; /* maximum size of one mmc block */ member

12