/linux-6.6.21/drivers/mtd/chips/ |
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 …]
|
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 …]
|
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 …]
|
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 …]
|
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 …]
|
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 …]
|
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-6.6.21/include/linux/mtd/ |
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-6.6.21/fs/coda/ |
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() 84 ret = vfs_iter_write(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_write_iter() 93 &cfi->cfi_access_intent, in coda_file_write_iter() 104 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_splice_read() local [all …]
|
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()
|
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-6.6.21/tools/objtool/ |
D | check.c | 264 static void init_cfi_state(struct cfi_state *cfi) in init_cfi_state() argument 269 cfi->regs[i].base = CFI_UNDEFINED; in init_cfi_state() 270 cfi->vals[i].base = CFI_UNDEFINED; in init_cfi_state() 272 cfi->cfa.base = CFI_UNDEFINED; in init_cfi_state() 273 cfi->drap_reg = CFI_UNDEFINED; in init_cfi_state() 274 cfi->drap_offset = -1; in init_cfi_state() 281 init_cfi_state(&state->cfi); in init_insn_state() 294 struct cfi_state *cfi = calloc(sizeof(struct cfi_state), 1); in cfi_alloc() local 295 if (!cfi) { in cfi_alloc() 300 return cfi; in cfi_alloc() [all …]
|
D | orc_gen.c | 16 static int init_orc_entry(struct orc_entry *orc, struct cfi_state *cfi, in init_orc_entry() argument 19 struct cfi_reg *bp = &cfi->regs[CFI_BP]; in init_orc_entry() 23 if (!cfi) { in init_orc_entry() 33 switch (cfi->type) { in init_orc_entry() 50 WARN_INSN(insn, "unknown unwind hint type %d", cfi->type); in init_orc_entry() 54 orc->signal = cfi->signal; in init_orc_entry() 56 switch (cfi->cfa.base) { in init_orc_entry() 82 WARN_INSN(insn, "unknown CFA base reg %d", cfi->cfa.base); in init_orc_entry() 101 orc->sp_offset = cfi->cfa.offset; in init_orc_entry() 184 if (init_orc_entry(&orc, insn->cfi, insn)) in orc_create() [all …]
|
/linux-6.6.21/tools/perf/arch/powerpc/util/ |
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-6.6.21/drivers/mtd/hyperbus/ |
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-6.6.21/drivers/mtd/maps/ |
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()
|
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()
|
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()
|
D | ck804xrom.c | 216 struct cfi_private *cfi; in ck804xrom_init_one() local 287 cfi = map->map.fldrv_priv; in ck804xrom_init_one() 288 for(i = 0; i < cfi->numchips; i++) in ck804xrom_init_one() 289 cfi->chips[i].start += offset; in ck804xrom_init_one()
|
D | ichxrom.c | 210 struct cfi_private *cfi; in ichxrom_init_one() local 284 cfi = map->map.fldrv_priv; in ichxrom_init_one() 285 for(i = 0; i < cfi->numchips; i++) { in ichxrom_init_one() 286 cfi->chips[i].start += offset; in ichxrom_init_one()
|
/linux-6.6.21/tools/objtool/include/objtool/ |
D | check.h | 14 struct cfi_state cfi; member 36 struct cfi_state **cfi; member 79 struct cfi_state *cfi; member
|
/linux-6.6.21/arch/x86/kernel/ |
D | module.c | 281 *calls = NULL, *cfi = NULL; in module_finalize() local 302 cfi = s; in module_finalize() 315 if (retpolines || cfi) { in module_finalize() 324 if (cfi) { in module_finalize() 325 cseg = (void *)cfi->sh_addr; in module_finalize() 326 csize = cfi->sh_size; in module_finalize()
|
/linux-6.6.21/arch/mips/boot/dts/ralink/ |
D | rt2880_eval.dts | 19 cfi@1f000000 { 20 compatible = "cfi-flash";
|
D | rt3052_eval.dts | 19 cfi@1f000000 { 20 compatible = "cfi-flash";
|
/linux-6.6.21/Documentation/devicetree/bindings/mtd/ |
D | mtd-physmap.yaml | 52 - cfi-flash 60 - cfi-flash 153 compatible = "cfi-flash"; 177 compatible = "intel,PC28F640P30T85", "cfi-flash"; 210 compatible = "cfi-flash";
|