Lines Matching refs:ext_csd

132 	uint8_t ext_csd[MMC_EXTCSD_SIZE];
240 const uint8_t *ext_csd;
271 err = mmc_send_ext_csd(mmcbus, dev, sc->ext_csd);
279 ext_csd = sc->ext_csd;
294 if ((ext_csd[EXT_CSD_SEC_FEATURE_SUPPORT] &
309 rev = ext_csd[EXT_CSD_REV];
317 size = le32dec(&ext_csd[EXT_CSD_CACHE_SIZE]);
337 comp = (ext_csd[EXT_CSD_PART_SET] & EXT_CSD_PART_SET_COMPLETED) != 0;
350 size = ext_csd[EXT_CSD_ENH_SIZE_MULT] +
351 (ext_csd[EXT_CSD_ENH_SIZE_MULT + 1] << 8) +
352 (ext_csd[EXT_CSD_ENH_SIZE_MULT + 2] << 16);
354 (ext_csd[EXT_CSD_PART_SUPPORT] &
356 (ext_csd[EXT_CSD_PART_ATTR] & (EXT_CSD_PART_ATTR_ENH_USR)) != 0) {
357 erase_size = ext_csd[EXT_CSD_ERASE_GRP_SIZE] * 1024 *
359 wp_size = ext_csd[EXT_CSD_HC_WP_GRP_SIZE];
364 le32dec(&ext_csd[EXT_CSD_ENH_START_ADDR]) *
395 sc->part_time = max(ext_csd[EXT_CSD_PART_SWITCH_TO] * 10 * 1000,
399 size = ext_csd[EXT_CSD_BOOT_SIZE_MULT] * MMC_BOOT_RPMB_BLOCK_SIZE;
403 ro | ((ext_csd[EXT_CSD_BOOT_WP_STATUS] &
407 ro | ((ext_csd[EXT_CSD_BOOT_WP_STATUS] &
412 size = ext_csd[EXT_CSD_RPMB_MULT] * MMC_BOOT_RPMB_BLOCK_SIZE;
424 if ((ext_csd[EXT_CSD_PART_SUPPORT] & EXT_CSD_PART_SUPPORT_EN) != 0) {
425 erase_size = ext_csd[EXT_CSD_ERASE_GRP_SIZE] * 1024 *
427 wp_size = ext_csd[EXT_CSD_HC_WP_GRP_SIZE];
429 size = ext_csd[EXT_CSD_GP_SIZE_MULT + i * 3] +
430 (ext_csd[EXT_CSD_GP_SIZE_MULT + i * 3 + 1] << 8) +
431 (ext_csd[EXT_CSD_GP_SIZE_MULT + i * 3 + 2] << 16);
493 const uint8_t *ext_csd;
588 ext_csd = sc->ext_csd;
590 if ((ext_csd[EXT_CSD_PART_SUPPORT] &
592 (ext_csd[EXT_CSD_PART_ATTR] &
595 else if ((ext_csd[EXT_CSD_PART_SUPPORT] &
597 extattr = (ext_csd[EXT_CSD_EXT_PART_ATTR +
1020 err = mmc_send_ext_csd(mmcbus, dev, sc->ext_csd);
1143 value = (sc->ext_csd[EXT_CSD_PART_CONFIG] &
1154 sc->ext_csd[EXT_CSD_PART_CONFIG] = value;