Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/mtd/
H 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 …]
H A Dpfow.h104 int bits_per_chip = map_bankwidth(map) * 8; in send_pfow_command()
/openbmc/linux/drivers/mtd/chips/
H A Dcfi_util.c42 unsigned bankwidth = map_bankwidth(map); in cfi_build_cmd_addr()
79 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 in cfi_build_cmd()
81 wordwidth = map_bankwidth(map); in cfi_build_cmd()
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()
145 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 in cfi_merge_status()
147 wordwidth = map_bankwidth(map); in cfi_merge_status()
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()
H A Dcfi_cmdset_0002.c1669 adr, map_bankwidth(map), in do_write_oneword_once()
1889 ofs += map_bankwidth(map); in cfi_amdstd_write_words()
1890 buf += map_bankwidth(map); in cfi_amdstd_write_words()
1892 len -= map_bankwidth(map); in cfi_amdstd_write_words()
2065 z += map_bankwidth(map); in do_write_buffer()
2066 buf += map_bankwidth(map); in do_write_buffer()
2068 z -= map_bankwidth(map); in do_write_buffer()
2077 adr, map_bankwidth(map), in do_write_buffer()
2368 ofs += map_bankwidth(map); in cfi_amdstd_panic_write()
2369 buf += map_bankwidth(map); in cfi_amdstd_panic_write()
[all …]
H 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()
H A Dcfi_cmdset_0001.c1604 adr, map_bankwidth(map), in do_write_oneword()
1656 if (ofs & (map_bankwidth(map)-1)) { in cfi_intelext_write_words()
1684 while(len >= map_bankwidth(map)) { in cfi_intelext_write_words()
1692 ofs += map_bankwidth(map); in cfi_intelext_write_words()
1693 buf += map_bankwidth(map); in cfi_intelext_write_words()
1694 (*retlen) += map_bankwidth(map); in cfi_intelext_write_words()
1695 len -= map_bankwidth(map); in cfi_intelext_write_words()
1705 if (len & (map_bankwidth(map)-1)) { in cfi_intelext_write_words()
1813 int n = map_bankwidth(map) - word_gap; in do_write_buffer()
1830 adr += map_bankwidth(map); in do_write_buffer()
[all …]
H A Dcfi_cmdset_0020.c261 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
431 if (adr & (map_bankwidth(map)-1)) in do_write_buffer()
521 map_write(map, CMD(len/map_bankwidth(map)-1), cmd_adr ); in do_write_buffer()
525 z += map_bankwidth(map), buf += map_bankwidth(map)) { in do_write_buffer()
621 printk("%s: map_bankwidth(map)[%x]\n", __func__, map_bankwidth(map)); in cfi_staa_write_buffers()
H A Dmap_ram.c133 for (i=0; i<instr->len; i += map_bankwidth(map)) in mapram_erase()
H A Djedec_probe.c2179 if ( ((base + probe_offset1 + map_bankwidth(map)) >= map->size) || in jedec_probe_chip()
2180 ((base + probe_offset2 + map_bankwidth(map)) >= map->size)) in jedec_probe_chip()
/openbmc/linux/drivers/mtd/lpddr/
H A Dlpddr_cmds.c423 word_gap = (-adr & (map_bankwidth(map)-1)); in do_write_buffer()
425 word_gap = map_bankwidth(map) - word_gap; in do_write_buffer()
436 int n = map_bankwidth(map) - word_gap; in do_write_buffer()
443 if (!word_gap && (len < map_bankwidth(map))) in do_write_buffer()
451 if (!len || word_gap == map_bankwidth(map)) { in do_write_buffer()
453 prog_buf_ofs += map_bankwidth(map); in do_write_buffer()
H 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()