Lines Matching defs:ext_csd

132 	uint8_t ext_csd[MMC_EXTCSD_SIZE];
239 const uint8_t *ext_csd;
270 err = mmc_send_ext_csd(mmcbus, dev, sc->ext_csd);
278 ext_csd = sc->ext_csd;
293 if ((ext_csd[EXT_CSD_SEC_FEATURE_SUPPORT] &
308 rev = ext_csd[EXT_CSD_REV];
316 size = le32dec(&ext_csd[EXT_CSD_CACHE_SIZE]);
336 comp = (ext_csd[EXT_CSD_PART_SET] & EXT_CSD_PART_SET_COMPLETED) != 0;
349 size = ext_csd[EXT_CSD_ENH_SIZE_MULT] +
350 (ext_csd[EXT_CSD_ENH_SIZE_MULT + 1] << 8) +
351 (ext_csd[EXT_CSD_ENH_SIZE_MULT + 2] << 16);
353 (ext_csd[EXT_CSD_PART_SUPPORT] &
355 (ext_csd[EXT_CSD_PART_ATTR] & (EXT_CSD_PART_ATTR_ENH_USR)) != 0) {
356 erase_size = ext_csd[EXT_CSD_ERASE_GRP_SIZE] * 1024 *
358 wp_size = ext_csd[EXT_CSD_HC_WP_GRP_SIZE];
363 le32dec(&ext_csd[EXT_CSD_ENH_START_ADDR]) *
394 sc->part_time = max(ext_csd[EXT_CSD_PART_SWITCH_TO] * 10 * 1000,
398 size = ext_csd[EXT_CSD_BOOT_SIZE_MULT] * MMC_BOOT_RPMB_BLOCK_SIZE;
402 ro | ((ext_csd[EXT_CSD_BOOT_WP_STATUS] &
406 ro | ((ext_csd[EXT_CSD_BOOT_WP_STATUS] &
411 size = ext_csd[EXT_CSD_RPMB_MULT] * MMC_BOOT_RPMB_BLOCK_SIZE;
423 if ((ext_csd[EXT_CSD_PART_SUPPORT] & EXT_CSD_PART_SUPPORT_EN) != 0) {
424 erase_size = ext_csd[EXT_CSD_ERASE_GRP_SIZE] * 1024 *
426 wp_size = ext_csd[EXT_CSD_HC_WP_GRP_SIZE];
428 size = ext_csd[EXT_CSD_GP_SIZE_MULT + i * 3] +
429 (ext_csd[EXT_CSD_GP_SIZE_MULT + i * 3 + 1] << 8) +
430 (ext_csd[EXT_CSD_GP_SIZE_MULT + i * 3 + 2] << 16);
492 const uint8_t *ext_csd;
587 ext_csd = sc->ext_csd;
589 if ((ext_csd[EXT_CSD_PART_SUPPORT] &
591 (ext_csd[EXT_CSD_PART_ATTR] &
594 else if ((ext_csd[EXT_CSD_PART_SUPPORT] &
596 extattr = (ext_csd[EXT_CSD_EXT_PART_ATTR +
1019 err = mmc_send_ext_csd(mmcbus, dev, sc->ext_csd);
1142 value = (sc->ext_csd[EXT_CSD_PART_CONFIG] &
1153 sc->ext_csd[EXT_CSD_PART_CONFIG] = value;