Home
last modified time | relevance | path

Searched refs:ecc_info (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.1/fs/pstore/
Dram_core.c104 memset(prz->ecc_info.par, 0, in persistent_ram_encode_rs8()
105 prz->ecc_info.ecc_size * sizeof(prz->ecc_info.par[0])); in persistent_ram_encode_rs8()
106 encode_rs8(prz->rs_decoder, data, len, prz->ecc_info.par, 0); in persistent_ram_encode_rs8()
107 for (i = 0; i < prz->ecc_info.ecc_size; i++) in persistent_ram_encode_rs8()
108 ecc[i] = prz->ecc_info.par[i]; in persistent_ram_encode_rs8()
116 for (i = 0; i < prz->ecc_info.ecc_size; i++) in persistent_ram_decode_rs8()
117 prz->ecc_info.par[i] = ecc[i]; in persistent_ram_decode_rs8()
118 return decode_rs8(prz->rs_decoder, data, prz->ecc_info.par, len, in persistent_ram_decode_rs8()
129 int ecc_block_size = prz->ecc_info.block_size; in persistent_ram_update_ecc()
130 int ecc_size = prz->ecc_info.ecc_size; in persistent_ram_update_ecc()
[all …]
Dram.c91 struct persistent_ram_ecc_info ecc_info; member
243 tmp_prz->ecc_info = prz_next->ecc_info; in ramoops_pstore_read()
540 &cxt->ecc_info, in ramoops_init_przs()
586 *prz = persistent_ram_new(*paddr, sz, sig, &cxt->ecc_info, in ramoops_init_prz()
678 parse_u32("ecc-size", pdata->ecc_info.ecc_size, 0); in ramoops_parse_dt()
698 !pdata->pmsg_size && !pdata->ecc_info.ecc_size) { in ramoops_parse_dt()
765 cxt->ecc_info = pdata->ecc_info; in ramoops_probe()
852 cxt->ecc_info.ecc_size); in ramoops_probe()
944 pdata.ecc_info.ecc_size = ramoops_ecc == 1 ? 16 : ramoops_ecc; in ramoops_register_dummy()
/Linux-v6.1/include/linux/
Dpstore_ram.h96 struct persistent_ram_ecc_info ecc_info; member
103 u32 sig, struct persistent_ram_ecc_info *ecc_info,
138 struct persistent_ram_ecc_info ecc_info; member
/Linux-v6.1/include/linux/mtd/
Djedec.h77 struct jedec_ecc_info ecc_info[4]; member
/Linux-v6.1/drivers/mtd/nand/raw/
Dnand_jedec.c121 ecc = &p->ecc_info[0]; in nand_jedec_detect()
Dcadence-nand-controller.c532 struct ecc_info { struct
/Linux-v6.1/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c6099 struct fmea_ram_ecc *ecc_info) in fmea_ram_ecc_query() argument
6110 ecc_info->is_ecc_err = hr_reg_read(req, QUERY_RAM_ECC_1BIT_ERR); in fmea_ram_ecc_query()
6111 ecc_info->res_type = hr_reg_read(req, QUERY_RAM_ECC_RES_TYPE); in fmea_ram_ecc_query()
6112 ecc_info->index = hr_reg_read(req, QUERY_RAM_ECC_TAG); in fmea_ram_ecc_query()
6191 struct fmea_ram_ecc *ecc_info) in fmea_ram_ecc_recover() argument
6193 u32 res_type = ecc_info->res_type; in fmea_ram_ecc_recover()
6194 u32 index = ecc_info->index; in fmea_ram_ecc_recover()
6219 struct fmea_ram_ecc ecc_info = {}; in fmea_ram_ecc_work() local
6221 if (fmea_ram_ecc_query(hr_dev, &ecc_info)) { in fmea_ram_ecc_work()
6226 if (!ecc_info.is_ecc_err) { in fmea_ram_ecc_work()
[all …]