Home
last modified time | relevance | path

Searched refs:map_bankwidth (Results 1 – 11 of 11) sorted by relevance

/linux-6.3-rc2/include/linux/mtd/
A Dmap.h22 #define map_bankwidth(map) 1 macro
32 # ifdef map_bankwidth
33 # undef map_bankwidth
48 # ifdef map_bankwidth
49 # undef map_bankwidth
69 # ifdef map_bankwidth
70 # undef map_bankwidth
91 # ifdef map_bankwidth
92 # undef map_bankwidth
112 # undef map_bankwidth
[all …]
A Dpfow.h104 int bits_per_chip = map_bankwidth(map) * 8; in send_pfow_command()
/linux-6.3-rc2/drivers/mtd/chips/
A Dcfi_util.c43 unsigned bankwidth = map_bankwidth(map); in cfi_build_cmd_addr()
80 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 in cfi_build_cmd()
82 wordwidth = map_bankwidth(map); in cfi_build_cmd()
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()
146 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 in cfi_merge_status()
148 wordwidth = map_bankwidth(map); in cfi_merge_status()
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()
A Dcfi_cmdset_0002.c1671 adr, map_bankwidth(map), in do_write_oneword_once()
1891 ofs += map_bankwidth(map); in cfi_amdstd_write_words()
1892 buf += map_bankwidth(map); in cfi_amdstd_write_words()
1894 len -= map_bankwidth(map); in cfi_amdstd_write_words()
2067 z += map_bankwidth(map); in do_write_buffer()
2068 buf += map_bankwidth(map); in do_write_buffer()
2070 z -= map_bankwidth(map); in do_write_buffer()
2079 adr, map_bankwidth(map), in do_write_buffer()
2370 ofs += map_bankwidth(map); in cfi_amdstd_panic_write()
2371 buf += map_bankwidth(map); in cfi_amdstd_panic_write()
[all …]
A Dgen_probe.c167 int min_chips = (map_bankwidth(map)/4?:1); /* At most 4-bytes wide. */ in genprobe_new_chip()
168 int max_chips = map_bankwidth(map); /* And minimum 1 */ in genprobe_new_chip()
180 type = map_bankwidth(map) / nr_chips; in genprobe_new_chip()
A Dcfi_cmdset_0001.c1587 adr, map_bankwidth(map), in do_write_oneword()
1639 if (ofs & (map_bankwidth(map)-1)) { in cfi_intelext_write_words()
1667 while(len >= map_bankwidth(map)) { in cfi_intelext_write_words()
1675 ofs += map_bankwidth(map); in cfi_intelext_write_words()
1676 buf += map_bankwidth(map); in cfi_intelext_write_words()
1677 (*retlen) += map_bankwidth(map); in cfi_intelext_write_words()
1678 len -= map_bankwidth(map); in cfi_intelext_write_words()
1688 if (len & (map_bankwidth(map)-1)) { in cfi_intelext_write_words()
1796 int n = map_bankwidth(map) - word_gap; in do_write_buffer()
1813 adr += map_bankwidth(map); in do_write_buffer()
[all …]
A Dcfi_cmdset_0020.c260 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
430 if (adr & (map_bankwidth(map)-1)) in do_write_buffer()
520 map_write(map, CMD(len/map_bankwidth(map)-1), cmd_adr ); in do_write_buffer()
524 z += map_bankwidth(map), buf += map_bankwidth(map)) { in do_write_buffer()
620 printk("%s: map_bankwidth(map)[%x]\n", __func__, map_bankwidth(map)); in cfi_staa_write_buffers()
A Dmap_ram.c132 for (i=0; i<instr->len; i += map_bankwidth(map)) in mapram_erase()
A Djedec_probe.c2178 if ( ((base + probe_offset1 + map_bankwidth(map)) >= map->size) || in jedec_probe_chip()
2179 ((base + probe_offset2 + map_bankwidth(map)) >= map->size)) in jedec_probe_chip()
/linux-6.3-rc2/drivers/mtd/lpddr/
A Dlpddr_cmds.c423 word_gap = (-adr & (map_bankwidth(map)-1)); in do_write_buffer()
424 words = (len - word_gap + map_bankwidth(map) - 1) / map_bankwidth(map); in do_write_buffer()
428 word_gap = map_bankwidth(map) - word_gap; in do_write_buffer()
439 int n = map_bankwidth(map) - word_gap; in do_write_buffer()
446 if (!word_gap && (len < map_bankwidth(map))) in do_write_buffer()
454 if (!len || word_gap == map_bankwidth(map)) { in do_write_buffer()
456 prog_buf_ofs += map_bankwidth(map); in do_write_buffer()
A Dqinfo_probe.c48 int bankwidth = map_bankwidth(map) * 8; in lpddr_get_qinforec_pos()
66 int bits_per_chip = map_bankwidth(map) * 8; in lpddr_info_query()

Completed in 24 milliseconds