/linux/drivers/mtd/chips/ |
H A D | cfi_probe.c | 29 unsigned long *chip_map, struct cfi_private *cfi); 30 static int cfi_chip_setup(struct map_info *map, struct cfi_private *cfi); 46 #define xip_enable(base, map, cfi) \ argument 48 cfi_qry_mode_off(base, map, cfi); \ 52 #define xip_disable_qry(base, map, cfi) \ argument 55 cfi_qry_mode_on(base, map, cfi); \ 62 #define xip_enable(base, map, cfi) do { } while (0) argument 63 #define xip_disable_qry(base, map, cfi) do { } while (0) argument 75 void (*fixup)(struct cfi_private *cfi); 78 static void cfi_early_fixup(struct cfi_private *cfi, in cfi_early_fixup() argument [all …]
|
H A D | cfi_util.c | 40 struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd_addr() argument 43 unsigned interleave = cfi_interleave(cfi); in cfi_build_cmd_addr() 44 unsigned type = cfi->device_type; in cfi_build_cmd_addr() 66 map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd() argument 85 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_build_cmd() 86 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_build_cmd() 133 struct cfi_private *cfi) in cfi_merge_status() argument 151 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_merge_status() 152 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_merge_status() 203 struct map_info *map, struct cfi_private *cfi, in cfi_send_gen_cmd() argument [all …]
|
H A D | gen_probe.c | 19 struct cfi_private *cfi); 24 struct cfi_private *cfi; in mtd_do_chip_probe() local 27 cfi = genprobe_ident_chips(map, cp); in mtd_do_chip_probe() 29 if (!cfi) in mtd_do_chip_probe() 32 map->fldrv_priv = cfi; in mtd_do_chip_probe() 51 kfree(cfi->cfiq); in mtd_do_chip_probe() 52 kfree(cfi); in mtd_do_chip_probe() 61 struct cfi_private cfi; in genprobe_ident_chips() local 67 memset(&cfi, 0, sizeof(cfi)); in genprobe_ident_chips() 71 if (!genprobe_new_chip(map, cp, &cfi)) { in genprobe_ident_chips() [all …]
|
H A D | cfi_cmdset_0002.c | 120 static int cfi_use_status_reg(struct cfi_private *cfi) in cfi_use_status_reg() argument 122 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in cfi_use_status_reg() 132 struct cfi_private *cfi = map->fldrv_priv; in cfi_check_err_status() local 135 if (!cfi_use_status_reg(cfi)) in cfi_check_err_status() 138 cfi_send_gen_cmd(0x70, cfi->addr_unlock1, chip->start, map, cfi, in cfi_check_err_status() 139 cfi->device_type, NULL); in cfi_check_err_status() 227 struct cfi_private *cfi = map->fldrv_priv; in fixup_amd_bootblock() local 228 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in fixup_amd_bootblock() 236 map->name, cfi->mfr, cfi->id); in fixup_amd_bootblock() 243 if (((cfi->id == 0xBA) || (cfi->id == 0x22BA)) && in fixup_amd_bootblock() [all …]
|
H A D | cfi_cmdset_0001.c | 175 struct cfi_private *cfi = map->fldrv_priv; in fixup_convert_atmel_pri() local 176 struct cfi_pri_intelext *extp = cfi->cmdset_priv; in fixup_convert_atmel_pri() 208 cfi->cfiq->BufWriteTimeoutTyp = 0; in fixup_convert_atmel_pri() 209 cfi->cfiq->BufWriteTimeoutMax = 0; in fixup_convert_atmel_pri() 215 struct cfi_private *cfi = map->fldrv_priv; in fixup_at49bv640dx_lock() local 216 struct cfi_pri_intelext *cfip = cfi->cmdset_priv; in fixup_at49bv640dx_lock() 227 struct cfi_private *cfi = map->fldrv_priv; in fixup_intel_strataflash() local 228 struct cfi_pri_intelext *extp = cfi->cmdset_priv; in fixup_intel_strataflash() 240 struct cfi_private *cfi = map->fldrv_priv; in fixup_no_write_suspend() local 241 struct cfi_pri_intelext *cfip = cfi->cmdset_priv; in fixup_no_write_suspend() [all …]
|
H A D | jedec_probe.c | 1912 struct cfi_private *cfi) in jedec_read_mfr() argument 1923 uint32_t ofs = cfi_build_cmd_addr(0 + (bank << 8), map, cfi); in jedec_read_mfr() 1924 mask = (1 << (cfi->device_type * 8)) - 1; in jedec_read_mfr() 1935 struct cfi_private *cfi) in jedec_read_id() argument 1939 u32 ofs = cfi_build_cmd_addr(1, map, cfi); in jedec_read_id() 1940 mask = (1 << (cfi->device_type * 8)) -1; in jedec_read_id() 1945 static void jedec_reset(u32 base, struct map_info *map, struct cfi_private *cfi) in jedec_reset() argument 1955 if (cfi->addr_unlock1) { in jedec_reset() 1957 cfi->addr_unlock1,cfi->addr_unlock2); in jedec_reset() 1958 cfi_send_gen_cmd(0xaa, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); in jedec_reset() [all …]
|
H A D | cfi_cmdset_0020.c | 116 struct cfi_private *cfi = map->fldrv_priv; in cfi_cmdset_0020() local 119 if (cfi->cfi_mode) { in cfi_cmdset_0020() 125 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0020() 152 cfi->cmdset_priv = extp; in cfi_cmdset_0020() 155 for (i=0; i< cfi->numchips; i++) { in cfi_cmdset_0020() 156 cfi->chips[i].word_write_time = 128; in cfi_cmdset_0020() 157 cfi->chips[i].buffer_write_time = 128; in cfi_cmdset_0020() 158 cfi->chips[i].erase_time = 1024; in cfi_cmdset_0020() 159 cfi->chips[i].ref_point_counter = 0; in cfi_cmdset_0020() 160 init_waitqueue_head(&(cfi->chips[i].wq)); in cfi_cmdset_0020() [all …]
|
/linux/include/linux/mtd/ |
H A D | cfi.h | 19 #define cfi_interleave(cfi) 1 argument 20 #define cfi_interleave_is_1(cfi) (cfi_interleave(cfi) == 1) argument 22 #define cfi_interleave_is_1(cfi) (0) argument 28 # define cfi_interleave(cfi) ((cfi)->interleave) argument 30 # define cfi_interleave(cfi) 2 argument 32 #define cfi_interleave_is_2(cfi) (cfi_interleave(cfi) == 2) argument 34 #define cfi_interleave_is_2(cfi) (0) argument 40 # define cfi_interleave(cfi) ((cfi)->interleave) argument 42 # define cfi_interleave(cfi) 4 argument 44 #define cfi_interleave_is_4(cfi) (cfi_interleave(cfi) == 4) argument [all …]
|
/linux/fs/coda/ |
H A D | file.c | 45 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_read_iter() local 51 &cfi->cfi_access_intent, in coda_file_read_iter() 56 ret = vfs_iter_read(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_read_iter() 60 &cfi->cfi_access_intent, in coda_file_read_iter() 70 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_write_iter() local 71 struct file *host_file = cfi->cfi_container; in coda_file_write_iter() 77 &cfi->cfi_access_intent, in coda_file_write_iter() 83 ret = vfs_iter_write(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_write_iter() 91 &cfi->cfi_access_intent, in coda_file_write_iter() 102 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_splice_read() local [all …]
|
H A D | cnode.c | 158 struct coda_file_info *cfi = file->private_data; in coda_ftoc() local 160 BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC); in coda_ftoc() 162 return cfi; in coda_ftoc()
|
H A D | dir.c | 350 struct coda_file_info *cfi; in coda_venus_readdir() local 360 cfi = coda_ftoc(coda_file); in coda_venus_readdir() 361 host_file = cfi->cfi_container; in coda_venus_readdir() 425 struct coda_file_info *cfi; in coda_readdir() local 429 cfi = coda_ftoc(coda_file); in coda_readdir() 430 host_file = cfi->cfi_container; in coda_readdir()
|
/linux/tools/objtool/ |
H A D | check.c | 315 static void init_cfi_state(struct cfi_state *cfi) in init_cfi_state() argument 320 cfi->regs[i].base = CFI_UNDEFINED; in init_cfi_state() 321 cfi->vals[i].base = CFI_UNDEFINED; in init_cfi_state() 323 cfi->cfa.base = CFI_UNDEFINED; in init_cfi_state() 324 cfi->drap_reg = CFI_UNDEFINED; in init_cfi_state() 325 cfi->drap_offset = -1; in init_cfi_state() 332 init_cfi_state(&state->cfi); in init_insn_state() 345 struct cfi_state *cfi = calloc(1, sizeof(struct cfi_state)); in cfi_alloc() local 346 if (!cfi) { in cfi_alloc() 351 return cfi; in cfi_alloc() [all …]
|
H A D | orc_gen.c | 73 if (init_orc_entry(&orc, insn->cfi, insn)) in orc_create() 94 struct cfi_state *cfi = alt_group->cfi[i]; in orc_create() local 95 if (!cfi) in orc_create() 98 if (init_orc_entry(&orc, cfi, insn)) in orc_create()
|
/linux/tools/objtool/arch/loongarch/ |
H A D | orc.c | 10 int init_orc_entry(struct orc_entry *orc, struct cfi_state *cfi, struct instruction *insn) in init_orc_entry() argument 12 struct cfi_reg *fp = &cfi->regs[CFI_FP]; in init_orc_entry() 13 struct cfi_reg *ra = &cfi->regs[CFI_RA]; in init_orc_entry() 17 if (!cfi) { in init_orc_entry() 27 switch (cfi->type) { in init_orc_entry() 44 WARN_INSN(insn, "unknown unwind hint type %d", cfi->type); in init_orc_entry() 48 orc->signal = cfi->signal; in init_orc_entry() 50 switch (cfi->cfa.base) { in init_orc_entry() 58 WARN_INSN(insn, "unknown CFA base reg %d", cfi->cfa.base); in init_orc_entry() 96 orc->sp_offset = cfi->cfa.offset; in init_orc_entry()
|
/linux/tools/objtool/arch/x86/ |
H A D | orc.c | 10 int init_orc_entry(struct orc_entry *orc, struct cfi_state *cfi, struct instruction *insn) in init_orc_entry() argument 12 struct cfi_reg *bp = &cfi->regs[CFI_BP]; in init_orc_entry() 16 if (!cfi) { in init_orc_entry() 26 switch (cfi->type) { in init_orc_entry() 43 WARN_INSN(insn, "unknown unwind hint type %d", cfi->type); in init_orc_entry() 47 orc->signal = cfi->signal; in init_orc_entry() 49 switch (cfi->cfa.base) { in init_orc_entry() 75 WARN_INSN(insn, "unknown CFA base reg %d", cfi->cfa.base); in init_orc_entry() 94 orc->sp_offset = cfi->cfa.offset; in init_orc_entry()
|
/linux/tools/perf/arch/powerpc/util/ |
H A D | skip-callchain-idx.c | 101 Dwarf_CFI *cfi; in get_eh_frame() local 104 cfi = dwfl_module_eh_cfi(mod, &bias); in get_eh_frame() 105 if (!cfi) { in get_eh_frame() 110 result = dwarf_cfi_addrframe(cfi, pc-bias, &frame); in get_eh_frame() 124 Dwarf_CFI *cfi; in get_dwarf_frame() local 129 cfi = dwfl_module_dwarf_cfi(mod, &bias); in get_dwarf_frame() 130 if (!cfi) { in get_dwarf_frame() 135 result = dwarf_cfi_addrframe(cfi, pc-bias, &frame); in get_dwarf_frame()
|
/linux/drivers/mtd/hyperbus/ |
H A D | hbmc-am654.c | 41 struct cfi_private cfi; in am654_hbmc_calibrate() local 46 cfi.interleave = 1; in am654_hbmc_calibrate() 47 cfi.device_type = CFI_DEVICETYPE_X16; in am654_hbmc_calibrate() 48 cfi_send_gen_cmd(0xF0, 0, 0, map, &cfi, cfi.device_type, NULL); in am654_hbmc_calibrate() 49 cfi_send_gen_cmd(0x98, 0x55, 0, map, &cfi, cfi.device_type, NULL); in am654_hbmc_calibrate() 52 ret = cfi_qry_present(map, 0, &cfi); in am654_hbmc_calibrate() 61 cfi_qry_mode_off(0, map, &cfi); in am654_hbmc_calibrate()
|
/linux/drivers/iommu/arm/arm-smmu/ |
H A D | arm-smmu-qcom-debug.c | 386 struct arm_smmu_context_fault_info cfi; in qcom_smmu_context_fault() local 396 arm_smmu_read_context_fault_info(smmu, idx, &cfi); in qcom_smmu_context_fault() 398 if (!(cfi.fsr & ARM_SMMU_CB_FSR_FAULT)) in qcom_smmu_context_fault() 402 ret = report_iommu_fault(&smmu_domain->domain, NULL, cfi.iova, in qcom_smmu_context_fault() 403 cfi.fsynr & ARM_SMMU_CB_FSYNR0_WNR ? IOMMU_FAULT_WRITE : IOMMU_FAULT_READ); in qcom_smmu_context_fault() 406 arm_smmu_print_context_fault_info(smmu, idx, &cfi); in qcom_smmu_context_fault() 408 arm_smmu_cb_write(smmu, idx, ARM_SMMU_CB_FSR, cfi.fsr); in qcom_smmu_context_fault() 412 phys_soft = ops->iova_to_phys(ops, cfi.iova); in qcom_smmu_context_fault() 414 tmp = report_iommu_fault(&smmu_domain->domain, NULL, cfi.iova, in qcom_smmu_context_fault() 415 cfi.fsynr & ARM_SMMU_CB_FSYNR0_WNR ? IOMMU_FAULT_WRITE : IOMMU_FAULT_READ); in qcom_smmu_context_fault() [all …]
|
H A D | arm-smmu.c | 409 struct arm_smmu_context_fault_info *cfi) in arm_smmu_read_context_fault_info() argument 411 cfi->iova = arm_smmu_cb_readq(smmu, idx, ARM_SMMU_CB_FAR); in arm_smmu_read_context_fault_info() 412 cfi->fsr = arm_smmu_cb_read(smmu, idx, ARM_SMMU_CB_FSR); in arm_smmu_read_context_fault_info() 413 cfi->fsynr = arm_smmu_cb_read(smmu, idx, ARM_SMMU_CB_FSYNR0); in arm_smmu_read_context_fault_info() 414 cfi->cbfrsynra = arm_smmu_gr1_read(smmu, ARM_SMMU_GR1_CBFRSYNRA(idx)); in arm_smmu_read_context_fault_info() 418 const struct arm_smmu_context_fault_info *cfi) in arm_smmu_print_context_fault_info() argument 422 cfi->fsr, cfi->iova, cfi->fsynr, cfi->cbfrsynra, idx); in arm_smmu_print_context_fault_info() 425 cfi->fsr, in arm_smmu_print_context_fault_info() 426 (cfi->fsr & ARM_SMMU_CB_FSR_MULTI) ? "MULTI " : "", in arm_smmu_print_context_fault_info() 427 (cfi->fsr & ARM_SMMU_CB_FSR_SS) ? "SS " : "", in arm_smmu_print_context_fault_info() [all …]
|
/linux/drivers/mtd/maps/ |
H A D | lantiq-flash.c | 112 struct cfi_private *cfi; in ltq_mtd_probe() local 152 cfi = ltq_mtd->map->fldrv_priv; in ltq_mtd_probe() 153 cfi->addr_unlock1 ^= 1; in ltq_mtd_probe() 154 cfi->addr_unlock2 ^= 1; in ltq_mtd_probe()
|
H A D | scb2_flash.c | 77 struct cfi_private *cfi = map->fldrv_priv; in scb2_fixup_mtd() local 80 if (cfi->cfiq->InterfaceDesc != CFI_INTERFACE_X16_ASYNC) { in scb2_fixup_mtd() 82 cfi->cfiq->InterfaceDesc); in scb2_fixup_mtd()
|
H A D | amd76xrom.c | 186 struct cfi_private *cfi; in amd76xrom_init_one() local 257 cfi = map->map.fldrv_priv; in amd76xrom_init_one() 258 for(i = 0; i < cfi->numchips; i++) { in amd76xrom_init_one() 259 cfi->chips[i].start += offset; in amd76xrom_init_one()
|
/linux/tools/objtool/include/objtool/ |
H A D | check.h | 14 struct cfi_state cfi; member 36 struct cfi_state **cfi; member 79 struct cfi_state *cfi; member
|
/linux/arch/mips/boot/dts/ralink/ |
H A D | rt2880_eval.dts | 19 cfi@1f000000 { 20 compatible = "cfi-flash";
|
H A D | rt3052_eval.dts | 19 cfi@1f000000 { 20 compatible = "cfi-flash";
|