/kernel/linux/linux-5.10/drivers/mtd/chips/ |
D | cfi_probe.c | 28 unsigned long *chip_map, struct cfi_private *cfi); 29 static int cfi_chip_setup(struct map_info *map, struct cfi_private *cfi); 45 #define xip_enable(base, map, cfi) \ argument 47 cfi_qry_mode_off(base, map, cfi); \ 51 #define xip_disable_qry(base, map, cfi) \ argument 54 cfi_qry_mode_on(base, map, cfi); \ 61 #define xip_enable(base, map, cfi) do { } while (0) argument 62 #define xip_disable_qry(base, map, cfi) do { } while (0) argument 74 void (*fixup)(struct cfi_private *cfi); 77 static void cfi_early_fixup(struct cfi_private *cfi, in cfi_early_fixup() argument [all …]
|
D | cfi_util.c | 41 struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd_addr() argument 44 unsigned interleave = cfi_interleave(cfi); in cfi_build_cmd_addr() 45 unsigned type = cfi->device_type; in cfi_build_cmd_addr() 67 map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd() argument 86 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_build_cmd() 87 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_build_cmd() 134 struct cfi_private *cfi) in cfi_merge_status() argument 152 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_merge_status() 153 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_merge_status() 204 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 | 117 static int cfi_use_status_reg(struct cfi_private *cfi) in cfi_use_status_reg() argument 119 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in cfi_use_status_reg() 129 struct cfi_private *cfi = map->fldrv_priv; in cfi_check_err_status() local 132 if (!cfi_use_status_reg(cfi)) in cfi_check_err_status() 135 cfi_send_gen_cmd(0x70, cfi->addr_unlock1, chip->start, map, cfi, in cfi_check_err_status() 136 cfi->device_type, NULL); in cfi_check_err_status() 224 struct cfi_private *cfi = map->fldrv_priv; in fixup_amd_bootblock() local 225 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in fixup_amd_bootblock() 233 map->name, cfi->mfr, cfi->id); in fixup_amd_bootblock() 240 if (((cfi->id == 0xBA) || (cfi->id == 0x22BA)) && in fixup_amd_bootblock() [all …]
|
D | cfi_cmdset_0001.c | 173 struct cfi_private *cfi = map->fldrv_priv; in fixup_convert_atmel_pri() local 174 struct cfi_pri_intelext *extp = cfi->cmdset_priv; in fixup_convert_atmel_pri() 206 cfi->cfiq->BufWriteTimeoutTyp = 0; in fixup_convert_atmel_pri() 207 cfi->cfiq->BufWriteTimeoutMax = 0; in fixup_convert_atmel_pri() 213 struct cfi_private *cfi = map->fldrv_priv; in fixup_at49bv640dx_lock() local 214 struct cfi_pri_intelext *cfip = cfi->cmdset_priv; in fixup_at49bv640dx_lock() 225 struct cfi_private *cfi = map->fldrv_priv; in fixup_intel_strataflash() local 226 struct cfi_pri_intelext *extp = cfi->cmdset_priv; in fixup_intel_strataflash() 238 struct cfi_private *cfi = map->fldrv_priv; in fixup_no_write_suspend() local 239 struct cfi_pri_intelext *cfip = cfi->cmdset_priv; in fixup_no_write_suspend() [all …]
|
D | jedec_probe.c | 1911 struct cfi_private *cfi) in jedec_read_mfr() argument 1922 uint32_t ofs = cfi_build_cmd_addr(0 + (bank << 8), map, cfi); in jedec_read_mfr() 1923 mask = (1 << (cfi->device_type * 8)) - 1; in jedec_read_mfr() 1934 struct cfi_private *cfi) in jedec_read_id() argument 1938 u32 ofs = cfi_build_cmd_addr(1, map, cfi); in jedec_read_id() 1939 mask = (1 << (cfi->device_type * 8)) -1; in jedec_read_id() 1944 static void jedec_reset(u32 base, struct map_info *map, struct cfi_private *cfi) in jedec_reset() argument 1954 if (cfi->addr_unlock1) { in jedec_reset() 1956 cfi->addr_unlock1,cfi->addr_unlock2); in jedec_reset() 1957 cfi_send_gen_cmd(0xaa, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); in jedec_reset() [all …]
|
D | cfi_cmdset_0020.c | 115 struct cfi_private *cfi = map->fldrv_priv; in cfi_cmdset_0020() local 118 if (cfi->cfi_mode) { in cfi_cmdset_0020() 124 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0020() 151 cfi->cmdset_priv = extp; in cfi_cmdset_0020() 154 for (i=0; i< cfi->numchips; i++) { in cfi_cmdset_0020() 155 cfi->chips[i].word_write_time = 128; in cfi_cmdset_0020() 156 cfi->chips[i].buffer_write_time = 128; in cfi_cmdset_0020() 157 cfi->chips[i].erase_time = 1024; in cfi_cmdset_0020() 158 cfi->chips[i].ref_point_counter = 0; in cfi_cmdset_0020() 159 init_waitqueue_head(&(cfi->chips[i].wq)); in cfi_cmdset_0020() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/fs/coda/ |
D | file.c | 42 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_read_iter() local 48 &cfi->cfi_access_intent, in coda_file_read_iter() 53 ret = vfs_iter_read(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_read_iter() 57 &cfi->cfi_access_intent, in coda_file_read_iter() 67 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_write_iter() local 68 struct file *host_file = cfi->cfi_container; in coda_file_write_iter() 74 &cfi->cfi_access_intent, in coda_file_write_iter() 81 ret = vfs_iter_write(cfi->cfi_container, to, &iocb->ki_pos, 0); in coda_file_write_iter() 90 &cfi->cfi_access_intent, in coda_file_write_iter() 127 struct coda_file_info *cfi = coda_ftoc(coda_file); in coda_file_mmap() local [all …]
|
D | cnode.c | 153 struct coda_file_info *cfi = file->private_data; in coda_ftoc() local 155 BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC); in coda_ftoc() 157 return cfi; in coda_ftoc()
|
/kernel/linux/linux-5.10/tools/objtool/ |
D | check.c | 246 static void init_cfi_state(struct cfi_state *cfi) in init_cfi_state() argument 251 cfi->regs[i].base = CFI_UNDEFINED; in init_cfi_state() 252 cfi->vals[i].base = CFI_UNDEFINED; in init_cfi_state() 254 cfi->cfa.base = CFI_UNDEFINED; in init_cfi_state() 255 cfi->drap_reg = CFI_UNDEFINED; in init_cfi_state() 256 cfi->drap_offset = -1; in init_cfi_state() 262 init_cfi_state(&state->cfi); in init_insn_state() 275 struct cfi_state *cfi = calloc(sizeof(struct cfi_state), 1); in cfi_alloc() local 276 if (!cfi) { in cfi_alloc() 281 return cfi; in cfi_alloc() [all …]
|
D | orc_gen.c | 15 static int init_orc_entry(struct orc_entry *orc, struct cfi_state *cfi, in init_orc_entry() argument 18 struct cfi_reg *bp = &cfi->regs[CFI_BP]; in init_orc_entry() 22 if (!cfi) { in init_orc_entry() 28 orc->end = cfi->end; in init_orc_entry() 30 if (cfi->cfa.base == CFI_UNDEFINED) { in init_orc_entry() 35 switch (cfi->cfa.base) { in init_orc_entry() 62 insn->sec, insn->offset, cfi->cfa.base); in init_orc_entry() 82 orc->sp_offset = cfi->cfa.offset; in init_orc_entry() 84 orc->type = cfi->type; in init_orc_entry() 168 if (init_orc_entry(&orc, insn->cfi, insn)) in orc_create() [all …]
|
D | check.h | 14 struct cfi_state cfi; member 36 struct cfi_state **cfi; member 64 struct cfi_state *cfi; member
|
/kernel/linux/linux-5.10/fs/udf/ |
D | namei.c | 44 int udf_write_fi(struct inode *inode, struct fileIdentDesc *cfi, in udf_write_fi() argument 51 uint16_t liu = le16_to_cpu(cfi->lengthOfImpUse); in udf_write_fi() 52 uint8_t lfi = cfi->lengthFileIdent; in udf_write_fi() 100 crc = crc_itu_t(0, (uint8_t *)cfi + sizeof(struct tag), in udf_write_fi() 119 cfi->descTag.descCRC = cpu_to_le16(crc); in udf_write_fi() 120 cfi->descTag.descCRCLength = cpu_to_le16(crclen); in udf_write_fi() 121 cfi->descTag.tagChecksum = udf_tag_checksum(&cfi->descTag); in udf_write_fi() 124 memcpy((uint8_t *)sfi, (uint8_t *)cfi, in udf_write_fi() 127 memcpy((uint8_t *)sfi, (uint8_t *)cfi, -fibh->soffset); in udf_write_fi() 128 memcpy(fibh->ebh->b_data, (uint8_t *)cfi - fibh->soffset, in udf_write_fi() [all …]
|
D | dir.c | 46 struct fileIdentDesc cfi; in udf_readdir() local 151 fi = udf_fileident_read(dir, &nf_pos, &fibh, &cfi, &epos, &eloc, in udf_readdir() 159 liu = le16_to_cpu(cfi.lengthOfImpUse); in udf_readdir() 160 lfi = cfi.lengthFileIdent; in udf_readdir() 188 if ((cfi.fileCharacteristics & FID_FILE_CHAR_DELETED) != 0) { in udf_readdir() 193 if ((cfi.fileCharacteristics & FID_FILE_CHAR_HIDDEN) != 0) { in udf_readdir() 198 if (cfi.fileCharacteristics & FID_FILE_CHAR_PARENT) { in udf_readdir() 208 tloc = lelb_to_cpu(cfi.icb.extLocation); in udf_readdir()
|
D | directory.c | 23 struct fileIdentDesc *cfi, in udf_fileident_read() argument 48 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read() 111 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read() 139 memcpy((uint8_t *)cfi, (uint8_t *)fi, -fibh->soffset); in udf_fileident_read() 140 memcpy((uint8_t *)cfi - fibh->soffset, in udf_fileident_read() 144 fi_len = udf_dir_entry_len(cfi); in udf_fileident_read() 148 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/mtd/maps/ |
D | lantiq-flash.c | 112 struct cfi_private *cfi; in ltq_mtd_probe() local 157 cfi = ltq_mtd->map->fldrv_priv; in ltq_mtd_probe() 158 cfi->addr_unlock1 ^= 1; in ltq_mtd_probe() 159 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()
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/ |
D | cypress,hyperflash.txt | 5 - compatible : "cypress,hyperflash", "cfi-flash" for HyperFlash NOR chips 11 compatible = "cypress,hyperflash", "cfi-flash";
|
D | mtd-physmap.txt | 7 used, if known, followed by either "cfi-flash", "jedec-flash", 41 For ROM compatible devices (and ROM fallback from cfi-flash), the following 59 compatible = "amd,am29lv128ml", "cfi-flash"; 81 compatible = "intel,PC48F4400P0VB", "cfi-flash"; 104 compatible = "cfi-flash", "jedec-flash";
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/memory-controllers/ |
D | pl353-smc.txt | 17 For NAND the "arm,pl353-nand-r2p1" and for NOR the "cfi-flash" drivers are 40 compatible = "cfi-flash"; 44 compatible = "cfi-flash";
|
/kernel/linux/linux-5.10/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";
|