fdm 96 arch/powerpc/platforms/powernv/opal-fadump.c const struct opal_fadump_mem_struct *fdm) fdm 98 arch/powerpc/platforms/powernv/opal-fadump.c pr_debug("Boot memory regions count: %d\n", fdm->region_cnt); fdm 104 arch/powerpc/platforms/powernv/opal-fadump.c fadump_conf->boot_mem_dest_addr = fdm->rgn[0].dest; fdm 108 arch/powerpc/platforms/powernv/opal-fadump.c fadump_conf->fadumphdr_addr = fdm->fadumphdr_addr; fdm 116 arch/powerpc/platforms/powernv/opal-fadump.c const struct opal_fadump_mem_struct *fdm) fdm 129 arch/powerpc/platforms/powernv/opal-fadump.c for (i = 0; i < fdm->region_cnt; i++) { fdm 130 arch/powerpc/platforms/powernv/opal-fadump.c base = fdm->rgn[i].src; fdm 131 arch/powerpc/platforms/powernv/opal-fadump.c size = fdm->rgn[i].size; fdm 146 arch/powerpc/platforms/powernv/opal-fadump.c fadump_conf->reserve_dump_area_start = fdm->rgn[0].dest; fdm 158 arch/powerpc/platforms/powernv/opal-fadump.c if (fdm->region_cnt > fdm->registered_regions) { fdm 161 arch/powerpc/platforms/powernv/opal-fadump.c i = fdm->registered_regions; fdm 162 arch/powerpc/platforms/powernv/opal-fadump.c while (i < fdm->region_cnt) { fdm 164 arch/powerpc/platforms/powernv/opal-fadump.c i, fdm->rgn[i].src, fdm->rgn[i].size); fdm 173 arch/powerpc/platforms/powernv/opal-fadump.c fadump_conf->boot_mem_regs_cnt = fdm->region_cnt; fdm 174 arch/powerpc/platforms/powernv/opal-fadump.c opal_fadump_update_config(fadump_conf, fdm); fdm 178 arch/powerpc/platforms/powernv/opal-fadump.c static void opal_fadump_init_metadata(struct opal_fadump_mem_struct *fdm) fdm 180 arch/powerpc/platforms/powernv/opal-fadump.c fdm->version = OPAL_FADUMP_VERSION; fdm 181 arch/powerpc/platforms/powernv/opal-fadump.c fdm->region_cnt = 0; fdm 182 arch/powerpc/platforms/powernv/opal-fadump.c fdm->registered_regions = 0; fdm 183 arch/powerpc/platforms/powernv/opal-fadump.c fdm->fadumphdr_addr = 0; fdm 25 arch/powerpc/platforms/pseries/rtas-fadump.c static struct rtas_fadump_mem_struct fdm; fdm 29 arch/powerpc/platforms/pseries/rtas-fadump.c const struct rtas_fadump_mem_struct *fdm) fdm 32 arch/powerpc/platforms/pseries/rtas-fadump.c be64_to_cpu(fdm->rmr_region.destination_address); fdm 43 arch/powerpc/platforms/pseries/rtas-fadump.c const struct rtas_fadump_mem_struct *fdm) fdm 46 arch/powerpc/platforms/pseries/rtas-fadump.c be64_to_cpu(fdm->rmr_region.source_address); fdm 47 arch/powerpc/platforms/pseries/rtas-fadump.c fadump_conf->boot_mem_sz[0] = be64_to_cpu(fdm->rmr_region.source_len); fdm 58 arch/powerpc/platforms/pseries/rtas-fadump.c be64_to_cpu(fdm->cpu_state_data.destination_address); fdm 60 arch/powerpc/platforms/pseries/rtas-fadump.c rtas_fadump_update_config(fadump_conf, fdm); fdm 67 arch/powerpc/platforms/pseries/rtas-fadump.c memset(&fdm, 0, sizeof(struct rtas_fadump_mem_struct)); fdm 70 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.header.dump_format_version = cpu_to_be32(0x00000001); fdm 71 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.header.dump_num_sections = cpu_to_be16(3); fdm 72 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.header.dump_status_flag = 0; fdm 73 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.header.offset_first_dump_section = fdm 81 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.header.dd_block_size = 0; fdm 82 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.header.dd_block_offset = 0; fdm 83 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.header.dd_num_blocks = 0; fdm 84 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.header.dd_offset_disk_path = 0; fdm 87 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.header.max_time_auto = 0; fdm 91 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.cpu_state_data.request_flag = fdm 93 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.cpu_state_data.source_data_type = fdm 95 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.cpu_state_data.source_address = 0; fdm 96 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.cpu_state_data.source_len = fdm 98 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.cpu_state_data.destination_address = cpu_to_be64(addr); fdm 102 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.hpte_region.request_flag = cpu_to_be32(RTAS_FADUMP_REQUEST_FLAG); fdm 103 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.hpte_region.source_data_type = fdm 105 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.hpte_region.source_address = 0; fdm 106 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.hpte_region.source_len = fdm 108 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.hpte_region.destination_address = cpu_to_be64(addr); fdm 112 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.rmr_region.request_flag = cpu_to_be32(RTAS_FADUMP_REQUEST_FLAG); fdm 113 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.rmr_region.source_data_type = fdm 115 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.rmr_region.source_address = cpu_to_be64(0); fdm 116 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.rmr_region.source_len = cpu_to_be64(fadump_conf->boot_memory_size); fdm 117 arch/powerpc/platforms/pseries/rtas-fadump.c fdm.rmr_region.destination_address = cpu_to_be64(addr); fdm 120 arch/powerpc/platforms/pseries/rtas-fadump.c rtas_fadump_update_config(fadump_conf, &fdm); fdm 138 arch/powerpc/platforms/pseries/rtas-fadump.c NULL, FADUMP_REGISTER, &fdm, fdm 186 arch/powerpc/platforms/pseries/rtas-fadump.c NULL, FADUMP_UNREGISTER, &fdm, fdm 441 arch/powerpc/platforms/pseries/rtas-fadump.c fdm_ptr = &fdm; fdm 104 drivers/crypto/nx/nx_csbcpb.h #define NX_CPB_FDM(c) ((c)->cpb.hdr.fdm) fdm 113 drivers/crypto/nx/nx_csbcpb.h u8 fdm; fdm 130 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm fdm; fdm 199 drivers/mtd/nand/raw/mtk_nand.c poi = chip->oob_poi + (i + 1) * mtk_nand->fdm.reg_size; fdm 203 drivers/mtd/nand/raw/mtk_nand.c poi = chip->oob_poi + i * mtk_nand->fdm.reg_size; fdm 380 drivers/mtd/nand/raw/mtk_nand.c fmt |= mtk_nand->fdm.reg_size << PAGEFMT_FDM_SHIFT; fdm 381 drivers/mtd/nand/raw/mtk_nand.c fmt |= mtk_nand->fdm.ecc_size << PAGEFMT_FDM_ECC_SHIFT; fdm 385 drivers/mtd/nand/raw/mtk_nand.c nfc->ecc_cfg.len = chip->ecc.size + mtk_nand->fdm.ecc_size; fdm 616 drivers/mtd/nand/raw/mtk_nand.c int size = chip->ecc.size + mtk_nand->fdm.reg_size; fdm 649 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; fdm 667 drivers/mtd/nand/raw/mtk_nand.c memcpy(mtk_oob_ptr(chip, i), oob_ptr(chip, i), fdm->reg_size); fdm 683 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; fdm 695 drivers/mtd/nand/raw/mtk_nand.c memcpy(mtk_oob_ptr(chip, i), oob_ptr(chip, i), fdm->reg_size); fdm 704 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; fdm 714 drivers/mtd/nand/raw/mtk_nand.c for (j = 0; j < fdm->reg_size; j++) fdm 723 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; fdm 734 drivers/mtd/nand/raw/mtk_nand.c vall |= (j < fdm->reg_size ? oobptr[j] : 0xff) fdm 737 drivers/mtd/nand/raw/mtk_nand.c valm |= (j < fdm->reg_size ? oobptr[j] : 0xff) fdm 891 drivers/mtd/nand/raw/mtk_nand.c u32 reg_size = mtk_nand->fdm.reg_size; fdm 1028 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; fdm 1038 drivers/mtd/nand/raw/mtk_nand.c memcpy(oob_ptr(chip, i), mtk_oob_ptr(chip, i), fdm->reg_size); fdm 1121 drivers/mtd/nand/raw/mtk_nand.c struct mtk_nfc_fdm *fdm = &mtk_nand->fdm; fdm 1129 drivers/mtd/nand/raw/mtk_nand.c oob_region->length = fdm->reg_size - fdm->ecc_size; fdm 1130 drivers/mtd/nand/raw/mtk_nand.c oob_region->offset = section * fdm->reg_size + fdm->ecc_size; fdm 1146 drivers/mtd/nand/raw/mtk_nand.c oob_region->offset = mtk_nand->fdm.reg_size * eccsteps; fdm 1157 drivers/mtd/nand/raw/mtk_nand.c static void mtk_nfc_set_fdm(struct mtk_nfc_fdm *fdm, struct mtd_info *mtd) fdm 1167 drivers/mtd/nand/raw/mtk_nand.c fdm->reg_size = chip->spare_per_sector - ecc_bytes; fdm 1168 drivers/mtd/nand/raw/mtk_nand.c if (fdm->reg_size > NFI_FDM_MAX_SIZE) fdm 1169 drivers/mtd/nand/raw/mtk_nand.c fdm->reg_size = NFI_FDM_MAX_SIZE; fdm 1172 drivers/mtd/nand/raw/mtk_nand.c fdm->ecc_size = 1; fdm 1315 drivers/mtd/nand/raw/mtk_nand.c mtk_nfc_set_fdm(&mtk_nand->fdm, mtd);